Skip to content

Moodle 501 stable#1

Open
iiiulia12 wants to merge 889 commits intomainfrom
MOODLE_501_STABLE
Open

Moodle 501 stable#1
iiiulia12 wants to merge 889 commits intomainfrom
MOODLE_501_STABLE

Conversation

@iiiulia12
Copy link
Copy Markdown
Collaborator

*** PLEASE DO NOT OPEN PULL REQUESTS VIA GITHUB ***

The moodle.git repository at Github is just a mirror of the official repository. We do not accept pull requests at Github.

See CONTRIBUTING.md guidelines for how to contribute patches for Moodle. Thank you.

--

timhunt and others added 30 commits January 28, 2026 14:56
Fixes ambiguous instances when using shared custom fields.
The component and area parameters are now used to get the proper handler.
packbackbooks/lti-1-3-php-library#169 blocks
us from using the new build.1edtech certification tooling. This issue
commits that fix as a library customisation/hack for stables, so the
suite can be used for annual/bi-annual re-certification.
scoreGiven was being passed as a string (e.g. "8.0"), which caused
validation errors in some LMS implementations such as Rustici Engine.
According to the LTI specification, scoreGiven must be numeric if
present.

Co-authored-by: Jake Dallimore <jake@moodle.com>
Fixes a bug where filtering questions by tag the 'NONE'
option was not being respected. Automated testing was also added
to cover tag filtering conditions in the question bank
Changes from 8cf9b22 introduced usage of a non-autoloaded class, so
we should be resilient and ensure the library in which it resides is
always loaded.
When the course format switcher reloads the form, the `$returnto`
parameter is of type string: "0", rather of type integer per initial
load.

In this case the `empty(...)` check is verifying all of empty string,
0 (integer) and "0" (string). Hurrah for PHP type checking.
The Description field within the Subsection edit form has been deprecated since Moodle 5.2 onwards (see MDL-87279).
To ensure a smooth transition and avoid data loss for our users, the XD team have prepared a solution to notify them
of this upcoming change in stable versions.
Starting in version 3.10, Moodle started to use a different format for
the $CFG->branch that has not been fixed here. This is to make sure that
we request the correct version of the plugin.
HuongNV13 and others added 30 commits February 27, 2026 09:38
When a question bank is restored along with a quiz that uses a random
question from that bank,
the set reference for the random question should now point to the
category in the restored bank,
rather than original.

This uses the question bank context IDs recorded using the method added
in MDL-86136
to decide if the set reference's question context is being restored, and
update it
accordingly.

This required adding a new restore step in the restore_root_task, since
when a restore is
performed asynchronously, the temp IDs table is deleted after the
prechecks are performed
when the task is queued. Adding this step allows the IDs to be recorded
again when the restore
runs.
After restoring an activity using shared questions without the question
bank they belong to, we may have left over question categories in the
target course context. These were being deleted, but any questions they
contained weren't.

This replaces the bulk delete of question category records with a call
to `question_category_delete_safe()` for each category, which will also
delete the questions they contain.
When viewing an "available but not shown" cm with self-completion set,
then clicking the 'Mark as done' button in the activity header.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.