Commit graph

109454 commits

Author SHA1 Message Date
Stephan Robotta
b86719f9d0 MDL-77385 cli: CLI script to modify emailstop flag for users 2023-03-28 20:23:23 +02:00
Paul Holden
107b21db16
MDL-77774 gradereport_grader: correct/cleanup previous upgrade step.
Using incorrect data in the upgrade step from ca60efb8 created a
phantom plugin entry.
2023-03-28 18:42:51 +01:00
Eloy Lafuente (stronk7)
6612eab5a4 MDL-77333 mod_resource: fixes generator uploading files + tests
MDL-76499 revealed a few problems with resource generators:

1. We were not covering with unit tests the upload of files from disk
   (and here it's where the problem was).
2. There was a little of confusion between disk paths (only needed
   to upload files) and file_area paths (the generator only creates
   or uploads files to the root directory of the file area.
3. It was possible to request the upload of a file to the generator
   without that file effectively existing.

This commit fixes those points  and covers 99% of the generator code.
2023-03-28 19:06:09 +02:00
Anupama Sarjoshi
23aab0eebf MDL-77406 core: Fix code checker issues 2023-03-28 17:50:03 +01:00
Anupama Sarjoshi
42f4b0a991 MDL-77406 core: Logs to record user file uploaded in draft area 2023-03-28 17:49:54 +01:00
Paul Holden
f7a8df253b
on-demand release 4.2dev+ 2023-03-28 15:55:49 +01:00
Paul Holden
bec19cf3f7
Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2023-03-28 15:55:46 +01:00
Andrew Nicols
7ba9097264 MDL-77773 editor_tiny: Improve initial editor size 2023-03-28 20:47:49 +08:00
Paul Holden
59e69a939e
Merge branch 'MDL-77105-master-4' of https://github.com/junpataleta/moodle 2023-03-28 12:38:39 +01:00
Jun Pataleta
064971648c MDL-77105 core: Cast custom data to an array when evaluating filtericon
Since other modules may treat custom data as an object, we need to make
cast it to an array before evaluating for the `filtericon` custom data.
2023-03-28 18:48:31 +08:00
Mark Johnson
ace34e2bb2 MDL-74452 quiz: Fix reopen_open_attempt_test 2023-03-28 11:42:44 +01:00
Mark Johnson
72e7818467 MDL-74452 quiz: Display an error if all versions are in draft status 2023-03-28 11:42:44 +01:00
Juan Leyva
fe2f96762a MDL-77767 question: Fix PHP warning in ddimageortext 2023-03-28 11:39:17 +02:00
Ferran Recio
f52d4fcb82 MDL-77677 core_courseformat: debounce reload cm method 2023-03-28 09:48:51 +02:00
Dani Palou
349774a9f3 MDL-77701 mod_h5pactivity: Return admin settings in by_courses WS 2023-03-28 08:00:48 +02:00
Huong Nguyen
dfaf14fb18 MDL-76941 tool_usertours: Fix accessibility issue when resizing 2023-03-28 12:17:39 +07:00
Andrew Nicols
ad15209e1f Merge branch 'MDL-77029-master' of https://github.com/ilyatregubov/moodle 2023-03-28 12:37:01 +08:00
Jake Dallimore
1d25d477d6 Merge branch 'MDL-76149-master' of https://github.com/rezaies/moodle 2023-03-28 12:07:32 +08:00
Jake Dallimore
efac6d72cf Merge branch 'MDL-77105-master-4' of https://github.com/junpataleta/moodle 2023-03-28 11:42:29 +08:00
Ilya Tregubov
cb00d26105 MDL-77029 gradereport_grader: Fix sorting bug
When column was sorted in descending order, null values
were shown first.
2023-03-28 11:22:45 +08:00
Ilya Tregubov
fc9583bae1 MDL-77029 gradereport_grader: Add sorting to grade item columns 2023-03-28 11:22:42 +08:00
Andrew Nicols
8fe80e743c MDL-77740 editor_tiny: Set the Editor window from the iFrame element
This is a workaround for an upstream bug which I have not been able to
reproduce outside of Moodle whereby the editor.contentWindow does not
match the editor.iframeElement.contentWindow when it should.

This issue only seems to affect Firefox, and it may even be a bug in
Firefox. It can only be reproduced when using a fresh browser which has
never had a TinyMCE window open.
2023-03-28 10:43:21 +08:00
Jun Pataleta
d4d13a5a94 Merge branch 'MDL-77342-master' of https://github.com/meirzamoodle/moodle 2023-03-28 09:54:50 +08:00
Jun Pataleta
860f85e8b8 Merge branch 'MDL-77670-master' of https://github.com/juancs/moodle 2023-03-28 07:04:23 +08:00
Paul Holden
fd3180c5d3
MDL-77762 contentbank: always provide exit button when appropriate.
If the current user can access the content bank in the context of the
current item, then provide link back to it.
2023-03-27 18:08:55 +01:00
Meirza
ab2f3f1bda MDL-77339 grade: Added class properties that are not declared
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-03-27 22:53:04 +07:00
Paul Holden
5ed9c1da14
MDL-77764 contentbank: add field label to context selection element. 2023-03-27 16:51:52 +01:00
Meirza
98c55a725e MDL-77346 mod_workshop: Added missing class properties
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-03-27 21:59:39 +07:00
Sara Arjona
7c2cacaaf0 Merge branch 'MDL-76376' of https://github.com/jrchamp/moodle 2023-03-27 16:56:22 +02:00
Sara Arjona
1a01afbcb3 Merge branch 'MDL-77659' of https://github.com/AnupamaSarjoshi/moodle 2023-03-27 16:50:25 +02:00
Sara Arjona
cc853bf064 Merge branch 'MDL-73226-master' of https://github.com/jleyva/moodle 2023-03-27 16:08:19 +02:00
Juan Leyva
fc97f32010 MDL-73226 files: Add quota checks to core_user_add_user_private_files 2023-03-27 13:11:46 +02:00
Sara Arjona
e4663dc82f Merge branch 'MDL-76303-master' of https://github.com/ssj365/moodle 2023-03-27 12:39:44 +02:00
Paul Holden
696ae3bc3a
Merge branch 'MDL-77729' of https://github.com/timhunt/moodle 2023-03-27 11:09:24 +01:00
Paul Holden
1e22628003
Merge branch 'MDL-77734-master' of https://github.com/ferranrecio/moodle 2023-03-27 10:45:10 +01:00
Sara Arjona
c2793cf824 Merge branch 'MDL-77561-master' of https://github.com/lameze/moodle 2023-03-27 11:43:19 +02:00
Paul Holden
4146329063
MDL-77555 reportbuilder: method to ensure unique parameters in SQL. 2023-03-27 10:29:25 +01:00
Ferran Recio
5cdb09d10c MDL-77734 core_courseformat: add title to bulk duplicate activities 2023-03-27 11:17:55 +02:00
Meirza
a36fcf48a9 MDL-77347 files: Added class properties that are not declared.
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-03-27 15:58:22 +07:00
Meirza
7466712fc2 MDL-77347 mod_feedback: Added missing class properties.
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-03-27 15:58:17 +07:00
Meirza
ace998b8eb MDL-77347 mod_survey: Added missing class properties.
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-03-27 15:58:12 +07:00
Meirza
f34a1296b5 MDL-77347 mod_bigbluebuttonbn: Added missing class properties.
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-03-27 15:58:06 +07:00
Meirza
caddf4dd1d MDL-77347 mod_chat: Added missing class properties.
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-03-27 15:58:01 +07:00
Jun Pataleta
3ecaf6362b MDL-77105 core: Add upgrade.txt notes 2023-03-27 13:58:24 +08:00
Jun Pataleta
6077aae181 MDL-77105 mod_url: Declare filtericon custom data
* Set a custom data `filtericon` when the icon being rendered for the
URL resource is not equal to the default plugin icon.
2023-03-27 13:58:23 +08:00
Jun Pataleta
f10d132bdc MDL-77105 mod_lti: Add 'nofilter' class for custom tool icons
Add a '.nofilter' class when rendering custom tool icons in order
to render them as is and without CSS filter on the activity chooser.
2023-03-27 13:57:07 +08:00
Jun Pataleta
cd4cebdaef MDL-77105 core_course: Add 'nofilter' class for non-monologo icons
When rendering content items, check whether the plugin has monologo
icons. If so, add a 'nofilter' class so the plugin icon can be
rendered as is and without the CSS filter.
2023-03-27 13:56:15 +08:00
Jun Pataleta
97215704d3 MDL-77105 block_timeline: Add 'nofilter' class when necessary
Add the `.nofilter` class for activity icons when the icon URL's
`filtericon` parameter is not set, so they get rendered as they are on
the timeline block.
2023-03-27 13:54:36 +08:00
Jun Pataleta
b78978dac6 MDL-77105 block_recentlyaccesseditems: Add 'nofilter' class
Add the `.nofilter` class for activity icons when the icon URL's
`filtericon` parameter is not set, so they get rendered as they are on
the recently accessed items block.
2023-03-27 13:53:56 +08:00
Jun Pataleta
cf09a7f253 MDL-77105 theme_boost: Add 'nofilter' class when necessary
Add the `.nofilter` class for activity icons when the icon URL's
`filtericon` parameter is not set, so they get rendered as they are on
the context header on the activity page.
2023-03-27 13:32:09 +08:00