30281 Commits

Author SHA1 Message Date
Daniel Ziegenberg
5e57b0322b
MDL-69655 tool_licenses: Final deprecation admin_setting_managelicenses
Following MDL-45184 this now finally deprecates and removes the class
\admin_setting_managelicenses. Please use \tool_licensemanager\manager
instead.

Following MDL-45184 this now finally deprecates and removes the
function license_manager::add(). Please use license_manager::save()
instead.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2022-10-11 11:09:51 +02:00
Laurent David
bcc18e2439 MDL-55580 core: Process for deprecating a capability
* Add a $deprecatedcapabilities variable to deal with deprecated
capabilities

Change-Id: I14f44d331e8a1c4bd9abe9566c78d911c0205583
Co-authored-by: Mark Johnson <mark.johnson@catalyst-eu.net>
2022-10-11 08:48:17 +01:00
David Woloszyn
c65ae9ffd8 MDL-75470 lib: Upgraded PHP Markdown to version 2.0.0 2022-10-11 11:52:28 +11:00
sam marshall
d6b4506a8b MDL-75751 upgradelib: Improve upgrade/install performance logging
* Adds time logging (number of seconds for each success) on install,
  which was previously only shown in upgrades. Useful when installing
  a new plugin as part of an upgrade, or if anyone wants to optimise
  Moodle installation.

* In developer debug mode, upgrade savepoint time was already logged
  but now it also logs time for lots of 'details' of the process in
  case time is taken in other Moodle function calls.
2022-10-10 17:09:14 +01:00
sam marshall
2280ea18f6 MDL-75751 upgradelib: Refactor out duplicated component update code
There are many places (install/upgrade for core, modules, blocks,
and plugins) where we need to call the same, or very similar,
sequence of Moodle functions to ensure the item is updated properly.

This change moves that sequence into a function so that it can be
held consistently in one place.
2022-10-10 17:09:14 +01:00
sam marshall
8e35bb415d MDL-75834 lib: Focus lock JS bug when focus area removed 2022-10-10 16:24:30 +01:00
Marina Glancy
44aac31980 MDL-73424 general: specify return type where possible 2022-10-10 16:46:26 +02:00
Marina Glancy
41b93bd7e5 MDL-73424 general: Internal methods must have same type as parent
Otherwise the error is thrown in PHP8.1
2022-10-10 16:46:13 +02:00
Sara Arjona
fd14173a88 Merge branch 'MDL-75656' of https://github.com/paulholden/moodle 2022-10-10 16:16:20 +02:00
Stevani Andolo
abaa38eebe MDL-75465 lib: Upgrade minify to 1.3.69 2022-10-10 19:41:24 +08:00
Jun Pataleta
6efeecd126 Merge branch 'MDL-75910-master' of https://github.com/andrewnicols/moodle 2022-10-10 11:07:27 +08:00
David Woloszyn
0bcd6e4e12 MDL-75474 lib: Upgrade mustache.js to 4.2.0 2022-10-10 11:49:53 +11:00
Shamim Rezaie
ba4fb93377 Merge branch 'MDL-75156-master' of https://github.com/ilyatregubov/moodle 2022-10-10 11:15:44 +11:00
Andrew Nicols
052c705b08 Merge branch 'MDL-75473-master' of https://github.com/davewoloszyn/moodle 2022-10-09 13:18:21 +08:00
Andrew Nicols
1e71671205 Merge branch 'MDL-61395' of https://github.com/paulholden/moodle 2022-10-09 13:13:03 +08:00
Paul Holden
b3828cebd2 MDL-75034 reportbuilder: move classes into consistent namespace.
Use `reportbuilder` level two namespace for report related classes
(entities, system reports, etc) within components and sub-systems.
2022-10-07 15:05:34 +01:00
Andrew Nicols
fa41cb86a5 Merge branch 'MDL-75844-master' of https://github.com/NashTechOpenUniversity/moodle 2022-10-07 15:50:54 +08:00
Ilya Tregubov
b3e05d0e4e MDL-75156 gradebook: Grade summary plugin (grade averages).
Also included updates for existing unit tests and navigation.
2022-10-07 11:31:41 +04:00
Mikhail Golenkov
84eef00ed2 MDL-75907 core: Add index on temp table to optimise stats cron 2022-10-07 16:15:51 +11:00
Simey Lameze
f1be9b6544 MDL-75910 core_form: Allow editor field to set a hidden label
When an editor is used in a form as part of a group, it is missing its
label element.

This happens because there is no inline template for the editor, and
therefore it reverts to using the old `toHtml` function. The legacy
function does not cater to the editor being in a group, and therefore
does not add the hidden label.

In addition, the hiddenLabel attribute was missing from the editor
element. This is a semi-standard element but must be added to each
supporting element.

Both the missing inline template for the editor, and the hidden label
attribute must be present:
- If the hidden label attribute is not present, then the standard inline
  template will add a visible label within the group.
- If the inline editor template is missing, then the label is not shown
  at all.
2022-10-06 22:53:47 +08:00
Andrew Nicols
39241f20e0 MDL-71686 core_form: Include missing build 2022-10-06 14:43:55 +08:00
Andrew Nicols
5bf222af33 Merge branch 'MDL-75485-master' of https://github.com/davewoloszyn/moodle 2022-10-06 10:49:14 +08:00
Andrew Nicols
11df52d2d7 Merge branch 'MDL-75488-master' of https://github.com/stevandoMoodle/moodle 2022-10-06 10:40:38 +08:00
Andrew Nicols
59ae667bee Merge branch 'MDL-75476-master' of https://github.com/davewoloszyn/moodle 2022-10-06 10:34:01 +08:00
Andrew Nicols
f075272e69 MDL-71686 core_form: Move form serializer to shared function 2022-10-06 10:21:01 +08:00
Andrew Nicols
2423c26749 Merge branch 'MDL-71686-master' of https://github.com/marinaglancy/moodle 2022-10-06 10:20:56 +08:00
Andrew Nicols
3589299d82 Merge branch 'MDL-74955' of https://github.com/paulholden/moodle 2022-10-06 09:39:45 +08:00
Andrew Nicols
97fe092754 Merge branch 'MDL-75477' of https://github.com/paulholden/moodle 2022-10-06 09:28:57 +08:00
Shamim Rezaie
d01c1a4a07 Merge branch 'MDL-75886-master' of https://github.com/andrewnicols/moodle 2022-10-06 12:24:07 +11:00
Paul Holden
dd0c545ec6 MDL-75077 output: prevent duplicate ID errors in custom menus.
Following on from 8e4a7c6b, we should apply a similar change to
custom menus to account for being collapsed into the "More" menu.
2022-10-05 18:29:17 +01:00
Kevin Percy
c53f9f2db8 MDL-75469 lib: Update jQuery to 3.6.1, jQuery UI to 1.13.2 2022-10-05 13:55:56 +08:00
Andrew Nicols
13cc3607de MDL-75886 atto: Always use Atto for @atto tests
This change, which should be easy to mimic for other editors.

This will ensure that the correct editor is used for tests relating to
that editor, or its subplugins.
2022-10-05 09:54:21 +08:00
Jun Pataleta
28a4c55aea Merge branch 'MDL-73433-master' of https://github.com/marinaglancy/moodle 2022-10-04 17:53:27 +08:00
Paul Holden
28cf1fa8a1 MDL-74955 reportbuilder: external method for listing custom reports. 2022-10-03 13:57:36 +01:00
Paul Holden
703f0b2a03 MDL-72058 dataformat: remove HTML when export format lacks support. 2022-10-03 09:16:06 +01:00
David Woloszyn
b58fdd909b MDL-75473 lib: Updated Mustache to 2.14.2 2022-10-03 10:10:06 +11:00
Andrew Nicols
010ad8751a MDL-75614 dml: Unit tests must test something 2022-09-30 16:36:36 +08:00
Andrew Nicols
9911faf8be Merge branch 'MDL-75614-debugsqltrace' of https://github.com/brendanheywood/moodle 2022-09-30 16:36:10 +08:00
Jun Pataleta
2a4b3deaf6 Merge branch 'MDL-75170-master-add_order_by_method' of https://github.com/alexmorrisnz/moodle 2022-09-30 15:51:41 +08:00
Stevani Andolo
33285acbf1 MDL-75488 lib_zipstream: Upgrade ZipStream library from 2.1.0 to 2.2.0 2022-09-30 10:02:54 +08:00
hieuvu
94c2a52528 MDL-75844 moodle_page: add a modname to body tag. 2022-09-30 08:42:36 +07:00
Alex Morris
fee755bbfa
MDL-75170 tablelib: Use sql_order_by_null to sort columns 2022-09-30 11:29:27 +13:00
Alex Morris
70dfee9e23
MDL-75170 dml: add sql_order_by_null method
Standardises return patterns of null values across database types
to keep with sorting nullsto the top when ascending, and
to the bottom when descending
2022-09-30 11:27:26 +13:00
Marina Glancy
8ba4e5a3d2 MDL-73433 core: all methods in core_text can accept null argument 2022-09-29 21:06:22 +02:00
Mihail Geshoski
383e1893b2 MDL-68437 course: ws support to optionally fetch only active users
Modifies the 'core_course_get_enrolled_users_by_cmid' webservice and
the generic js methods that call this webservice and enables defining
whether the ws should only return the active users or all enrolled
users in the course.
2022-09-30 02:23:18 +08:00
Andrew Nicols
46188420da Merge branch 'MDL-74922_master_fix_storage_wrapper_validate_cache' of https://github.com/gthomas2/moodle 2022-09-29 12:05:54 +08:00
Jun Pataleta
9441d5294e Merge branch 'MDL-75559-master' of https://github.com/andrewnicols/moodle 2022-09-29 10:54:20 +08:00
Jun Pataleta
f680348048 Merge branch 'MDL-66902' of https://github.com/stronk7/moodle 2022-09-28 23:15:52 +08:00
Andrew Nicols
d7df338d4e Merge branch 'MDL-75459-master' of https://github.com/davewoloszyn/moodle 2022-09-28 22:47:38 +08:00
Jake Dallimore
04ff3a94fe Merge branch 'MDL-75841-master' of https://github.com/junpataleta/moodle 2022-09-28 13:32:56 +08:00