2 days agoweekly release 4.0.1+ MOODLE_400_STABLE
Jun Pataleta [Fri, 24 Jun 2022 03:59:05 +0000 (11:59 +0800)]
weekly release 4.0.1+

5 days agoMDL-73212 gha: Allow parameters to be passed via secret
Eloy Lafuente (stronk7) [Fri, 10 Jun 2022 13:15:37 +0000 (15:15 +0200)]
MDL-73212 gha: Allow parameters to be passed via secret

We are disabling the -v (verbose) option, used by default. Still,
now we support a secret (that can be added to everyone's repository)
to accept any PHPUnit's command line options and run the tests with

Some examples:

phpunit_options = -v (to keep the verbose option enabled)
phpunit_options = --testdox (to print information about every test...)

... (basically anything supported by the CLI)

Also, we are raising here the environment from Ubuntu 18.04 to 20.04

(self tested by GHA, heh)

5 days agoAutomatically generated installer lang files
AMOS bot [Tue, 21 Jun 2022 00:09:42 +0000 (00:09 +0000)]
Automatically generated installer lang files

6 days agoMDL-74715 reportbuilder: switch event for adding filters/conditions.
Paul Holden [Tue, 10 May 2022 09:41:44 +0000 (10:41 +0100)]
MDL-74715 reportbuilder: switch event for adding filters/conditions.

Switch the select element event listener to that provided by custom
events helper, for adding report filters and conditions. This improves
cross-platform support.

9 days agoMDL-69939 webservice: correct AJAX bool value in services definition.
Paul Holden [Tue, 3 May 2022 09:07:15 +0000 (10:07 +0100)]
MDL-69939 webservice: correct AJAX bool value in services definition.

9 days agoMDL-74358 availability: Avoid php8 problem with array_values(null)
Eloy Lafuente (stronk7) [Mon, 13 Jun 2022 10:27:57 +0000 (12:27 +0200)]
MDL-74358 availability: Avoid php8 problem with array_values(null)

9 days agoweekly release 4.0.1+
Jun Pataleta [Fri, 17 Jun 2022 07:30:30 +0000 (15:30 +0800)]
weekly release 4.0.1+

9 days agoMDL-72324 core: Add upgrade.txt note about $plugin->incompatible
Jun Pataleta [Thu, 16 Jun 2022 09:44:04 +0000 (17:44 +0800)]
MDL-72324 core: Add upgrade.txt note about $plugin->incompatible

11 days agoMDL-73156 user: Custom user profile field names now filtered.
Michael Milette [Wed, 24 Nov 2021 15:19:43 +0000 (10:19 -0500)]
MDL-73156 user: Custom user profile field names now filtered.

11 days agoMDL-74694 reportbuilder: unit test coverage of external exporters.
Paul Holden [Mon, 9 May 2022 13:27:23 +0000 (14:27 +0100)]
MDL-74694 reportbuilder: unit test coverage of external exporters.

12 days agoMDL-74713 admin: format custom profile fields in identify config.
Paul Holden [Tue, 10 May 2022 07:26:47 +0000 (08:26 +0100)]
MDL-74713 admin: format custom profile fields in identify config.

12 days agoMDL-72555 block_site_main_menu: Fix activity chooser issue
Laurent David [Tue, 17 May 2022 17:01:24 +0000 (19:01 +0200)]
MDL-72555 block_site_main_menu: Fix activity chooser issue

* When adding the block_site_main_menu on every page, the activity chooser generated
for this entire page is set with courseid = 1. So any activity is then added to the
home page instead of a course.

13 days agoMDL-74597 themes: remove pix icon references from custom menu items.
Paul Holden [Tue, 24 May 2022 22:50:36 +0000 (23:50 +0100)]
MDL-74597 themes: remove pix icon references from custom menu items.

Support for them was removed in 8c336899, however existing config
remained that would lead to bogus URLs in custom user menu items.

2 weeks agoMDL-74565 gradereport_grader: define capability required for editing.
Paul Holden [Wed, 11 May 2022 15:00:50 +0000 (16:00 +0100)]
MDL-74565 gradereport_grader: define capability required for editing.

2 weeks agoMDL-74526 theme: remove icon from empty categories in RTL languages
Ilya Dymshits [Sun, 12 Jun 2022 07:40:29 +0000 (10:40 +0300)]
MDL-74526 theme: remove icon from empty categories in RTL languages

2 weeks agoMDL-74449 gradebook: Protect flatten_dependencies_array() a little bit
Eloy Lafuente (stronk7) [Thu, 21 Apr 2022 17:35:24 +0000 (19:35 +0200)]
MDL-74449 gradebook: Protect flatten_dependencies_array() a little bit

It has been detected that the flatten_dependencies_array() was fragile
and leading to wrong results when some incorrect data was passed to it.

This includes:

- Missing elements.
- Null dependencies.
- Non array dependencies.

While the existing behaviour (testing-wise) has been preserved, now the
situations above are better controlled and the function ignores all
those incorrect cases that shouldn't happen ever.

That implies that a good number of notices/warnings/errors aren't
happening anymore. That was impacting both results (when the problems
were  only notices and warnings) and execution (when the problems
were errors).

Covered with tests.

2 weeks agoMDL-74296 mod_bigbluebuttonbn: Fix completion indicator
Laurent David [Thu, 21 Apr 2022 15:59:48 +0000 (17:59 +0200)]
MDL-74296 mod_bigbluebuttonbn: Fix completion indicator

* Completion view should work out of the box
* Patch the _user_outline and _user_complete so it works with completion view, while
implementing something better in MDL-74468

2 weeks agoweekly release 4.0.1+
Sara Arjona [Fri, 10 Jun 2022 15:08:19 +0000 (17:08 +0200)]
weekly release 4.0.1+

2 weeks agoMDL-69756 nextcloud: copy-overwrite handling
Amrita [Fri, 10 Jun 2022 14:35:05 +0000 (16:35 +0200)]
MDL-69756 nextcloud: copy-overwrite handling

2 weeks agoMDL-74802 core: Remove tooltip on the notification close button
Jun Pataleta [Thu, 9 Jun 2022 15:49:51 +0000 (23:49 +0800)]
MDL-74802 core: Remove tooltip on the notification close button

Reverting the addition of a Boostrap tooltip on the alert notification's
close button. It introduced a bug where the tooltip remains after
dismissing the notification alert. We can manually toggle the state of
the tooltip via JS, but I don't think it's worth the effort. The tooltip
is meant as an added bonus for sighted users to see what the close
button is about.

2 weeks agoMDL-74802 core_user: Use button label to close notification alert
Jun Pataleta [Thu, 9 Jun 2022 14:00:45 +0000 (22:00 +0800)]
MDL-74802 core_user: Use button label to close notification alert

With the notification alert's close button now properly labelled, it is
better for Behat to interact on it using its label.

2 weeks agoMDL-73013 filelib: Fix code lint
Andrew Nicols [Thu, 9 Jun 2022 03:52:39 +0000 (11:52 +0800)]
MDL-73013 filelib: Fix code lint

2 weeks agoMDL-73013 filelib: Address coding style violations
Andrew Nicols [Thu, 9 Jun 2022 03:49:58 +0000 (11:49 +0800)]
MDL-73013 filelib: Address coding style violations

2 weeks agoMDL-74649 course: render scale information using page popup layout.
Paul Holden [Wed, 4 May 2022 16:40:34 +0000 (17:40 +0100)]
MDL-74649 course: render scale information using page popup layout.

2 weeks agoMDL-74718 webdav: correct the loop when reading chunks
Sujith Haridasan [Thu, 12 May 2022 13:15:17 +0000 (18:45 +0530)]
MDL-74718 webdav: correct the loop when reading chunks

Adjusted the condition while reading the streams
in chunks. Read till the end to make sure we have got all
the data. Else we might not get all the data to show
in file picker.

2 weeks agoMDL-73466 forumreport_summary: use formatted course module name.
Paul Holden [Wed, 29 Dec 2021 12:41:06 +0000 (12:41 +0000)]
MDL-73466 forumreport_summary: use formatted course module name.

2 weeks agoMDL-74182 core_task: Obey CFG debug settings
Eric Merrill [Mon, 14 Mar 2022 03:57:13 +0000 (23:57 -0400)]
MDL-74182 core_task: Obey CFG debug settings

2 weeks agoMDL-72324 upgrade: Fix incompatible check in upgrade to match docs
Peter Burnett [Mon, 16 Aug 2021 02:07:07 +0000 (12:07 +1000)]
MDL-72324 upgrade: Fix incompatible check in upgrade to match docs

2 weeks agoAutomatically generated installer lang files
AMOS bot [Wed, 8 Jun 2022 00:08:18 +0000 (00:08 +0000)]
Automatically generated installer lang files

2 weeks agoMDL-74628 forumreport_summary: remove left margin of filter popover.
Paul Holden [Thu, 5 May 2022 21:10:22 +0000 (22:10 +0100)]
MDL-74628 forumreport_summary: remove left margin of filter popover.

2 weeks agoMDL-74529 theme_boost: accessible autolink styles from filters.
Paul Holden [Tue, 26 Apr 2022 12:39:09 +0000 (13:39 +0100)]
MDL-74529 theme_boost: accessible autolink styles from filters.

The `autolink` class is used by various filter types to create
hyperlinks within text. Extend existing `aalink` class so they
behave in the same way.

2 weeks agoMDL-73774 timeline: Prevent ID duplication
Huong Nguyen [Thu, 21 Apr 2022 08:56:57 +0000 (15:56 +0700)]
MDL-73774 timeline: Prevent ID duplication

2 weeks agoAutomatically generated installer lang files
AMOS bot [Tue, 7 Jun 2022 00:08:13 +0000 (00:08 +0000)]
Automatically generated installer lang files

2 weeks agoMDL-74871 user: account for absense of identity fields during export.
Paul Holden [Mon, 6 Jun 2022 20:10:42 +0000 (21:10 +0100)]
MDL-74871 user: account for absense of identity fields during export.

2 weeks agoMDL-72983 tool_dataprivacy: respect capability to export own data.
Paul Holden [Thu, 4 Nov 2021 23:08:56 +0000 (23:08 +0000)]
MDL-72983 tool_dataprivacy: respect capability to export own data.

2 weeks agoMDL-72377 grade: fix category form hidden/until fields.
Paul Holden [Fri, 25 Feb 2022 17:38:31 +0000 (17:38 +0000)]
MDL-72377 grade: fix category form hidden/until fields.

Ensure the saved values for the hidden and hidden until fields are
populated when editing a grade category. Fix behaviour on enabling
the hidden until field.

Re-enable tests commented out in eba1d32c.

2 weeks agoMDL-72377 grade: increase size of category hidden fields.
Paul Holden [Fri, 25 Feb 2022 17:04:03 +0000 (17:04 +0000)]
MDL-72377 grade: increase size of category hidden fields.

As well as storing 1/0 to indicate hidden state, they are also used
to store a timestamp indicating hidden until date. Increasing field
size allows these values to be stored without triggering exceptions.

3 weeks agoMDL-74573 mod_assign: convert view other attempt link to a button
aya.saad [Wed, 11 May 2022 10:50:39 +0000 (12:50 +0200)]
MDL-74573 mod_assign: convert view other attempt link to a button

3 weeks agoMDL-70223 h5p: fix invalid id when adding h5p activity
aya.saad [Sun, 15 May 2022 10:41:12 +0000 (12:41 +0200)]
MDL-70223 h5p: fix invalid id when adding h5p activity

3 weeks agoMDL-69970 icons: flip help icon direction in RTL languages
aya.saad [Thu, 12 May 2022 09:49:31 +0000 (11:49 +0200)]
MDL-69970 icons: flip help icon direction in RTL languages

3 weeks agoweekly release 4.0.1+
Andrew Nicols [Fri, 3 Jun 2022 03:04:01 +0000 (11:04 +0800)]
weekly release 4.0.1+

3 weeks agoAutomatically generated installer lang files
AMOS bot [Fri, 3 Jun 2022 00:08:10 +0000 (00:08 +0000)]
Automatically generated installer lang files

3 weeks agoMDL-71301 qtype_gapselect: Make blank answer box labels more meaningful
Issam Taboubi [Thu, 2 Jun 2022 02:46:23 +0000 (10:46 +0800)]
MDL-71301 qtype_gapselect: Make blank answer box labels more meaningful

3 weeks agoMDL-67966 mod_workshop: Use condition to verify form is using editor
Joshua Ebarvia [Tue, 28 Sep 2021 02:59:01 +0000 (12:29 +0930)]
MDL-67966 mod_workshop: Use condition to verify form is using editor

This adds a condition to check if Online text is used
for the submission. The functions file_postupdate_standard_editor
and file_postupdate_standard_filemanager needs the property
content_editor of the formdata.

3 weeks agoMDL-74752 qtype_match: fix regrading logic - take 2
Tim Hunt [Wed, 1 Jun 2022 13:23:29 +0000 (14:23 +0100)]
MDL-74752 qtype_match: fix regrading logic - take 2

3 weeks agoMDL-74752 qtype_multianswer: implement regrading hooks
Tim Hunt [Mon, 23 May 2022 20:49:38 +0000 (21:49 +0100)]
MDL-74752 qtype_multianswer: implement regrading hooks

3 weeks agoMDL-74752 qtypes gapselect & ddwtos: implement regrading hooks
Tim Hunt [Mon, 23 May 2022 16:46:12 +0000 (17:46 +0100)]
MDL-74752 qtypes gapselect & ddwtos: implement regrading hooks

3 weeks agoMDL-74752 qtype_match: implement regrading hooks
Tim Hunt [Mon, 23 May 2022 16:16:29 +0000 (17:16 +0100)]
MDL-74752 qtype_match: implement regrading hooks

As much as they can be before MDL-5560 is addressed.

3 weeks agoMDL-74752 qtype_multichoice: fix regrading logic
Tim Hunt [Mon, 16 May 2022 15:45:46 +0000 (16:45 +0100)]
MDL-74752 qtype_multichoice: fix regrading logic

The implements the new regrade-related hooks, and also has
tests for the changes to the core system, now that we have a question
type we can use for them.

3 weeks agoMDL-74752 question regrading: implement the required hooks
Tim Hunt [Mon, 16 May 2022 12:59:33 +0000 (13:59 +0100)]
MDL-74752 question regrading: implement the required hooks

This commit implements the necessary core hooks to ensure we only
allow a regrade of a quetion attempt to take place if the new and old
versions of the question are sufficiently similar.

It will be followed by commits to each question type where the
new method needs to be implemented.

Automated tests will be included in the first of those (mulitple choice)
becuse we need a question type that implements the hooks to test
the core changes.

3 weeks agoMDL-74630 core_contenbank: Add contextid to URL parameters
Amaia Anabitarte [Tue, 3 May 2022 14:28:01 +0000 (16:28 +0200)]
MDL-74630 core_contenbank: Add contextid to URL parameters

3 weeks agoAutomatically generated installer lang files
AMOS bot [Tue, 31 May 2022 00:08:11 +0000 (00:08 +0000)]
Automatically generated installer lang files

3 weeks agoAutomatically generated installer lang files
AMOS bot [Mon, 30 May 2022 00:08:06 +0000 (00:08 +0000)]
Automatically generated installer lang files

4 weeks agoAutomatically generated installer lang files
AMOS bot [Sat, 28 May 2022 00:08:15 +0000 (00:08 +0000)]
Automatically generated installer lang files

4 weeks agoMDL-74250 core: Improve indicator that link opens in new window
Adrian Perez [Thu, 17 Mar 2022 11:08:30 +0000 (12:08 +0100)]
MDL-74250 core: Improve indicator that link opens in new window

4 weeks agoMDL-74764 core_course: Activity is not in alphabetical order.
Khoa Nguyen Dang [Tue, 17 May 2022 04:03:27 +0000 (11:03 +0700)]
MDL-74764 core_course: Activity is not in alphabetical order.

4 weeks agoweekly release 4.0.1+
Jake Dallimore [Fri, 27 May 2022 02:02:09 +0000 (10:02 +0800)]
weekly release 4.0.1+

4 weeks agoMDL-74310 mod_lti: fix ltilinkid on lineitems import
Claude Vervoort [Wed, 23 Mar 2022 20:33:17 +0000 (16:33 -0400)]
MDL-74310 mod_lti: fix ltilinkid on lineitems import

4 weeks agoMDL-74816 mod_resource: Allow specify default file name in generator
Dani Palou [Fri, 20 May 2022 09:16:15 +0000 (11:16 +0200)]
MDL-74816 mod_resource: Allow specify default file name in generator

4 weeks agoMDL-74790 mod_resource: better detection of empty module intro.
Paul Holden [Tue, 24 May 2022 20:17:17 +0000 (21:17 +0100)]
MDL-74790 mod_resource: better detection of empty module intro.

4 weeks agoMDL-74533 core_completion: Update using new grade pass for completion
hieuvu [Thu, 21 Apr 2022 08:45:40 +0000 (15:45 +0700)]
MDL-74533 core_completion: Update using new grade pass for completion

4 weeks agoMDL-74802 core: Improve the accessibility of alert notifications
Jun Pataleta [Thu, 19 May 2022 14:48:17 +0000 (22:48 +0800)]
MDL-74802 core: Improve the accessibility of alert notifications

* Make the ordering of the message and the close button logical on
  the DOM.
* Hide the times HTML entity
* Add sr-only label on the close button for non-sighted users
* Add tooltip on the close button sighted users

5 weeks agoMDL-73386 mod_quiz: Use plain text for quiz navigation fake block title
Jun Pataleta [Fri, 20 May 2022 16:32:38 +0000 (00:32 +0800)]
MDL-73386 mod_quiz: Use plain text for quiz navigation fake block title

* No need to enclose the title of the quiz navigation fake block in
a span tag. The block title also gets appended to the skip link which
means that a block title with a span tag assigned with an identifier
can cause duplicate ID errors on the DOM.

5 weeks agoMDL-73225 mod_bigbluebuttonbn: Improve error message when joining
Laurent David [Thu, 3 Mar 2022 16:47:38 +0000 (17:47 +0100)]
MDL-73225 mod_bigbluebuttonbn: Improve error message when joining

    Display more friendly messages when:
    * When displaying activity and the server is not available
    * When we join a meeting and the server is not available or an error is detected

5 weeks agoMDL-74577 core: Reset login_failed_count_since_success after login
Sujith Haridasan [Mon, 2 May 2022 06:03:40 +0000 (11:33 +0530)]
MDL-74577 core: Reset login_failed_count_since_success after login

When the user is logged in successfully then reset the value
of login_failed_count_since_success to zero, if the value of
login_failed_count_since_success is greater than zero.

5 weeks agoweekly release 4.0.1+
Ilya Tregubov [Thu, 19 May 2022 13:24:28 +0000 (19:24 +0600)]
weekly release 4.0.1+

5 weeks agoMDL-73801 backup: set predictably ordered backup next start time.
Paul Holden [Mon, 7 Feb 2022 21:22:50 +0000 (21:22 +0000)]
MDL-73801 backup: set predictably ordered backup next start time.

Prior to this change, the testcase would assert ordering based on
identical fields which could lead to random failures. Set distinct
next start time of course backup, and also remove random ordering
by sorting on defined course order (all other fields being equal).

5 weeks agoMDL-74377 reportbuilder: Fix dimmed text for dropdown items
Mikel Martín [Thu, 12 May 2022 14:39:05 +0000 (16:39 +0200)]
MDL-74377 reportbuilder: Fix dimmed text for dropdown items

To show inactive/unavailable rows '.dimmed_text' class usages have been replaced with '.text-muted'.

5 weeks agoMDL-73966 grade: fetch required user name fields of unenrolled users.
Paul Holden [Tue, 17 May 2022 14:56:55 +0000 (15:56 +0100)]
MDL-73966 grade: fetch required user name fields of unenrolled users.

5 weeks agoAutomatically generated installer lang files
AMOS bot [Tue, 17 May 2022 00:07:40 +0000 (00:07 +0000)]
Automatically generated installer lang files

5 weeks agoMDL-71276 message_email: include alternate email in privacy export.
Paul Holden [Thu, 13 May 2021 14:03:07 +0000 (15:03 +0100)]
MDL-71276 message_email: include alternate email in privacy export.

6 weeks agoMDL-74678 reportbuilder: Allow null in category description callback
Carlos Castillo [Fri, 6 May 2022 17:03:49 +0000 (12:03 -0500)]
MDL-74678 reportbuilder: Allow null in category description callback

Since category description is a nullable column, we need to allow null
value in category description column callback in category entity

6 weeks agoMDL-74344 comment: consistent capability check for accessing report.
Paul Holden [Wed, 30 Mar 2022 16:06:12 +0000 (17:06 +0100)]
MDL-74344 comment: consistent capability check for accessing report.

Co-authored-by: David Wipperfurth <>
6 weeks agoAutomatically generated installer lang files
AMOS bot [Fri, 13 May 2022 00:07:40 +0000 (00:07 +0000)]
Automatically generated installer lang files

6 weeks agoMDL-73013 calendar: fix serving of files added to category events.
Paul Holden [Mon, 8 Nov 2021 21:24:19 +0000 (21:24 +0000)]
MDL-73013 calendar: fix serving of files added to category events.

6 weeks agoweekly release 4.0.1+
Jun Pataleta [Thu, 12 May 2022 14:16:04 +0000 (22:16 +0800)]
weekly release 4.0.1+

6 weeks agoMDL-69951 filter_tidy: Replace drop-font-tags
Leon Stringer [Thu, 12 May 2022 10:44:29 +0000 (11:44 +0100)]
MDL-69951 filter_tidy: Replace drop-font-tags

The option drop-font-tags was removed in HTML Tidy version 5.5.14.  It
had been deprecated since 5.1.25, the docs said "Use the clean option
instead" which is what this commit does (see

6 weeks agoMDL-73163 behat: Changed most to must
Kordan [Thu, 25 Nov 2021 06:00:49 +0000 (07:00 +0100)]
MDL-73163 behat: Changed most to must

6 weeks agoMDL-74416 phpunit: fix generator counters reset
Petr Skoda [Sun, 3 Apr 2022 08:22:42 +0000 (10:22 +0200)]
MDL-74416 phpunit: fix generator counters reset

6 weeks agoMDL-74699 enrol_lti: fix clientid retrieval from aud during launches
Jake Dallimore [Wed, 11 May 2022 02:31:36 +0000 (10:31 +0800)]
MDL-74699 enrol_lti: fix clientid retrieval from aud during launches

6 weeks agoMDL-74553 blocks: do not refer to form fields by id
Marina Glancy [Fri, 22 Apr 2022 15:48:04 +0000 (17:48 +0200)]
MDL-74553 blocks: do not refer to form fields by id

This is not compatible with the dynamic forms and random ids

6 weeks agoMDL-74726 mod_bigbluebuttonbn: Fix muteonstart
Shamiso.Jaravaza [Wed, 11 May 2022 14:11:54 +0000 (08:11 -0600)]
MDL-74726 mod_bigbluebuttonbn:  Fix muteonstart

Added missing muteonstart_editable in mod_form  block condition

6 weeks agoMDL-73898 user: exclude guest user from participants table.
Paul Holden [Tue, 15 Feb 2022 22:01:20 +0000 (22:01 +0000)]
MDL-73898 user: exclude guest user from participants table.

6 weeks agoMDL-74710 mod_bigbluebuttonbn: Fix settings url.
Ilya Tregubov [Tue, 10 May 2022 04:48:56 +0000 (10:48 +0600)]
MDL-74710 mod_bigbluebuttonbn: Fix settings url.

7 weeks agoMDL-74413 phpunit: Move more tests to use correct names and namespaces
Eloy Lafuente (stronk7) [Sat, 2 Apr 2022 19:34:46 +0000 (21:34 +0200)]
MDL-74413 phpunit: Move more tests to use correct names and namespaces

Applied the following changes to various testcase classes:

- Namespaced with component[\level2-API]
- Moved to level2-API subdirectory when required.
- Fixed incorrect use statements with leading backslash.
- Remove file phpdoc block
- Remove MOODLE_INTERNAL if not needed.
- Changed code to point to global scope when needed.
- Fix some relative paths and comments here and there.
- All them passing individually.
- Complete runs passing too.

Special mention to:

- Moved to the level2 "privacy" namespace:
  - \mod_assign\privacy\feedback_legacy_polyfill_test
  - \mod_assign\privacy\submission_legacy_polyfill_test

- Moved to the level2 "task" namespace:
  - \core_message\task\migrate_message_data_test
  - \ltiservice_gradebookservices\task\cleanup_test
  - \message_email\task\send_email_test
  - \mod_lti\task\clean_access_tokens_test
  - \mod_workshop\task\cron_task_test

- Moved to the level2 "event" namespace:
  - \core_h5p\event\deleted_test
  - \core_h5p\event\viewed_test

- Renamed to a better name:
  - backup_forum_activity_task_test.php (missing "task")

7 weeks agoMoodle release 4.0.1 v4.0.1
Jun Pataleta [Sat, 7 May 2022 11:34:54 +0000 (19:34 +0800)]
Moodle release 4.0.1

7 weeks agoMDL-73971 phpunit: Move more tests to use correct names and namespaces
Eloy Lafuente (stronk7) [Tue, 29 Mar 2022 18:24:23 +0000 (20:24 +0200)]
MDL-73971 phpunit: Move more tests to use correct names and namespaces

Applied the following changes to various testcase classes:

- Namespaced with component[\level2-API]
- Moved to level2-API subdirectory when required.
- Fixed incorrect use statements with leading backslash.
- Remove file phpdoc block
- Remove MOODLE_INTERNAL if not needed.
- Changed code to point to global scope when needed.
- Fix some relative paths and comments here and there.
- All them passing individually.
- Complete runs passing too.

Special mention to:

- Some fixtures, initially defined in the test files have been
  moved to new files in fixtures subdirectory, leaving the unit
  test files clearer:
  - moodle2_course_format_test.php
- Rename wrong named test:
  - baseoptiogroup_test = baseoptigroup_test

7 weeks agoweekly release 4.0+
Eloy Lafuente (stronk7) [Fri, 6 May 2022 13:58:28 +0000 (15:58 +0200)]
weekly release 4.0+

7 weeks agoMDL-57065 theme_boost: fix debug messages
Ferran Recio [Fri, 6 May 2022 10:26:40 +0000 (12:26 +0200)]
MDL-57065 theme_boost: fix debug messages

The first debug message is covered by the top navbar header. This patch
will move the body's first debug message down below the navbar.

7 weeks agoMDL-74602 mod_assign: fix js error with assign grader on classic
Jake Dallimore [Fri, 6 May 2022 08:46:58 +0000 (16:46 +0800)]
MDL-74602 mod_assign: fix js error with assign grader on classic

7 weeks agoMDL-74584 mod_bigbluebuttonbn: Update behat tests
Mihail Geshoski [Thu, 5 May 2022 04:42:33 +0000 (12:42 +0800)]
MDL-74584 mod_bigbluebuttonbn: Update behat tests

7 weeks agoMDL-74584 mod_bigbluebuttonbn: Update unit tests
Mihail Geshoski [Wed, 4 May 2022 08:59:22 +0000 (16:59 +0800)]
MDL-74584 mod_bigbluebuttonbn: Update unit tests

7 weeks agoMDL-74584 course: New optional parameter in get_module_types_names()
Mihail Geshoski [Thu, 5 May 2022 10:33:20 +0000 (18:33 +0800)]
MDL-74584 course: New optional parameter in get_module_types_names()

Adds new parameter in get_module_types_names() to optionally reset
the $modnames static cache.

7 weeks agoMDL-74584 mod_bigbluebuttonbn: Add install script and new upgrade step
Mihail Geshoski [Wed, 4 May 2022 02:35:09 +0000 (10:35 +0800)]
MDL-74584 mod_bigbluebuttonbn: Add install script and new upgrade step

Adds a new install script for the BBB module and a new upgrade step.
The BBB module now will be disabled by default for new installations
and also it will be disabled for the existing sites that use the
default BBB server configuration. Admistrators will be required to
confirm the acceptance of the related DPA prior to (re)enabling the
plugin once again.

7 weeks agoMDL-74584 mod_bigbluebuttonbn: Add DPA info in the general setting page
Mihail Geshoski [Wed, 4 May 2022 02:34:11 +0000 (10:34 +0800)]
MDL-74584 mod_bigbluebuttonbn: Add DPA info in the general setting page

Adds a note in the BBB general settings page to raise awareness about
the legal obligations related to the data processing agreement with the
service provider which is currently configured.

7 weeks agoMDL-74584 mod_bigbluebuttonbn: Implement 'pre_enable_plugin_actions'
Mihail Geshoski [Wed, 4 May 2022 02:30:07 +0000 (10:30 +0800)]
MDL-74584 mod_bigbluebuttonbn: Implement 'pre_enable_plugin_actions'

Implements a function for the 'pre_enable_plugin_actions' callback.
When the default BBB server settings are used while the administrator
attempts to enable the BBB plugin, the function will prevent this
action and trigger a dynamic form requesting the admin to conifrm
their acceptance of the related data processing agreement. The process
of enabling the plugin will continue as usual in cases where the
admin has already confirmed the acceptance of the dpa or a different
BBB server configuration is used other than the default.

7 weeks agoMDL-74584 admin: Add callback executed prior to enabling a module
Mihail Geshoski [Wed, 4 May 2022 02:26:13 +0000 (10:26 +0800)]
MDL-74584 admin: Add callback executed prior to enabling a module

Adds a callback xxx_pre_enable_plugin_actions in admin/modules.php
which plugins can use to force additional actions before enabling the
plugin. The return value (bool) from the plugin callback method
specifies whether the process of enabling the plugin should continue
after the added actions or not.

7 weeks agoMDL-74511 core: Add phpcs default config
Andrew Nicols [Fri, 6 May 2022 03:30:06 +0000 (11:30 +0800)]
MDL-74511 core: Add phpcs default config

7 weeks agoMDL-41498 course: courses participant page
Robert Schrenk [Mon, 20 Dec 2021 13:54:11 +0000 (14:54 +0100)]
MDL-41498 course: courses participant page

7 weeks agoMDL-74567 core: re-factor flickr libraries to use shared user-agent.
Paul Holden [Fri, 29 Apr 2022 12:31:55 +0000 (13:31 +0100)]
MDL-74567 core: re-factor flickr libraries to use shared user-agent.