Sara Arjona [Fri, 26 May 2023 07:28:53 +0000 (09:28 +0200)]
weekly release 4.1.3+
Andrew Nicols [Thu, 25 May 2023 06:54:35 +0000 (14:54 +0800)]
MDL-78346 tool_langimport: Print any notifications before redirect
Andrew Nicols [Wed, 24 May 2023 14:48:28 +0000 (22:48 +0800)]
MDL-78346 tool_langimport: Redirect after action to prevent resubmission
Andrew Nicols [Wed, 24 May 2023 14:48:12 +0000 (22:48 +0800)]
MDL-78346 tool_langimport: Prevent uninstallation of invalid targets
Paul Holden [Fri, 19 May 2023 10:05:11 +0000 (11:05 +0100)]
MDL-78320 quiz_overview: format group names in overview report.
Simey Lameze [Thu, 18 May 2023 04:05:11 +0000 (12:05 +0800)]
MDL-76065 behat: Review and enhance mod_lti Behat tests
In this commit, the following improvements were made to the mod_lti Behat tests:
* Replaced manual steps with data generators to set completion.
* Eliminated unnecessary user and course enrolments data generation as some tests can be performed as an admin.
* Removed the @javascript tag from non-JS tests.
* Updated the LTI data generator to generate an internal Moodle URL in the toolurl field, enabling the use of XML files.
Angelia Dela Cruz [Mon, 7 Nov 2022 04:38:52 +0000 (12:38 +0800)]
MDL-76065 behat: LTI behat generators use UI
Replace steps that manually add LTI instances via the UI and use
Behat generators. This improves the speed of the Behat test runs.
AMOS bot [Tue, 23 May 2023 00:10:27 +0000 (00:10 +0000)]
Automatically generated installer lang files
Andrew Nicols [Tue, 9 May 2023 02:17:14 +0000 (10:17 +0800)]
MDL-78157 js: Be more careful about inserting missing module names
It is perfectly legitimate to create and/or use a method named `define`
in JS outside of RequireJS.
Unfortunately our requirejs.php wrapper is dumb and does not understand
this.
In the long term we need to stop doing this at all. We really should be
able to already, but every time I try to something prevents it.
In the interim, this change adds a secondary check to see if there is an
existing define which _does_ have the right name in it already.
Anupama Sarjoshi [Thu, 11 May 2023 17:14:33 +0000 (18:14 +0100)]
MDL-78176 Question: Fix D&D onto image and D&D markers theme issue
Jun Pataleta [Fri, 19 May 2023 13:13:57 +0000 (21:13 +0800)]
weekly release 4.1.3+
Andrew Nicols [Thu, 18 May 2023 07:31:10 +0000 (15:31 +0800)]
MDL-77733 behat: Remove extraneous no-axe option
There is no need for no-axe if we make axe a boolean value. We already
have automatic support for negated boolean flags.
David Woloszyn [Thu, 18 May 2023 02:57:56 +0000 (12:57 +1000)]
MDL-78005 editor_tiny: Declared vars to supress error logging
Tim Hunt [Tue, 16 May 2023 08:23:09 +0000 (09:23 +0100)]
MDL-78260 quiz stats: fix View details for random questions
Rajneel Totaram [Wed, 17 May 2023 07:37:15 +0000 (19:37 +1200)]
MDL-77983 core_user: Avoid passing nulls to base64_decode
AMOS bot [Wed, 17 May 2023 00:10:58 +0000 (00:10 +0000)]
Automatically generated installer lang files
Peter Mayer [Tue, 28 Feb 2023 15:11:11 +0000 (16:11 +0100)]
MDL-77439 lib_filebrowser: Splitup query to speedup get_courses
Andrew Nicols [Tue, 9 May 2023 04:35:00 +0000 (12:35 +0800)]
MDL-78072 core: Skip mobile encryption if Sodium is not available
Paul Holden [Mon, 15 May 2023 11:57:35 +0000 (12:57 +0100)]
MDL-78242 roles: consistently check course contact config.
Tim Hunt [Tue, 14 Mar 2023 14:33:24 +0000 (14:33 +0000)]
MDL-75576 quiz/question statistics: don't expire by time
Previously, a set of calculated quiz statistics would only 'last' for
15 minutes. Then they would be considered invalid and not used.
Now, computed statistics are kept indefinitely. Instead, when a new
batch of values are computed for a particular set of settings, older numbers
for the same settings are deleted first. Therefore,
question_stats_cleanup_task is no more.
Tim Hunt [Fri, 17 Feb 2023 15:53:55 +0000 (15:53 +0000)]
MDL-75576 quiz statistics: don't time-limit the use of cached values
This should have been done as part of MDL-74762, but was missed.
Tim Hunt [Mon, 30 Jan 2023 16:02:50 +0000 (16:02 +0000)]
MDL-75576 quiz statistics: don't compute when a user views the qbank
Previously, when users viewed the question bank, if the quiz statistics
had not already been calculated, we would try to compute them there an then.
This could be very, very slow, leading to session lock problems.
Now, we never try to compute the statistics on the fly. Instead, we rely
on the existing \quiz_statistics\task\recalculate scheduled task to do it.
Tim Hunt [Mon, 30 Jan 2023 15:42:27 +0000 (15:42 +0000)]
MDL-75576 question bank: bulk-load statistics for all questions at once
There is a new method on the column class, for the column to declare any
statistics it requires. The question then efficiently loads all those
statistics in one go, and makes them available as the columns are
rendererd, or do any subsequent processing.
Tim Hunt [Mon, 30 Jan 2023 12:31:07 +0000 (12:31 +0000)]
MDL-75576 qbank_statistics: remove copy-pasted PHPdoc comments
These methods are already correctly documented on the base class.
Luca Bösch [Thu, 4 May 2023 09:44:10 +0000 (11:44 +0200)]
MDL-78120 login: handle empty wantsurl on login with alternateloginurl.
Paul Holden [Fri, 21 Apr 2023 13:44:35 +0000 (14:44 +0100)]
MDL-77995 javascript: more precise path matching building JS.
Jun Pataleta [Fri, 5 May 2023 16:03:27 +0000 (00:03 +0800)]
MDL-78125 qtype_multianswer: Convert popover trigger to link
According to Boostrap Popovers documentation for popovers triggered
on focus:
"For proper cross-browser and cross-platform behavior, you must use the
<a> tag, not the <button> tag, and you also must include a tabindex
attribute."
Luca Bösch [Sun, 30 Apr 2023 09:20:50 +0000 (11:20 +0200)]
MDL-77432 mod_assign: Confirm submission page standard and not incourse
Ilya Tregubov [Fri, 12 May 2023 00:56:50 +0000 (08:56 +0800)]
weekly release 4.1.3+
Paul Holden [Thu, 11 May 2023 22:15:29 +0000 (23:15 +0100)]
MDL-78226 contentbank: verify presence of bank heading element.
Paul Holden [Thu, 11 May 2023 21:46:18 +0000 (22:46 +0100)]
MDL-78225 output: add sesskey for post requests only in renderables.
Laurent David [Wed, 19 Apr 2023 09:23:45 +0000 (11:23 +0200)]
MDL-76903 mod_book: Fix activity completion
* Check only visibles pages to set completion status.
* Make sure we have consistent completion value in API and on the view page.
Paul Holden [Wed, 10 May 2023 13:47:25 +0000 (14:47 +0100)]
MDL-78140 analytics: improve context restrictions manager test.
This test apparently fails sporadically on Oracle, without obvious
causes. The failure however was hard to interpret, and the test
itself made a lot of assumptions about the system re. naming of
categories/courses. This could be prone to errors, so improve that.
Stevani Andolo [Thu, 11 May 2023 03:12:41 +0000 (11:12 +0800)]
MDL-76344 course: Fixed course image 'non image file' layout
Paul Holden [Wed, 10 May 2023 16:38:53 +0000 (17:38 +0100)]
MDL-78211 contentbank: fix context option when formatting categories.
Paul Holden [Tue, 9 May 2023 10:23:32 +0000 (11:23 +0100)]
MDL-78151 core: account for timezone differences in intl extension.
Recent additions to timezones from the IANA TZDB are not necessarily
reflected in those used by the intl extension and/or ICU zones:
* America/Ciudad_Juarez
* America/Nuuk
* Europe/Kyiv
* Pacific/Kanton
Create mapping to allow these zones to be used without errors.
Paul Holden [Tue, 9 May 2023 14:06:51 +0000 (15:06 +0100)]
MDL-78170 rating: consistently calculate average rating aggregation.
Ensure it's always cast by the database as a float, to avoid loss of
precision.
Paul Holden [Tue, 9 May 2023 11:02:31 +0000 (12:02 +0100)]
MDL-78149 mod_data: ensure group selector is always present.
Paul Holden [Tue, 9 May 2023 10:51:38 +0000 (11:51 +0100)]
MDL-78152 mod_book: set permissions required for page editing.
Shamim Rezaie [Tue, 9 May 2023 06:28:51 +0000 (16:28 +1000)]
MDL-77451 gradereport: stress handling for multiple clicks
Andrew Nicols [Wed, 26 Apr 2023 06:27:21 +0000 (14:27 +0800)]
MDL-75552 badges: move apiBase consumption to backpack
The apiBase in .well-known/badgeconnect.json was ignored and it was
causing some failures when connecting or sending badges to an
external backpack.
For OBv2.1, it has been changed to always use the apiBase defined
in the badgeconnect.json backpack provider.
Rajneel Totaram [Sun, 16 Apr 2023 07:59:53 +0000 (19:59 +1200)]
MDL-77930 accesslib: php81 deprecation warnings on missing plugins
Juan Leyva [Mon, 17 Apr 2023 11:23:36 +0000 (13:23 +0200)]
MDL-78072 airnotifier: Apply payload size optimisation to all push
Backport of MDL-77893.
Co-authored by: Andrew Lyons <andrew@nicols.co.uk>
Juan Leyva [Mon, 17 Apr 2023 10:38:18 +0000 (12:38 +0200)]
MDL-78072 airnotifier: Allow configuring how to process encrypted notifs
Backport of MDL-77893.
Co-authored by: Andrew Lyons <andrew@nicols.co.uk>
Juan Leyva [Mon, 17 Apr 2023 09:21:52 +0000 (11:21 +0200)]
MDL-78072 airnotifier: Leave only message data processed by: Airnotifier
Backport of MDL-77893.
Co-authored by: Andrew Lyons <andrew@nicols.co.uk>
Juan Leyva [Mon, 17 Apr 2023 09:03:15 +0000 (11:03 +0200)]
MDL-78072 airnotifier: Allow to set publickey when creating new device
Backport of MDL-77893.
Co-authored by: Andrew Lyons <andrew@nicols.co.uk>
Sara Arjona [Wed, 12 Apr 2023 09:43:49 +0000 (11:43 +0200)]
MDL-78072 core: Fix upgrade failures with MariaDB
Backport of MDL-76722.
Co-authored by: Andrew Lyons <andrew@nicols.co.uk>
The 'enable' field doesn't exist, and this is causing some failures
with MariaDB (and probably with MySQL too).
Alex Morris [Tue, 28 Feb 2023 23:31:22 +0000 (12:31 +1300)]
MDL-78072 message_airnotifier: Add encrypted notifications
Backport of MDL-76722.
Co-authored by: Andrew Lyons <andrew@nicols.co.uk>
Alex Morris [Tue, 28 Feb 2023 22:24:57 +0000 (11:24 +1300)]
MDL-78072 user: Add new update_user_device_public_key webservice
Backport of MDL-76722.
Co-authored by: Andrew Lyons <andrew@nicols.co.uk>
Alex Morris [Thu, 12 Jan 2023 00:36:15 +0000 (13:36 +1300)]
MDL-78072 lib/db: Add new publickey field to user_devices table
Backport of MDL-76722.
Co-authored by: Andrew Lyons <andrew@nicols.co.uk>
Petr Skoda [Sun, 5 Mar 2023 09:05:57 +0000 (10:05 +0100)]
MDL-76688 filter_text: prevent LaTeX3 syntax
AMOS bot [Sun, 7 May 2023 00:07:26 +0000 (00:07 +0000)]
Automatically generated installer lang files
Paul Holden [Fri, 5 May 2023 15:43:42 +0000 (16:43 +0100)]
MDL-78135 completion: include required criteria library in test.
Sara Arjona [Thu, 4 May 2023 10:42:50 +0000 (12:42 +0200)]
weekly release 4.1.3+
Eloy Lafuente (stronk7) [Fri, 27 Nov 2020 11:19:52 +0000 (12:19 +0100)]
MDL-78116 core: Run tests against Windows on GHA
Signed-off-by: Andrew Nicols <andrew@nicols.co.uk>
Stevani Andolo [Thu, 4 May 2023 02:26:06 +0000 (10:26 +0800)]
MDL-76344 course: Fixed course image 'non image file' layout
Paul Holden [Wed, 3 May 2023 15:42:55 +0000 (16:42 +0100)]
MDL-78040 block_glossary_random: switch to block test generator.
Random failures after manually adding block instances (specifically
on slow/Oracle systems) can be entirely avoided by using the block
test generator for scenarios that are not specifically concerned with
manually adding blocks.
Laurent David [Thu, 20 Apr 2023 05:28:54 +0000 (07:28 +0200)]
MDL-77781 core_completion: Completion view must be deleted too
When resetting a course, completion view entries should also be
deleted
Co-authored-by: Georg Moser <georg@moser.link>
David Woloszyn [Tue, 2 May 2023 01:34:13 +0000 (11:34 +1000)]
MDL-77840 enrol_lti: Avoid passing nulls to base64_encode
David Woloszyn [Thu, 27 Apr 2023 04:50:40 +0000 (14:50 +1000)]
MDL-77840 lti: Avoid passing nulls to base64_encode
David Woloszyn [Wed, 19 Apr 2023 02:38:20 +0000 (12:38 +1000)]
MDL-77840 backup: Avoid passing nulls to base64_encode
David Woloszyn [Fri, 14 Apr 2023 06:47:41 +0000 (16:47 +1000)]
MDL-77840 mnet: Avoid passing nulls to base64_encode
Paul Holden [Mon, 3 Apr 2023 09:09:21 +0000 (10:09 +0100)]
MDL-77810 gradereport_summary: show localised plugin name in report.
Ilya Tregubov [Thu, 27 Apr 2023 11:28:38 +0000 (19:28 +0800)]
weekly release 4.1.3+
Sara Arjona [Fri, 14 Apr 2023 10:20:32 +0000 (12:20 +0200)]
MDL-76857 filter_displayh5p: Improve behat tests
Although the screenshots in the failures for some of the scenarios in
filter/displayh5p/tests/behat/h5p_filter.feature, like "Render a local
H5P file as teacher" were displaying the expected result, there were
some javascript errors (probably due to behat is quicker and the
iframes were not always ready).
I've added one extra step before accessing the iframe to give more
time to the H5P player to load and confirm the page is displayed
properly.
Paul Holden [Mon, 20 Feb 2023 12:41:18 +0000 (12:41 +0000)]
MDL-77320 tool_licensemanager: restrict exposure of user sesskey.
Mihail Geshoski [Wed, 26 Apr 2023 08:15:39 +0000 (16:15 +0800)]
MDL-77546 gradereport_singleview: Fix item order in grade item selector
Paul Holden [Tue, 3 Jan 2023 17:34:01 +0000 (17:34 +0000)]
MDL-78038 mod_bigbluebuttonbn: observe course format section config.
Tim Hunt [Wed, 26 Apr 2023 14:26:08 +0000 (15:26 +0100)]
MDL-78025 questions: improve the comment on question_references.version
Tim Hunt [Wed, 26 Apr 2023 09:46:44 +0000 (10:46 +0100)]
MDL-78025 questions: fix PHPdoc on question_require_capability_on
Tim Hunt [Tue, 25 Apr 2023 17:11:57 +0000 (18:11 +0100)]
MDL-78025 quiz: fix the quiz_questions_in_use logic
Tim Hunt [Tue, 25 Apr 2023 17:04:11 +0000 (18:04 +0100)]
MDL-78025 questions: questions_in_use should check question_references
This avoids the needs for plugins to do separate queries, which is
easier for them, and better performing.
Tim Hunt [Tue, 25 Apr 2023 16:58:58 +0000 (17:58 +0100)]
MDL-78025 question generator: make the behaviour less surprising
* The object returned by update_question is alwasy a new clone
and the $question passed in will not be modified.
* The returned object has the fields like questionbankentryid and
the ones related to versionning, so it is more like the data
returned by question_bank::load_question_data.
Tim Hunt [Wed, 26 Apr 2023 09:42:11 +0000 (10:42 +0100)]
MDL-78025 question: move hiding logic into question_delete_question
This logic belongs in the API, so it is applied consistently.
Also this avoids calling the expensive function questions_in_use
twice per question.
Paul Holden [Wed, 26 Apr 2023 14:25:34 +0000 (15:25 +0100)]
MDL-78034 mod_bigbluebuttonbn: format instance group names.
Aya Saad [Wed, 26 Apr 2023 11:57:49 +0000 (13:57 +0200)]
MDL-76835 theme: Fix unordered lists indentation
David Castro [Thu, 13 Apr 2023 19:03:38 +0000 (14:03 -0500)]
MDL-77791 data: Fix file attachment to search doc
Paul Holden [Tue, 25 Apr 2023 13:48:38 +0000 (14:48 +0100)]
MDL-78023 tool_policy: cast timemodified column on table download.
Paul Holden [Thu, 23 Feb 2023 10:47:55 +0000 (10:47 +0000)]
MDL-77384 check: clarify statistics check name.
Paul Holden [Mon, 24 Apr 2023 14:34:23 +0000 (15:34 +0100)]
MDL-78011 qbank_managecategories: require library for pagesize const.
Marina Glancy [Mon, 24 Apr 2023 12:38:58 +0000 (13:38 +0100)]
MDL-78009 auth: require necessary files
Jun Pataleta [Mon, 24 Apr 2023 12:07:57 +0000 (20:07 +0800)]
MDL-77766 qtype_truefalse: Respect showstandardinstruction
* When showstandardinstruction is set to no, replace the standard
instruction with the generic "Answer" text for the answer options
fieldset's legend.
Jun Pataleta [Mon, 24 Apr 2023 12:07:38 +0000 (20:07 +0800)]
MDL-77766 qtype_multichoice: Respect showstandardinstruction
* When showstandardinstruction is set to no, replace the standard
instruction with the generic "Answer" text for the answer options
fieldset's legend.
Tim Hunt [Fri, 21 Apr 2023 17:39:44 +0000 (18:39 +0100)]
MDL-77997 questions: add back Export as XML to the preview screen
The used the exist in Moodle up to 3.11, but then was removed with
insufficient thought in 4.0 (because we had grander long-term plans
which still have not happened). Until those plans happen, this
commit adds the simple link back on the preview screen.
Anupama Sarjoshi [Thu, 20 Apr 2023 17:22:03 +0000 (18:22 +0100)]
MDL-77987 Backup: add progress tracking to some slow steps
Paul Holden [Mon, 20 Feb 2023 14:40:58 +0000 (14:40 +0000)]
MDL-77312 files: exclude drafts when determining license usage.
Paul Holden [Tue, 21 Feb 2023 12:12:16 +0000 (12:12 +0000)]
MDL-77313 restore: re-add field to indicate course/category search.
When the two restore forms for searching courses and categories were
converted to core templates in
eb9935c9 they lost the named submit
button, which broke searching.
Paul Holden [Wed, 5 Apr 2023 17:57:57 +0000 (18:57 +0100)]
MDL-77858 javascript: correct `core/notification` exception imports.
Paul Holden [Tue, 28 Feb 2023 09:43:51 +0000 (09:43 +0000)]
MDL-77394 mod_forum: de-couple discussion pinned/starred options.
Paul Holden [Fri, 24 Feb 2023 09:19:53 +0000 (09:19 +0000)]
MDL-77398 mod_assign: disable form submit protection for batch options.
Huong Nguyen [Mon, 24 Apr 2023 08:53:37 +0000 (15:53 +0700)]
MDL-78007 tiny_media: Fix wrong condition for the Tiny Media
Including in this commit:
- Switched to Tiny editor in manually_mark_question.feature
danghieu1407 [Mon, 24 Apr 2023 06:54:37 +0000 (13:54 +0700)]
MDL-77883 forms: fix display of client-side validation for textareas
Jun Pataleta [Sat, 22 Apr 2023 08:22:40 +0000 (16:22 +0800)]
Moodle release 4.1.3
Eloy Lafuente (stronk7) [Fri, 21 Apr 2023 17:19:12 +0000 (19:19 +0200)]
weekly release 4.1.2+
Jun Pataleta [Thu, 20 Apr 2023 15:30:45 +0000 (23:30 +0800)]
MDL-77927 core: mod_assignment subplugins environment check
Ilya Tregubov [Fri, 21 Apr 2023 07:03:02 +0000 (15:03 +0800)]
MDL-77229 mod_lesson: Black list detailed statistics in classic Behat.
The nav element to go to detailed stats page is missing in classic
Ilya Tregubov [Fri, 21 Apr 2023 03:59:27 +0000 (11:59 +0800)]
MDL-77229 lesson: Add Behat test
AMOS bot [Fri, 21 Apr 2023 00:07:41 +0000 (00:07 +0000)]
Automatically generated installer lang files
Paul Holden [Wed, 19 Apr 2023 15:34:00 +0000 (16:34 +0100)]
MDL-77896 editor_tiny: approximate height for non-visible editors.
When an editor is renderer initially invisible to the browser, e.g.
the forum "Add discussion" form, it has a `clientHeight` value of
zero. We can approximate an alternative value based on the number
of rows in the textarea.
Co-authored-by: Andrew Nicols <andrew@nicols.co.uk>
Juan Leyva [Thu, 20 Apr 2023 09:13:23 +0000 (11:13 +0200)]
MDL-77229 lesson: Fix error for empty responses (numerical pagetype)