104900 Commits

Author SHA1 Message Date
Paul Holden
e5434fac25 MDL-74353 reportbuilder: improvements to report sidebar searching.
* Filter on item textContent instead of dataset, which isn't always
  present;
* Fix hiding of cards when they have no matching items
2022-03-30 21:17:45 +01:00
Paul Holden
7ca314023a MDL-74370 reportbuilder: fix permission check to edit own reports. 2022-03-30 16:26:33 +01:00
Sara Arjona
920946808d MDL-74294 theme: Update boost and classic screenshots
This patch updates the screenshots for boost and classic
themes, displayed in the theme selector.
These images have been created by Mary Cooch.

Co-authored by: Mary Cooch <mary@moodle.com>
2022-03-30 16:59:49 +02:00
Jun Pataleta
23b625340e Merge branch 'MDL-74295' of https://github.com/timhunt/moodle 2022-03-30 19:48:26 +08:00
Laurent David
52fdeaf112 MDL-73197 mod_bigbluebuttonbn: Fix activity join message
* When schedule is assigned to an activity, the Room still shows as ready to be joined, even if the room is still not open.
2022-03-30 13:41:34 +02:00
Ferran Recio
4d5395d27b MDL-74324 contentbank: fix RTL dropdown menu 2022-03-30 12:40:00 +02:00
Víctor Déniz
c32c3e89ef MDL-74367 recentlyaccesseditems: full name in item card tooltip 2022-03-30 11:28:21 +01:00
Ilya Tregubov
67ac38811e Merge branch 'MDL-74245-master' of https://github.com/bmbrands/moodle 2022-03-30 15:10:24 +06:00
Víctor Déniz
c6c99abe7a Merge branch 'MDL-74205-master' of https://github.com/ilyatregubov/moodle 2022-03-30 09:51:50 +01:00
Jun Pataleta
a4d0770b87 Merge branch 'MDL-71801-master' of https://github.com/snake/moodle 2022-03-30 16:14:11 +08:00
Ilya Tregubov
337f727d39 Merge branch 'MDL-74342' of https://github.com/paulholden/moodle 2022-03-30 12:31:23 +06:00
Jun Pataleta
3ec0b7848d Merge branch 'MDL-74231' of https://github.com/stronk7/moodle 2022-03-30 14:28:28 +08:00
Jake Dallimore
6b071a03db Merge branch 'MDL-73105' of https://github.com/paulholden/moodle 2022-03-30 13:54:11 +08:00
Ilya Tregubov
053785ff5f MDL-74205 navigation: Don't show participants link to user if he has no permission. 2022-03-30 10:42:11 +06:00
Jun Pataleta
bf13032bf7 Merge branch 'MDL-73900-master' of https://github.com/vmdef/moodle 2022-03-30 11:08:05 +08:00
Peter Dias
62c086ee72 MDL-74313 badge: Disable secondary navigation in badges 2022-03-30 09:17:53 +08:00
Eloy Lafuente (stronk7)
4e2b4a138d MDL-74231 grader report: Fix case where old settings are empty / null
There is an edge case in the conversion from old collapse/expand
settings (stored as user preference) to the new ones that can lead
to notices / warnings / errors.

Before PHP 8, they weren't being detected, but now they are.

Basically, if some of the expected components of the preferences
are missing, then some array (array_diff(), array_intersect()..)
operations now are failing, because now those parameter functions
do require to be arrays (so empty strings or nulls aren't allowed).

Also, there were some cases where the old preference was not being
removed ever, so its removal has been moved to a common place at
the end of the function, where it's always evaluated in case
the preference still exists but is empty of contents.

I've tried to cover all the cases I've been able to imagine with
unit tests (empty information, some component not set, all components
not set...), have moved it to a new unit test because the one
already performing some tests with those old preferences was
already too long to add more cases.
2022-03-29 23:46:45 +02:00
Eloy Lafuente (stronk7)
7ce003b666 on-demand release 4.0beta+ 2022-03-29 17:54:11 +02:00
Eloy Lafuente (stronk7)
37026d69bd Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2022-03-29 17:54:07 +02:00
Paul Holden
949212ffda MDL-73105 qbank_managecategories: correct category edit URL. 2022-03-29 16:52:26 +01:00
Víctor Déniz
e5d207a518 MDL-73900 recentlyaccesseditems: vertical display in blocks drawer 2022-03-29 11:50:17 +01:00
Paul Holden
dcda9c08e2 MDL-74342 reportbuilder: remove unnecessary template/dataset values. 2022-03-29 09:46:55 +01:00
Jake Dallimore
a1e763e670 MDL-71801 mod_lti: set default keytype value when upgrading tool types
MDL-66920 added this field but didn't set defaults for upgrading tool
types. This patch fixes that for any 1.3 tools which don't yet have a
value for this field.
2022-03-29 14:10:55 +08:00
Jun Pataleta
32f44c3534 Merge branch 'MDL-74291-master' of https://github.com/andrewnicols/moodle 2022-03-29 11:57:06 +08:00
Jun Pataleta
a646e7999e Merge branch 'MDL-74243-master' of https://github.com/dravek/moodle 2022-03-29 11:33:28 +08:00
Andrew Nicols
d3ba4dfb2b Merge branch 'MDL-74117-master' of https://github.com/rezaies/moodle 2022-03-29 11:24:48 +08:00
Jun Pataleta
4aad8fe6a4 Merge branch 'MDL-74110' of https://github.com/paulholden/moodle 2022-03-29 10:51:30 +08:00
Víctor Déniz
ec0e5ee734 Merge branch 'MDL-74321-master' of https://github.com/junpataleta/moodle 2022-03-28 22:37:32 +01:00
Paul Holden
a896ea6473 MDL-74342 reportbuilder: allow audiences to be immediately renamed.
Return rendered editable component in response to form submission
so that the audience card can be updated straight away.
2022-03-28 22:28:03 +01:00
Víctor Déniz
07d4b60341 Merge branch 'MDL-74300-master' of https://github.com/sharidas/moodle 2022-03-28 22:23:37 +01:00
Jun Pataleta
a1e2933590 Merge branch 'MDL-74279' of https://github.com/stronk7/moodle 2022-03-28 23:28:54 +08:00
Jun Pataleta
328bba2743 Merge branch 'MDL-74266-master' of https://github.com/mihailges/moodle 2022-03-28 22:27:41 +08:00
Tim Hunt
d3ef035706 MDL-74295 question bank: add help icons to columns that need it 2022-03-28 09:33:02 +01:00
Andrew Nicols
d5e0a57333 Merge branch 'MDL-74299-master' of https://github.com/ericmerrill/moodle 2022-03-28 15:52:25 +08:00
Shamim Rezaie
8248badec7 MDL-74117 theme_boost: Remove handling of Space and Enter in dropdowns
The custom handling of Space and Enter for dropdowns that was added to
aria.js were not needed in the latests Bootstrap versions. So removed
them. Vanilla Bootstrap emulates click when Space or Enter keys are
pressed on a tab.
2022-03-28 18:19:47 +11:00
Shamim Rezaie
ad19422833 MDL-74117 theme_boost: Only focus the trigger if nothing else is focused 2022-03-28 18:19:47 +11:00
Jun Pataleta
53fc54cce5 Merge branch 'MDL-74257-master' of https://github.com/ferranrecio/moodle 2022-03-28 14:45:14 +08:00
Jun Pataleta
1a6bf2e5ff MDL-74321 mod_forum: Add forum_check_throttling unit tests 2022-03-28 14:39:21 +08:00
Andrew Nicols
4bb0feb176 MDL-73952 course: Revert iscurrent => highlighted rename 2022-03-28 14:37:55 +08:00
Ilya Tregubov
305a25ae53 Merge branch 'MDL-59681-recursive-file' of https://github.com/brendanheywood/moodle 2022-03-28 11:53:50 +06:00
Sujith Haridasan
f2c7f35f78 MDL-74300 core_grades: Fix errors in bulk to gradebook
This change prevents the printing of header when the
moodles page's state is STATE_IN_BODY. Due to the absence
of this check when user entered graded in bulk was causing
errors.
2022-03-28 11:12:40 +05:30
Andrew Nicols
495da02824 MDL-73952 core_course: Rename iscurrent to highlighted
The term 'iscurrent' suggests that something is current, when this may
not be technically true. The term highlight is more appropriate as we
are highlighting content. Whether that content is for the current week
may also be true, but it may be that some course formats allow multiple
sections to be highlighted.
2022-03-28 13:15:12 +08:00
Andrew Nicols
a313795354 Merge branch 'MDL-73952-master' of https://github.com/bmbrands/moodle 2022-03-28 13:09:55 +08:00
Jun Pataleta
86f97c625e MDL-74321 mod_forum: Forum_check_throttling improvements and fixes
* Fetch only the fields required by the function.
* Quick validation of the passed forum parameter. If the forum parameter
is an object, it should have the forum ID and the course ID.
* Default return when there's no need to show a warning yet.
2022-03-28 13:08:47 +08:00
Jun Pataleta
0a77eb4ace MDL-74321 mod_forum: Pass course module to forum_check_throttling() 2022-03-28 10:04:05 +08:00
Jun Pataleta
996534fbea MDL-74321 mod_forum: forum_check_throttling performance improvements
* Return early if the forum's blockafter or blockperiod attributes
are empty.
* If $cm is not passed in forum_check_throttling(), try to fetch it
using get_fast_modinfo() which avoids DB reads. Fetch it via
get_coursemodule_from_instance() as a last resort (though it's unlikely
to happen).
2022-03-28 10:03:57 +08:00
Eloy Lafuente (stronk7)
b7dc12b160 Merge branch 'MDL-72634' of https://github.com/paulholden/moodle 2022-03-27 16:50:29 +02:00
Eloy Lafuente (stronk7)
1c2fd1cfb9 Merge branch 'MDL-74309' of https://github.com/timhunt/moodle 2022-03-27 16:47:08 +02:00
Eloy Lafuente (stronk7)
4344d4b55b Merge branch 'MDL-72958' of https://github.com/timhunt/moodle 2022-03-27 16:43:15 +02:00
Eloy Lafuente (stronk7)
ad2d361db1 Merge branch 'MDL-74306' of https://github.com/paulholden/moodle 2022-03-27 16:04:14 +02:00