Commit graph

99172 commits

Author SHA1 Message Date
Jun Pataleta
896c962160 Merge branch 'MDL-68257-M39' of https://github.com/ised-isde-canada/moodle into MOODLE_39_STABLE 2020-11-11 22:12:53 +08:00
Jun Pataleta
1178406516 Merge branch 'MDL-70072-39' of git://github.com/rezaies/moodle into MOODLE_39_STABLE 2020-11-11 22:09:21 +08:00
Mihail Geshoski
409f92b75d MDL-70063 block_tag_youtube: Add behat tests 2020-11-11 21:49:38 +08:00
Mihail Geshoski
6ea0b003d7 MDL-70063 block_tag_youtube: Fix category config in existing instances
Upgrade step that fixes the category configuration of existing
tag_youtube block instances.
2020-11-11 21:49:38 +08:00
Mihail Geshoski
918b60d700 MDL-70063 block_tag_youtube: Update category config to use category ID
In YouTube Data API v3, the API call to fetch the videos related to a
certain category expects the category ID to be passed to the
videoCategoryId parameter, instead of the category name. Therefore, the
category config should store the category ID.
2020-11-11 21:49:37 +08:00
Bas Brands
b997786180 MDL-69453 core_form: improve form UI icons and alignment 2020-11-11 14:05:00 +01:00
Sara Arjona
3e8447fe9a Merge branch 'MDL-70141-m39' of https://github.com/sammarshallou/moodle into MOODLE_39_STABLE 2020-11-11 08:39:37 +01:00
Michael Aherne
28a1f0943d MDL-65941 cache: Prevent cache config failure on redis problems. 2020-11-11 14:50:43 +08:00
Andrew Nicols
7a2d0fb5dc Merge branch 'MDL-70126-39' of git://github.com/paulholden/moodle into MOODLE_39_STABLE 2020-11-11 10:26:14 +08:00
Andrew Nicols
28de3d7db9 Merge branch 'MDL-70065_39' of https://github.com/timhunt/moodle into MOODLE_39_STABLE 2020-11-11 10:10:45 +08:00
AMOS bot
9fa04e3f2e Automatically generated installer lang files 2020-11-11 00:07:45 +00:00
Mikhail Golenkov
1d41237ae8 MDL-70117 dataformat_pdf: Fix content overflow when headers are involved 2020-11-11 10:53:20 +11:00
Sara Arjona
b0a9faf1c6 Merge branch 'MDL-70106-icon-cache-39' of https://github.com/Peterburnett/moodle into MOODLE_39_STABLE 2020-11-10 16:53:46 +01:00
Peter Burnett
e9961085eb MDL-70160 cache: plugin_functions checks for function_exists() 2020-11-10 16:04:49 +10:00
Jun Pataleta
766376261a Merge branch 'MDL-69930-39' of https://github.com/HuongNV13/moodle into MOODLE_39_STABLE
# Conflicts:
#	question/type/ddimageortext/amd/build/question.min.js
#	question/type/ddimageortext/amd/build/question.min.js.map
#	question/type/ddimageortext/amd/src/question.js
2020-11-10 14:03:19 +08:00
Jun Pataleta
8e2e459daa Merge branch 'MDL-68349-39' of git://github.com/marinaglancy/moodle into MOODLE_39_STABLE 2020-11-10 10:14:28 +08:00
Jake Dallimore
fedd703ce1 Merge branch 'MDL-69841-39' of https://github.com/HuongNV13/moodle into MOODLE_39_STABLE 2020-11-10 09:33:47 +08:00
Víctor Déniz
a1216eb05b Merge branch 'MDL-69955-39' of https://github.com/HuongNV13/moodle into MOODLE_39_STABLE 2020-11-09 21:47:45 +00:00
Paul Holden
e49e58a924 MDL-69201 core: consistent table primary sort column/order. 2020-11-09 19:45:28 +00:00
Paul Holden
97a03ba74d MDL-70126 tag: correct thrown exception class name. 2020-11-09 19:43:31 +00:00
Neill Magill
ba43374d96 MDL-67513 forum: Test that discussions can be viewed while grading 2020-11-09 14:26:21 +00:00
AMOS bot
09d078c3b8 Automatically generated installer lang files 2020-11-09 00:07:54 +00:00
Eloy Lafuente (stronk7)
a8e089a8c8 Moodle release 3.9.3 2020-11-07 16:48:07 +01:00
AMOS bot
3e8043f3f4 Automatically generated installer lang files 2020-11-07 00:07:48 +00:00
Eloy Lafuente (stronk7)
70f695d068 weekly release 3.9.2+ 2020-11-06 22:55:50 +01:00
Eloy Lafuente (stronk7)
e83cad80b1 Merge branch 'install_39_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_39_STABLE 2020-11-06 22:55:47 +01:00
Víctor Déniz
d727c1eafd Merge branch 'MDL-70137-39-2' of git://github.com/andrewnicols/moodle into MOODLE_39_STABLE 2020-11-06 19:17:44 +00:00
Andrew Nicols
463b232453 MDL-70137 cache: Write config to temp file and move into place 2020-11-06 19:17:43 +00:00
Andrew Nicols
02a8be1f80 MDL-70137 cache: Use sensible default when reading MUC config
When we read the MUC configuration, a file which exists but is empty
will not error, but will cause all configuration to be empty.

We already perform an {{is_array()}} check on the {{$configuration}}
variable, but the default value for {{$configuration}} is an empty
array. In the case where the file exists, but is empty, no errors occur
when the file is loaded, and the initial {{$configuration}} value is
not overwritten, leading to the file being replaced with an empty copy.
2020-11-06 19:17:34 +00:00
Eloy Lafuente (stronk7)
7bc714ac09 Merge branch 'MDL-70139-39' of git://github.com/sarjona/moodle into MOODLE_39_STABLE 2020-11-06 19:24:40 +01:00
sam marshall
3accc543ec MDL-70141 core_block: Web service set $PAGE url to avoid warnings 2020-11-06 17:40:02 +00:00
Sara Arjona
481c57cabe MDL-70139 core_badges: fix invalid request when sending to backpack
Having mixed $data in badge exporters is causing some issues.
As all these exporters are using $data as an object, $data can be
converted to object in the constructor, to avoid errors and get
the expected behaviour always.
2020-11-06 16:21:34 +01:00
Shamim Rezaie
c0256a7351 MDL-70072 core: Fix always displaying date in Gregorian 2020-11-06 19:23:22 +11:00
AMOS bot
f8287cb170 Automatically generated installer lang files 2020-11-06 00:09:55 +00:00
Eloy Lafuente (stronk7)
621cd70b4c weekly release 3.9.2+ 2020-11-05 12:16:29 +01:00
Marina Glancy
7e2acbfb55 MDL-70023 core_course: improve performance of recently accessed courses 2020-11-05 09:54:54 +01:00
Jun Pataleta
c87ccd3111 Merge branch 'MDL-70075-39-2' of git://github.com/andrewnicols/moodle into MOODLE_39_STABLE 2020-11-05 12:45:24 +08:00
Andrew Nicols
06be826b2e Merge branch 'MDL-70066-39' of git://github.com/lameze/moodle into MOODLE_39_STABLE 2020-11-05 10:09:48 +08:00
Simey Lameze
06a4390060 MDL-70066 badges: change usages of array_key_exists to isset 2020-11-05 10:06:39 +08:00
Andrew Nicols
126cbbff7c MDL-70075 core: Autocomplete selection should always have an active item
Ensure that there is always one active element in the list of selected
autocomplete elements.

Without this we have issues beacuse clicking on the link makes the first
one active if one is not already active, and this turns a click event
into a drag event, which means that it is not deleted.
2020-11-05 09:05:40 +08:00
Sara Arjona
f252b08433 Merge branch 'MDL-70114-39' of git://github.com/bmbrands/moodle into MOODLE_39_STABLE 2020-11-04 20:15:21 +01:00
Víctor Déniz
fae048b402 Merge branch 'MDL-68749-39-2' of git://github.com/mickhawkins/moodle into MOODLE_39_STABLE 2020-11-04 15:24:23 +00:00
Sara Arjona
0408008fbe Merge branch 'MDL-70119-39' of git://github.com/ferranrecio/moodle into MOODLE_39_STABLE 2020-11-04 15:20:03 +01:00
Bas Brands
0ff5242a3c MDL-70114 mod_data: add border for to textarea 2020-11-04 13:30:19 +00:00
Ferran Recio
2488fe37ca MDL-70119 core_badges: fix tab names 2020-11-04 12:57:24 +01:00
Andrew Nicols
4edad07619 MDL-70075 core: Do not return a value in an event handler
Returning a value of `false` in an event handler has the effect of
calling event.preventDefault() and event.stopPropagation().

This is neither obvious, nor desirable in this situation.
2020-11-04 15:09:57 +08:00
Andrew Nicols
6cdcee7a65 MDL-70075 core: jQuery.attr() does not accept a bool value
The documented values that jQuery.attr() accepts are String, Number, or
null. For some reason, when we pass a Boolean value, the subsequent
click handler does not work in some situations.

Changing this to take a Number, and unsetting it when empty, resolves
this issue.
2020-11-04 15:09:49 +08:00
Andrew Nicols
28fbba8b3c MDL-70075 core: Listen for change in accessibleChange event
The accessibleChange custom interaction event was only listening for
blur and focus, however some OS/browser combinations do not emit these
events until the element is explicitly blurred. This is notably
different on Firefox on some Operating Systems.

Recent changes in MDL-68167 explicitly moved the user participants page
filter module to use the accessibleChange event, which means that the
selections are now only triggered on an explicit blur when using
Firefox. This highlight a bug whereby, when the mouse is used to make a
selection, the event is not triggered until the element is blurred.

This change modifies the accessibleChange event to ignore the `change`
event where it was triggered by the keyboard and where that keybaord
event was not a [return] or [escape] keypress, but to otherwise respect
the native change event.
2020-11-04 15:09:35 +08:00
Andrew Nicols
90fde2b40d MDL-70075 core: Listen for the focus and blur events again
The `blur` event does not bubble, but the `focusout` events are not
available in all supported versions of Firefox.

Rather than switching event, this patch using event capture to
effectively achieve the same result and bubble the event up through the
DOM to the delegated listener.

There should be no functional change with this patch, except to support
Firefox fully.
2020-11-04 15:09:35 +08:00
Peter Burnett
d8bfd5b747 MDL-70106 cache: Set icon localstorage cache to use theme localisation 2020-11-04 13:36:14 +10:00