integration.git
63 min agoMerge branch 'MDL-85817-500' of https://github.com/davewoloszyn/moodle into MOODLE_50... MOODLE_500_STABLE
Huong Nguyen [Mon, 14 Jul 2025 06:52:30 +0000 (13:52 +0700)]
Merge branch 'MDL-85817-500' of https://github.com/davewoloszyn/moodle into MOODLE_500_STABLE

3 days agoweekly release 5.0.1+
Michael Hawkins [Fri, 11 Jul 2025 04:48:56 +0000 (12:48 +0800)]
weekly release 5.0.1+

3 days agoNOBUG: Add upgrade notes
Michael Hawkins [Fri, 11 Jul 2025 04:48:56 +0000 (12:48 +0800)]
NOBUG: Add upgrade notes

4 days agoMerge branch 'MDL-85863-500' of https://github.com/yusufwib01/moodle into MOODLE_500_...
Huong Nguyen [Thu, 10 Jul 2025 03:46:39 +0000 (10:46 +0700)]
Merge branch 'MDL-85863-500' of https://github.com/yusufwib01/moodle into MOODLE_500_STABLE

4 days agoMerge branch 'MDL-85689-500' of https://github.com/andelacruz/moodle into MOODLE_500_...
Mihail Geshoski [Thu, 10 Jul 2025 03:38:57 +0000 (11:38 +0800)]
Merge branch 'MDL-85689-500' of https://github.com/andelacruz/moodle into MOODLE_500_STABLE

4 days agoMDL-85721 qtype_multianswer: Update find_duplicated_subquestions for Oracle compatibility
Mark Johnson [Wed, 9 Jul 2025 10:09:44 +0000 (11:09 +0100)]
MDL-85721 qtype_multianswer: Update find_duplicated_subquestions for Oracle compatibility

4 days agoMDL-84695 mod_qbank: Fix illegal whitespace
Mihail Geshoski [Thu, 10 Jul 2025 03:07:25 +0000 (11:07 +0800)]
MDL-84695 mod_qbank: Fix illegal whitespace

4 days agoMDL-84695 mod_qbank: fix unit test for MS SQL server
Mark Johnson [Thu, 3 Jul 2025 14:51:29 +0000 (15:51 +0100)]
MDL-84695 mod_qbank: fix unit test for MS SQL server

4 days agoMerge branch 'MDL-85262-500' of https://github.com/paulholden/moodle into MOODLE_500_...
Huong Nguyen [Thu, 10 Jul 2025 01:33:29 +0000 (08:33 +0700)]
Merge branch 'MDL-85262-500' of https://github.com/paulholden/moodle into MOODLE_500_STABLE

4 days agoMerge branch 'MDL-84901-500' of https://github.com/paulholden/moodle into MOODLE_500_...
Huong Nguyen [Thu, 10 Jul 2025 01:25:38 +0000 (08:25 +0700)]
Merge branch 'MDL-84901-500' of https://github.com/paulholden/moodle into MOODLE_500_STABLE

4 days agoMerge branch 'MDL-85939-500' of https://github.com/paulholden/moodle into MOODLE_500_...
Mihail Geshoski [Wed, 9 Jul 2025 15:25:46 +0000 (23:25 +0800)]
Merge branch 'MDL-85939-500' of https://github.com/paulholden/moodle into MOODLE_500_STABLE

4 days agoMerge branch 'MDL-84255-500' of https://github.com/lucaboesch/moodle into MOODLE_500_...
Mihail Geshoski [Wed, 9 Jul 2025 15:18:21 +0000 (23:18 +0800)]
Merge branch 'MDL-84255-500' of https://github.com/lucaboesch/moodle into MOODLE_500_STABLE

5 days agoMDL-85721 qtype_multianswer: Fix version bump
Mihail Geshoski [Wed, 9 Jul 2025 03:13:47 +0000 (11:13 +0800)]
MDL-85721 qtype_multianswer: Fix version bump

5 days agoMDL-85689 mod_quiz: Behat for adding and deleting page from quiz
andelacruz [Wed, 25 Jun 2025 07:27:12 +0000 (15:27 +0800)]
MDL-85689 mod_quiz: Behat for adding and deleting page from quiz

5 days agoMerge branch 'MDL-85721_500_STABLE' of https://github.com/marxjohnson/moodle into...
Mihail Geshoski [Wed, 9 Jul 2025 02:20:35 +0000 (10:20 +0800)]
Merge branch 'MDL-85721_500_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_500_STABLE

5 days agoMerge branch 'MDL-85697-500' of https://github.com/andelacruz/moodle into MOODLE_500_...
Huong Nguyen [Wed, 9 Jul 2025 02:10:46 +0000 (09:10 +0700)]
Merge branch 'MDL-85697-500' of https://github.com/andelacruz/moodle into MOODLE_500_STABLE

5 days agoMerge branch 'MDL-85779-500' of https://github.com/paulholden/moodle into MOODLE_500_...
Huong Nguyen [Wed, 9 Jul 2025 02:06:10 +0000 (09:06 +0700)]
Merge branch 'MDL-85779-500' of https://github.com/paulholden/moodle into MOODLE_500_STABLE

5 days agoMDL-85939 qbank_columnsortorder: improve preview page table alignment.
Paul Holden [Fri, 4 Jul 2025 01:49:38 +0000 (09:49 +0800)]
MDL-85939 qbank_columnsortorder: improve preview page table alignment.

5 days agoMerge branch 'MDL-85659-500' of https://github.com/roland04/moodle into MOODLE_500_STABLE
Amaia Anabitarte [Tue, 8 Jul 2025 15:36:20 +0000 (17:36 +0200)]
Merge branch 'MDL-85659-500' of https://github.com/roland04/moodle into MOODLE_500_STABLE

5 days agoMerge branch 'MDL-85069_500_STABLE' of https://github.com/marxjohnson/moodle into...
Mihail Geshoski [Tue, 8 Jul 2025 14:28:36 +0000 (22:28 +0800)]
Merge branch 'MDL-85069_500_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_500_STABLE

5 days agoMerge branch 'MDL-84695-500' of https://github.com/lucaboesch/moodle into MOODLE_500_...
Mihail Geshoski [Tue, 8 Jul 2025 14:21:25 +0000 (22:21 +0800)]
Merge branch 'MDL-84695-500' of https://github.com/lucaboesch/moodle into MOODLE_500_STABLE

5 days agoMerge branch 'MDL-85881_500_STABLE' of https://github.com/marxjohnson/moodle into...
Mihail Geshoski [Tue, 8 Jul 2025 14:14:31 +0000 (22:14 +0800)]
Merge branch 'MDL-85881_500_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_500_STABLE

5 days agoMDL-84901 auth: specific session start error language string.
Paul Holden [Mon, 17 Mar 2025 18:13:35 +0000 (18:13 +0000)]
MDL-84901 auth: specific session start error language string.

5 days agoMerge branch 'MDL-84976-500' of https://github.com/rjnl/moodle into MOODLE_500_STABLE
Huong Nguyen [Tue, 8 Jul 2025 11:13:38 +0000 (18:13 +0700)]
Merge branch 'MDL-84976-500' of https://github.com/rjnl/moodle into MOODLE_500_STABLE

5 days agoMerge branch 'MDL-85037-500' of https://github.com/paulholden/moodle into MOODLE_500_...
Huong Nguyen [Tue, 8 Jul 2025 11:08:52 +0000 (18:08 +0700)]
Merge branch 'MDL-85037-500' of https://github.com/paulholden/moodle into MOODLE_500_STABLE

5 days agoMerge branch 'MDL-85947-M500_bump-GHA-ubuntu-24-04' of https://github.com/ziegenberg...
Huong Nguyen [Tue, 8 Jul 2025 10:35:07 +0000 (17:35 +0700)]
Merge branch 'MDL-85947-M500_bump-GHA-ubuntu-24-04' of https://github.com/ziegenberg/moodle into MOODLE_500_STABLE

5 days agoMerge branch 'MDL-41924_500_STABLE' of https://github.com/marxjohnson/moodle into...
Mihail Geshoski [Tue, 8 Jul 2025 09:06:32 +0000 (17:06 +0800)]
Merge branch 'MDL-41924_500_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_500_STABLE

5 days agoMDL-85697 mod_lesson: Behat for lesson group and user overrides
andelacruz [Tue, 1 Jul 2025 09:23:06 +0000 (17:23 +0800)]
MDL-85697 mod_lesson: Behat for lesson group and user overrides

5 days agoMDL-85697 mod_assign: Behat for assignment group and user overrides
andelacruz [Tue, 1 Jul 2025 08:10:05 +0000 (16:10 +0800)]
MDL-85697 mod_assign: Behat for assignment group and user overrides

5 days agoMDL-85697 mod_quiz: Behat for quiz group and user overrides
andelacruz [Tue, 24 Jun 2025 09:12:58 +0000 (17:12 +0800)]
MDL-85697 mod_quiz: Behat for quiz group and user overrides

6 days agoMDL-84255 quiz: Show quiz title in heading in accessrule_seb layout.
Luca Bösch [Wed, 23 Apr 2025 07:26:29 +0000 (09:26 +0200)]
MDL-84255 quiz: Show quiz title in heading in accessrule_seb layout.

6 days agoMDL-85947 ci: Bump GHA to Ubuntu 24.04
Daniel Ziegenberg [Mon, 7 Jul 2025 13:57:39 +0000 (15:57 +0200)]
MDL-85947 ci: Bump GHA to Ubuntu 24.04

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
6 days agoMDL-85863 user: Defer new-password email until after transaction commit
yusufwib01 [Thu, 3 Jul 2025 16:32:50 +0000 (23:32 +0700)]
MDL-85863 user: Defer new-password email until after transaction commit

6 days agoMDL-85659 theme_boost: Fix editor generated tables styles
Mikel Martín [Thu, 3 Jul 2025 12:59:00 +0000 (14:59 +0200)]
MDL-85659 theme_boost: Fix editor generated tables styles

7 days agoMDL-81702 core_message: Add focustrap and backdrop
Laurent David [Mon, 7 Apr 2025 09:21:45 +0000 (11:21 +0200)]
MDL-81702 core_message: Add focustrap and backdrop

* Add focustrap and backdrop to message drawer.

7 days agoMDL-81702 theme_boost: Add focus lock to drawers
Laurent David [Mon, 7 Apr 2025 07:33:42 +0000 (09:33 +0200)]
MDL-81702 theme_boost: Add focus lock to drawers

* Add focus lock to drawers for small screens

7 days agoMDL-81702 theme_boost: Remove site home link from drawers
Laurent David [Mon, 7 Apr 2025 05:19:22 +0000 (07:19 +0200)]
MDL-81702 theme_boost: Remove site home link from drawers

* The site-home-link was added to all menu drawers and should
only be added to the main menu drawer (mobile version)

7 days agoMDL-85817 mod_assign: Update assignment SMS strings
David Woloszyn [Mon, 7 Jul 2025 01:29:40 +0000 (11:29 +1000)]
MDL-85817 mod_assign: Update assignment SMS strings

7 days agoMDL-84695 mod_qbank: More precise get_qbank_ids_of_type_in_course query.
Luca Bösch [Fri, 28 Feb 2025 13:43:18 +0000 (14:43 +0100)]
MDL-84695 mod_qbank: More precise get_qbank_ids_of_type_in_course query.

8 days agoweekly release 5.0.1+
Mihail Geshoski [Sun, 6 Jul 2025 01:25:48 +0000 (09:25 +0800)]
weekly release 5.0.1+

8 days agoNOBUG: Add upgrade notes
Mihail Geshoski [Sun, 6 Jul 2025 01:25:48 +0000 (09:25 +0800)]
NOBUG: Add upgrade notes

8 days agoMerge branch 'install_500_STABLE' of https://git.in.moodle.com/amosbot/moodle-install...
Mihail Geshoski [Sun, 6 Jul 2025 01:25:34 +0000 (09:25 +0800)]
Merge branch 'install_500_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_500_STABLE

8 days agoMerge branch 'MDL-85350_500' of https://github.com/PhilippImhof/moodle into MOODLE_50...
Mihail Geshoski [Thu, 3 Jul 2025 03:41:18 +0000 (11:41 +0800)]
Merge branch 'MDL-85350_500' of https://github.com/PhilippImhof/moodle into MOODLE_500_STABLE

8 days agoMerge branch 'MDL-84487_500_STABLE' of https://github.com/marxjohnson/moodle into...
Mihail Geshoski [Thu, 3 Jul 2025 03:27:41 +0000 (11:27 +0800)]
Merge branch 'MDL-84487_500_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_500_STABLE

8 days agoMerge branch 'MDL-85200_500_STABLE' of https://github.com/marxjohnson/moodle into...
Mihail Geshoski [Thu, 3 Jul 2025 03:21:20 +0000 (11:21 +0800)]
Merge branch 'MDL-85200_500_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_500_STABLE

8 days agoMerge branch 'MDL-85563-m500' of https://github.com/NeillM/moodle into MOODLE_500_STABLE
Mihail Geshoski [Thu, 3 Jul 2025 03:07:01 +0000 (11:07 +0800)]
Merge branch 'MDL-85563-m500' of https://github.com/NeillM/moodle into MOODLE_500_STABLE

8 days agoMerge branch 'MDL-85210_500_STABLE' of https://github.com/marxjohnson/moodle into...
Mihail Geshoski [Thu, 3 Jul 2025 02:51:32 +0000 (10:51 +0800)]
Merge branch 'MDL-85210_500_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_500_STABLE

8 days agoMerge branch 'MDL-85432-500' of https://github.com/sh-csg/moodle into MOODLE_500_STABLE
Mihail Geshoski [Thu, 3 Jul 2025 02:24:44 +0000 (10:24 +0800)]
Merge branch 'MDL-85432-500' of https://github.com/sh-csg/moodle into MOODLE_500_STABLE

10 days agoMDL-85037 block_html: correct access checks for plugin file serving.
Paul Holden [Tue, 1 Apr 2025 13:54:19 +0000 (14:54 +0100)]
MDL-85037 block_html: correct access checks for plugin file serving.

10 days agoMDL-41924 quiz: Annotate questions for backups
Mark Johnson [Fri, 28 Feb 2025 09:59:30 +0000 (09:59 +0000)]
MDL-41924 quiz: Annotate questions for backups

Find question bank entries for all questions referenced by a question
slot, and for all questions matching a question bank referenced used for
a random question, and record their IDs so they can be included in
backups.

10 days agoMDL-41924 backup: Reduce questions included in backups
Mark Johnson [Thu, 13 Feb 2025 09:31:11 +0000 (09:31 +0000)]
MDL-41924 backup: Reduce questions included in backups

Historically, backups of an activity using questions would include all
questions for the entire context, where any question had been used. This
could lead to very large backup files, and exacerbated problems with
question duplication.

This changes the process for annotating categories to include in the
backup to find specific categories, rather than whole contexts. It
includes 3 groups of categories:
1. Those that belong to the backed up activity's context.
2. Those that contain a question used directly in a question_reference
belonging to the activity.
3. Those that contain a question used via a question_set_reference
belonging to the activity.
It also adds in any parent categories that are not included by the
above, so we have a complete hierarchy.

For group 1, the backup will include all questions belonging to these
categories, as before. For groups 2 and 3, it will only include
questions for question bank entries that have been annotated by the
activity.

11 days agoMerge branch 'MDL-76342-500' of https://github.com/yusufwib01/moodle into MOODLE_500_...
Huong Nguyen [Thu, 3 Jul 2025 02:07:36 +0000 (09:07 +0700)]
Merge branch 'MDL-76342-500' of https://github.com/yusufwib01/moodle into MOODLE_500_STABLE

11 days agoMerge branch 'MDL-85769-500' of https://github.com/meirzamoodle/moodle into MOODLE_50...
Huong Nguyen [Thu, 3 Jul 2025 02:05:13 +0000 (09:05 +0700)]
Merge branch 'MDL-85769-500' of https://github.com/meirzamoodle/moodle into MOODLE_500_STABLE

11 days agoMerge branch 'patch/MDL-85666-500' of https://github.com/skodak/moodle into MOODLE_50...
Mihail Geshoski [Thu, 3 Jul 2025 01:55:22 +0000 (09:55 +0800)]
Merge branch 'patch/MDL-85666-500' of https://github.com/skodak/moodle into MOODLE_500_STABLE

11 days agoMDL-85069 qbank_bulkmove: Load banks and categories dynamically
Mark Johnson [Mon, 2 Jun 2025 12:49:28 +0000 (13:49 +0100)]
MDL-85069 qbank_bulkmove: Load banks and categories dynamically

The bulk move question dialogue presents 2 autocomplete fields for
selection of the target bank and category to move questions to. This was
loading all banks and categories the user could access, and filtering
categories based on the selected bank.

On large sites, this was not usable as there were too many banks and
categories to load leading to timeouts.

This refactors the dialogue to load just the current bank and cagtegory
initially, then load other options on demand via AJAX.

11 days agoMDL-85069 question: Services for question bank and category search
Mark Johnson [Thu, 29 May 2025 14:09:12 +0000 (15:09 +0100)]
MDL-85069 question: Services for question bank and category search

This updates the core_question_search_shared_banks external function
with additional parameters to make it applicable outside of the "Switch
bank" dialogue in the quiz, with the corresponding changes to the
question_banks_datasource Javascript module, and unit test coverage.

It also adds a new \core_question\output\question_category_selector
class for rendering a select list of question categories, migrating
the logic used in qbank_managecategories to a core namespace. There
is a fragment callback for rendering this via AJAX.

12 days agoMDL-85666 phpunit: add general plugin tests
Petr Skoda [Tue, 10 Jun 2025 09:12:27 +0000 (11:12 +0200)]
MDL-85666 phpunit: add general plugin tests

This defines new group which can be used
to limit execution of these tests to one plugin only.

For example to execute all tests for Label module use:

phpunit --testsuite=mod_label_testsuite
phpunit --group=plugin_checks --filter=mod_label

or

phpunit --filter=mod_label

12 days agoAutomatically generated installer lang files
AMOS bot [Wed, 2 Jul 2025 00:09:57 +0000 (00:09 +0000)]
Automatically generated installer lang files

12 days agoMDL-85721 qtype_numerical: Prevent duplication on restore
Mark Johnson [Thu, 12 Jun 2025 12:37:35 +0000 (13:37 +0100)]
MDL-85721 qtype_numerical: Prevent duplication on restore

If question_numerical record for a question has been deleted, when its
options are loaded its answers will not have a tolerance property. This
can lead to duplication.

Also, older questions may not have a question_numerical_options record.

To avoid this, we use 0 as a default tolerance for all answers if there
is no matching record, and do the same when reading the question
structure from backups. We also generate default values for the rest of
the options.

12 days agoMDL-85721 qtype: Cope with missing options records
Mark Johnson [Thu, 12 Jun 2025 12:32:20 +0000 (13:32 +0100)]
MDL-85721 qtype: Cope with missing options records

If we restore a question (or any other) which has had its
qtype_xxx_options record deleted, we get a notification output when we
try to build the options.

This may be called from an AJAX request (such as when we duplicate a
quiz), and outputting the notification breaks the AJAX response.
Returning false also means we don't get the answers attached to the
questiondata options, so the structure doesn't match the restored data,
and we get duplication.

This emits the errors via debugging instead, which allows it to be
supressed or logged, and allows get_question_options() to continue
running.

12 days agoMDL-85721 qtype_multianswer: Clean up duplicate subquestions
Mark Johnson [Tue, 10 Jun 2025 13:09:30 +0000 (14:09 +0100)]
MDL-85721 qtype_multianswer: Clean up duplicate subquestions

This adds an ad-hoc task to clean up duplicate subquestions created by
the bug.

When the upgrade is run, it will run a query to check if any
subquestions have been duplicated (if there are multiple questions with
the same parent, text and stamp), and queue the cleanup task if there
are.

For each stamp identified, the task will find instances of the question
that are not referred to in their parent's sequence field, confirm that
they have 0 usages, and delete them.

12 days agoMDL-85721 qtype_multichoice: Generate default options on restore
Mark Johnson [Mon, 9 Jun 2025 14:40:21 +0000 (15:40 +0100)]
MDL-85721 qtype_multichoice: Generate default options on restore

qtype_multichoice::get_question_options() will create a default options
object if no qtype_multichoice_options record exists. This means if we
restore a backup containing a multichoice question without any options
(see previous commit), it will always create a duplicate.

This change generates a default set of options for the backupdata if
none exists, so the identity hash will match if the same question exists
in the database without options, and we dont get duplicates.

12 days agoMDL-85721 qtype_multianswer: Don't delete qtype data for subquestions
Mark Johnson [Mon, 9 Jun 2025 14:37:16 +0000 (15:37 +0100)]
MDL-85721 qtype_multianswer: Don't delete qtype data for subquestions

Historically, multianswer would re-use question IDs from subquestions,
so it was necessary to delete qtype-specific data if the qtype changed.
Since versioning was introduced, editing creates new versions of the
qtype and subquestions. Deleting the data means the original versions of
the subquestions cannot function correctly, so we shouldn't do that
anymore.

12 days agoMerge branch 'MDL-84531-500' of https://github.com/paulholden/moodle into MOODLE_500_...
Andrew Nicols [Tue, 1 Jul 2025 09:36:07 +0000 (17:36 +0800)]
Merge branch 'MDL-84531-500' of https://github.com/paulholden/moodle into MOODLE_500_STABLE

13 days agoMDL-85069 question: Fix return URL parameters after moving questions
Mark Johnson [Thu, 29 May 2025 14:04:13 +0000 (15:04 +0100)]
MDL-85069 question: Fix return URL parameters after moving questions

When calling the core_question_move_questions external function, the
returned $returnurl paramater kept the original `cat`, `category` and
`lastchanged` parameters.

If the question was moved to another question bank, this meant the user
would be redirected to that bank, but the URL would still refer to the
category in the original bank. Opening the bulk move dialogue again
would then show the original bank and category selected by default, not
the current one.

This change ensures the cat parameter is updated to match the new
category, unsets the `category` parameter as it is redundant. If a single
question is moved, "lastchanged" is updated to that question, otherwise
it is unset.

13 days agoMDL-85069 qbank: Add tool_generator callback
Mark Johnson [Thu, 29 May 2025 13:59:07 +0000 (14:59 +0100)]
MDL-85069 qbank: Add tool_generator callback

This adds a callback for tool_generator and the required lang strings to
allow qbanks to be generated as part of test courses, by passing the
--additionalmodules=qbank argument to maketestcourse.php.

13 days agoMDL-85563 phpunit: Clock API should always use Moodle system time
Neill Magill [Thu, 22 May 2025 09:17:37 +0000 (10:17 +0100)]
MDL-85563 phpunit: Clock API should always use Moodle system time

When using `clock::now()` the frozen cloxk and incrementing clock will now
always return a `DateTimeImmutable` that uses the configured Moodle system
time. In unit tests this will be Australia/Perth.

Before this change, it would sometimes be UCT.

13 days agoMDL-85881 questions: Handle multi-byte names during migration
Mark Johnson [Mon, 30 Jun 2025 10:07:14 +0000 (11:07 +0100)]
MDL-85881 questions: Handle multi-byte names during migration

We were using strlen() instead of core_text::strlen() when checking the
length of a question bank name created during the migration. This meant
that multibyte strings were counted as being too long, even though they
were within the character limit.

2 weeks agoMDL-85779 block_timeline: fix/restore sort toggle dropdown behaviour.
Paul Holden [Sun, 29 Jun 2025 15:06:09 +0000 (23:06 +0800)]
MDL-85779 block_timeline: fix/restore sort toggle dropdown behaviour.

Changes during Bootstrap upgrade, in conjunction with both 8a8c8ab2 and
0c586b41, caused the layout to deviate from that expected elsewhere for
managing of Bootstrap dropdown elements. Thus the dynamically chosen
item was no longer being shown as selected. Fix that here.

2 weeks agoweekly release 5.0.1+
Huong Nguyen [Sun, 29 Jun 2025 09:18:33 +0000 (16:18 +0700)]
weekly release 5.0.1+

2 weeks agoMDL-85769 AI: Trap focus within AI drawer on smaller screens
meirzamoodle [Tue, 24 Jun 2025 02:07:18 +0000 (09:07 +0700)]
MDL-85769 AI: Trap focus within AI drawer on smaller screens

Co-authored-by: Laurent David <laurent.david@moodle.com>
2 weeks agoMDL-84487 mod_quiz: Use modal form for editing random questions
Mark Johnson [Tue, 17 Jun 2025 15:32:02 +0000 (16:32 +0100)]
MDL-84487 mod_quiz: Use modal form for editing random questions

Creating and editing random questions were using 2 different forms - one
dynamic form in a modal, and the other a regular form on a standalone
page. The "Switch bank" UI only works in a modal, so while it was
displayed on the edit page, it didn't function.

This combines the editing functionality with the existing modal form, so
the same UI can be used for both operations, and the "Switch bank"
functionality works.

2 weeks agoMerge branch 'MDL-85665-500' of https://github.com/andelacruz/moodle into MOODLE_500_...
Mihail Geshoski [Thu, 26 Jun 2025 02:45:10 +0000 (10:45 +0800)]
Merge branch 'MDL-85665-500' of https://github.com/andelacruz/moodle into MOODLE_500_STABLE

2 weeks agoMerge branch 'MDL-83752-M500' of https://github.com/ziegenberg/moodle into MOODLE_500...
Huong Nguyen [Thu, 26 Jun 2025 02:19:34 +0000 (09:19 +0700)]
Merge branch 'MDL-83752-M500' of https://github.com/ziegenberg/moodle into MOODLE_500_STABLE

2 weeks agoMerge branch 'MDL-76414-500' of https://github.com/yusufwib01/moodle into MOODLE_500_...
Huong Nguyen [Thu, 26 Jun 2025 01:29:39 +0000 (08:29 +0700)]
Merge branch 'MDL-76414-500' of https://github.com/yusufwib01/moodle into MOODLE_500_STABLE

2 weeks agoMerge branch 'MDL-85734-500' of https://github.com/lucaboesch/moodle into MOODLE_500_...
Huong Nguyen [Thu, 26 Jun 2025 01:25:49 +0000 (08:25 +0700)]
Merge branch 'MDL-85734-500' of https://github.com/lucaboesch/moodle into MOODLE_500_STABLE

2 weeks agoMerge branch 'MDL-85466-500' of https://github.com/lucaboesch/moodle into MOODLE_500_...
Huong Nguyen [Thu, 26 Jun 2025 01:22:20 +0000 (08:22 +0700)]
Merge branch 'MDL-85466-500' of https://github.com/lucaboesch/moodle into MOODLE_500_STABLE

2 weeks agoMerge branch 'MDL-82109-500' of https://github.com/paulholden/moodle into MOODLE_500_...
Huong Nguyen [Thu, 26 Jun 2025 01:19:47 +0000 (08:19 +0700)]
Merge branch 'MDL-82109-500' of https://github.com/paulholden/moodle into MOODLE_500_STABLE

2 weeks agoMDL-85665 mod_quiz: Behat to build quiz in single activity format course
andelacruz [Wed, 11 Jun 2025 09:21:03 +0000 (17:21 +0800)]
MDL-85665 mod_quiz: Behat to build quiz in single activity format course

2 weeks agoMDL-83752 workshop: Handle empty feedbackreviewer
Daniel Ziegenberg [Mon, 18 Nov 2024 17:00:42 +0000 (18:00 +0100)]
MDL-83752 workshop: Handle empty feedbackreviewer

Causes PHP warnings when null on PHP 8.1.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2 weeks agoMerge branch 'MDL-85683-500' of https://github.com/paulholden/moodle into MOODLE_500_...
Huong Nguyen [Tue, 24 Jun 2025 02:21:13 +0000 (09:21 +0700)]
Merge branch 'MDL-85683-500' of https://github.com/paulholden/moodle into MOODLE_500_STABLE

2 weeks agoMerge branch 'MDL-85644-500' of https://github.com/paulholden/moodle into MOODLE_500_...
Huong Nguyen [Tue, 24 Jun 2025 02:20:00 +0000 (09:20 +0700)]
Merge branch 'MDL-85644-500' of https://github.com/paulholden/moodle into MOODLE_500_STABLE

2 weeks agoMerge branch 'MDL-85407-50' of https://github.com/durenadev/moodle into MOODLE_500_STABLE
Huong Nguyen [Tue, 24 Jun 2025 02:16:53 +0000 (09:16 +0700)]
Merge branch 'MDL-85407-50' of https://github.com/durenadev/moodle into MOODLE_500_STABLE

3 weeks agoMDL-85734 calendar: support multilang group names.
Luca Bösch [Tue, 10 Jun 2025 14:16:39 +0000 (16:16 +0200)]
MDL-85734 calendar: support multilang group names.

3 weeks agoMDL-85466 course: space between number and course icon.
Luca Bösch [Tue, 20 May 2025 15:42:32 +0000 (17:42 +0200)]
MDL-85466 course: space between number and course icon.

3 weeks agoweekly release 5.0.1+
Huong Nguyen [Fri, 20 Jun 2025 08:14:19 +0000 (15:14 +0700)]
weekly release 5.0.1+

3 weeks agoMerge branch 'install_500_STABLE' of https://git.in.moodle.com/amosbot/moodle-install...
Huong Nguyen [Fri, 20 Jun 2025 08:14:08 +0000 (15:14 +0700)]
Merge branch 'install_500_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_500_STABLE

3 weeks agoMerge branch 'MDL-75947-integration-500-fix' of https://github.com/mihailges/moodle...
Sara Arjona [Thu, 19 Jun 2025 15:22:03 +0000 (17:22 +0200)]
Merge branch 'MDL-75947-integration-500-fix' of https://github.com/mihailges/moodle into MOODLE_500_STABLE

3 weeks agoMDL-85210 mod_qbank: Update question set references during upgrade
Mark Johnson [Tue, 3 Jun 2025 10:26:44 +0000 (11:26 +0100)]
MDL-85210 mod_qbank: Update question set references during upgrade

When moving question categories during the migration to mod_qbank, set
references using questions in those categories were not updated with the
new context.

Furthermore, since top categories from system, category and course
contexts are deleted and not moved, and set references that filtered
based on a top category were left pointing to a non-existant category.

This change updates set references using the top category to point to
the new top category where its subcategories are moved, and updates set
references for all subcategories to set the new context.

3 weeks agoMDL-85210 question: Update move_question_set_references
Mark Johnson [Tue, 3 Jun 2025 13:08:54 +0000 (14:08 +0100)]
MDL-85210 question: Update move_question_set_references

move_question_set_references expected the set reference to use the old
filter format.

This change converts the filter to the new format if required, before
updating the category and context ids.

3 weeks agoMDL-75947 ltiservice_gradebookservices: Fix unit test
Mihail Geshoski [Thu, 19 Jun 2025 08:15:36 +0000 (16:15 +0800)]
MDL-75947 ltiservice_gradebookservices: Fix unit test

Fixes the test_sequential_score_posts() unit test in lineitem_test
by removing dynamic class property assignments, which were triggering
deprecation notices.

3 weeks agoMDL-76414 navigation: Show 'Calendar' link in primary nav to guests
yusufwib01 [Wed, 4 Jun 2025 20:40:58 +0000 (03:40 +0700)]
MDL-76414 navigation: Show 'Calendar' link in primary nav to guests

3 weeks agoMerge branch 'MDL-85223-500' of https://github.com/paulholden/moodle into MOODLE_500_...
Huong Nguyen [Thu, 19 Jun 2025 04:26:09 +0000 (11:26 +0700)]
Merge branch 'MDL-85223-500' of https://github.com/paulholden/moodle into MOODLE_500_STABLE

3 weeks agoMerge branch 'MDL-75947-500' of https://github.com/Jayce0808/moodle into MOODLE_500_S...
Mihail Geshoski [Thu, 19 Jun 2025 04:19:18 +0000 (12:19 +0800)]
Merge branch 'MDL-75947-500' of https://github.com/Jayce0808/moodle into MOODLE_500_STABLE

3 weeks agoMerge branch 'MDL-85678-500' of https://github.com/junpataleta/moodle into MOODLE_500...
Huong Nguyen [Thu, 19 Jun 2025 04:07:40 +0000 (11:07 +0700)]
Merge branch 'MDL-85678-500' of https://github.com/junpataleta/moodle into MOODLE_500_STABLE

3 weeks agoMerge branch 'MDL-83487-500' of https://github.com/muhammadarnaldo/moodle into MOODLE...
Mihail Geshoski [Thu, 19 Jun 2025 03:32:06 +0000 (11:32 +0800)]
Merge branch 'MDL-83487-500' of https://github.com/muhammadarnaldo/moodle into MOODLE_500_STABLE

3 weeks agoMerge branch 'MDL-85159-500' of https://github.com/stevandoMoodle/moodle into MOODLE_...
Huong Nguyen [Thu, 19 Jun 2025 03:03:39 +0000 (10:03 +0700)]
Merge branch 'MDL-85159-500' of https://github.com/stevandoMoodle/moodle into MOODLE_500_STABLE

3 weeks agoMDL-76342 core_output: Wrap buttons below heading on small screens
yusufwib01 [Wed, 11 Jun 2025 15:34:08 +0000 (22:34 +0700)]
MDL-76342 core_output: Wrap buttons below heading on small screens

3 weeks agoMerge branch 'MDL-85514-500' of https://github.com/snake/moodle into MOODLE_500_STABLE
Mihail Geshoski [Thu, 19 Jun 2025 02:59:53 +0000 (10:59 +0800)]
Merge branch 'MDL-85514-500' of https://github.com/snake/moodle into MOODLE_500_STABLE

3 weeks agoMDL-85514 core_form: support 'in' rule for multiselects via subset of
Jake Dallimore [Fri, 16 May 2025 02:17:10 +0000 (10:17 +0800)]
MDL-85514 core_form: support 'in' rule for multiselects via subset of

The 'in' rule currently behaves the same way that 'eq' does when used
with multi-selects, which is not correct. It should be modelled by
checking whether the selected values are a subset of the rule values
(i.e. selected values are 'in' the rule values). This patch implements
that for core form rules as well as for the admin settings show/hide.
Several behat features are updated as well, because these were verifying
the incorrect behaviour for multi-select in rules.