111378 Commits

Author SHA1 Message Date
Paul Holden
28134fe199
MDL-79446 reportbuilder: native support for parameter name suffixes. 2023-11-02 09:27:07 +00:00
Paul Holden
e19c4e89d1
MDL-79446 reportbuilder: optional $suffix for generated alias/params.
Allows for, and documents, intended usage when the result of these
methods is used elsewhere (e.g. in `$DB->get_in_or_equal`).
2023-10-11 15:10:39 +01:00
Jun Pataleta
769c67045f
weekly back-to-dev release 4.4dev 2023-10-07 12:00:36 +08:00
Jun Pataleta
fe7aff8093
Moodle release 4.3 v4.3.0 2023-10-07 11:31:00 +08:00
Sara Arjona
c765bb3b52
Moodle release 4.3rc2 v4.3.0-rc2 2023-10-06 14:03:06 +02:00
Sara Arjona
cacdbac650
NOBUG: Fixed SVG browser compatibility 2023-10-06 14:03:03 +02:00
Sara Arjona
d06fa181f9
Merge branch 'MDL-79581-master' of https://github.com/sarjona/moodle 2023-10-06 12:24:35 +02:00
Sara Arjona
89d3f66c2f
MDL-79581 communication: Adding missing index to install 2023-10-06 12:18:03 +02:00
Sara Arjona
02d5e79b6f
Merge branch 'MDL-79613-master' of https://github.com/snake/moodle 2023-10-06 08:31:11 +02:00
Huong Nguyen
73769bdd4f
Merge branch 'MDL-79573-master-int' of https://github.com/mickhawkins/moodle 2023-10-06 13:04:36 +07:00
Jake Dallimore
12fa9a8d22
MDL-79613 core_grade: revert the removal of searchwidget templates
These templates are needed by plugins which use the now-deprecated
searchwidget (located in grade/amd/src/searchwidget/basewidget.js)
in order to keep that deprecated widget working during the deprecation
time period. This also clarifies the js deprecation notice.
2023-10-06 12:22:33 +08:00
Michael Hawkins
acc48db386
MDL-79573 communication: Load form data for the correct provider fields 2023-10-06 11:10:09 +08:00
Ilya Tregubov
b1774ab520
Merge branch 'MDL-79570-master' of https://github.com/ferranrecio/moodle 2023-10-06 11:09:29 +08:00
Ferran Recio
2824913f42 MDL-79570 tool_usertours: fix tours for fixed z-index elements 2023-10-06 05:00:15 +02:00
Ilya Tregubov
2b4041f93c
Merge branch 'MDL-79586-master' of https://github.com/safatshahin/moodle 2023-10-06 10:25:39 +08:00
Michael Hawkins
329a9e97d2
MDL-79573 communication: Support new records for each provider type
Previously, we replaced information in the same communication record
in the database, now there will be a unique record per provider.
This ensures when switching between different providers, the correct
actions such as room member management can be actioned for the correct
provider.

This also includes the required updates for the instances to no
longer assume a provider must be enabled to be relevant. Specifying a
provider is optional to fetch a specific provider instance, the default
will use the currently enabled provider.
2023-10-06 09:54:32 +08:00
Ilya Tregubov
f9d75f083f
Merge branch 'MDL-79570-master' of https://github.com/ferranrecio/moodle 2023-10-06 08:40:33 +08:00
Ilya Tregubov
0cfac00031
Merge branch 'MDL-79589-master' of https://github.com/ferranrecio/moodle 2023-10-06 07:54:49 +08:00
Sara Arjona
1cdb5d2d20
Merge branch 'MDL-79599-master' of https://github.com/ferranrecio/moodle 2023-10-05 19:59:45 +02:00
Ferran Recio
74b61956ca MDL-79570 tool_usertours: fix drawers tour position 2023-10-05 18:03:33 +02:00
Ferran Recio
2e1506f42c MDL-79570 theme_boost: fix drawers z-index
Drawers are floating elements that should cover the page content but not
the top navbar or the sticky footer. This patch gives the drawer a
consistent z-index of $zindex-fixed -1 as oposed to the $zindex-fixed
used in the rest of floating elements.

However, in mobile the drawers acts a standard web drawer, covering the
full page content, event the other floating elements. This is why in
mobile the z-index should be higher than $zindex-fixed.
2023-10-05 18:03:33 +02:00
Sara Arjona
1bb937140f
Merge branch 'MDL-79600-master' of https://github.com/roland04/moodle 2023-10-05 14:05:22 +02:00
Ferran Recio
28c7558884 MDL-79599 theme_boost: fix drawers in RTL 2023-10-05 13:44:38 +02:00
Sara Arjona
563851857f
Merge branch 'MDL-79602-master' of https://github.com/HuongNV13/moodle 2023-10-05 13:03:46 +02:00
Jun Pataleta
9071c03b41
Merge branch 'MDL-79381-master' of https://github.com/HuongNV13/moodle 2023-10-05 18:18:33 +08:00
Mikel Martín
7e3c732d17 MDL-79600 course: Fix courseindex collapseall icon in RTL
- Add new fa-angles-{left|right|down|up} icons to the icon system
- Fix course index collapseall icon in RTL
2023-10-05 11:29:50 +02:00
Huong Nguyen
8e242a78a0
Merge branch 'MDL-79584-master' of https://github.com/snake/moodle 2023-10-05 14:53:05 +07:00
Andrew Nicols
46f5547308
MDL-79581 communication: Work around inconsistency in DB SET FROM upgrade 2023-10-05 14:05:38 +07:00
Safat
75cae1dede MDL-79586 communication: Restrict the use of non-configured providers 2023-10-05 16:53:50 +11:00
Safat
73f342233a MDL-79586 core: Resolve regression of disabled matrix plugin 2023-10-05 16:22:02 +11:00
Huong Nguyen
d0294388d7
MDL-79602 core: Handle empty selection for MoodleNet 2023-10-05 12:10:11 +07:00
Jake Dallimore
ffb85e63f7
MDL-79584 core_payment: wait for processPayment promise to resolve
This fixes a regression introduced by MDL-78324 in which the
notification was being called before the promise had resolved. This
change just reverts that.
2023-10-05 12:56:15 +08:00
Jake Dallimore
dc2721083c
MDL-79584 core_payment: load strings in js and pass to template
This template shouldn't really be using string helpers inside string
helpers like it does, and this is unsupported in 4.3. This just moves
the string resolution to js land and then passes that resolved string
into the template instead.
2023-10-05 12:56:14 +08:00
Jake Dallimore
230c2961fc
MDL-79584 core_payment: fix modal content insertion in payment modal
Instead of replacing the body, revert to the desired behavior in which
the payment methods are injected into the body, retaining the desired
markup classes, etc.
2023-10-05 12:50:06 +08:00
Huong Nguyen
0d6204d29c
Merge branch 'MDL-79581-master' of https://github.com/andrewnicols/moodle 2023-10-05 11:37:09 +07:00
Eloy Lafuente (stronk7)
a48504f8fb
MDL-79381 core: MoodleNet PHPUnit with the new controllers
Basically the changes imply that:
- For some tests that are using reflection, we need to ensure
  that the backup controller is passed.
- And, whenever used explicitly in tests, it has to be destroyed.
  (note that this leaves out tests running get_package(), because
  that method now instantiates and destroys the controller by itself.
  only tests that get a controller need to destroy it).
- Move from some old functions to the new ones introduced in the issue.
2023-10-05 10:40:33 +07:00
Eloy Lafuente (stronk7)
ace315370f
MDL-79381 core: Refactor MoodleNet controller
Including in this commit:
 - Moved the backup controller instantiation out of the constructor
 - Created a new get_backup_controller() method to retreive the controller when needed
 - Removed some constructor-promoted properties
 - Added resourcefilename to resource_packager constructor
 - Made resource_packager to abstract class (cannot be instantiated)
 - Removed constructor-promoted properties and declare them "normally"
 - Backup controller is called and destroyed in get_package() method.
   Only PHPUnit tests will need to play with the destroy method because
   they use the reflection method
 - Made course_partial_packager extend course_packager and removed constructor-promoted properties
 - Removed the get_all_task_settings() method and replaced it with get_all_activity_tasks() method
 - Fixed bugs related to Partial course sharing
2023-10-05 10:40:32 +07:00
Huong Nguyen
5ab3d0a02f
Merge branch 'MDL-79591-master' of https://github.com/sarjona/moodle 2023-10-05 09:35:10 +07:00
Andrew Nicols
805ebbb434
Merge branch 'MDL-79276-master' of https://github.com/raortegar/moodle 2023-10-05 08:55:14 +08:00
Jun Pataleta
98ac14eecb
Merge branch 'MDL-79531-master-1' of https://github.com/mihailges/moodle 2023-10-05 07:37:02 +08:00
Ferran Recio
312806fd5c MDL-79589 course: fix availability subpanel selected option 2023-10-04 17:05:42 +02:00
Sara Arjona
69d4f0db33
Merge branch 'MDL-79583-master' of https://github.com/andrewnicols/moodle 2023-10-04 16:47:19 +02:00
Sara Arjona
d113c7f00e
MDL-79591 quiz: Fix the string for the completion condition 2023-10-04 16:40:40 +02:00
Andrew Nicols
5ee0a5f760
MDL-79581 core_communication: Linting fixes 2023-10-04 20:37:58 +08:00
Andrew Nicols
166d137407
MDL-79581 communication_matrix: Use the contextid from the API 2023-10-04 20:37:57 +08:00
Andrew Nicols
99c1543aa8
MDL-79581 communication: Context is a mandatory field
The API was incorrectly assuming that all uses of the API were for a
course, and that the instanceid of the communication instance was a
course id. These assumptions are both entirely wrong.

The API is intended to support a range of uses including use at the
site, user, and activity levels.

Furthermore, if a group were to be used, then the instanceid should be
of that group's id, and therefore the contextid would need to be fetched
or that group's course instead.

The only solution here is to add a new contextid field to the table, and
implement it all parts of the API.
2023-10-04 20:37:57 +08:00
Ilya Tregubov
f2ba761bef
Merge branch 'MDL-79157-master' of https://github.com/ferranrecio/moodle 2023-10-04 18:49:19 +08:00
Mihail Geshoski
bef518efb8 MDL-79531 mod_quiz: Create only one random question in new category 2023-10-04 12:31:12 +02:00
Mihail Geshoski
451614016e MDL-79531 mod_quiz: Fix exception when adding random questions
Moves the data-filtercondition property to an element that always
exists regardless of whether the selected category from the filter
has questions or not. This will effectively solve the exception
that is being thrown due to the non-existing element and also
enable creation of random questions in a category that does not
have any questions yet. Also, the data-filtercondition attribute
is no longer used when creating a random question in a new category
as this value is not relevant in this case. Instead, a default
filter condition is generated in the webservice for the random
question based on the newly created category.
2023-10-04 12:31:12 +02:00
Sara Arjona
9877a06246
Merge branch 'MDL-79551-master-rc' of https://github.com/junpataleta/moodle 2023-10-04 12:28:14 +02:00