moodle.git
2 years agoMerge branch 'MDL-66858' of https://github.com/stronk7/moodle
Eloy Lafuente (stronk7) [Wed, 22 Jan 2020 00:57:18 +0000 (01:57 +0100)]
Merge branch 'MDL-66858' of https://github.com/stronk7/moodle

2 years agoMDL-66858 master: Enable <header> tags in Atto editor.
Michael Milette [Mon, 13 Jan 2020 21:19:31 +0000 (16:19 -0500)]
MDL-66858 master: Enable <header> tags in Atto editor.

(amended to add the src/editor/js/clean.js
file that was originally missing)

2 years agoMerge branch 'MDL-51225-master' of git://github.com/junpataleta/moodle
Eloy Lafuente (stronk7) [Tue, 21 Jan 2020 22:33:19 +0000 (23:33 +0100)]
Merge branch 'MDL-51225-master' of git://github.com/junpataleta/moodle

2 years agoMerge branch 'MDL-66237-master' of git://github.com/mickhawkins/moodle
Adrian Greeve [Tue, 21 Jan 2020 03:08:27 +0000 (11:08 +0800)]
Merge branch 'MDL-66237-master' of git://github.com/mickhawkins/moodle

2 years agoMerge branch 'MDL-66108' of https://github.com/paulholden/moodle
Jun Pataleta [Tue, 21 Jan 2020 01:51:24 +0000 (09:51 +0800)]
Merge branch 'MDL-66108' of https://github.com/paulholden/moodle

2 years agoMerge branch 'MDL-66024' of https://github.com/paulholden/moodle
Eloy Lafuente (stronk7) [Mon, 20 Jan 2020 21:47:17 +0000 (22:47 +0100)]
Merge branch 'MDL-66024' of https://github.com/paulholden/moodle

2 years agoMerge branch 'MDL-66220-master' of git://github.com/junpataleta/moodle
Eloy Lafuente (stronk7) [Mon, 20 Jan 2020 21:33:45 +0000 (22:33 +0100)]
Merge branch 'MDL-66220-master' of git://github.com/junpataleta/moodle

2 years agoMerge branch 'MDL-66712-master-selfautounenrol' of git://github.com/mudrd8mz/moodle
Eloy Lafuente (stronk7) [Mon, 20 Jan 2020 21:27:20 +0000 (22:27 +0100)]
Merge branch 'MDL-66712-master-selfautounenrol' of git://github.com/mudrd8mz/moodle

2 years agoMerge branch 'MDL-65884' of https://github.com/paulholden/moodle
Eloy Lafuente (stronk7) [Mon, 20 Jan 2020 19:13:29 +0000 (20:13 +0100)]
Merge branch 'MDL-65884' of https://github.com/paulholden/moodle

2 years agoMerge branch 'MDL-67724-master' of git://github.com/junpataleta/moodle
Eloy Lafuente (stronk7) [Mon, 20 Jan 2020 09:53:18 +0000 (10:53 +0100)]
Merge branch 'MDL-67724-master' of git://github.com/junpataleta/moodle

2 years agoMerge branch 'MDL-66883-master' of git://github.com/bmbrands/moodle
Jun Pataleta [Mon, 20 Jan 2020 08:36:40 +0000 (16:36 +0800)]
Merge branch 'MDL-66883-master' of git://github.com/bmbrands/moodle

2 years agoMerge branch 'MDL-67245' of https://github.com/paulholden/moodle
Sara Arjona [Mon, 20 Jan 2020 07:18:49 +0000 (08:18 +0100)]
Merge branch 'MDL-67245' of https://github.com/paulholden/moodle

2 years agoMDL-67312 core_user: clean subs events on user deletion
Simey Lameze [Thu, 21 Nov 2019 10:36:05 +0000 (18:36 +0800)]
MDL-67312 core_user: clean subs events on user deletion

2 years agoMDL-67312 calendar: upgrade step to delete orphaned events
Simey Lameze [Thu, 21 Nov 2019 00:36:22 +0000 (08:36 +0800)]
MDL-67312 calendar: upgrade step to delete orphaned events

2 years agoMDL-67312 core: change db upgrade step to use get_fieldset_sql
Simey Lameze [Mon, 25 Nov 2019 12:23:05 +0000 (20:23 +0800)]
MDL-67312 core: change db upgrade step to use get_fieldset_sql

2 years agoMerge branch 'MDL-66761-master' of git://github.com/mickhawkins/moodle
Adrian Greeve [Mon, 20 Jan 2020 06:40:19 +0000 (14:40 +0800)]
Merge branch 'MDL-66761-master' of git://github.com/mickhawkins/moodle

2 years agoMerge branch 'MDL-67583-master' of https://github.com/KietChan/moodle
Adrian Greeve [Mon, 20 Jan 2020 05:34:31 +0000 (13:34 +0800)]
Merge branch 'MDL-67583-master' of https://github.com/KietChan/moodle

2 years agoMerge branch 'MDL-59594-SIGINT' of https://github.com/brendanheywood/moodle
Adrian Greeve [Mon, 20 Jan 2020 02:38:51 +0000 (10:38 +0800)]
Merge branch 'MDL-59594-SIGINT' of https://github.com/brendanheywood/moodle

2 years agoMerge branch 'MDL-62815_mod_lti' of git://github.com/davosmith/moodle
Adrian Greeve [Mon, 20 Jan 2020 01:53:27 +0000 (09:53 +0800)]
Merge branch 'MDL-62815_mod_lti' of git://github.com/davosmith/moodle

2 years agoMDL-66108 course: fix false positives when bulk moving categories.
Paul Holden [Mon, 2 Dec 2019 22:36:54 +0000 (22:36 +0000)]
MDL-66108 course: fix false positives when bulk moving categories.

2 years agoMDL-67245 group: Behat updates to account for member identity fields.
Paul Holden [Tue, 17 Dec 2019 19:17:00 +0000 (19:17 +0000)]
MDL-67245 group: Behat updates to account for member identity fields.

2 years agoMDL-67245 group: observe viewfullnames capability.
Paul Holden [Tue, 7 Jan 2020 16:18:56 +0000 (16:18 +0000)]
MDL-67245 group: observe viewfullnames capability.

2 years agoMDL-67245 group: display user identity fields for group members.
Paul Holden [Fri, 29 Nov 2019 07:45:55 +0000 (07:45 +0000)]
MDL-67245 group: display user identity fields for group members.

2 years agoMDL-67724 mod_glossary: Improve Behat test
Jun Pataleta [Fri, 17 Jan 2020 09:48:06 +0000 (17:48 +0800)]
MDL-67724 mod_glossary: Improve Behat test

Improve the "Glossary entries are not always editable" scenario by:
* No need to use the @javascript tag
* The maxediting time can be set to a lower value to
reduce the overall wait time.

2 years agoMerge branch 'MDL-67372-master' of git://github.com/rezaies/moodle
Sara Arjona [Fri, 17 Jan 2020 08:30:11 +0000 (09:30 +0100)]
Merge branch 'MDL-67372-master' of git://github.com/rezaies/moodle

2 years agoMDL-51225 mod_forum: Use can_view_post to determine whether to show post
Jun Pataleta [Tue, 14 Jan 2020 09:04:10 +0000 (17:04 +0800)]
MDL-51225 mod_forum: Use can_view_post to determine whether to show post

Use \mod_forum\local\managers\capability::can_view_post() to
consistently determine whether a forum post will be rendered in the
recent activity block.
This helps the recent activity block to provide a more consistent
behaviour with the forum's discussion view itself.

2 years agoMDL-51225 mod_forum: Create behat tests for forum recent activity
Jun Pataleta [Wed, 15 Jan 2020 08:38:06 +0000 (16:38 +0800)]
MDL-51225 mod_forum: Create behat tests for forum recent activity

2 years agoMDL-66761 forumreport_summary: Added groups filter behat testing
Michael Hawkins [Wed, 25 Sep 2019 03:58:59 +0000 (11:58 +0800)]
MDL-66761 forumreport_summary: Added groups filter behat testing

2 years agoMDL-66761 mod_forum: Behat support group ID in bulk discussion adding
Michael Hawkins [Thu, 21 Nov 2019 09:32:16 +0000 (17:32 +0800)]
MDL-66761 mod_forum: Behat support group ID in bulk discussion adding

2 years agoMDL-51225 mod_forum: New behat step for creating question discussion
Jun Pataleta [Wed, 15 Jan 2020 16:11:24 +0000 (00:11 +0800)]
MDL-51225 mod_forum: New behat step for creating question discussion

2 years agoweekly release 3.9dev
Sara Arjona [Thu, 16 Jan 2020 16:19:10 +0000 (17:19 +0100)]
weekly release 3.9dev

2 years agoMerge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install
Sara Arjona [Thu, 16 Jan 2020 16:19:07 +0000 (17:19 +0100)]
Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install

2 years agoMDL-66712 enrol: Fix the reported days of inactivity on unenrolment
David Mudrák [Thu, 16 Jan 2020 12:35:01 +0000 (13:35 +0100)]
MDL-66712 enrol: Fix the reported days of inactivity on unenrolment

There were two problems here. Firstly, the $days was not correctly
calculated due to missing parentheses. Secondly, the sentence had
grammar issues.

2 years agoMDL-66220 mod_forum: Prevent from replying to a post the user can't see
Jun Pataleta [Mon, 13 Jan 2020 05:11:40 +0000 (13:11 +0800)]
MDL-66220 mod_forum: Prevent from replying to a post the user can't see

2 years agoMDL-66220 mod_forum: Cache result of forum_user_can_see_post()
Jun Pataleta [Mon, 13 Jan 2020 05:09:14 +0000 (13:09 +0800)]
MDL-66220 mod_forum: Cache result of forum_user_can_see_post()

* Cache the result of this function to avoid doing multiple DB calls
for the same post when loading posts in a discussion.

2 years agoMDL-66220 mod_forum: Additional unit test for can_reply_to_post
Jun Pataleta [Fri, 10 Jan 2020 08:51:23 +0000 (16:51 +0800)]
MDL-66220 mod_forum: Additional unit test for can_reply_to_post

2 years agoMerge branch 'mdl-59562' of https://github.com/Peterburnett/moodle
Andrew Nicols [Thu, 16 Jan 2020 04:10:31 +0000 (12:10 +0800)]
Merge branch 'mdl-59562' of https://github.com/Peterburnett/moodle

2 years agoMerge branch 'wip-MDL-66918-master' of https://github.com/Beedell/moodle
Andrew Nicols [Thu, 16 Jan 2020 03:42:16 +0000 (11:42 +0800)]
Merge branch 'wip-MDL-66918-master' of https://github.com/Beedell/moodle

2 years agoMDL-67372 libraries: Upgrade HTML Purifier to version 4.12.0
Shamim Rezaie [Wed, 11 Dec 2019 00:57:12 +0000 (11:57 +1100)]
MDL-67372 libraries: Upgrade HTML Purifier to version 4.12.0

2 years agoMDL-59562 core: updated type hint of new function
Peter Burnett [Thu, 16 Jan 2020 01:58:31 +0000 (11:58 +1000)]
MDL-59562 core: updated type hint of new function

2 years agoMerge branch 'MDL-67384-master' of git://github.com/rezaies/moodle
Andrew Nicols [Thu, 16 Jan 2020 02:24:40 +0000 (10:24 +0800)]
Merge branch 'MDL-67384-master' of git://github.com/rezaies/moodle

2 years agoMerge branch 'MDL-67631' of git://github.com/timhunt/moodle
Eloy Lafuente (stronk7) [Wed, 15 Jan 2020 23:29:09 +0000 (00:29 +0100)]
Merge branch 'MDL-67631' of git://github.com/timhunt/moodle

2 years agoMerge branch 'MDL-67625-master' of git://github.com/lucaboesch/moodle
Eloy Lafuente (stronk7) [Wed, 15 Jan 2020 23:26:13 +0000 (00:26 +0100)]
Merge branch 'MDL-67625-master' of git://github.com/lucaboesch/moodle

2 years agoMerge branch 'MDL-67040_master' of git://github.com/dmonllao/moodle
Eloy Lafuente (stronk7) [Wed, 15 Jan 2020 23:06:30 +0000 (00:06 +0100)]
Merge branch 'MDL-67040_master' of git://github.com/dmonllao/moodle

2 years agoMerge branch 'MDL-67379-master' of git://github.com/rezaies/moodle
Sara Arjona [Wed, 15 Jan 2020 21:12:15 +0000 (22:12 +0100)]
Merge branch 'MDL-67379-master' of git://github.com/rezaies/moodle

2 years agoMerge branch 'MDL-67377-master' of git://github.com/ferranrecio/moodle
Víctor Déniz Falcón [Wed, 15 Jan 2020 20:51:41 +0000 (20:51 +0000)]
Merge branch 'MDL-67377-master' of git://github.com/ferranrecio/moodle

2 years agoMerge branch 'MDL-67622_master' of git://github.com/dmonllao/moodle
Eloy Lafuente (stronk7) [Wed, 15 Jan 2020 17:55:45 +0000 (18:55 +0100)]
Merge branch 'MDL-67622_master' of git://github.com/dmonllao/moodle

2 years agoMDL-67379 libraries: Upgrade scssphp to 1.0.6
Shamim Rezaie [Mon, 16 Dec 2019 10:35:35 +0000 (21:35 +1100)]
MDL-67379 libraries: Upgrade scssphp to 1.0.6

2 years agoMerge branch 'MDL-67617-master' of git://github.com/lucaboesch/moodle
Sara Arjona [Wed, 15 Jan 2020 11:43:00 +0000 (12:43 +0100)]
Merge branch 'MDL-67617-master' of git://github.com/lucaboesch/moodle

2 years agoMerge branch 'MDL-67638_master' of https://github.com/nguyenphuctien/moodle
Sara Arjona [Wed, 15 Jan 2020 11:19:34 +0000 (12:19 +0100)]
Merge branch 'MDL-67638_master' of https://github.com/nguyenphuctien/moodle

2 years agoMerge branch 'MDL-67486-swap-cron-lock' of https://github.com/brendanheywood/moodle
Andrew Nicols [Wed, 15 Jan 2020 05:53:22 +0000 (13:53 +0800)]
Merge branch 'MDL-67486-swap-cron-lock' of https://github.com/brendanheywood/moodle

2 years agoMerge branch 'mdl-59562' of https://github.com/Peterburnett/moodle
Andrew Nicols [Wed, 15 Jan 2020 05:51:04 +0000 (13:51 +0800)]
Merge branch 'mdl-59562' of https://github.com/Peterburnett/moodle

2 years agoMDL-59562 core: changed branch behaviour during initial install.
Peter Burnett [Wed, 15 Jan 2020 05:46:46 +0000 (15:46 +1000)]
MDL-59562 core: changed branch behaviour during initial install.

2 years agoMerge branch 'mdl-59562' of https://github.com/Peterburnett/moodle
Andrew Nicols [Wed, 15 Jan 2020 04:40:19 +0000 (12:40 +0800)]
Merge branch 'mdl-59562' of https://github.com/Peterburnett/moodle

2 years agoMDL-59562 upgrade: Plugins can declare supported moodle versions
[Peter Burnett] [Wed, 25 Sep 2019 05:51:21 +0000 (15:51 +1000)]
MDL-59562 upgrade: Plugins can declare supported moodle versions

* Plugins can now explicitly declare supported and incompatible Moodle
  versions in version.php
  - $plugin->supported[37,39];
    supported takes an array of ascending numbers, that correspond to a
    range of branch numbers of supported versions, inclusive. Moodle
    versions that are outside of this range will produce a message
    notifying at install time, but will allow for installation.

  - $plugin->incompatible = 36;
    incompatible takes a single int corresponding to the first incompatible
    branch. Any Moodle versions including and below this will be prevented
    from installing the plugin, and a message will be given when
    attempting installation.

2 years agoMDL-67674 Cache: Lock rebuilding of the course category tree cache
Mark Johnson [Mon, 13 Jan 2020 11:37:09 +0000 (11:37 +0000)]
MDL-67674 Cache: Lock rebuilding of the course category tree cache

2 years agoMDL-64310 backup: allow session to be released during backup/restore
Rossco Hellmans [Wed, 13 Mar 2019 01:41:13 +0000 (11:41 +1000)]
MDL-64310 backup: allow session to be released during backup/restore

Amended to fix a wrong call to backup_controller() constructor,
originally not passing USER->id

2 years agoMerge branch 'MDL-66213-master-fixcap' of github.com:sarjona/moodle
Sara Arjona [Tue, 14 Jan 2020 18:50:58 +0000 (19:50 +0100)]
Merge branch 'MDL-66213-master-fixcap' of github.com:sarjona/moodle

2 years agoMDL-66253 update: bump version (missed that on the review)
Eloy Lafuente (stronk7) [Tue, 14 Jan 2020 18:46:17 +0000 (19:46 +0100)]
MDL-66253 update: bump version (missed that on the review)

2 years agoMerge branch 'MDL-66253' of https://github.com/NeillM/moodle
Eloy Lafuente (stronk7) [Tue, 14 Jan 2020 18:44:27 +0000 (19:44 +0100)]
Merge branch 'MDL-66253' of https://github.com/NeillM/moodle

2 years agoMDL-66213 roles: review new site:viewanonymousevents capability
Sara Arjona [Tue, 14 Jan 2020 15:42:26 +0000 (16:42 +0100)]
MDL-66213 roles: review new site:viewanonymousevents capability

Instead of PROHIBIT this capability for teachers, the
RISK_PERSONAL has been added.

2 years agoMDL-66213 report_loglive: Do not look up course 0
Andrew Nicols [Tue, 14 Jan 2020 05:53:39 +0000 (13:53 +0800)]
MDL-66213 report_loglive: Do not look up course 0

2 years agoMerge branch 'MDL-65573-master-2' of git://github.com/peterRd/moodle
Sara Arjona [Tue, 14 Jan 2020 11:20:00 +0000 (12:20 +0100)]
Merge branch 'MDL-65573-master-2' of git://github.com/peterRd/moodle

2 years agoMDL-66253 calendar: New indexes to reduce full table scans
Neill Magill [Mon, 29 Jul 2019 08:47:34 +0000 (09:47 +0100)]
MDL-66253 calendar: New indexes to reduce full table scans

The eventtype index will stop full table scans when the Event API
retrieves events for a group or category and there are a large number
of groups or categories so it cannot use the groupid or categoryid
indexes efficiently.

The modulename-instance index will improve the performance of queries
used by activity backup, deletion and visibility changes where all
the events for an individual activity need to be found.

2 years agoMerge branch 'MDL-64075' of https://github.com/OdyX/moodle
Andrew Nicols [Tue, 14 Jan 2020 06:15:46 +0000 (14:15 +0800)]
Merge branch 'MDL-64075' of https://github.com/OdyX/moodle

2 years agoMerge branch 'MDL-66721-master' of git://github.com/bmbrands/moodle
Andrew Nicols [Tue, 14 Jan 2020 06:06:57 +0000 (14:06 +0800)]
Merge branch 'MDL-66721-master' of git://github.com/bmbrands/moodle

2 years agoMerge branch 'MDL-35971-master' of git://github.com/junpataleta/moodle
Andrew Nicols [Tue, 14 Jan 2020 00:23:56 +0000 (08:23 +0800)]
Merge branch 'MDL-35971-master' of git://github.com/junpataleta/moodle

2 years agoAutomatically generated installer lang files
AMOS bot [Tue, 14 Jan 2020 00:10:17 +0000 (00:10 +0000)]
Automatically generated installer lang files

2 years agoMDL-65573 mod_forum: Set userid properly after split
Peter [Thu, 30 May 2019 01:08:55 +0000 (09:08 +0800)]
MDL-65573 mod_forum: Set userid properly after split

* Set the discussion's userid properly when splitting a discussion.
* Update step to correct existing incorrect records.

2 years agoMerge branch 'MDL-65649' of https://github.com/paulholden/moodle
Eloy Lafuente (stronk7) [Mon, 13 Jan 2020 17:56:38 +0000 (18:56 +0100)]
Merge branch 'MDL-65649' of https://github.com/paulholden/moodle

2 years agoMerge branch 'MDL-65987-master' of git://github.com/andrewnicols/moodle
Eloy Lafuente (stronk7) [Mon, 13 Jan 2020 17:28:35 +0000 (18:28 +0100)]
Merge branch 'MDL-65987-master' of git://github.com/andrewnicols/moodle

2 years agoMerge branch 'MDL-66833-master' of git://github.com/andrewnicols/moodle
Eloy Lafuente (stronk7) [Mon, 13 Jan 2020 17:18:56 +0000 (18:18 +0100)]
Merge branch 'MDL-66833-master' of git://github.com/andrewnicols/moodle

2 years agoMerge branch 'MDL-65812-editable-timeout' of https://github.com/brendanheywood/moodle
Eloy Lafuente (stronk7) [Mon, 13 Jan 2020 16:09:14 +0000 (17:09 +0100)]
Merge branch 'MDL-65812-editable-timeout' of https://github.com/brendanheywood/moodle

2 years agoMerge branch 'MDL-59817-master' of git://github.com/andrewnicols/moodle
Sara Arjona [Mon, 13 Jan 2020 13:26:41 +0000 (14:26 +0100)]
Merge branch 'MDL-59817-master' of git://github.com/andrewnicols/moodle

2 years agoMDL-67583 themes: Popover placement should react to scroll event
Kiet.Chan [Fri, 27 Dec 2019 02:53:31 +0000 (09:53 +0700)]
MDL-67583 themes: Popover placement should react to scroll event

2 years agoMerge branch 'patch_view_anon_event_MDL-66213' of git://github.com/Dave-B/moodle
Sara Arjona [Mon, 13 Jan 2020 09:10:10 +0000 (10:10 +0100)]
Merge branch 'patch_view_anon_event_MDL-66213' of git://github.com/Dave-B/moodle

2 years agoMerge branch 'MDL-67382-master' of git://github.com/vmdef/moodle
Andrew Nicols [Mon, 13 Jan 2020 04:59:28 +0000 (12:59 +0800)]
Merge branch 'MDL-67382-master' of git://github.com/vmdef/moodle

2 years agoMDL-67638 Course: update course timemodified on bulk category move
Tien Nguyen Phuc [Wed, 8 Jan 2020 08:31:46 +0000 (15:31 +0700)]
MDL-67638 Course: update course timemodified on bulk category move

2 years agoMerge branch 'MDL-67204-master' of https://github.com/mwehr/moodle
Andrew Nicols [Mon, 13 Jan 2020 00:37:26 +0000 (08:37 +0800)]
Merge branch 'MDL-67204-master' of https://github.com/mwehr/moodle

2 years agoMDL-59594 cron: Allow graceful exit of cron and adhoc task cli's
Brendan Heywood [Mon, 30 Dec 2019 01:51:14 +0000 (12:51 +1100)]
MDL-59594 cron: Allow graceful exit of cron and adhoc task cli's

2 years agoMDL-59594 cli: Introduce cli helpers for graceful exits
Brendan Heywood [Wed, 31 Jul 2019 08:07:39 +0000 (18:07 +1000)]
MDL-59594 cli: Introduce cli helpers for graceful exits

    \core\local\cli\shutdown::script_supports_graceful_exit();

    Sets up interception of exit signals and keep the script running.

    \core\local\cli\shutdown::should_gracefully_exit();

    Use this to check whether you should exit, often inside a long running loop.

2 years agoMDL-59594 core: Allow custom signal handlers
Brendan Heywood [Tue, 30 Jul 2019 13:58:29 +0000 (23:58 +1000)]
MDL-59594 core: Allow custom signal handlers

2 years agoMDL-67486 cron: Improve throughput by holding cron lock for less time
Brendan Heywood [Wed, 1 Jan 2020 12:41:22 +0000 (23:41 +1100)]
MDL-67486 cron: Improve throughput by holding cron lock for less time

2 years agoMDL-65812 session: Increase default timeout and allow larger periods
Brendan Heywood [Wed, 23 Oct 2019 01:44:40 +0000 (12:44 +1100)]
MDL-65812 session: Increase default timeout and allow larger periods

2 years agoMDL-66213 report_loglive: Show anonymous events when capability allows.
David Balch [Wed, 11 Dec 2019 08:57:26 +0000 (08:57 +0000)]
MDL-66213 report_loglive: Show anonymous events when capability allows.

2 years agoMDL-66213 report_log: Show anonymous events when capability allows.
David Balch [Tue, 23 Jul 2019 11:28:02 +0000 (12:28 +0100)]
MDL-66213 report_log: Show anonymous events when capability allows.

2 years agoMDL-66213 roles: Add capability for viewing anonymous events.
David Balch [Tue, 23 Jul 2019 10:35:08 +0000 (11:35 +0100)]
MDL-66213 roles: Add capability for viewing anonymous events.

2 years agoMDL-66253 calendar: Allow event retrival queries to use indexes
Neill Magill [Thu, 25 Jul 2019 15:03:27 +0000 (16:03 +0100)]
MDL-66253 calendar: Allow event retrival queries to use indexes

Before this change in most cases the queries generated by the API
would not be able to use an index as the subquery would use
conditions that coulde not be satisfied by a signle index.

By changing it to use UNIONs the database will be able to use an
appropriate index for each query in most cases.

2 years agoMDL-59817 atto_accessibilitychecker: Handle transparency properly
Andrew Nicols [Tue, 7 Jan 2020 09:28:10 +0000 (17:28 +0800)]
MDL-59817 atto_accessibilitychecker: Handle transparency properly

Some browsers, notably Firefox, do not return the computed style for
background colour in a computed RGB format. Instead they return the RGBA
where the alpha channel is set to fully transparent.

To solve this we need to work up the hierarchy and compute the
background colour for each parent node until we reach full alpha (1).

We can use a standard calculation to approximate the value for the
resultant element background by multiplying the alpha of the current
transparent (or semi-transparent) node with the R, G, or B channel in
question, and that of the parent node's background colour.

There are cases where this will not be 100% accurate - notably where
there is some additional content in addition to the parent background,
but this gives us a reasoable approximation for the majority of cases.
Additionally the code has never considered the full set of node content
when calculating this information.

2 years agoAutomatically generated installer lang files
AMOS bot [Fri, 10 Jan 2020 00:12:04 +0000 (00:12 +0000)]
Automatically generated installer lang files

2 years agoMDL-67377 lib: Moodle changes to mustache upgrade
Ferran Recio [Mon, 16 Dec 2019 12:54:15 +0000 (13:54 +0100)]
MDL-67377 lib: Moodle changes to mustache upgrade

2 years agoMDL-67377 lib: Update mustache to 2.13.0
Ferran Recio [Mon, 16 Dec 2019 12:50:25 +0000 (13:50 +0100)]
MDL-67377 lib: Update mustache to 2.13.0

2 years agoMDL-67625 quiz: only section titles should be large when editing.
Luca Bösch [Mon, 6 Jan 2020 21:24:35 +0000 (22:24 +0100)]
MDL-67625 quiz: only section titles should be large when editing.

2 years agoMDL-67204 assign task: Use lastruntime from task_scheduled
Mario Wehr [Tue, 12 Nov 2019 22:15:22 +0000 (23:15 +0100)]
MDL-67204 assign task: Use lastruntime from task_scheduled

2 years agoMDL-66918 behat: Behat app step failing
John Beedell [Tue, 15 Oct 2019 16:14:40 +0000 (17:14 +0100)]
MDL-66918 behat: Behat app step failing

2 years agoMDL-67617 gradereport_singleview: Style the form element with bs classes
Luca Bösch [Sat, 4 Jan 2020 15:35:09 +0000 (16:35 +0100)]
MDL-67617 gradereport_singleview: Style the form element with bs classes

2 years agoweekly release 3.9dev
Sara Arjona [Thu, 9 Jan 2020 14:42:44 +0000 (15:42 +0100)]
weekly release 3.9dev

2 years agoMerge branch 'MDL-67544-master' of git://github.com/andrewnicols/moodle
Jun Pataleta [Thu, 9 Jan 2020 07:22:27 +0000 (15:22 +0800)]
Merge branch 'MDL-67544-master' of git://github.com/andrewnicols/moodle

2 years agoMDL-67544f= mod_forum: Correct "for" attribute on private checkbox
Andrew Nicols [Thu, 9 Jan 2020 06:55:52 +0000 (14:55 +0800)]
MDL-67544f= mod_forum: Correct "for" attribute on private checkbox

2 years agoMDL-67544 mod_forum: Ensure post actions menu id is unique
Andrew Nicols [Thu, 9 Jan 2020 06:08:12 +0000 (14:08 +0800)]
MDL-67544 mod_forum: Ensure post actions menu id is unique