110033 Commits

Author SHA1 Message Date
Andrew Nicols
de919962ea
Merge branch 'MDL-77328-master-fix' of https://github.com/junpataleta/moodle 2023-07-21 11:58:36 +08:00
Andrew Nicols
094f5dbb5b
Merge branch 'MDL-77745_master' of https://github.com/marxjohnson/moodle 2023-07-21 11:58:34 +08:00
Andrew Nicols
b35160fda6
Merge branch 'MDL-78704-master' of https://github.com/rjnl/moodle 2023-07-21 11:57:16 +08:00
Jun Pataleta
26905eeb93
MDL-77328 question: Declare $qbank as a proper view_component property 2023-07-21 11:57:14 +08:00
Jun Pataleta
73259066c4
MDL-77328 qformat_xml: Avoid dynamic declaration for question_answer
Declare qformat_xml::answerfiles and qformat_xml::feedbackfiles instead
of dynamically declaring answerfiles and feedbackfiles for the
question_answer instance when exporting questions and answers to XML
format.
2023-07-21 11:57:14 +08:00
Jun Pataleta
185c14ad1a
MDL-77328 qtype_caclulatedmulti: Use qtype_calculated_answer
The question answers for question type plugins extending
\qtype_calculated now have the type
\qtype_calculated\qtype_calculated_answer. So the answers for test
helper functions make_calculatedmulti_question_singleresponse() and
make_calculatedmulti_question_multiresponse() should also be changed
accordingly.
2023-07-21 11:57:13 +08:00
Jun Pataleta
9119d4513f
MDL-77328 qtype_caclulatedsimple: Use qtype_calculated_answer
The question answers for question type plugins extending
\qtype_calculated now have the type
\qtype_calculated\qtype_calculated_answer. So the answers for
make_calculatedsimple_question_sum() should be changed accordingly.
2023-07-21 11:57:13 +08:00
Jun Pataleta
6ec75e40e0
MDL-77328 qtype_calculated: Add upgrade.txt notes
* Question type plugins that extend qtype_calculated should be made
aware of the changes about the new question_answer type
\qtype_calculated\qtype_calculated_answer.
2023-07-21 11:57:13 +08:00
Jun Pataleta
fa3395bb8b
Merge branch 'MDL-77328-master' of https://github.com/rezaies/moodle 2023-07-21 11:57:12 +08:00
Andrew Nicols
fb1d2f6367
Merge branch 'MDL-78543' of https://github.com/skodak/moodle 2023-07-18 15:42:18 +08:00
Jake Dallimore
bba8388306
Merge branch 'MDL-74869-activity-icon-color-map' of https://github.com/Benjamin-unige/moodle 2023-07-18 14:45:56 +08:00
Jun Pataleta
9ad85f7e9b
Merge branch 'MDL-78517-master' of https://github.com/sarjona/moodle 2023-07-18 13:15:07 +08:00
Shamim Rezaie
dedbcaf074 Merge branch 'MDL-78564' of https://github.com/paulholden/moodle 2023-07-17 20:36:53 +10:00
Benjamin Abraham
c8482f09c6 MDL-74869 theme: Moved activity icon color into variables
Moved colors of the activity-icon-colors map into variables
with default value to make them easy to override.
2023-07-14 09:46:55 +02:00
Petr Skoda
c1bb36eadb MDL-78543 admin: fix invalid default email setting with localhost site 2023-07-14 08:47:20 +02:00
Petr Skoda
24c416592c MDL-78543 admin: fix stored file setting default application 2023-07-14 08:47:20 +02:00
Petr Skoda
92446838ab MDL-78543 admin: refactor admin_apply_default_settings() 2023-07-14 08:47:20 +02:00
Sara Arjona
47ba5d207c
MDL-78517 completion: Homogenize the module settings
Reuse the code between default course completion settings and
activity completion form to avoid duplicating efforts and missing
features, as happened with the grading forum.
2023-07-14 07:09:04 +02:00
Ilya Tregubov
e77452220b
weekly release 4.3dev 2023-07-14 09:25:31 +08:00
Sara Arjona
8ecebfcc42
Merge branch 'MDL-76757-fixup' of https://github.com/timhunt/moodle 2023-07-13 21:42:09 +02:00
Tim Hunt
3ea0bdfba6 MDL-76757 delete questions: fix message generation logic
The order was getting scrambled.
2023-07-13 17:10:13 +01:00
Sara Arjona
2e78301afb
Merge branch 'MDL-78288-master' of https://github.com/aanabit/moodle 2023-07-13 16:51:37 +02:00
Jun Pataleta
844257a539
Merge branch 'MDL-76046-master' of https://github.com/stevandoMoodle/moodle 2023-07-13 16:51:37 +02:00
Huong Nguyen
9f6e80f696
Merge branch 'MDL-75195-master' of https://github.com/raortegar/moodle 2023-07-13 16:51:04 +02:00
Huong Nguyen
5156669404
Merge branch 'MDL-50272' of https://github.com/paulholden/moodle 2023-07-13 16:51:04 +02:00
Huong Nguyen
256f83cc34
Merge branch 'MDL-76757-master' of https://github.com/danghieu1407/moodle 2023-07-13 16:51:04 +02:00
Andrew Nicols
3ed796bc10
Merge branch 'MDL-75125_master' of https://github.com/marxjohnson/moodle 2023-07-13 16:51:03 +02:00
Ilya Tregubov
c2a9b7b11d
Merge branch 'mdl-7133-master' of https://github.com/juancs/moodle 2023-07-13 16:49:59 +02:00
Jake Dallimore
66e6111165
Merge branch 'MDL-77912' of https://github.com/timhunt/moodle 2023-07-13 16:49:59 +02:00
Andrew Nicols
6d8db08c35
Merge branch 'MDL-78567-master' of https://github.com/stevandoMoodle/moodle 2023-07-13 16:49:59 +02:00
Andrew Nicols
19dbec600f
Merge branch 'MDL-78157-master' of https://github.com/golenkovm/moodle 2023-07-13 16:49:59 +02:00
Andrew Nicols
837f57d218
Merge branch 'MDL-78556-master' of https://github.com/danghieu1407/moodle 2023-07-13 16:49:59 +02:00
Andrew Nicols
6c1cabaa3c
Merge branch 'MDL-76996' of https://github.com/timhunt/moodle 2023-07-13 16:49:59 +02:00
Andrew Nicols
379a7cfb15
Merge branch 'MDL-78109-master' of https://github.com/sammarshallou/moodle 2023-07-13 16:49:59 +02:00
Ilya Tregubov
09c7cd98f4
Merge branch 'MDL-73213' of https://github.com/pedrojordao/moodle 2023-07-13 16:49:58 +02:00
Andrew Nicols
5d1a115c64
Merge branch 'MDL-78587' of https://github.com/paulholden/moodle 2023-07-13 16:49:58 +02:00
Sara Arjona
f01927885f
Merge branch 'MDL-78673-master' of https://github.com/andrewnicols/moodle 2023-07-13 16:49:58 +02:00
Andrew Nicols
af1af32037
Merge branch 'MDL-77450-master' of https://github.com/andelacruz/moodle 2023-07-13 16:49:58 +02:00
Andrew Nicols
82b4aae101
Merge branch 'MDL-78676-master' of https://github.com/sarjona/moodle 2023-07-13 16:49:58 +02:00
Sara Arjona
675569572d
Merge branch 'MDL-78455-master' of https://github.com/andelacruz/moodle 2023-07-13 16:49:58 +02:00
Sara Arjona
79829fb12c
Merge branch 'MDL-78642' of https://github.com/paulholden/moodle 2023-07-13 16:49:58 +02:00
Sara Arjona
075377a996
Merge branch 'MDL-78522-master' of https://github.com/ilyatregubov/moodle 2023-07-13 16:49:58 +02:00
Sara Arjona
2c3f4d3ae9
Merge branch 'MDL-78288-master' of https://github.com/aanabit/moodle 2023-07-13 16:49:56 +02:00
Sara Arjona
65d2f9cddb
Merge branch '76319-gradebook-add-missing-continue-button-master' of https://github.com/DSI-Universite-Rennes2/moodle 2023-07-13 16:49:28 +02:00
Jake Dallimore
f508921418
Merge branch 'MDL-74568-master' of https://github.com/rmady/moodle 2023-07-13 16:49:28 +02:00
Meirza
2eb879360c MDL-77328 qtype_multianswer: Refactor for PHP 8.2 compatibility
This commit addresses compatibility issues in the qtype_multianswer
question type. The following changes were made:

- The usage of the undeclared property $maxmark on subquestions in
  qtype_multianswer was identified as problematic. To resolve this,
  the existing declared property $defaultmark is now being used for
  the same purpose.

By switching to the declared property $defaultmark, compatibility with
PHP 8.2 is ensured and the issue with the undeclared property is
resolved.
2023-07-13 21:03:23 +10:00
Shamim Rezaie
9f00818d00 MDL-77328 qtype_calculated: Refactor for PHP 8.2 compatibility
This commit addresses compatibility issues in the qtype_calculated
question type. The following problems were identified and resolved:

- qtype_calculated was reusing the qtype_numerical_answer class and
  setting two additional properties ($correctanswerlength and
  $correctanswerformat) that were not declared. To resolve this, a new
  class, qtype_calculated_answer, was defined and utilised.
- During grading in qtype_numerical, there were references to an
  undeclared property ($unitisright) used to track calculation details.
  This issue was fixed using a 'replace temp with query' refactoring.

These changes ensure the qtype_calculated question type is compatible
with PHP 8.2 and addresses the identified issues.
2023-07-13 21:03:23 +10:00
Meirza
2b23c8cee2 MDL-77328 qtype_truefalse: Refactor for PHP 8.2 compatibility
This commit addresses the following issues and improvements in the
qtype_truefalse class:

- Added missing class properties:
 - public $truefeedbackformat
 - public $falsefeedbackformat
 - public $showstandardinstruction
- Updated qtype_truefalse_question to include type hinting for better
  IDE support.
2023-07-13 21:03:22 +10:00
Mark Johnson
cc1ae8d5b3 MDL-77745 mod_quiz: Confirm display of question version in behat tests 2023-07-13 11:11:43 +01:00
Mark Johnson
ab8a4dd8cb MDL-77745 core_question: Show question version in info box 2023-07-13 11:11:43 +01:00