moodle.git
4 years agoMerge branch 'MOODLE_310_MDL-70117' of https://github.com/golenkovm/moodle into MOODL...
Adrian Greeve [Thu, 12 Nov 2020 01:27:08 +0000 (09:27 +0800)]
Merge branch 'MOODLE_310_MDL-70117' of https://github.com/golenkovm/moodle into MOODLE_310_STABLE

4 years agoMerge branch 'MDL-65941-310' of https://github.com/snake/moodle into MOODLE_310_STABLE
Eloy Lafuente (stronk7) [Wed, 11 Nov 2020 23:18:39 +0000 (00:18 +0100)]
Merge branch 'MDL-65941-310' of https://github.com/snake/moodle into MOODLE_310_STABLE

4 years agoMerge branch 'MDL-70023-310' of git://github.com/marinaglancy/moodle into MOODLE_310_...
Eloy Lafuente (stronk7) [Wed, 11 Nov 2020 22:57:25 +0000 (23:57 +0100)]
Merge branch 'MDL-70023-310' of git://github.com/marinaglancy/moodle into MOODLE_310_STABLE

4 years agoMerge branch 'MDL-70063-310-1' of git://github.com/mihailges/moodle into MOODLE_310_S...
Sara Arjona [Wed, 11 Nov 2020 15:30:21 +0000 (16:30 +0100)]
Merge branch 'MDL-70063-310-1' of git://github.com/mihailges/moodle into MOODLE_310_STABLE

4 years agoMerge branch 'MDL-70072-310' of git://github.com/rezaies/moodle into MOODLE_310_STABLE
Jun Pataleta [Wed, 11 Nov 2020 14:09:07 +0000 (22:09 +0800)]
Merge branch 'MDL-70072-310' of git://github.com/rezaies/moodle into MOODLE_310_STABLE

4 years agoMDL-70063 block_tag_youtube: Add behat tests
Mihail Geshoski [Wed, 11 Nov 2020 13:02:42 +0000 (21:02 +0800)]
MDL-70063 block_tag_youtube: Add behat tests

4 years agoMDL-70063 block_tag_youtube: Fix category config in existing instances
Mihail Geshoski [Sat, 31 Oct 2020 14:59:52 +0000 (22:59 +0800)]
MDL-70063 block_tag_youtube: Fix category config in existing instances

Upgrade step that fixes the category configuration of existing
tag_youtube block instances.

4 years agoMDL-70063 block_tag_youtube: Update category config to use category ID
Mihail Geshoski [Sat, 31 Oct 2020 14:52:06 +0000 (22:52 +0800)]
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.

4 years agoMerge branch 'MDL-70141-m310' of https://github.com/sammarshallou/moodle into MOODLE_...
Sara Arjona [Wed, 11 Nov 2020 07:39:23 +0000 (08:39 +0100)]
Merge branch 'MDL-70141-m310' of https://github.com/sammarshallou/moodle into MOODLE_310_STABLE

4 years agoMDL-65941 cache: Prevent cache config failure on redis problems.
Michael Aherne [Mon, 17 Jun 2019 11:24:39 +0000 (12:24 +0100)]
MDL-65941 cache: Prevent cache config failure on redis problems.

4 years agoMerge branch 'MDL-69823-310' of git://github.com/jleyva/moodle into MOODLE_310_STABLE
Sara Arjona [Wed, 11 Nov 2020 06:41:31 +0000 (07:41 +0100)]
Merge branch 'MDL-69823-310' of git://github.com/jleyva/moodle into MOODLE_310_STABLE

4 years agoMerge branch 'MDL-70126-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE
Andrew Nicols [Wed, 11 Nov 2020 02:25:04 +0000 (10:25 +0800)]
Merge branch 'MDL-70126-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE

4 years agoMerge branch 'MDL-70065_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE
Andrew Nicols [Wed, 11 Nov 2020 02:10:24 +0000 (10:10 +0800)]
Merge branch 'MDL-70065_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE

4 years agoMDL-70117 dataformat_pdf: Fix content overflow when headers are involved
Mikhail Golenkov [Tue, 10 Nov 2020 23:49:58 +0000 (10:49 +1100)]
MDL-70117 dataformat_pdf: Fix content overflow when headers are involved

4 years agoMDL-69823 qtype: Support core question types
Juan Leyva [Wed, 30 Sep 2020 09:27:29 +0000 (11:27 +0200)]
MDL-69823 qtype: Support core question types

4 years agoMDL-69823 mod_quiz: Return question options via WS
Juan Leyva [Wed, 30 Sep 2020 09:27:05 +0000 (11:27 +0200)]
MDL-69823 mod_quiz: Return question options via WS

4 years agoMerge branch 'MDL-70106-icon-cache-310' of https://github.com/Peterburnett/moodle...
Sara Arjona [Tue, 10 Nov 2020 15:53:37 +0000 (16:53 +0100)]
Merge branch 'MDL-70106-icon-cache-310' of https://github.com/Peterburnett/moodle into MOODLE_310_STABLE

4 years agoMerge branch 'MDL-69930-310' of https://github.com/HuongNV13/moodle into MOODLE_310_S...
Jun Pataleta [Tue, 10 Nov 2020 06:08:57 +0000 (14:08 +0800)]
Merge branch 'MDL-69930-310' of https://github.com/HuongNV13/moodle into MOODLE_310_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

4 years agoMerge branch 'MDL-68349-310' of git://github.com/marinaglancy/moodle into MOODLE_310_...
Jun Pataleta [Tue, 10 Nov 2020 02:14:37 +0000 (10:14 +0800)]
Merge branch 'MDL-68349-310' of git://github.com/marinaglancy/moodle into MOODLE_310_STABLE

4 years agoMerge branch 'MDL-69841-310' of https://github.com/HuongNV13/moodle into MOODLE_310_S...
Jake Dallimore [Tue, 10 Nov 2020 01:33:06 +0000 (09:33 +0800)]
Merge branch 'MDL-69841-310' of https://github.com/HuongNV13/moodle into MOODLE_310_STABLE

4 years agoMerge branch 'MDL-69955-310' of https://github.com/HuongNV13/moodle into MOODLE_310_S...
Víctor Déniz [Mon, 9 Nov 2020 21:47:22 +0000 (21:47 +0000)]
Merge branch 'MDL-69955-310' of https://github.com/HuongNV13/moodle into MOODLE_310_STABLE

4 years agoMDL-70126 tag: correct thrown exception class name.
Paul Holden [Thu, 5 Nov 2020 19:48:29 +0000 (19:48 +0000)]
MDL-70126 tag: correct thrown exception class name.

4 years agoMerge branch 'MDL-70146_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE
Andrew Nicols [Mon, 9 Nov 2020 02:01:19 +0000 (10:01 +0800)]
Merge branch 'MDL-70146_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE

4 years agoMDL-70146 upgrade: add 3.10.0 separation line to all upgrade scripts
Eloy Lafuente (stronk7) [Sat, 7 Nov 2020 22:26:09 +0000 (23:26 +0100)]
MDL-70146 upgrade: add 3.10.0 separation line to all upgrade scripts

4 years agoMoodle release 3.10 v3.10.0
Eloy Lafuente (stronk7) [Sat, 7 Nov 2020 16:24:12 +0000 (17:24 +0100)]
Moodle release 3.10

4 years agoMoodle release 3.10rc2 v3.10.0-rc2
Eloy Lafuente (stronk7) [Fri, 6 Nov 2020 21:56:08 +0000 (22:56 +0100)]
Moodle release 3.10rc2

4 years agoMerge branch 'MDL-70137-310-2' of git://github.com/andrewnicols/moodle into MOODLE_31...
Víctor Déniz [Fri, 6 Nov 2020 19:16:15 +0000 (19:16 +0000)]
Merge branch 'MDL-70137-310-2' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE

4 years agoMDL-70137 cache: Write config to temp file and move into place
Andrew Nicols [Fri, 6 Nov 2020 07:07:57 +0000 (15:07 +0800)]
MDL-70137 cache: Write config to temp file and move into place

4 years agoMDL-70137 cache: Use sensible default when reading MUC config
Andrew Nicols [Fri, 6 Nov 2020 07:27:46 +0000 (15:27 +0800)]
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.

4 years agoMerge branch 'MDL-70143-310' of git://github.com/marinaglancy/moodle into MOODLE_310_...
Eloy Lafuente (stronk7) [Fri, 6 Nov 2020 18:51:54 +0000 (19:51 +0100)]
Merge branch 'MDL-70143-310' of git://github.com/marinaglancy/moodle into MOODLE_310_STABLE

4 years agoMerge branch 'MDL-70139-310' of git://github.com/sarjona/moodle into MOODLE_310_STABLE
Eloy Lafuente (stronk7) [Fri, 6 Nov 2020 17:56:00 +0000 (18:56 +0100)]
Merge branch 'MDL-70139-310' of git://github.com/sarjona/moodle into MOODLE_310_STABLE

4 years agoMDL-70141 core_block: Web service set $PAGE url to avoid warnings
sam marshall [Fri, 6 Nov 2020 17:37:06 +0000 (17:37 +0000)]
MDL-70141 core_block: Web service set $PAGE url to avoid warnings

4 years agoMDL-70143 tool_uploaduser: fix wrong cache reference
Marina Glancy [Fri, 6 Nov 2020 17:07:24 +0000 (18:07 +0100)]
MDL-70143 tool_uploaduser: fix wrong cache reference

4 years agoMDL-70139 core_badges: fix invalid request when sending to backpack
Sara Arjona [Fri, 6 Nov 2020 14:15:45 +0000 (15:15 +0100)]
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.

4 years agoMDL-70072 core: Fix always displaying date in Gregorian
Shamim Rezaie [Fri, 6 Nov 2020 08:21:17 +0000 (19:21 +1100)]
MDL-70072 core: Fix always displaying date in Gregorian

4 years agoMerge branch 'MDL-70130-310' of git://github.com/andrewnicols/moodle into MOODLE_310_...
Jun Pataleta [Fri, 6 Nov 2020 03:27:54 +0000 (11:27 +0800)]
Merge branch 'MDL-70130-310' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE

4 years agoMDL-70130 core: Compare realpaths for file attachment checks
Andrew Nicols [Fri, 6 Nov 2020 02:46:02 +0000 (10:46 +0800)]
MDL-70130 core: Compare realpaths for file attachment checks

Rather than using the provided path, the `realpath` must be used to
ensure that the use of symlinks in paths is normalised.

4 years agoMDL-70130 core: Simplify attachment handling in email_to_suer
Andrew Nicols [Fri, 6 Nov 2020 02:50:56 +0000 (10:50 +0800)]
MDL-70130 core: Simplify attachment handling in email_to_suer

4 years agoMDL-70130 core: allow to attach files from localrequestdir to emails
Marina Glancy [Thu, 5 Nov 2020 16:01:54 +0000 (17:01 +0100)]
MDL-70130 core: allow to attach files from localrequestdir to emails

Co-authored-by: Paul Holden <paulh@moodle.com>
4 years agoMerge branch 'MDL-70131-310' of git://github.com/marinaglancy/moodle into MOODLE_310_...
Andrew Nicols [Fri, 6 Nov 2020 01:27:33 +0000 (09:27 +0800)]
Merge branch 'MDL-70131-310' of git://github.com/marinaglancy/moodle into MOODLE_310_STABLE

4 years agoMerge branch 'MDL-70120-assign-stamp-expires-MOODLE_310_STABLE' of https://github...
Andrew Nicols [Fri, 6 Nov 2020 01:26:01 +0000 (09:26 +0800)]
Merge branch 'MDL-70120-assign-stamp-expires-MOODLE_310_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_310_STABLE

4 years agoMDL-70131 cli: only allow to negate existing keys
Marina Glancy [Thu, 5 Nov 2020 17:10:13 +0000 (18:10 +0100)]
MDL-70131 cli: only allow to negate existing keys

4 years agoMoodle release 3.10rc1 v3.10.0-rc1
Eloy Lafuente (stronk7) [Thu, 5 Nov 2020 11:16:53 +0000 (12:16 +0100)]
Moodle release 3.10rc1

4 years agoMDL-70023 core_course: improve performance of recently accessed courses
Marina Glancy [Mon, 26 Oct 2020 11:23:23 +0000 (12:23 +0100)]
MDL-70023 core_course: improve performance of recently accessed courses

4 years agoMerge branch 'MDL-70075-310-2' of git://github.com/andrewnicols/moodle into MOODLE_31...
Jun Pataleta [Thu, 5 Nov 2020 04:51:23 +0000 (12:51 +0800)]
Merge branch 'MDL-70075-310-2' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE

4 years agoMerge branch 'MDL-70066-310' of git://github.com/lameze/moodle into MOODLE_310_STABLE
Andrew Nicols [Thu, 5 Nov 2020 02:01:18 +0000 (10:01 +0800)]
Merge branch 'MDL-70066-310' of git://github.com/lameze/moodle into MOODLE_310_STABLE

4 years agoMDL-70075 core: Autocomplete selection should always have an active item
Andrew Nicols [Wed, 4 Nov 2020 03:24:04 +0000 (11:24 +0800)]
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.

4 years agoMDL-70075 core: Do not return a value in an event handler
Andrew Nicols [Mon, 2 Nov 2020 07:42:38 +0000 (15:42 +0800)]
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.

4 years agoMDL-70075 core: jQuery.attr() does not accept a bool value
Andrew Nicols [Mon, 2 Nov 2020 07:42:13 +0000 (15:42 +0800)]
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.

4 years agoMDL-70075 core: Listen for `change` in accessibleChange event
Andrew Nicols [Mon, 2 Nov 2020 01:33:05 +0000 (09:33 +0800)]
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.

4 years agoMDL-70075 core: Listen for the `focus` and `blur` events again
Andrew Nicols [Mon, 2 Nov 2020 00:12:22 +0000 (08:12 +0800)]
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.

4 years agoMerge branch 'MDL-70100-310' of git://github.com/bmbrands/moodle into MOODLE_310_STABLE
Eloy Lafuente (stronk7) [Wed, 4 Nov 2020 21:40:54 +0000 (22:40 +0100)]
Merge branch 'MDL-70100-310' of git://github.com/bmbrands/moodle into MOODLE_310_STABLE

4 years agoMerge branch 'MDL-70112_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE
Víctor Déniz [Wed, 4 Nov 2020 19:17:34 +0000 (19:17 +0000)]
Merge branch 'MDL-70112_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE

4 years agoMerge branch 'MDL-70114-310' of git://github.com/bmbrands/moodle into MOODLE_310_STABLE
Sara Arjona [Wed, 4 Nov 2020 19:15:04 +0000 (20:15 +0100)]
Merge branch 'MDL-70114-310' of git://github.com/bmbrands/moodle into MOODLE_310_STABLE

4 years agoMerge branch 'MDL-68749-310-2' of git://github.com/mickhawkins/moodle into MOODLE_310...
Víctor Déniz [Wed, 4 Nov 2020 15:24:08 +0000 (15:24 +0000)]
Merge branch 'MDL-68749-310-2' of git://github.com/mickhawkins/moodle into MOODLE_310_STABLE

4 years agoMerge branch 'MDL-70119-310' of git://github.com/ferranrecio/moodle into MOODLE_310_S...
Sara Arjona [Wed, 4 Nov 2020 14:19:44 +0000 (15:19 +0100)]
Merge branch 'MDL-70119-310' of git://github.com/ferranrecio/moodle into MOODLE_310_STABLE

4 years agoMDL-70114 mod_data: add border for to textarea
Bas Brands [Wed, 4 Nov 2020 13:21:57 +0000 (13:21 +0000)]
MDL-70114 mod_data: add border for to textarea

4 years agoMDL-70120 assignfeedback_editpdf: Stamp files should be cached
Brendan Heywood [Wed, 4 Nov 2020 11:42:21 +0000 (22:42 +1100)]
MDL-70120 assignfeedback_editpdf: Stamp files should be cached

4 years agoMDL-70119 core_badges: fix tab names
Ferran Recio [Wed, 4 Nov 2020 11:48:09 +0000 (12:48 +0100)]
MDL-70119 core_badges: fix tab names

4 years agoMDL-70066 badges: change usages of array_key_exists to isset
Simey Lameze [Thu, 29 Oct 2020 23:17:43 +0000 (07:17 +0800)]
MDL-70066 badges: change usages of array_key_exists to isset

4 years agoMerge branch 'MDL-70089_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE
Jun Pataleta [Wed, 4 Nov 2020 05:05:47 +0000 (13:05 +0800)]
Merge branch 'MDL-70089_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE

4 years agoMDL-70106 cache: Set icon localstorage cache to use theme localisation
Peter Burnett [Tue, 3 Nov 2020 00:59:21 +0000 (10:59 +1000)]
MDL-70106 cache: Set icon localstorage cache to use theme localisation

4 years agoMDL-69955 qtype_ddimageortext: drop zone disappear in special case
Huong Nguyen [Mon, 2 Nov 2020 02:54:22 +0000 (09:54 +0700)]
MDL-69955 qtype_ddimageortext: drop zone disappear in special case

4 years agoMerge branch 'MOODLE_310_MDL-70093' of https://github.com/golenkovm/moodle into MOODL...
Jake Dallimore [Wed, 4 Nov 2020 01:00:26 +0000 (09:00 +0800)]
Merge branch 'MOODLE_310_MDL-70093' of https://github.com/golenkovm/moodle into MOODLE_310_STABLE

4 years agoMDL-70112 drag-drop qtypes: fix form preview
Tim Hunt [Tue, 3 Nov 2020 21:25:51 +0000 (21:25 +0000)]
MDL-70112 drag-drop qtypes: fix form preview

4 years agoMDL-70089 versions: main version bump
Eloy Lafuente (stronk7) [Tue, 3 Nov 2020 18:38:27 +0000 (19:38 +0100)]
MDL-70089 versions: main version bump

4 years agoMDL-70089 versions: bump all versions and requires near release
Eloy Lafuente (stronk7) [Tue, 3 Nov 2020 18:34:52 +0000 (19:34 +0100)]
MDL-70089 versions: bump all versions and requires near release

version = 2020110900 release version
requires= 2020110300 current beta+ (week6roll1) version

Note that, because we are under parallel development period,
this is being done in the branch that is going to be released
(MOODLE_310_STABLE already existing) for Moodle 3.10.0 and
not in master, that is the one getting the bump under normal
(non-parallel) periods.

4 years agoMDL-67837 backup: Add unit tests
Mihail Geshoski [Tue, 22 Sep 2020 08:09:59 +0000 (16:09 +0800)]
MDL-67837 backup: Add unit tests

4 years agoMDL-67837 backup: Verify caps before unenrolling users on course restore
Mihail Geshoski [Tue, 22 Sep 2020 08:09:35 +0000 (16:09 +0800)]
MDL-67837 backup: Verify caps before unenrolling users on course restore

4 years agoMDL-69844 user: Fix no email in download_participants_table
andreasschenkel [Mon, 12 Oct 2020 09:06:12 +0000 (11:06 +0200)]
MDL-69844 user: Fix no email in download_participants_table

Only include eMail in download_participants_table
if selected in showuseridentity
($identityfieldsselect)

4 years agoMDL-67015 mod_data: Prevent users adding entries to other groups
Juan Leyva [Mon, 28 Sep 2020 16:55:25 +0000 (18:55 +0200)]
MDL-67015 mod_data: Prevent users adding entries to other groups

4 years agoMDL-69046 core_contentbank: Escape quotes when showing name
Amaia Anabitarte [Tue, 15 Sep 2020 13:55:37 +0000 (15:55 +0200)]
MDL-69046 core_contentbank: Escape quotes when showing name

4 years agoMDL-69378 tool_uploadcourse: fix enrolment methods uploads
Ferran Recio [Wed, 19 Aug 2020 16:16:46 +0000 (18:16 +0200)]
MDL-69378 tool_uploadcourse: fix enrolment methods uploads

4 years agoMDL-56310 restore: Confirm user has permission to change capabilities
Peter Dias [Wed, 9 Sep 2020 05:50:21 +0000 (13:50 +0800)]
MDL-56310 restore: Confirm user has permission to change capabilities

4 years agoon-demand release 3.10beta+
Eloy Lafuente (stronk7) [Tue, 3 Nov 2020 11:23:48 +0000 (12:23 +0100)]
on-demand release 3.10beta+

4 years agoMDL-70100 theme_boost: quiztimer zindex fix
Bas Brands [Mon, 2 Nov 2020 11:29:23 +0000 (11:29 +0000)]
MDL-70100 theme_boost: quiztimer zindex fix

4 years agoMDL-68749 theme: Fix bootstrap toggle switches in RTL layout
Michael Hawkins [Tue, 3 Nov 2020 06:47:58 +0000 (14:47 +0800)]
MDL-68749 theme: Fix bootstrap toggle switches in RTL layout

Co-authored-by: Bas Brands <bas@moodle.com>
4 years agoMerge branch 'MDL-70059-310' of git://github.com/sarjona/moodle into MOODLE_310_STABLE
Andrew Nicols [Tue, 3 Nov 2020 04:05:19 +0000 (12:05 +0800)]
Merge branch 'MDL-70059-310' of git://github.com/sarjona/moodle into MOODLE_310_STABLE

4 years agoMerge branch 'MDL-70033-310-2' of git://github.com/mickhawkins/moodle into MOODLE_310...
Jun Pataleta [Tue, 3 Nov 2020 04:01:33 +0000 (12:01 +0800)]
Merge branch 'MDL-70033-310-2' of git://github.com/mickhawkins/moodle into MOODLE_310_STABLE

4 years agoMDL-70033 course: Update download content event handling for Classic
Michael Hawkins [Tue, 27 Oct 2020 10:51:28 +0000 (18:51 +0800)]
MDL-70033 course: Update download content event handling for Classic

4 years agoMDL-70033 core: Update tree.js event handlers to replace stopPropagation
Michael Hawkins [Tue, 27 Oct 2020 10:47:01 +0000 (18:47 +0800)]
MDL-70033 core: Update tree.js event handlers to replace stopPropagation

Also added support to allow links to override action keys (enter/space)

Co-authored-by: Andrew Nicols <andrew@nicols.co.uk>
4 years agoMDL-70081 airnotifier: Add missing device type in token registration
Juan Leyva [Sat, 31 Oct 2020 12:07:30 +0000 (13:07 +0100)]
MDL-70081 airnotifier: Add missing device type in token registration

4 years agoMerge branch 'MDL-69975_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE
Jun Pataleta [Mon, 2 Nov 2020 16:00:25 +0000 (00:00 +0800)]
Merge branch 'MDL-69975_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE

4 years agoMerge branch 'MDL-69973_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE
Sara Arjona [Mon, 2 Nov 2020 14:44:54 +0000 (15:44 +0100)]
Merge branch 'MDL-69973_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE

4 years agoMDL-70093 dataformat_pdf: Fix row height calculation with high cells
Mikhail Golenkov [Mon, 2 Nov 2020 03:46:17 +0000 (14:46 +1100)]
MDL-70093 dataformat_pdf: Fix row height calculation with high cells

4 years agoMDL-70059 core_badges: avoid duplicate key error
Sara Arjona [Thu, 29 Oct 2020 17:25:16 +0000 (18:25 +0100)]
MDL-70059 core_badges: avoid duplicate key error

When 2 or more backpack were created without credentials,
a "Duplicate key value violates unique constraint" error
was raised because externalbackpackid was not taking the
correct value.
Other improvements have been done to the code too in order
to make it more readable.

4 years agoMerge branch 'MDL-70073-310' of git://github.com/peterRd/moodle into MOODLE_310_STABLE
Jake Dallimore [Mon, 2 Nov 2020 05:57:35 +0000 (13:57 +0800)]
Merge branch 'MDL-70073-310' of git://github.com/peterRd/moodle into MOODLE_310_STABLE

4 years agoMerge branch 'MDL-70074-add-authendpoint-310' of https://github.com/cengage/moodle...
Jun Pataleta [Mon, 2 Nov 2020 02:04:31 +0000 (10:04 +0800)]
Merge branch 'MDL-70074-add-authendpoint-310' of https://github.com/cengage/moodle into MOODLE_310_STABLE

4 years agoMDL-70073 badges: Fix the backpack-add to match current master
Peter Dias [Sun, 1 Nov 2020 14:33:28 +0000 (22:33 +0800)]
MDL-70073 badges: Fix the backpack-add to match current master

4 years agoMDL-69975 core: Fix paths longer than 260 chars on windows
Brendan Heywood [Wed, 28 Oct 2020 05:08:11 +0000 (16:08 +1100)]
MDL-69975 core: Fix paths longer than 260 chars on windows

Also, ensure that remove_dir() only processes directories,
because sometimes it was being called by shutdown managers
with files, leading to PHP warnings.

Co-authored-by: Eloy Lafuente (stronk7) <stronk7@moodle.org>
Co-authored-by: Jun Pataleta <jun@moodle.com>
4 years agoMDL-70074 mod_lti: add authorization_endpoint
Claude Vervoort [Fri, 30 Oct 2020 19:57:15 +0000 (15:57 -0400)]
MDL-70074 mod_lti: add authorization_endpoint

4 years agoMDL-69973 xmldb: Ensure all reports use fresh metadata (not cached)
Eloy Lafuente (stronk7) [Sun, 18 Oct 2020 09:59:59 +0000 (11:59 +0200)]
MDL-69973 xmldb: Ensure all reports use fresh metadata (not cached)

4 years agoMDL-69973 xmldb: Fix problem with MariaDB >= 10.2.7 metadata defaults
Eloy Lafuente (stronk7) [Sun, 18 Oct 2020 09:53:37 +0000 (11:53 +0200)]
MDL-69973 xmldb: Fix problem with MariaDB >= 10.2.7 metadata defaults

With MariaDB 10.2.7 the driver was incorrectly returning '' (empty
string) as default for all the columns having null (meaning, no
default).

Also, cover the case in unit tests, it seems that we were already
testing other defaults but not the null case.

4 years agoMDL-68349 auth_db: user_created event should be triggered later
Marina Glancy [Mon, 6 Apr 2020 10:36:09 +0000 (12:36 +0200)]
MDL-68349 auth_db: user_created event should be triggered later

4 years agoon-demand release 3.10beta+
Eloy Lafuente (stronk7) [Fri, 30 Oct 2020 12:49:20 +0000 (13:49 +0100)]
on-demand release 3.10beta+

4 years agoMerge branch 'MDL-68167-310' of git://github.com/rezaies/moodle into MOODLE_310_STABLE
Jun Pataleta [Fri, 30 Oct 2020 05:16:55 +0000 (13:16 +0800)]
Merge branch 'MDL-68167-310' of git://github.com/rezaies/moodle into MOODLE_310_STABLE

4 years agoMDL-68167 lib: autocomplete focos should not be removed on blur
Shamim Rezaie [Thu, 29 Oct 2020 15:54:38 +0000 (02:54 +1100)]
MDL-68167 lib: autocomplete focos should not be removed on blur

See https://www.w3.org/TR/wai-aria-practices-1.1/examples/listbox/listbox-rearrangeable.html

4 years agoMDL-68167 lib: Do not set aria-expanded if it should not be set
Shamim Rezaie [Thu, 29 Oct 2020 17:59:40 +0000 (04:59 +1100)]
MDL-68167 lib: Do not set aria-expanded if it should not be set

4 years agoMDL-68167 user: Fix missing label for participants filter input fields
Shamim Rezaie [Thu, 29 Oct 2020 17:51:08 +0000 (04:51 +1100)]
MDL-68167 user: Fix missing label for participants filter input fields

4 years agoMDL-68167 lib: Clear single-select autocomplete elements with keyboard
Shamim Rezaie [Thu, 29 Oct 2020 13:39:05 +0000 (00:39 +1100)]
MDL-68167 lib: Clear single-select autocomplete elements with keyboard

Following MDL-57680, it should be possible to clear the selected option
using keyboard as well.