Huong Nguyen [Fri, 8 Dec 2023 02:21:28 +0000 (09:21 +0700)]
Moodle release 4.0.12
Sara Arjona [Thu, 7 Dec 2023 15:22:18 +0000 (16:22 +0100)]
weekly release 4.0.11+
Paul Holden [Thu, 7 Dec 2023 09:16:19 +0000 (09:16 +0000)]
MDL-79980 mod_survey: remove responses link if user cannot access.
Brendan Heywood [Thu, 7 Dec 2023 03:46:45 +0000 (11:46 +0800)]
MDL-80309 tasks: Clean up mtrace logs
Paul Holden [Mon, 6 Nov 2023 16:38:06 +0000 (16:38 +0000)]
MDL-79980 mod_survey: respect activity group mode getting report.
Stephan Robotta [Fri, 20 Oct 2023 13:32:32 +0000 (15:32 +0200)]
MDL-41465 reports: In separate group mode, limit to same group users
Paul Holden [Mon, 6 Nov 2023 21:16:22 +0000 (21:16 +0000)]
MDL-79797 backup: ensure block config is safely unserialized.
Huong Nguyen [Tue, 5 Dec 2023 01:45:51 +0000 (08:45 +0700)]
MDL-79759 repository_url: Remove types properties
David Woloszyn [Tue, 14 Nov 2023 04:36:47 +0000 (15:36 +1100)]
MDL-79759 repository_url: Limit css imports and remove fragments
There are checks to urls that attempt to limit recurrsion when
parse_file is called. This is problematic for css import urls that
can call an indefinite amount of nested import urls. An import limit
has been introduced to address this. Fragments have also been removed.
Stevani Andolo [Thu, 30 Nov 2023 03:00:24 +0000 (11:00 +0800)]
MDL-80174 tool_log: ensure "other" data is safely unserialized.
Paul Holden [Mon, 27 Nov 2023 20:35:33 +0000 (20:35 +0000)]
MDL-80268 badges: require capability to view awarded badges.
Ilya Tregubov [Fri, 1 Dec 2023 05:12:42 +0000 (13:12 +0800)]
weekly release 4.0.11+
Sara Arjona [Wed, 29 Nov 2023 15:44:27 +0000 (16:44 +0100)]
Merge branch 'MDL-79275-400' of https://github.com/lameze/moodle into MOODLE_400_STABLE
Ilya Tregubov [Tue, 28 Nov 2023 05:54:42 +0000 (13:54 +0800)]
Merge branch 'MDL-79603-400' of https://github.com/andelacruz/moodle into MOODLE_400_STABLE
Simey Lameze [Tue, 28 Nov 2023 03:05:12 +0000 (11:05 +0800)]
MDL-79275 behat: add one second wait to avoid random
Huong Nguyen [Fri, 24 Nov 2023 05:23:44 +0000 (12:23 +0700)]
weekly release 4.0.11+
Huong Nguyen [Thu, 23 Nov 2023 02:24:06 +0000 (09:24 +0700)]
Merge branch 'MDL-78496-400' of https://github.com/andrewnicols/moodle into MOODLE_400_STABLE
Sara Arjona [Thu, 16 Nov 2023 15:22:54 +0000 (16:22 +0100)]
weekly release 4.0.11+
Sara Arjona [Wed, 15 Nov 2023 16:10:36 +0000 (17:10 +0100)]
Merge branch 'MDL-79981-400' of https://github.com/andrewnicols/moodle into MOODLE_400_STABLE
Angelia Dela Cruz [Wed, 11 Oct 2023 02:59:24 +0000 (10:59 +0800)]
MDL-79603 mod_scorm: Behat coverage for Scorm package display options
Andrew Nicols [Sat, 17 Jun 2023 11:39:46 +0000 (13:39 +0200)]
MDL-78496 environment: Moodle 4.4 requirements
The only changes to requirements since Moodle 4.3 are increases to:
* the minimum PHP version required; and
* the minimum required Moodle version.
Ilya Tregubov [Fri, 10 Nov 2023 01:17:29 +0000 (09:17 +0800)]
weekly release 4.0.11+
Ilya Tregubov [Thu, 9 Nov 2023 01:36:24 +0000 (09:36 +0800)]
Merge branch 'MDL-80029-400' of https://github.com/junpataleta/moodle into MOODLE_400_STABLE
Andrew Nicols [Tue, 7 Nov 2023 08:14:14 +0000 (16:14 +0800)]
MDL-79981 core: Add ability to manually run and filter phpunit on GHA
Jun Pataleta [Thu, 2 Nov 2023 09:12:11 +0000 (17:12 +0800)]
MDL-80029 grade: Behat test fixes
* Feature: We can use a minimum grade different than zero
- Use correct minimum input values.
- Use data generators for faster test execution.
* Scenario: Disable category overriding
- Use the field name to ensure that the correct field is being tested.
Cherry-picked from MDL-79062.
Jun Pataleta [Fri, 27 Oct 2023 01:43:17 +0000 (09:43 +0800)]
weekly release 4.0.11+
Jun Pataleta [Thu, 26 Oct 2023 15:05:21 +0000 (23:05 +0800)]
Merge branch 'MDL-79768-400-fix' of https://github.com/andelacruz/moodle into MOODLE_400_STABLE
Angelia Dela Cruz [Thu, 26 Oct 2023 09:39:15 +0000 (17:39 +0800)]
MDL-79768 fix: Fixed random failing Behat due to time difference
Jun Pataleta [Thu, 26 Oct 2023 02:46:59 +0000 (10:46 +0800)]
Merge branch 'MDL-79768-400' of https://github.com/andelacruz/moodle into MOODLE_400_STABLE
Angelia Dela Cruz [Thu, 19 Oct 2023 06:03:09 +0000 (14:03 +0800)]
MDL-79768 mod_data: Test for student can see upcoming data activity
Sara Arjona [Fri, 20 Oct 2023 10:16:39 +0000 (12:16 +0200)]
weekly release 4.0.11+
Huong Nguyen [Thu, 19 Oct 2023 03:06:00 +0000 (10:06 +0700)]
Merge branch 'MDL-79689-400' of https://github.com/andelacruz/moodle into MOODLE_400_STABLE
Angelia Dela Cruz [Thu, 12 Oct 2023 06:22:21 +0000 (14:22 +0800)]
MDL-79689 mod_assign: Behat for enabling anonymous submissions
Ilya Tregubov [Tue, 17 Oct 2023 02:29:31 +0000 (10:29 +0800)]
Merge branch 'MDL-79691-400' of https://github.com/andelacruz/moodle into MOODLE_400_STABLE
Angelia Dela Cruz [Fri, 13 Oct 2023 08:48:50 +0000 (16:48 +0800)]
MDL-79691 mod_h5pactivity: Behat coverage for H5P activity grades reset
Huong Nguyen [Mon, 16 Oct 2023 04:40:58 +0000 (11:40 +0700)]
Merge branch 'MDL-79698-400' of https://github.com/andrewnicols/moodle into MOODLE_400_STABLE
Huong Nguyen [Mon, 16 Oct 2023 03:55:46 +0000 (10:55 +0700)]
Merge branch 'MDL-79653-400' of https://github.com/andelacruz/moodle into MOODLE_400_STABLE
Andrew Nicols [Fri, 13 Oct 2023 07:43:43 +0000 (15:43 +0800)]
MDL-79698 core: Correct duplicate array key in test provider
Ilya Tregubov [Fri, 13 Oct 2023 05:39:38 +0000 (13:39 +0800)]
weekly release 4.0.11+
Angelia Dela Cruz [Wed, 11 Oct 2023 09:16:46 +0000 (17:16 +0800)]
MDL-79653 gradingform_guide: Behat coverage for deleting marking guide
Huong Nguyen [Thu, 12 Oct 2023 04:08:42 +0000 (11:08 +0700)]
Merge branch 'MDL-79638-400' of https://github.com/andrewnicols/moodle into MOODLE_400_STABLE
Andrew Nicols [Tue, 10 Oct 2023 15:56:19 +0000 (23:56 +0800)]
MDL-79638 phpunit: Add unit test for increment resets
Andrew Nicols [Tue, 10 Oct 2023 15:25:58 +0000 (23:25 +0800)]
MDL-79638 phpunit: Adjust version checks for mysql/mariadb hack
This hack was introduced to work around a bug in MySQL 5.6.14 and
MariaDB at the time.
https://bugs.mysql.com/bug.php?id=69882
It was addressed a few months later in 5.6.16, and 5.7.4.
MariaDB merged version 5.6.16 of MySQL's InnoDB engine in MariaDB
10.0.11 and got the patch from there.
Moodle has required MySQL 5.7, and MariaDB 10.2.29 since Moodle 3.11 and
it is therefore safe to remove these hacks for these versions.
Jun Pataleta [Sat, 7 Oct 2023 03:29:58 +0000 (11:29 +0800)]
Moodle release 4.0.11
Sara Arjona [Fri, 6 Oct 2023 12:02:34 +0000 (14:02 +0200)]
weekly release 4.0.10+
Laurent David [Wed, 30 Aug 2023 08:03:03 +0000 (10:03 +0200)]
MDL-77795 mod_bigbluebuttonbn: Change meetingID on duplicate
* We need to set a different meetingID when duplicating or importing a
BigBlueButtonBN activity to prevent unwanted sharing of recordings between
meetings.
Paul Holden [Mon, 11 Sep 2023 11:17:57 +0000 (12:17 +0100)]
MDL-79310 enrol: restrict searched users to those user can view.
Paul Holden [Mon, 11 Sep 2023 11:44:58 +0000 (12:44 +0100)]
MDL-79310 forumreport_summary: report only on users who can be viewed.
Paul Holden [Mon, 11 Sep 2023 11:30:33 +0000 (12:30 +0100)]
MDL-79310 mod_forum: ensure only visible users can be exported.
Mikel Martín [Wed, 27 Sep 2023 12:07:14 +0000 (14:07 +0200)]
MDL-79509 mod_wiki: Improve comment editing
Paul Holden [Tue, 27 Jun 2023 09:01:31 +0000 (10:01 +0100)]
MDL-72249 message: stricter cleaning of processor type parameter.
Paul Holden [Thu, 21 Sep 2023 20:43:41 +0000 (21:43 +0100)]
MDL-79426 gradeimport_csv: safely preview CSV content during import.
Paul Holden [Wed, 27 Sep 2023 22:45:23 +0000 (23:45 +0100)]
MDL-79455 tool_uploadcourse: clean course data fields individually.
Paul Holden [Thu, 21 Sep 2023 21:22:38 +0000 (22:22 +0100)]
MDL-79455 tool_uploadcourse: safe preview of uploaded course data.
Paul Holden [Mon, 18 Sep 2023 12:43:14 +0000 (13:43 +0100)]
MDL-79409 mod_imscp: appropriate unserialization of package structure.
Paul Holden [Mon, 18 Sep 2023 13:01:36 +0000 (14:01 +0100)]
MDL-79408 mod_lesson: safer unserializing/comparison of properties.
David Woloszyn [Wed, 6 Sep 2023 05:55:59 +0000 (15:55 +1000)]
MDL-77846 core: Make endpoint revision number checks stricter
In some places we prevented cache poisoning, in others we did not. We
also did not place any restriction on the minimum value for a revision.
This change introduces a new set of functions for configonly endpoints
which validates the revision numbers passed in. If the revision is
either too old, or too new, it is rejected and the file content is not
cached. The content is still served, but caching headers are not sent,
and any local storage caching is prevented.
The current time is used as the maximum version, with 60 seconds added
to allow for any clock skew between cluster nodes. Previously some
locations used one hour, but there should never be such a large clock
skew on a correctly configured system.
Co-authored-by: Andrew Nicols <andrew@nicols.co.uk>
Huong Nguyen [Mon, 18 Sep 2023 09:30:46 +0000 (16:30 +0700)]
MDL-66730 core_course: Improve permission check for category moving
Co-authored-by: Erica Bithell <egb10@cam.ac.uk>
Paul Holden [Thu, 27 Jul 2023 12:01:53 +0000 (13:01 +0100)]
MDL-78820 h5p: use fullname of current user as the xAPI actor name.
meirzamoodle [Thu, 10 Aug 2023 04:34:55 +0000 (11:34 +0700)]
MDL-78969 oauth2: remove auto-login after successful confirmation
With the new flow, users can go to the login page from the confirmed page,
and if the user successfully logs in, the user will be directed to the confirmed page.
To avoid that, the confirmed page can only be seen by users who are not logged in.
Paul Holden [Thu, 10 Aug 2023 07:42:05 +0000 (08:42 +0100)]
MDL-78971 quiz_grading: escape user identity fields on display.
Jun Pataleta [Tue, 3 Oct 2023 23:49:22 +0000 (07:49 +0800)]
weekly release 4.0.10+
Huong Nguyen [Tue, 3 Oct 2023 02:58:25 +0000 (09:58 +0700)]
Merge branch 'MDL-79247_400' of https://github.com/stronk7/moodle into MOODLE_400_STABLE
Eloy Lafuente (stronk7) [Sun, 1 Oct 2023 21:23:30 +0000 (23:23 +0200)]
MDL-79247 forum: Workaround same-time discussion modified dates bug
Within the forum_get_discussion_neighbours() function of forum
when the discussions timemodified (last post) is the same, there
is a bug that does strange things when calculating the prev and
next discussions.
Note that, in real life, this is really hard to achieve, but in tests,
when multiple discussions and post can be created by generators in the
same second (specially when the test machine is quick), chances of
facing that problem are higher.
By adding 1 second wait, we ensure that the discussions won't have
the same timemodified (last post) and workaround the problem.
No mater of that, the problem deserves an issue to be created
so we guarantee from code that it also works ok when the same
timemodified (last post) situation happens.
Eloy Lafuente (stronk7) [Sun, 1 Oct 2023 16:29:20 +0000 (18:29 +0200)]
MDL-79247 forum: Make discussion list ordering deterministic
Note that normally this doesn't matter much, but there are situations
when we want the discussion list ordering fully consistent /
deterministic.
Specifically, when discussions (or forum posts )are created in the
same second, or when the discussion titles are repeated, or 2
discussions have the same number of votes... (any criteria in general),
in the context of testing, we don't want the order
to be non-consistent, so we need to provide an extra sorting
criterion to make it fully deterministic.
So, in this case, we are adding a sort by discussion.id <<DIRECTION>>
that is an unique value, primary key... so cheap to calculate and,
that way, when the 1st sorting column has repeated values, the id
will decide.
Jun Pataleta [Fri, 29 Sep 2023 14:07:26 +0000 (22:07 +0800)]
weekly release 4.0.10+
Jun Pataleta [Fri, 29 Sep 2023 14:07:24 +0000 (22:07 +0800)]
Merge branch 'install_400_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_400_STABLE
AMOS bot [Fri, 29 Sep 2023 00:08:01 +0000 (00:08 +0000)]
Automatically generated installer lang files
Ilya Tregubov [Thu, 28 Sep 2023 01:38:59 +0000 (09:38 +0800)]
Merge branch 'MDL-79360/400' of https://github.com/skodak/moodle into MOODLE_400_STABLE
Sara Arjona [Tue, 26 Sep 2023 14:17:09 +0000 (16:17 +0200)]
weekly release 4.0.10+
Shamim Rezaie [Mon, 25 Sep 2023 07:52:35 +0000 (17:52 +1000)]
Merge branch 'MDL-75928-400' of https://github.com/lameze/moodle into MOODLE_400_STABLE
Simey Lameze [Mon, 4 Sep 2023 04:16:29 +0000 (12:16 +0800)]
MDL-75928 format_week: improve get_section_dates one week calc
Sara Arjona [Fri, 15 Sep 2023 15:34:16 +0000 (17:34 +0200)]
weekly release 4.0.10+
Petr Skoda [Thu, 14 Sep 2023 16:44:18 +0000 (18:44 +0200)]
MDL-79360 filter: fix nolink tag regression from MDL-77525
Ilya Tregubov [Thu, 14 Sep 2023 09:44:18 +0000 (17:44 +0800)]
Merge branch 'MDL-79220-400' of https://github.com/andelacruz/moodle into MOODLE_400_STABLE
Ilya Tregubov [Thu, 14 Sep 2023 01:38:25 +0000 (09:38 +0800)]
Merge branch 'MDL-79195-400' of https://github.com/andelacruz/moodle into MOODLE_400_STABLE
Ilya Tregubov [Wed, 13 Sep 2023 02:56:10 +0000 (10:56 +0800)]
Merge branch 'MDL-78806-400' of https://github.com/junpataleta/moodle into MOODLE_400_STABLE
Eloy Lafuente (stronk7) [Tue, 12 Sep 2023 16:54:12 +0000 (18:54 +0200)]
weekly release 4.0.10+
Angelia Dela Cruz [Tue, 29 Aug 2023 09:31:45 +0000 (17:31 +0800)]
MDL-79195 core_course: Activity and resource description display behat
Huong Nguyen [Tue, 12 Sep 2023 01:51:48 +0000 (08:51 +0700)]
Merge branch 'MDL-79246-400' of https://github.com/andrewnicols/moodle into MOODLE_400_STABLE
Jun Pataleta [Sat, 9 Sep 2023 12:45:08 +0000 (20:45 +0800)]
MDL-78806 mod_assign: Use new Behat step for checking page title
Jun Pataleta [Sat, 9 Sep 2023 12:44:19 +0000 (20:44 +0800)]
MDL-78806 behat: Create a step that for checking the page title
Create a Behat step "the page title should contain ':title'" to check
the page title.
Jun Pataleta [Fri, 8 Sep 2023 14:35:19 +0000 (22:35 +0800)]
weekly release 4.0.10+
Jun Pataleta [Fri, 8 Sep 2023 14:35:18 +0000 (22:35 +0800)]
Merge branch 'install_400_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_400_STABLE
Jun Pataleta [Fri, 8 Sep 2023 06:43:50 +0000 (14:43 +0800)]
MDL-78549 multianswer: Prevent default when clicking feedback trigger
Huong Nguyen [Fri, 8 Sep 2023 03:59:06 +0000 (10:59 +0700)]
Merge branch 'MDL-78549-400' of https://github.com/junpataleta/moodle into MOODLE_400_STABLE
AMOS bot [Fri, 8 Sep 2023 00:10:42 +0000 (00:10 +0000)]
Automatically generated installer lang files
Angelia Dela Cruz [Mon, 4 Sep 2023 01:03:30 +0000 (09:03 +0800)]
MDL-79220 mod_glossary: Behat for glossary entry with attachment
Ilya Tregubov [Wed, 6 Sep 2023 02:03:42 +0000 (10:03 +0800)]
Merge branch 'MDL-76459_400' of https://github.com/stronk7/moodle into MOODLE_400_STABLE
AMOS bot [Tue, 5 Sep 2023 14:25:06 +0000 (14:25 +0000)]
Automatically generated installer lang files
Jun Pataleta [Tue, 11 Jul 2023 02:06:30 +0000 (10:06 +0800)]
MDL-78549 qtype_multianswer: Configure feedback popover trigger via JS
* For some reason, the `data-trigger="hover focus"` does not work when
rendering the popover via HTML. It just defaults to click, so the
feedback popover for qtype_multianswer questions does not show on hover.
Configuring the feedback popover's trigger via JS seems to work.
AMOS bot [Tue, 5 Sep 2023 00:11:46 +0000 (00:11 +0000)]
Automatically generated installer lang files
Andrew Nicols [Mon, 4 Sep 2023 01:00:26 +0000 (09:00 +0800)]
MDL-79246 gradingform_rubric: Use i_click_on for behat clicks
Eloy Lafuente (stronk7) [Fri, 10 Mar 2023 13:06:50 +0000 (14:06 +0100)]
MDL-76459 xmldb: Add environmental check to verify $CFG->prefix
While, right now, sites using long (> 10 chars) $CFG->prefix
can continue working (because we still don't have any table
> 28 chars), as soon as some new table with long name is added,
it won't work with PostgreSQL anymore (if the 63 limit is raised).
Hence, this environmental check will verify on both install and
upgrade that the $CFG->prefix is always <= 10 chars.
Sites with longer prefixes will need to rename all their tables
(and maybe other objects, depending on the dbtype) to use a shorter
prefix.
Andrew Nicols [Sat, 2 Sep 2023 00:18:38 +0000 (08:18 +0800)]
weekly release 4.0.10+
Andrew Nicols [Fri, 1 Sep 2023 02:38:44 +0000 (10:38 +0800)]
Merge branch 'MDL-77831-400' of https://github.com/mickhawkins/moodle into MOODLE_400_STABLE
Jun Pataleta [Thu, 31 Aug 2023 12:31:53 +0000 (20:31 +0800)]
Merge branch 'MDL-79017-400' of https://github.com/paulholden/moodle into MOODLE_400_STABLE
Michael Hawkins [Thu, 31 Aug 2023 05:13:03 +0000 (13:13 +0800)]
MDL-77831 core: Updated security.txt expiry and added additional info
Huong Nguyen [Thu, 31 Aug 2023 05:27:27 +0000 (12:27 +0700)]
Merge branch 'MDL-79207-400' of https://github.com/andelacruz/moodle into MOODLE_400_STABLE
Angelia Dela Cruz [Wed, 30 Aug 2023 11:22:59 +0000 (19:22 +0800)]
MDL-79207 core_course: Behat coverage for activity and resource deletion