Commit graph

115046 commits

Author SHA1 Message Date
Michael Aherne
c0bbb5f715 MDL-81355 phpdoc: Fix incorrect phpdocs on block_base. 2024-06-12 10:20:58 +08:00
Huong Nguyen
ad58d2e306
Merge branch 'MDL-82001' of https://github.com/paulholden/moodle 2024-06-12 09:01:18 +07:00
Huong Nguyen
96d29ef71b
Merge branch 'MDL-81522' of https://github.com/stronk7/moodle 2024-06-12 08:46:31 +07:00
Paul Holden
c63e3c5756
MDL-82169 user: remove access to non-existent $options array. 2024-06-11 21:24:27 +01:00
ferranrecio
fc8dfda112 MDL-82167 core: fix reactive debug panel 2024-06-11 16:15:02 +02:00
Mikel Martín
f61201c947 MDL-81742 mod_feedback: Improve 'Edit' page navigation
- Remove 'Use template' from edit page tertiary navigation
- Create a new 'Actions' menu in the tertiary naviagation
- Move 'Import' tertiary navigation to the actions menu
- Move 'Export' button to the actions menu
- Move 'Save as new template' to the actions menu
- Convert add question select into an action menu
- Fix related behat scenarios
2024-06-11 15:30:33 +02:00
Sara Arjona
215a887629
MDL-82162 tool: Switch to admin when executing runtestscenario by CLI
When the runtestscenario is executed via CLI, generators requiring a valid
$USER will fail.
This patch switches to the admin user, consistent with the approach used
in other simlar CLI scripts.
2024-06-11 13:25:44 +02:00
Ilya Tregubov
506070f0a7 Merge branch 'MDL-81510-main' of https://github.com/laurentdavid/moodle 2024-06-11 18:58:56 +08:00
Laurent David
9381343c78 MDL-81510 core_courseformat: Fix activity highlight in index
* When directly accessing the module with the #module-xxx anchor
we should highlight the module as the current page item.
2024-06-11 12:34:20 +02:00
Eloy Lafuente (stronk7)
6c35a65e1a
MDL-81522 phpunit: Add a few non-void return types to tests
This is the final (3rd) commit, where we are adding missing
return types to a few tests (using @depends) which return
types are non-void, but something really returned (for consume
by the dependent test).
2024-06-11 11:55:08 +02:00
Eloy Lafuente (stronk7)
4f7631113c
MDL-81522 phpunit: Add missing void return type to all tests #2
This commit includes more changes, all them also adding the :void
return type to unit tests missing them.

The difference is that all these changes, while also detected
perfectly by the moodle.PHPUnit.TestReturnType sniff, were not
auto-fixed (like the previous commit ones), because all them
do include some "return" statement and, for safety, we don't
fix them.

All the cases have been visually inspected and confirmed that
the existing "return" statements always belong to anon
functions within the test body and not the test own return statement.
2024-06-11 11:55:08 +02:00
Eloy Lafuente (stronk7)
01148a0816
MDL-81522 phpunit: Add missing void return type to all tests
While this change is not 100% required now, it's good habit
and we are checking for it since Moodle 4.4.

All the changes in this commit have been applied automatically
using the moodle.PHPUnit.TestReturnType sniff and are, exclusively
adding the ": void" return types when missing.
2024-06-11 11:55:07 +02:00
Jun Pataleta
7751f509ef
Merge branch 'MDL-76392' of https://github.com/paulholden/moodle 2024-06-11 17:23:55 +08:00
Huong Nguyen
a8468e727d
MDL-68540 tool_usertours: Remove hideif workaround
We don't need to use the group element to use hideif
for text editor element anymore
2024-06-11 15:31:32 +07:00
Huong Nguyen
d8d395cb19
Merge branch 'MDL-68540-main' of https://github.com/davewoloszyn/moodle 2024-06-11 15:28:59 +07:00
Angelia Dela Cruz
ff8d888c49 MDL-81332 core_course: Behat test for grade and activity reports display 2024-06-11 15:25:21 +08:00
Jun Pataleta
2c1af4fd9e
Merge branch 'MDL-81428-main' of https://github.com/HuongNV13/moodle 2024-06-11 13:41:58 +08:00
Andrew Nicols
12a5c8d366
MDL-81919 core: Correct mapped class location 2024-06-11 10:50:13 +07:00
David Woloszyn
954617d3e3 MDL-68540 form: Correctly target editors in node tree
This fix solves the hideIf and disabledIf form conditions that were not
correctly targetting the editor due to a name attribute mismatch.
2024-06-11 13:05:38 +10:00
Paul Holden
b0eae5fa03
MDL-82155 core: define/correct third party library names. 2024-06-10 19:50:52 +01:00
Sara Arjona
e336e0660d
Merge branch 'MDL-80644_upgrade-http-factory' of https://github.com/ziegenberg/moodle 2024-06-10 16:55:01 +02:00
Sara Arjona
95dfd66a8d
Merge branch 'MDL-81949' of https://github.com/paulholden/moodle 2024-06-10 16:46:32 +02:00
Sara Arjona
7a0686acb9
Merge branch 'MDL-81678' of https://github.com/paulholden/moodle 2024-06-10 16:39:10 +02:00
Sara Arjona
a83d82b125
Merge branch 'MDL-80635_upgrade-geoip2-php-api-maxmind-db-reader-api' of https://github.com/ziegenberg/moodle 2024-06-10 16:23:26 +02:00
Sara Arjona
e18aefa69e
Merge branch 'MDL-81676-main' of https://github.com/aanabit/moodle 2024-06-10 16:07:28 +02:00
Sara Arjona
6764cc71ac
Merge branch 'MDL-81648-main' of https://github.com/roland04/moodle 2024-06-10 15:49:46 +02:00
Pedro Jordao
0fc14f9177 MDL-69514 Core: Close popover when modal is closed
Currently in Firefox, if we opened a popover that was inside a modal
and closed the modal by pressing the ESC key, the popover remained on
the screen. With this change, we will ensure that popovers are closed
when the modal is closed.
2024-06-10 10:48:08 -03:00
Amaia Anabitarte
267a474154 MDL-81676 core_course: Rename data-sectionid to data-sectionnum
Activity chooser is saving section number in a data attribute called
data-sectionid. We should use data-sectionnum instead to make it easier
to understand.
2024-06-10 15:42:09 +02:00
Sara Arjona
cbee116728
Merge branch 'MDL-82041' of https://github.com/paulholden/moodle 2024-06-10 15:17:11 +02:00
Sara Arjona
8382970cd0
Merge branch 'MDL-81741-main' of https://github.com/roland04/moodle 2024-06-10 13:05:59 +02:00
Sara Arjona
4f3712505d
Merge branch 'MDL-81675-main' of https://github.com/aanabit/moodle 2024-06-10 12:38:46 +02:00
Sara Arjona
94adf2ae31
Merge branch 'MDL-70972-main' of https://github.com/PhMemmel/moodle 2024-06-10 12:33:18 +02:00
Huong Nguyen
080e89916a MDL-81428 theme_boost: Match .disabled opacity with .text-muted 2024-06-10 17:00:47 +07:00
Huong Nguyen
a07054af30 MDL-81428 core: Display the correct status for the contact request 2024-06-10 17:00:46 +07:00
Jun Pataleta
3452601bf3
Merge branch 'MDL-81919-main-squashed' of https://github.com/andrewnicols/moodle 2024-06-10 14:41:03 +08:00
Andrew Nicols
60d8671224
MDL-81919 core: Prioritise autoloader in install 2024-06-10 14:20:26 +08:00
Ilya Tregubov
027407e9c9 Merge branch 'MDL-81510-main' of https://github.com/laurentdavid/moodle 2024-06-10 13:31:25 +08:00
Jun Pataleta
9c706bb48b
MDL-81919 core: Minor fixes
* Typo in Jerome Mouneyrac's name.
* Remove other trailing commas in inline arrays.
2024-06-10 13:17:11 +08:00
Jun Pataleta
c40f85eb6e
Merge branch 'MDL-81919-main-squashed' of https://github.com/andrewnicols/moodle 2024-06-10 12:56:36 +08:00
Andrew Nicols
a128312ccb
MDL-81919 customfield: Rewrite poor test assertion 2024-06-10 12:13:00 +08:00
Andrew Nicols
0abb2e6b9a
MDL-81919 core: Update moved file namespaces 2024-06-10 12:13:00 +08:00
Andrew Nicols
75e8dbb3c5
MDL-81919 core: Fix coding style issues for recently moved code 2024-06-10 12:12:59 +08:00
Andrew Nicols
8c3f18a4eb
MDL-81919 core: Move classes out of lib/setuplib.php 2024-06-10 10:04:08 +08:00
Andrew Nicols
302b94c2b7
MDL-81919 core: Add support for autoloading legacy classes 2024-06-10 10:04:08 +08:00
Paul Holden
78f56cffde
MDL-76392 reportbuilder: migrate manual to native report aggregation.
Now that system reports support aggregation natively, we can replace
a whole bunch of similar code containing hand-rolled versions with much
simpler/consistent use of API.
2024-06-07 16:08:22 +01:00
Paul Holden
da04fc522a
MDL-81949 tool_replace: prompt user for unrecognised CLI parameters. 2024-06-07 11:40:57 +01:00
Paul Holden
1acdc7fe82
MDL-81678 enrol: don't escape course name in welcome message. 2024-06-07 11:39:38 +01:00
Paul Holden
41660e88c0
MDL-78773 report_stats: improve display of mode selection element.
Make use of existing theme selectors for navigation elements to style.
2024-06-07 11:33:37 +01:00
Paul Holden
2eb7db3a05
MDL-81781 report_log: escape description selectively on display/export.
Per cd85e090f3 all content was escaped, however we should only do that
when displaying the value in browser or exporting to file format which
supports HTML.
2024-06-07 11:29:10 +01:00
Paul Holden
a0d5133f10
MDL-81781 dataformat: public helper method to get writer instance. 2024-06-07 11:29:10 +01:00