Compare commits

...

1644 Commits

Author SHA1 Message Date
Eloy Lafuente (stronk7) 24459b780e Moodle release 3.8.6 2020-11-07 16:48:02 +01:00
AMOS bot d476304b38 Automatically generated installer lang files 2020-11-07 00:07:52 +00:00
Eloy Lafuente (stronk7) 1bd64473f0 weekly release 3.8.5+ 2020-11-06 22:55:45 +01:00
Eloy Lafuente (stronk7) bb9129ae61 Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-11-06 22:55:42 +01:00
Víctor Déniz 08c25c25fe Merge branch 'MDL-70137-38-2' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-11-06 19:20:10 +00:00
Andrew Nicols 63c147d6b1 MDL-70137 cache: Write config to temp file and move into place 2020-11-06 19:20:10 +00:00
Andrew Nicols 9101b9006e 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:19:57 +00:00
Eloy Lafuente (stronk7) deab3d8e45 Merge branch 'MDL-70139-38' of git://github.com/sarjona/moodle into MOODLE_38_STABLE 2020-11-06 19:08:47 +01:00
Sara Arjona c482ea0df5 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:41 +01:00
AMOS bot 1402cad6fd Automatically generated installer lang files 2020-11-06 00:09:59 +00:00
Eloy Lafuente (stronk7) 17fa0a030e weekly release 3.8.5+ 2020-11-05 12:16:23 +01:00
Andrew Nicols 1620feb69f Merge branch 'MDL-70066-38' of git://github.com/lameze/moodle into MOODLE_38_STABLE 2020-11-05 10:02:18 +08:00
Sara Arjona 46353d4017 Merge branch 'MDL-70114-38' of git://github.com/bmbrands/moodle into MOODLE_38_STABLE 2020-11-04 20:15:32 +01:00
Sara Arjona 224efa43c6 Merge branch 'MDL-70119-38' of git://github.com/ferranrecio/moodle into MOODLE_38_STABLE 2020-11-04 15:20:14 +01:00
Bas Brands 20d6adc2ad MDL-70114 mod_data: add border for to textarea 2020-11-04 13:30:26 +00:00
Ferran Recio 5daa405eaa MDL-70119 core_badges: fix tab names 2020-11-04 12:57:18 +01:00
Simey Lameze bf91c850ec MDL-70066 badges: change usages of array_key_exists to isset 2020-11-04 16:05:58 +08:00
Mihail Geshoski 57fb23822b MDL-67837 backup: Add unit tests 2020-11-03 12:28:21 +01:00
Mihail Geshoski 2dfebe709e MDL-67837 backup: Verify caps before unenrolling users on course restore 2020-11-03 12:28:21 +01:00
andreasschenkel 130707d4e2 MDL-69844 user: Fix no email in download_participants_table
Only include eMail in download_participants_table 
if selected in showuseridentity 
($identityfieldsselect)
2020-11-03 12:28:21 +01:00
Juan Leyva 8658c28687 MDL-67015 mod_data: Prevent users adding entries to other groups 2020-11-03 12:28:21 +01:00
Ferran Recio 64372b6d2f MDL-69378 tool_uploadcourse: fix enrolment methods uploads 2020-11-03 12:28:21 +01:00
Peter Dias c5c5e74568 MDL-56310 restore: Confirm user has permission to change capabilities 2020-11-03 12:28:21 +01:00
Eloy Lafuente (stronk7) 8a60f4ba20 weekly release 3.8.5+ 2020-11-03 12:21:15 +01:00
Eloy Lafuente (stronk7) 06eeb0fb89 Merge branch 'MDL-70081-38' of git://github.com/jleyva/moodle into MOODLE_38_STABLE 2020-11-03 01:26:23 +01:00
Sara Arjona 7d6d3ee26f Merge branch 'MDL-69973_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE 2020-11-02 15:45:25 +01:00
Juan Leyva 6ba22833e2 MDL-70081 airnotifier: Add missing device type in token registration 2020-10-31 13:08:14 +01:00
Eloy Lafuente (stronk7) 87dca5dfd7 MDL-69973 xmldb: Ensure all reports use fresh metadata (not cached) 2020-10-30 19:27:23 +01:00
Eloy Lafuente (stronk7) f93c934043 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.
2020-10-30 19:27:23 +01:00
Eloy Lafuente (stronk7) 37757a69cd weekly release 3.8.5+ 2020-10-30 13:49:07 +01:00
Eloy Lafuente (stronk7) bda7205584 Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-10-30 13:49:05 +01:00
AMOS bot 76e8f1f260 Automatically generated installer lang files 2020-10-30 00:09:51 +00:00
Matt Clarkson 4ac4c9a6c9 MDL-68722 atto_equation: fix for form elements with special characters
Element id's containing characters such as ':' would break the tab
selector in bootstrap.

This specifically affects the essay question type.
2020-10-29 14:23:44 +08:00
Jake Dallimore 46fcf48619 Merge branch 'MDL-69716-38' of git://github.com/aanabit/moodle into MOODLE_38_STABLE 2020-10-29 12:40:41 +08:00
Jun Pataleta 57c5a07aaa Merge branch 'MDL-69815-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-10-28 14:18:58 +08:00
Andrew Nicols b7f6f951ca Merge branch 'MDL-70004-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-10-28 13:15:31 +08:00
Jake Dallimore ccc768d30b Merge branch 'MDL-64723-38' of git://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-10-28 12:13:12 +08:00
Jake Dallimore 483ff0bb44 Merge branch 'MDL-65792-38' of git://github.com/bmbrands/moodle into MOODLE_38_STABLE 2020-10-28 12:00:54 +08:00
Andrew Nicols 6f54a6cdd3 MDL-69815 core: Bump Node to v14.15.0 (LTS/Fermium) 2020-10-28 09:34:31 +08:00
Eloy Lafuente (stronk7) e1ee9ea78c Merge branch 'MDL-69998-38-enfix' of git://github.com/mudrd8mz/moodle into MOODLE_38_STABLE 2020-10-28 00:42:41 +01:00
Eloy Lafuente (stronk7) b7d173d89e weekly release 3.8.5+ 2020-10-27 23:47:35 +01:00
David Mudrák 3eb031e018 MDL-69998 lang: Fix reworded strings in Behat test scenarios 2020-10-27 11:30:42 +01:00
Helen Foster cdfc0502fa MDL-69998 lang: Import fixed English strings (en_fix) 2020-10-27 11:30:42 +01:00
Jun Pataleta 7670873a09 MDL-70004 theme_boost: Do not extend alert style for question containers 2020-10-27 17:17:02 +08:00
Jun Pataleta f61badb187 MDL-70004 qtype_multichoice: Set appropriate clear my choice role 2020-10-27 17:12:14 +08:00
Bas Brands db8aa0eda1 MDL-65792 mod_forum: show release time on timed posts 2020-10-27 09:10:48 +01:00
Paul Holden 4f05d0ecb7 MDL-64723 tool_mobile: workaround for invalid certificate parsing.
This is to account for specific server configuration that are affected
by one of the following issues, which results in certificate signature
algorithms being incorrectly parsed:

 * https://bugs.php.net/bug.php?id=77548
 * https://github.com/curl/curl/issues/3706
2020-10-26 23:06:19 +00:00
Eloy Lafuente (stronk7) d66ced33a2 Merge branch 'MDL-69993-38' of git://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-10-26 10:43:10 +01:00
Andrew Nicols baa6a41975 Merge branch 'MDL-69995-38' of git://github.com/lucaboesch/moodle into MOODLE_38_STABLE 2020-10-26 16:01:35 +08:00
Luca Bösch 4cf56a012d MDL-69995 backup: padding before activity icons. 2020-10-25 02:03:35 +02:00
Amaia Anabitarte 3b96a8b88b MDL-69716 mod_quiz: No timestamp for in progress attempts 2020-10-23 16:03:48 +02:00
Eloy Lafuente (stronk7) 5d357f9849 weekly release 3.8.5+ 2020-10-23 14:40:42 +02:00
Eloy Lafuente (stronk7) 5d9a5d8fef Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-10-23 14:40:37 +02:00
Paul Holden 0e75bc4ded MDL-69993 output: correct navigation node type for user reports. 2020-10-23 08:25:49 +01:00
Adrian Greeve 08c84a9d72 Merge branch 'MDL-67650-forced-checkbox-textarea-MOODLE_38_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_38_STABLE 2020-10-23 08:59:42 +08:00
Víctor Déniz 2dc4c36983 Merge branch 'MDL-68664-38' of git://github.com/lameze/moodle into MOODLE_38_STABLE 2020-10-22 12:24:44 +01:00
Sara Arjona f3ffadb77b Merge branch 'MDL-69553-m38' of https://github.com/NeillM/moodle into MOODLE_38_STABLE 2020-10-22 08:56:27 +02:00
Brendan Heywood 251803de94 MDL-67650 admin: Consistently show forced config settings 2020-10-22 13:13:40 +11:00
Jake Dallimore 1c067b30a7 Merge branch 'MDL-68438_38' of https://github.com/t-schroeder/moodle into MOODLE_38_STABLE 2020-10-22 09:31:30 +08:00
Adrian Greeve 80878e887f Merge branch 'MDL-69788-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-10-22 09:05:15 +08:00
AMOS bot e2c2d15f09 Automatically generated installer lang files 2020-10-22 00:08:05 +00:00
Eloy Lafuente (stronk7) 988f42c05a Merge branch 'MDL-66392-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-10-21 19:49:39 +02:00
Paul Holden 4051117877 MDL-66392 analytics: make model output directory default to empty.
Falling back to path within $CFG->dataroot/models.
2020-10-21 17:34:11 +01:00
Víctor Déniz b98729c600 Merge branch 'MDL-69392-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-10-21 16:26:21 +01:00
Jun Pataleta 6fbebf7cd7 Merge branch 'MDL-69945-38' of git://github.com/lucaboesch/moodle into MOODLE_38_STABLE 2020-10-21 21:34:36 +08:00
Paul Holden 9f4b10f606 MDL-69788 admin: validate language menu configuration. 2020-10-21 11:25:54 +01:00
Paul Holden f743468808 MDL-69788 lang: fallback to all translations if misconfigured.
If given translation list contains only invalid entries, fallback
to returning the complete list of available language translations.
2020-10-21 11:25:44 +01:00
Jun Pataleta a6ca410069 Merge branch 'MDL-37226-38' of git://github.com/lucaboesch/moodle into MOODLE_38_STABLE 2020-10-21 17:46:31 +08:00
Tim Schroeder 482d85942f MDL-68438 message: fixed email format change with messaging disabled 2020-10-21 11:24:38 +02:00
Neill Magill 7b6fbd9861 MDL-69553 output: Handle pre-loading multiline string defines
Before this patch strings that were declared over multiple lines in
a template would not be parsed correctly.

{{#str}}value,
mod_forum{{/str}}

would have been been parsed to get_string('value', 'core')

{{#str}}
value, mod_forum
{{/str}}

would have been been parsed to get_string('', 'core')
2020-10-21 10:07:23 +01:00
Neill Magill a49559f222 MDL-69553 output: Unit tests for loading multiline string defines 2020-10-21 10:07:22 +01:00
Luca Bösch 320c5ec06c MDL-69945 core_calendar: let circles appear as circles 2020-10-21 11:04:22 +02:00
Jun Pataleta 698f99209d Merge branch 'MDL-69945-38' of git://github.com/lucaboesch/moodle into MOODLE_38_STABLE 2020-10-21 16:02:57 +08:00
Jun Pataleta 89ef8cc223 MDL-69392 question: Fix Try again button styling 2020-10-21 14:59:29 +08:00
Jun Pataleta e3db7a4767 MDL-69392 theme_boost: Improve question colour contrast
* Lighten info container.
* Fix colour contrast for the question container by
  - Lightening the background a bit
  - Darkening the text colour a bit
  - Making sure the link colour has good colour contrast against the
  question text.
* Fix colour contrast for the comments container by
  - Lightening the text colour a bit
  - Darkening the link colour a bit for better colour contrast against
  the feedback text.
2020-10-21 14:59:29 +08:00
Jun Pataleta 22e41d742f MDL-69392 theme_classic: Darken red, blue and green colours
The current red, blue, and green colours achieve the minimum colour
contrast against a white background. However, when they're against
coloured background, text with these colours will easily fail the
4.5:1 contrast ratio requirement for Level AA.
The updated colours now have the following contrast ratio against a
white background:
* Blue  - #0f6fc5 (5.12:1, from 4.58:1)
* Green - #357a32 (5.27:1, from 4.63:1)
* Red   - #ca3120 (5.29:1, from 4.59:1)
2020-10-21 14:59:29 +08:00
Jun Pataleta 22b4979999 MDL-69392 theme_boost: Darken red, blue and green colours
The current red, blue, and green colours achieve the minimum colour
contrast against a white background. However, when they're against
coloured background, text with these colours will easily fail the
4.5:1 contrast ratio requirement for Level AA.
The updated colours now have the following contrast ratio against a
white background:
* Blue  - #0f6fc5 (5.12:1, from 4.58:1)
* Green - #357a32 (5.27:1, from 4.63:1)
* Red   - #ca3120 (5.29:1, from 4.59:1)
2020-10-21 14:59:29 +08:00
Paul Holden ded0ed9d37 MDL-69807 blocks: remove redundant sesskey loading edit/delete page. 2020-10-21 14:25:52 +08:00
Adrian Greeve 981bce6288 Merge branch 'MDL-68766-M38' of https://github.com/ised-isde-canada/moodle into MOODLE_38_STABLE 2020-10-21 12:48:05 +08:00
Jake Dallimore 3883bba766 Merge branch 'MDL-69902-38' of https://github.com/marinaglancy/moodle into MOODLE_38_STABLE 2020-10-21 10:58:11 +08:00
Eloy Lafuente (stronk7) 9aaab50cd5 weekly release 3.8.5+ 2020-10-21 00:50:35 +02:00
Jake Dallimore 60ae32c162 Merge branch 'MDL-67695-MOODLE_38_STABLE_get_lti_proxies' of https://github.com/andrewmadden/moodle into MOODLE_38_STABLE 2020-10-20 11:09:28 +08:00
Adrian Greeve 261d79a5ed MDL-68284 gradebook: Fix use of get_recordset in upgrade code. 2020-10-20 09:13:58 +08:00
Adrian Greeve fd9db57264 Merge branch 'MOODLE_38_STABLE-MDL-68284' of https://github.com/yao9394/moodle into MOODLE_38_STABLE 2020-10-20 08:44:10 +08:00
Simey Lameze bc56a460b7 MDL-68664 theme: remove right margin from form-inline class 2020-10-20 08:33:10 +08:00
Andrew Nicols f6eafcae3e Merge branch 'MDL-69687-m38' of https://github.com/sammarshallou/moodle into MOODLE_38_STABLE 2020-10-20 08:03:02 +08:00
Eloy Lafuente (stronk7) e7aa9549a5 Merge branch 'MDL-69906-38-searchsimpledb' of git://github.com/mudrd8mz/moodle into MOODLE_38_STABLE 2020-10-19 22:56:48 +02:00
Eloy Lafuente (stronk7) 3a12cb5495 Merge branch 'MDL-57756-text-customparams-38' of https://github.com/cengage/moodle into MOODLE_38_STABLE 2020-10-19 22:32:20 +02:00
Claude Vervoort 6d79bed31b MDL-57756 mod_lti: params change to text type 2020-10-19 14:17:56 -04:00
Sara Arjona 34ea79f1d4 Merge branch 'MDL-69897-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-10-19 18:15:18 +02:00
Sara Arjona 444c2e1df1 Merge branch 'MDL-69900-38' of git://github.com/mihailges/moodle into MOODLE_38_STABLE 2020-10-19 13:42:24 +02:00
sam marshall 965846f005 MDL-69687 Course: remove_course_contents orphaned completion data
The remove_course_contents function did not delete data from
course_module_completion table in most cases, resulting in large
quantities of orphaned data.
2020-10-19 10:14:11 +01:00
Sara Arjona 3317f7aa94 Merge branch 'MOODLE_38_MDL-69791' of https://github.com/golenkovm/moodle into MOODLE_38_STABLE 2020-10-19 10:08:22 +02:00
Sagar Ghimire e523e85462 MDL-68284 gradebook: Prevent exposing hidden quiz grade item 2020-10-19 16:25:29 +11:00
Andrew Nicols 82a400be59 Merge branch 'MDL-69687-m38' of https://github.com/sammarshallou/moodle into MOODLE_38_STABLE 2020-10-19 13:20:55 +08:00
Andrew Madden 30268a1fe1 MDL-67695 mod_lti: Use correct return structure for get_tool_proxies.
* Use tool_proxy_return_structure for each proxy.
* Added tests for getting all proxies and orphaned proxies.
2020-10-19 15:15:52 +11:00
sam marshall 66de9e27be MDL-69687 Course: Improve removal of completion data on MySQL 2020-10-16 18:24:23 +01:00
sam marshall 2cd98f15b3 MDL-69687 DB: Add API for deleting data based on subquery
The new API works on normal databases (by deleting data based on the
subquery) and also on MySQL (by deleting the data using a weird join
on the subquery).
2020-10-16 18:24:23 +01:00
Luca Bösch e92ac3eaf7 MDL-37226 assign: align select all header checkbox 2020-10-16 16:08:30 +02:00
Luca Bösch a04cc0b511 MDL-69945 core_calendar: let circles appear as circles 2020-10-16 15:43:50 +02:00
Sara Arjona 81e84d2034 weekly release 3.8.5+ 2020-10-16 13:18:40 +02:00
Jake Dallimore 7af6028c51 Merge branch 'MOODLE_38_MDL-47178' of https://github.com/golenkovm/moodle into MOODLE_38_STABLE 2020-10-16 11:53:26 +08:00
Eloy Lafuente (stronk7) e92ffed40d Merge branch 'MDL-69813-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-10-14 22:47:44 +02:00
Eloy Lafuente (stronk7) 9fad671e5d MDL-68070 messaging: Ensure that error is shown on first messages
Before there is a conversation, messages between users are sent
using core_message_send_instant_messages instead of
core_message_send_messages_to_conversation.

That method had an undefined $errormessage variable, ultimately
causing the problem detected on message_post_message()/message_send()
to never been returned by the external.

This just adds the same error than already existing conversations do,
but returning it as warning, for BC, JS will show it.
2020-10-14 18:58:00 +02:00
Eloy Lafuente (stronk7) 2020abe0d8 MDL-68070 messaging: Amend lang string to be clearer for any user.
Credit goes to Helen Foster for the improvement, thanks!
2020-10-14 16:55:08 +02:00
Víctor Déniz 8c461fc2be Merge branch 'MDL-68900-m38' of https://github.com/sumitnegi933/moodle into MOODLE_38_STABLE 2020-10-14 12:47:46 +01:00
Eloy Lafuente (stronk7) 064f9943a5 Merge branch 'MDL-68070-38_messaging_fix' of https://github.com/beenet-dev/moodle into MOODLE_38_STABLE 2020-10-13 23:41:12 +02:00
Sara Arjona 0df84ece36 weekly release 3.8.5+ 2020-10-13 13:24:15 +02:00
Sara Arjona 15a185340a Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-10-13 13:24:12 +02:00
Andrew Nicols b4b15278ea Merge branch 'MDL-67654-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-10-13 08:01:30 +08:00
Paul Holden cd258845b9 MDL-67654 mod_forum: formchangechecker for discussion inline replies. 2020-10-12 23:32:32 +01:00
Paul Holden f7500502cc MDL-69897 repository: add heading to delete file modal. 2020-10-12 23:07:08 +01:00
Simon Mok af2a02e460 MDL-68070 messaging: Fix error when personal notification is disabled 2020-10-12 19:33:18 +08:00
Adrian Greeve 73fe545030 Merge branch 'MOODLE_38_MDL-69818' of https://github.com/golenkovm/moodle into MOODLE_38_STABLE 2020-10-12 14:46:35 +08:00
Jake Dallimore 3ee3bef023 Merge branch 'MDL-68292-admin-sesskey-MOODLE_38_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_38_STABLE 2020-10-12 14:38:05 +08:00
Brendan Heywood e2558ec396 MDL-68292 core: Remove sesskey leakage on module pages 2020-10-12 17:11:35 +11:00
Adrian Greeve 6a22d520ee Merge branch 'MDL-69649-38' of git://github.com/rezaies/moodle into MOODLE_38_STABLE 2020-10-12 10:16:42 +08:00
Jake Dallimore d5f01f6a98 Merge branch 'MDL-69910-calendar-protectusername-MOODLE_38_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_38_STABLE 2020-10-12 10:06:21 +08:00
AMOS bot 7400b95a23 Automatically generated installer lang files 2020-10-11 00:08:32 +00:00
Brendan Heywood 0df4a06a97 MDL-69910 calendar: Fix export exception when both params are sent 2020-10-11 09:21:41 +11:00
David Mudrák 49f5600cf5 MDL-69906 admin: Display Setup search engine as link only if it is valid
We use auto-generated admin section name here so we need to check that
the target section actually exists.
2020-10-09 14:16:22 +02:00
Sara Arjona 46000ff13a weekly release 3.8.5+ 2020-10-09 11:11:50 +02:00
Sara Arjona 6879b59ec1 Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-10-09 11:11:46 +02:00
Marina Glancy df6b15c7dc MDL-69902 core_search: fix error in the custom fields indexing 2020-10-09 08:52:10 +02:00
Stephen Bourget c209325895 MDL-69900 core_backup: Allow IMSCC v1.0 restore to finish 2020-10-09 09:06:47 +08:00
Sara Arjona bfe808fd62 Merge branch 'MDL-64657-38' of git://github.com/jleyva/moodle into MOODLE_38_STABLE 2020-10-08 14:16:03 +02:00
Sumit Negi 19a6a2fcc0 MDL-68900 mod_forum: permission check for user who is viewing timed post
Pass current user object to post builder as argument, so that the permission to view timed post
will check with current user, who is viewing the posts instead of user who made that post.
2020-10-08 12:44:03 +05:30
Adrian Greeve 7c68554277 Merge branch 'MDL-69805-38' of https://github.com/dravek/moodle into MOODLE_38_STABLE 2020-10-08 14:58:39 +08:00
Adrian Greeve cf149b7e39 Merge branch 'MDL-69798_38' of https://github.com/timhunt/moodle into MOODLE_38_STABLE 2020-10-08 13:31:15 +08:00
Víctor Déniz 125cbf474e Merge branch 'MDL-69759-m38' of https://github.com/sammarshallou/moodle into MOODLE_38_STABLE 2020-10-07 22:26:38 +01:00
Victor Deniz Falcon 1339e312a6 MDL-52407 travis: use Travis default notifications(email) 2020-10-07 16:33:06 +08:00
Andrew Nicols 10f88d9ab6 Merge branch 'MDL-67275-38-post_noun_verb' of git://github.com/mudrd8mz/moodle into MOODLE_38_STABLE 2020-10-07 12:39:42 +08:00
AMOS bot 26b34e8570 Automatically generated installer lang files 2020-10-07 00:07:49 +00:00
Eloy Lafuente (stronk7) ba24d5c214 Merge branch 'wip-MDL-68808-MOODLE_38_STABLE' of https://github.com/jason-platts/moodle into MOODLE_38_STABLE 2020-10-06 23:12:33 +02:00
Paul Holden a007895a0a MDL-69813 h5p: fix undefined addon ordering in framework test. 2020-10-06 10:48:12 +01:00
Eloy Lafuente (stronk7) 973631628c weekly release 3.8.5+ 2020-10-06 10:20:41 +02:00
Mikhail Golenkov 9167c6d47c MDL-47178 question: Retain question authors when restoring backups. 2020-10-06 09:38:55 +11:00
Eloy Lafuente (stronk7) 7119de9e92 Merge branch 'MDL-69772-38-allcountrycodes' of git://github.com/mudrd8mz/moodle into MOODLE_38_STABLE 2020-10-06 00:04:22 +02:00
Eloy Lafuente (stronk7) 00492277ae Merge branch 'MDL-65074-38' of https://github.com/hitteshahuja/moodle into MOODLE_38_STABLE 2020-10-05 23:12:42 +02:00
Sara Arjona b773f03809 Merge branch 'MDL-69641-MOODLE_38_STABLE' of https://github.com/dmitriim/moodle into MOODLE_38_STABLE 2020-10-05 13:38:17 +02:00
Eloy Lafuente (stronk7) 8fc32d4c3e Merge branch 'MOODLE_38-MDL-69752' of https://github.com/golenkovm/moodle into MOODLE_38_STABLE 2020-10-05 10:55:19 +02:00
Mikhail Golenkov 19cce33460 MDL-69791 gradereport: Fix error message when invalid grade is entered 2020-10-05 15:01:09 +11:00
Mikhail Golenkov 323a15ba58 MDL-69818 mod_feedback: Fix item dependency during activity restoration 2020-10-04 18:30:58 +11:00
Mikhail Golenkov 8912dcbe15 MDL-69752 mod_data: Format module intro on Database activities page 2020-10-04 13:51:00 +11:00
Sara Arjona 3154901c1f weekly release 3.8.5+ 2020-10-02 13:43:22 +02:00
David Matamoros f24a2515cb MDL-69805 mod_data: Freeze comment field if comments disabled 2020-10-02 09:13:05 +02:00
Eloy Lafuente (stronk7) ffa8aa21b8 Merge branch 'MDL-69758-m38' of https://github.com/sammarshallou/moodle into MOODLE_38_STABLE 2020-10-01 23:44:36 +02:00
Tim Hunt 8a15c4e0ca MDL-69798 XML question export: excape special chars in idnumbers 2020-10-01 17:11:26 +01:00
Eloy Lafuente (stronk7) 1eaf199454 Merge branch 'MDL-69586-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-10-01 17:13:05 +02:00
David Mudrák 47fe02cbea MDL-69772 admin: Better validation for the allcountrycodes setting
The patch introduces a new admin_setting field type that can be used for
specifying comma separated list of countries. The field has inbuilt
validation so that only valid country codes can be inserted.
2020-10-01 13:32:09 +02:00
Jason Platts 82a1f6cd33 MDL-68808 forms: autocomplete throwing error in IE11 2020-10-01 12:08:12 +01:00
Sara Arjona 80b632c94a Merge branch 'MDL-68098-38' of git://github.com/dpalou/moodle into MOODLE_38_STABLE 2020-10-01 12:56:42 +02:00
Dani Palou efcc68a5ce MDL-68098 tests: Reset FILTERLIB_PRIVATE after tests 2020-10-01 12:51:09 +02:00
Dani Palou 800f4dfb15 MDL-68098 ws: Add unit tests to test mathjax in WS 2020-10-01 12:51:09 +02:00
Adrian Greeve a1ebb252cb Merge branch 'MDL-37802-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-09-30 13:48:55 +08:00
Dan Marsden c673616612 MDL-69641 grade: fix slow query.
This is a backport of MDL-69190
2020-09-30 15:22:36 +10:00
Adrian Greeve 2262d926eb Merge branch 'MDL-69359_38' of https://github.com/adpe/moodle into MOODLE_38_STABLE 2020-09-30 11:42:22 +08:00
Sara Arjona deb0ad9b62 Merge branch 'MDL-69342-38_profile_picture_deletion' of https://github.com/vtos/moodle into MOODLE_38_STABLE 2020-09-29 19:01:30 +02:00
Eloy Lafuente (stronk7) 3b52d1658e weekly release 3.8.5+ 2020-09-29 10:48:26 +02:00
Shamim Rezaie dba8fdf878 MDL-69649 form: Fix labels for defaultcustom form elements 2020-09-28 23:22:10 +10:00
Shamim Rezaie 2178327a55 MDL-69649 backup: Fix missing labels
- The backup details page uses a table to show a sumary of the backup
  content. Used role attribute to denote the tabular format of the
  summary.
- The backup details page displays activity name next to each activity
  icon. Therefore the icons are only decorative and do not need to have
  any title or even alt text.
- Form labels should be associated with form controls.  A div element is
  not a form control.
- The from attribute of the form labels should be equal to the id
  attribute of an element. Therefore, we first create a label and an
  input elements and associate them to each other, and then pass them to
  backup_detail_pair() when a label is needed.
2020-09-28 23:22:10 +10:00
sam marshall bdb752aa39 MDL-69759 Web services: app checks to token.php cause log errors 2020-09-28 11:56:18 +01:00
AMOS bot 0a238780e7 Automatically generated installer lang files 2020-09-26 00:08:03 +00:00
adpe 91984f38f7 MDL-69359 admin_cli: show only contributed plugins in uninstall plugins 2020-09-25 16:50:52 +02:00
Hittesh Ahuja e01066d67c MDL-65074 mod_quiz: Quiz navigation buttons shouldnt use btn-secondary
Removing .btn-secondary as plain.scss and default.scss in bootstrap hide the button from view.
2020-09-25 15:22:29 +01:00
Paul Holden 7069947949 MDL-37802 repository: return error if unzipping files fails.
For instance, when a user tried to unzip a password protected zip
archive using the file manager.
2020-09-25 09:34:36 +01:00
Paul Holden 620e5285fe MDL-69586 tool_usertours: use specified user in privacy prefs export. 2020-09-25 09:13:47 +01:00
Víctor Déniz 99b1742961 weekly release 3.8.5+ 2020-09-24 16:27:24 +01:00
Víctor Déniz cf6005dc08 Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-09-24 16:27:18 +01:00
David Mudrák cba7517ca7 MDL-69772 admin: Fix legacy coding style on Location settings admin page
No actual change here. Just polishing the coding style and adding
fulltree check.
2020-09-24 14:19:28 +02:00
David Mudrák ace99685b5 MDL-69772 lang: Ignore misconfigured allcountrycodes filter
If the allcountrycodes filter contains only invalid values, ignore the
whole filter setting and make get_list_of_countries() return the full
list of all known countries, rather than empty list.
2020-09-24 13:41:59 +02:00
Vitaly 979f22b0ea MDL-69342 core_user: fixed user picture updating
When editing a user and checking the 'Delete picture' checkbox to delete
the old picture and uploading a new one at a time, the new one didn't appear
in the user profile. This happened due to the 'if/else' statement
in the 'core_user::update_picture()' method which allowed either to delete
the old picture or to upload a new one.
The fix removes the 'else' part of the 'if/else' statement to force
checking for a new uploaded picture no matter if a user checked
the 'Delete picture' checkbox or not.
2020-09-24 10:58:17 +03:00
Dani Palou 4fc00c4b68 MDL-68098 ws: Fix WebServices broken by filters HTML 2020-09-23 16:24:02 +02:00
Eloy Lafuente (stronk7) 6018a70469 Merge branch 'MDL-68229-38' of git://github.com/jleyva/moodle into MOODLE_38_STABLE 2020-09-23 11:51:39 +02:00
Juan Leyva 5c2c14b32b MDL-68229 tool_mobile: Add missing option to disable tags in the app 2020-09-23 10:35:19 +02:00
Eloy Lafuente (stronk7) 53827dd118 Merge branch 'MDL-69014-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-09-22 23:11:44 +02:00
Juan Leyva ba7d2b6c05 MDL-64657 course: Return hidden section names when configured 2020-09-22 11:53:23 +02:00
AMOS bot ed55aff5c9 Automatically generated installer lang files 2020-09-22 00:07:16 +00:00
Eloy Lafuente (stronk7) f710fba95b Merge branch 'MDL-66648-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-09-21 23:36:38 +02:00
Eloy Lafuente (stronk7) 5b2fb7946a Merge branch 'MDL-69667-MOODLE_38_STABLE' of https://github.com/comete-upn/moodle into MOODLE_38_STABLE 2020-09-21 23:20:50 +02:00
David Mudrák 58e775946a MDL-67275 forum: Fix language and accessibility issues with buttons
There were inconsistencies with the text shown on the submit button,
depending on the where the button was shown.

* Inline reply forum displayed general "Submit".
* Experimental nested discussion view reply form displayed "Post"
  (post/core string) which acts as a noun in other contexts and cannot
  be used as such in many non-English languages.
* Advanced reply form displayed "Post to forum".

The patch fixes this and starts to show "Post to forum" in all three
places consistently.

While working on this, two more issues were noticed and fixed:

* Inline reply textarea's title was hard-coded English "post" text.
  Changed to "Message" to provide advisory information related to the
  element.
* Buttons contained title attribute with the same value as the explicit
  button text. This goes against accessibility guidelines.
2020-09-21 22:10:34 +02:00
sam marshall debc5e451d MDL-69758 Web services: core_get_course_contents PHP warnings
Calls to core_get_course_contents can cause PHP warnings in the server
log if there are any URL instances in the course with sketchy URLs.
This is because url_export_contents incorrectly returns null instead
of an empty array if there is an error.
2020-09-21 15:29:15 +01:00
Eloy Lafuente (stronk7) 09c7f259dc weekly release 3.8.5+ 2020-09-17 19:04:18 +02:00
Eloy Lafuente (stronk7) d6cb91de83 Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-09-17 19:04:16 +02:00
Eloy Lafuente (stronk7) 64153ea77f Merge branch 'MDL-69395_38' of github.com:stronk7/moodle into MOODLE_38_STABLE 2020-09-17 17:03:59 +02:00
Eloy Lafuente (stronk7) 3a1f0f9641 MDL-69395 theme_classic: remove superfluous selector already in boost 2020-09-17 13:06:33 +02:00
Eloy Lafuente (stronk7) df4eab54cb Merge branch 'MDL-62387-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-09-17 00:10:00 +02:00
Eloy Lafuente (stronk7) 85cfba7f21 Merge branch 'MDL-69395-38' of git://github.com/bmbrands/moodle into MOODLE_38_STABLE 2020-09-16 16:56:28 +02:00
Jun Pataleta bd7cfe1981 Merge branch 'MDL-69663-m38' of https://github.com/sammarshallou/moodle into MOODLE_38_STABLE 2020-09-16 22:16:06 +08:00
AMOS bot 8849a99cc0 Automatically generated installer lang files 2020-09-16 00:07:14 +00:00
Paul Holden 4b6827d042 MDL-62387 tool_lp: switch to core 'cohort' form element.
The autocomplete AJAX is identical to the version in tool_lp, but also
includes support for excluding suggestions (i.e. cohorts already
synced with the current learning plan).
2020-09-15 08:07:23 +01:00
comete-upn eab36a73fb MDL-69667 competencies: fix competencies count always 0 in frameworks. 2020-09-15 08:37:46 +02:00
Jun Pataleta ff6939dce4 Merge branch 'MDL-42012-38-alt' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-09-15 11:48:24 +08:00
Andrew Nicols a13ccd39ec MDL-42012 cache: Fix missing return value 2020-09-15 11:46:31 +08:00
Eloy Lafuente (stronk7) b60c6b3bdf Merge branch 'MDL-42012-38-alt' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-09-14 23:29:15 +02:00
Paul Holden 71ca64f7f8 MDL-69014 tool_usertours: clean up user preferences of deleted tours. 2020-09-14 20:36:24 +01:00
Paul Holden 92111f008f MDL-66648 user: consistent checks for linking to full profile.
The access checks for displaying a link to a users' full profile
now match the checks performed on the full profile page itself.
2020-09-14 20:21:59 +01:00
AMOS bot 284baff563 Automatically generated installer lang files 2020-09-13 00:07:54 +00:00
AMOS bot 1fc9aa9cc4 Automatically generated installer lang files 2020-09-12 00:07:36 +00:00
Jun Pataleta b21d86f807 Moodle release 3.8.5 2020-09-11 10:41:55 +08:00
sam marshall 0268610d25 MDL-69663 Web services: override_webservice_execution not honoured
If two different plugin types (e.g. theme, local) implement
override_webservice_execution callbacks, then all of them except
the 'last' plugin type do not work correctly.
2020-09-10 09:51:47 +01:00
Sara Arjona 472d293a16 weekly release 3.8.4+ 2020-09-10 08:52:05 +02:00
Sara Arjona 168fa1dda1 Merge branch 'MDL-69466-3.8' of https://github.com/JBThong/moodle into MOODLE_38_STABLE 2020-09-09 11:39:42 +02:00
Thong Bui a8e70bad23 MDL-69466 Autocomplete widget: Improve keyboard accessibility 2020-09-09 13:52:53 +07:00
Andrew Nicols 2072b9a9e3 MDL-42012 cache: Valid definitions are required even when disabled 2020-09-09 14:05:32 +08:00
Andrew Nicols f15f0b1cdf MDL-42012 cache: Fully disable cache for disabled cache factory 2020-09-09 14:05:32 +08:00
Andrew Nicols d2dd04ff2d MDL-42012 cache: Allow data sources to work when caching is disabled 2020-09-09 14:05:32 +08:00
Eloy Lafuente (stronk7) 7ed55774f1 Merge branch 'MDL-69116-38' of git://github.com/rezaies/moodle into MOODLE_38_STABLE 2020-09-08 23:16:52 +02:00
Sara Arjona 784156217a Merge branch 'MDL-69525-38-1' of git://github.com/mihailges/moodle into MOODLE_38_STABLE 2020-09-08 14:22:16 +02:00
Michael Hawkins 0425db5a80 MDL-69340 tag: Correct the filter input HTML in the tag manager 2020-09-08 08:48:24 +02:00
Mihail Geshoski 6e1451fb39 MDL-69048 book: Sanitize previous chapter value in add new chapter page 2020-09-08 08:48:24 +02:00
Andrew Nicols 8c274e82f4 MDL-68974 calendar: Use page context for block check 2020-09-08 08:48:24 +02:00
Andrew Nicols 4a488b9a5c MDL-68974 blocks: Check permission before generating content 2020-09-08 08:48:24 +02:00
Mihail Geshoski 11e49d6676 MDL-65115 repository: Prevent unzipping if it will exceed allowed quota 2020-09-08 08:48:24 +02:00
Mihail Geshoski 6f4e2cb799 MDL-65115 core_files: Add get_total_content_size() in stored_file class
New function get_total_content_size() is introduced in the stored_file
class. The puprose of this function is to calculate and return the
total size (in bytes) of the content of an archive file.
2020-09-08 08:48:24 +02:00
Andrew Nicols 7790b6727a MDL-68974 admin: Unit tests for context parent/child test 2020-09-08 08:48:24 +02:00
Andrew Nicols 20f7e23af4 MDL-68974 admin: Unit tests for loginas 2020-09-08 08:48:24 +02:00
Andrew Nicols 52b6d73c03 MDL-68974 admin: Prevent login as outside of the desired context 2020-09-08 08:48:24 +02:00
Sara Arjona 78eacf034a Merge branch 'MDL-68344-3.8' of https://github.com/JBThong/moodle into MOODLE_38_STABLE 2020-09-08 08:45:28 +02:00
Jun Pataleta 67e3dbab7f Merge branch 'MDL-69492-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-09-08 12:56:09 +08:00
Eloy Lafuente (stronk7) ed3482f9cc Merge branch 'MDL-69262-38-2' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-09-07 23:43:17 +02:00
Sara Arjona 3852238df4 Merge branch 'MDL-67468-MOODLE_38_STABLE' of https://github.com/tuanngocnguyen/moodle into MOODLE_38_STABLE 2020-09-07 13:20:17 +02:00
Paul Holden 1c51eaa50c MDL-69492 auth_cas: normalise member distinguished name config. 2020-09-04 08:39:11 +01:00
Paul Holden c329d99d8a MDL-69492 auth_ldap: normalise member distinguished name config. 2020-09-04 08:39:11 +01:00
Nathan Nguyen f48f213e40 MDL-67468 filter_activitynames: use MUC 2020-09-04 15:41:36 +10:00
Thong Bui c2686daae4 MDL-68344 filepicker: File Picker focus lost on upload 2020-09-04 09:50:30 +07:00
Sara Arjona 28a155e712 weekly release 3.8.4+ 2020-09-03 17:09:22 +02:00
Sara Arjona f90459df6f NOBUG: Fixed SVG browser compatibility 2020-09-03 17:09:20 +02:00
Bas Brands 859a49e2ac MDL-69395 theme_boost: improve colour contrast for form input fields
- for this issue the atto styles.css was moved into theme boost so
we can use our preset variable for $gray-500
2020-09-03 16:05:35 +02:00
Andrew Nicols bf0778595f Merge branch 'MDL-69391-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-09-03 11:49:48 +08:00
Andrew Nicols 3a257a2808 Merge branch 'MDL-69360-38' of git://github.com/NoelDeMartin/moodle into MOODLE_38_STABLE 2020-09-03 10:52:27 +08:00
Andrew Nicols 45f5453b2a Merge branch 'MDL-69246_38' of https://github.com/timhunt/moodle into MOODLE_38_STABLE 2020-09-03 10:40:33 +08:00
Andrew Nicols b74d8568eb Merge branch 'MDL-55340-38' of git://github.com/sarjona/moodle into MOODLE_38_STABLE 2020-09-03 10:14:46 +08:00
Andrew Nicols 9f770c1be6 Merge branch 'MDL-69069-38' of git://github.com/bmbrands/moodle into MOODLE_38_STABLE 2020-09-03 09:37:37 +08:00
Eloy Lafuente (stronk7) 049bb1d7a7 Merge branch 'MDL-69608-38' of https://github.com/marinaglancy/moodle into MOODLE_38_STABLE 2020-09-03 00:03:51 +02:00
Sara Arjona 687047148f Merge branch 'MDL-68680-MOODLE_38_STABLE' of https://github.com/tuanngocnguyen/moodle into MOODLE_38_STABLE 2020-09-02 17:16:21 +02:00
Marina Glancy ab48f37f68 MDL-69608 core_form: frozen forms do not have form tag 2020-09-02 11:27:29 +02:00
Noel De Martin 6180264ae8 MDL-69360 behat: Fix js ready checks for non-moodle sites 2020-09-02 10:21:09 +02:00
Eloy Lafuente (stronk7) b7905dd4e0 Merge branch 'wip_MDL-69491_m38' of git://github.com/gjb2048/moodle into MOODLE_38_STABLE 2020-09-02 00:27:50 +02:00
Sara Arjona 8d470c5802 Merge branch 'MDL-64525-m38' of https://github.com/NeillM/moodle into MOODLE_38_STABLE 2020-09-01 14:20:44 +02:00
Mihail Geshoski 1d183e38b1 MDL-69525 core: Publish a single event when toggling slave checkboxes 2020-09-01 15:07:49 +08:00
Sara Arjona 80efaa9828 Merge branch 'MDL-51709-38' of git://github.com/lucaboesch/moodle into MOODLE_38_STABLE 2020-09-01 09:04:37 +02:00
Sara Arjona 25c47ba407 Merge branch 'MDL-69394-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-09-01 06:45:38 +02:00
Tim Hunt 33f880fba7 MDL-69507 duration form field: should return an int number of seconds 2020-09-01 11:38:36 +08:00
Andrew Nicols 9e9a1db47a Merge branch 'MDL-69387-38-2' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-09-01 11:00:04 +08:00
Andrew Nicols a711c69d8f Merge branch 'MDL-69505-38' of https://github.com/snake/moodle into MOODLE_38_STABLE 2020-09-01 07:30:40 +08:00
Andrew Nicols 2a98eedef0 Merge branch 'MDL-56595-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-09-01 07:30:40 +08:00
Luca Bösch dadccb9237 MDL-51709 gradebook: Name display in single view. 2020-08-31 18:26:01 +02:00
Shamim Rezaie 2ce0766cfc MDL-69116 qtype_multichoice: accessibility improvement
- Screen-readers should not see 'clear my choice' when it is not visible
- 'clear my choice' option should only become visible when a choice is
selected
2020-09-01 00:09:38 +10:00
Shamim Rezaie d456737d72 MDL-69116 qtype_mutichoice: Use label for the "clear my choice" link 2020-08-31 23:59:22 +10:00
Bas Brands cef948595b MDL-69069 theme_boost: color contrast for custom alerts 2020-08-31 08:47:25 +02:00
Jake Dallimore 24bf9c39d9 MDL-69505 core_form: fix js min/max date restriction in dateselector
This was using the yui2-calendar attribute, not the yui 3 attribute.
2020-08-31 08:11:59 +08:00
Gareth Barnard adca4fe505 MDL-69491 themes: No 'fontsize' setting in Boost causes unit conflict. 2020-08-28 14:08:27 +01:00
Marina Glancy a44ce9a024 MDL-55340 mod_feedback: export question labels
This was present in export in 3.0 but got lost during export
refactoring in 3.1
2020-08-28 12:25:24 +02:00
Andrew Nicols fde001145b Merge branch 'MDL-69112-38' of git://github.com/merrill-oakland/moodle into MOODLE_38_STABLE 2020-08-28 13:27:39 +08:00
Nathan Nguyen 85ffac56e8 MDL-68680 core_grades: check grade item before trigger delete event 2020-08-28 11:40:14 +10:00
Paul Holden 11b4e810fb MDL-56595 tool_usertours: set page params when configuring tours/steps. 2020-08-27 23:07:59 +01:00
Tim Hunt ab1545b20e MDL-69246 questions: allow for float issues when validating manual marks
As well as fixing the bug, I also rewrote the test to use
data providers, which should lead to more useful failure messages.

And, I moved the magic number we used as the float tolerence to
be a named constant.
2020-08-27 17:40:45 +01:00
Sara Arjona c3673a9be1 weekly release 3.8.4+ 2020-08-27 17:36:26 +02:00
Sara Arjona 9283ba7380 Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-08-27 17:36:24 +02:00
Jun Pataleta bb41dd7921 MDL-69262 core: Use core/action_menu_link in core/action_menu_trigger
* Introduce the "actionmenulinkclasses" block in the action_menu_link
template so other templates importing it can have the option to override
its classes.
* Have the action menu trigger template use the action menu link
template to reduce code duplication.
2020-08-27 13:23:24 +08:00
Jun Pataleta 8305c3ce9a MDL-69262 core: Make instance count variable as a static class variable
With the static function variable $instance, calls to
\action_menu_link::export_for_template() from its subclasses are stored
in different variables. This causes duplicate IDs when different
implementations of action menu links are rendered on the action menu
trigger/link template. (e.g. action_menu_link and
action_menu_link_secondary both rendered on the same page).
To make the incrementing uniform for the action_menu_link class and its
implementations, the $instance variable is moved out of the
export_to_template() method and is now made to a static class variable.
2020-08-27 13:17:45 +08:00
Andrew Nicols 1592b68f0b Merge branch 'MDL-69458-38' of git://github.com/mihailges/moodle into MOODLE_38_STABLE 2020-08-27 12:43:48 +08:00
Andrew Nicols faf7b144a1 Merge branch 'MDL-69501-38-enfix' of git://github.com/mudrd8mz/moodle into MOODLE_38_STABLE 2020-08-27 11:31:35 +08:00
eWallah 08c359f366 MDL-67413 competencies: do nothing upon activity completion 2020-08-27 11:09:09 +08:00
Andrew Nicols b03196fe78 Merge branch 'MOODLE_38_MDL-69358' of https://github.com/golenkovm/moodle into MOODLE_38_STABLE 2020-08-27 10:58:17 +08:00
Justin Hunt ec92de9187 MDL-66810 mod_lti: Reinstate deprecated default permissions on iframe
microphone, webcam, camera, midi, encrypted-media, geolocation
2020-08-27 10:27:02 +08:00
AMOS bot c3fcedf205 Automatically generated installer lang files 2020-08-27 00:07:14 +00:00
Adrian Greeve d2dec45ec8 Merge branch 'MDL-69419-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-08-27 08:06:30 +08:00
Sara Arjona 84564c42c8 Merge branch 'MDL-69389-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-08-26 18:03:13 +02:00
Sara Arjona 1084eba9a8 Merge branch 'MDL-69114-38' of git://github.com/bmbrands/moodle into MOODLE_38_STABLE 2020-08-26 16:29:01 +02:00
Jun Pataleta 6895074a62 MDL-69389 theme_classic: Make default body font colour darker
Links and normal text should have at least a colour contrast ratio
of 3:1. To achieve this, $body-color will be using the darker
shade of gray $gray-900 (#212529).
2020-08-26 11:07:41 +08:00
Jun Pataleta d79cd16ae7 MDL-69389 theme_boost: Make default body font colour darker
Links and normal text should have at least a colour contrast ratio
of 3:1. To achieve this, $body-color will be using the darker
shade of gray $gray-900 (#212529).
2020-08-26 11:07:41 +08:00
Jun Pataleta 9579c751ab MDL-69387 pix: Create PNG versions of the darkened completion icons
Thanks to Barbara Ramiro <barbara@moodle.com> for the help in
generating these PNG versions of the darkened completion icons!
2020-08-26 11:03:28 +08:00
Jun Pataleta 1cb1763216 MDL-69387 pix: Darken completion icons
Darkened the fills of completion icons in order to meet the required
minimum contrast ratio of 3:1.
* Changed gray fills (#999) to #949494.
* Changed blue fills (#76A1F0) to #6393ee
* Changed green fills (#9C3) to #79a128

Thanks to Barbara Ramiro <barbara@moodle.com> for the help in
updating the SVG icons!
2020-08-26 11:03:28 +08:00
Jun Pataleta 2fb006bfb1 MDL-69394 calendar: Fix event colour indicator contrast
* Darkened the link and clickable icon colours inside coloured events.
* Added borders around event colour indicators inside the month-view of
  the calendar for better contrast against the white background.
2020-08-26 11:01:17 +08:00
Andrew Nicols fbc937f4b4 MDL-69419 core: Task reset tests cannot use random test times
If a scheduled task which uses a 'R' field is picked, then the reset of
updated task times will not necessarily be correctly determined as the
randomisation is picked during reset.

This can lead to some random test failures.

Actively specifying a test which does not make use of the 'R' random
field time addresses this issue.
2020-08-26 09:58:49 +08:00
AMOS bot e30b6117f7 Automatically generated installer lang files 2020-08-26 00:07:33 +00:00
Jun Pataleta d0d16bd8fb MDL-69391 theme: Darken course selector text colour
Use $gray-600 for a darker text colour in the course select box.
This also makes the colour consistent with the view selector which
also uses $gray-600.
2020-08-25 14:48:40 +08:00
Jun Pataleta dc378c70e3 MDL-69391 theme: Darken navbar-light colour
Increase the opacity for the sass variable $navbar-light-color a
little bit in order to achieve an acceptable colour contrast against
the white background.
2020-08-25 14:47:51 +08:00
Neill Magill 15aa7e0b20 MDL-64525 comments: Should not be able to delete frozen comments
Before this change in a frozen context a user would be able to delete
their own comments.

After this change a user will only be able to delete their own comments
if they still have the capability to post new comments or the capability
to delete comments from any user.
2020-08-24 08:01:26 +01:00
Neill Magill 5192605a11 MDL-64525 comments: Tests for deleting frozen comments 2020-08-24 08:01:26 +01:00
Mihail Geshoski c6d2515534 MDL-69458 report_insights: Respect perpage value in pagination bar 2020-08-24 09:30:57 +08:00
Eloy Lafuente (stronk7) 4f3271c536 Merge branch 'MDL-69493-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-08-22 17:09:54 +02:00
AMOS bot b4025d8655 Automatically generated installer lang files 2020-08-22 00:07:58 +00:00
Eloy Lafuente (stronk7) a4ab0db4bd weekly release 3.8.4+ 2020-08-21 20:43:15 +02:00
Helen Foster 972f50ff90 MDL-69501 lang: Import fixed English strings (en_fix)
Significant string change: error:nobadges,core_badges - Additional info
explaining that site badges can only have other site badges as criteria
2020-08-21 13:58:56 +02:00
Jun Pataleta 5aeec826f8 Merge branch 'MDL-66818-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-08-21 11:32:57 +08:00
Andrew Nicols 94d2dcb8e1 MDL-66818 mod_forum: Use cap manager to check exportability 2020-08-21 08:17:27 +08:00
Andrew Nicols c8273f7d7f MDL-42434 chat: Disable stylelint important check 2020-08-21 07:38:06 +08:00
Sara Arjona affb1ae2ff MDL-42434 mod_chat: styles for chat themes to view help-icon properly
The styles for the bubble and the compact themes have been reviewed
because there weren't enough contrast for the help icon.
2020-08-20 23:44:00 +01:00
Sara Arjona fea72a6eb3 MDL-42434 mod_chat: display the whole help text
When testing this issue was raised that the help text was cut-off.
This patch should fix this issue changing the placement from
right/left to top.
2020-08-20 23:44:00 +01:00
Andrew Nicols 64d0d94aeb Merge branch 'MDL-69375_38' of https://github.com/Cvmcosta/moodle into MOODLE_38_STABLE 2020-08-20 11:51:24 +08:00
Adrian Greeve 9b4d87bcc2 Merge branch 'MDL-68964-38' of git://github.com/ferranrecio/moodle into MOODLE_38_STABLE 2020-08-20 11:43:33 +08:00
Adrian Greeve 18740e4938 Merge branch 'MDL-42434-38' of git://github.com/sarjona/moodle into MOODLE_38_STABLE 2020-08-20 11:25:35 +08:00
Adrian Greeve 261be42ab5 Merge branch 'MDL-68683-38-fix' of git://github.com/lameze/moodle into MOODLE_38_STABLE 2020-08-20 10:25:59 +08:00
Andrew Nicols 181bef2ed6 Merge branch 'MDL-69449-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-08-20 09:26:59 +08:00
Andrew Nicols 94bd3452e4 Merge branch 'MDL-68889-38' of git://github.com/bmbrands/moodle into MOODLE_38_STABLE 2020-08-20 09:20:01 +08:00
Simey Lameze fb9670a9b2 MDL-68683 competencies: fix query to delete stale files 2020-08-20 09:17:42 +08:00
Andrew Nicols 00cbbbc930 Merge branch 'MDL-67415_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE 2020-08-20 08:31:12 +08:00
Andrew Nicols bb31c5eb3e Merge branch 'MDL-66818-38' of git://github.com/lameze/moodle into MOODLE_38_STABLE 2020-08-20 08:17:17 +08:00
Simey Lameze 9d5a987a97 MDL-66818 mod_forum: remove unnecessary behat steps 2020-08-20 08:05:13 +08:00
gthomas2 a1b7b8b98f MDL-66818 mod_forum: hide portfolio export button based on caps 2020-08-20 08:05:13 +08:00
Andrew Nicols 1e157fb528 Merge branch 'MDL-66900-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-08-20 07:55:34 +08:00
Andrew Nicols b5c1e5379e Merge branch 'MDL-69271_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE 2020-08-20 07:36:44 +08:00
Andrew Nicols c78a136be4 Merge branch 'MDL-61215-38' of git://github.com/sarjona/moodle into MOODLE_38_STABLE 2020-08-20 07:17:37 +08:00
Andrew Nicols 978fff44ab Merge branch 'MDL-69401-38' of git://github.com/mihailges/moodle into MOODLE_38_STABLE 2020-08-20 07:03:54 +08:00
Victor Deniz Falcon 3b212136de Merge branch 'MDL-69297-38' of git://github.com/peterRd/moodle into MOODLE_38_STABLE 2020-08-19 23:48:56 +01:00
Eloy Lafuente (stronk7) 9ffab782f7 MDL-63375 workshop: apply specific IE10/11 fix
Credit goes to Matt Davidson (Syxton)
2020-08-19 17:54:18 +02:00
Peter Dias 30ccbb075c MDL-69297 assign: Check whether there is content for a submission
Confirm there is some content to be submitted for an assignment when processing it.
2020-08-19 15:48:33 +08:00
Adrian Greeve 793823bca8 Merge branch 'MDL-66665-38-POC2' of git://github.com/peterRd/moodle into MOODLE_38_STABLE 2020-08-19 14:29:58 +08:00
Peter Dias dd8b086494 MDL-66665 assign: Check whether a modified user could actually grade 2020-08-19 13:41:02 +08:00
Adrian Greeve 30b2b58c27 Merge branch 'MDL-68683-38' of git://github.com/lameze/moodle into MOODLE_38_STABLE 2020-08-19 12:58:27 +08:00
Adrian Greeve 8c5a8a25b5 Merge branch 'MDL-69475_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE 2020-08-19 10:46:01 +08:00
Andrew Nicols f6c9f72a76 Merge branch 'MDL-26401-38' of git://github.com/lameze/moodle into MOODLE_38_STABLE 2020-08-19 08:52:43 +08:00
Eloy Lafuente (stronk7) 7e1223958c Merge branch 'MDL-65847-auth_db_error_handling-38' of git://github.com/leonstr/moodle into MOODLE_38_STABLE 2020-08-19 00:35:48 +02:00
Eloy Lafuente (stronk7) 43362649e5 Merge branch 'MDL-63375-38' of https://github.com/syxton/moodle into MOODLE_38_STABLE 2020-08-19 00:13:24 +02:00
Eloy Lafuente (stronk7) bddf4eecf6 Merge branch 'MDL-68444-38' of git://github.com/rezaies/moodle into MOODLE_38_STABLE 2020-08-18 19:15:23 +02:00
Eloy Lafuente (stronk7) e881a516d0 MDL-69475 backup: Proper handling of backup::RELEASE versions
1) Remove any floatval() casting. They are breaking / killing
   .10 versions (converting them to .1). Since Moodle 2.0 all the
   backup::RELEASE have been 100% numerical values.
2) Use version_compare() always to compare backup::RELEASE values.
   They are always versions and the function is aware of versions
   > .9, able to clean/ignore alpha chars... and everything else.

Note that I've also changed a couple of cases in formats (topics and
weeks) that were correct, but just added the same comment and used
the same version_compare() comparison parameters style, so all uses
in core are consistent (and safe to be copied out there).
2020-08-18 16:25:55 +02:00
Eloy Lafuente (stronk7) 62c1a7b816 Merge branch 'MDL-69273-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-08-18 10:59:50 +02:00
Simey Lameze 0bca22b30f MDL-68683 competencies: step to delete orphaned evidence files 2020-08-18 16:07:08 +08:00
Simey Lameze 45d06fe9b6 MDL-68683 core: fix DML exception on upgrade step 2020-08-18 16:04:34 +08:00
Andrew Nicols 43930d5e8a MDL-69273 travis: Use exttests for https too 2020-08-18 07:50:48 +08:00
Andrew Nicols b226665e80 MDL-69273 travis: Move exttests check to after_script
The result of the final command `script` phase determines the build
result.

The cleanup belongs in the `after_script` phase.
2020-08-18 07:40:14 +08:00
Paul Holden edd91d16fa MDL-69493 cohort: remove escaping of return URL params. 2020-08-17 21:30:15 +01:00
Mihail Geshoski 5c3bdc9259 MDL-69401 book: Limit character length in chapter title 2020-08-17 09:04:36 +08:00
carlos 8dc60e1926 MDL-69375 mod_lti: Fix Names and Roles Link header format
- Changed line 469 of memberships.php to build Link header according to the Web Linking specification RFC8288.
2020-08-14 17:12:54 -03:00
Sara Arjona b91869f889 MDL-42434 mod_chat: add again the usingchat help icon
In Moodle 2.4 the help icon displayed in the chat window was
removed. It has been added to gui_ajax and gui_basic in order to help users.
2020-08-14 17:13:13 +02:00
Sara Arjona 25128d16aa MDL-61215 core_user: use the new optimised_image filetype group
For the user profile picture (instead of the web_image which includes
SVG files).
2020-08-14 17:06:51 +02:00
Sara Arjona 62cdf371df MDL-61215 core_badges: use the new optimised_image filetype group
For the badge picture (instead of the web_image which includes
SVG files).
2020-08-14 17:06:50 +02:00
Sara Arjona e6bf955210 MDL-61215 core_files: add new optimised_image group
Currently, PHP getimagesize method doesn't support SVG images.
As some features, such as badges, processs and optimise the images
before using them, a new filetype group has been created to exclude
SVG from there: optimised_image.
SVG can't be removed from web_image because then users won't be
able to add SVG images to their courses using labels, pages...
2020-08-14 17:06:50 +02:00
Eloy Lafuente (stronk7) 4ec7c29b30 MDL-69271 auth_ldap: Don't assume any ordering, just verify matches
Both ldap or the DB can return information in a non-consistent
ordering leading to events to be generated in different order.

And current tests are, right now, assuming a given order.

Note this is a rare random, but it's happening, so better
fix it, see the issue for some more details.

So we just do the tests ordering immune, verifying that all the
expected events have been triggered and done. Irrespectively of their order.
2020-08-14 13:40:13 +02:00
Andrew Nicols cf6cdd99d4 weekly release 3.8.4+ 2020-08-14 14:42:31 +08:00
Andrew Nicols 1ed9fa8f4a NOBUG: Fixed SVG browser compatibility 2020-08-14 14:42:29 +08:00
Andrew Nicols f520dbe674 Merge branch 'MDL-68666-38' of git://github.com/bmbrands/moodle into MOODLE_38_STABLE 2020-08-13 15:21:52 +08:00
Bas Brands b61392fa53 MDL-68666 core_pix: add missing fallback icons 2020-08-13 08:51:18 +02:00
Andrew Nicols c4fc929e3f Merge branch 'MDL-69253_38' of https://github.com/timhunt/moodle into MOODLE_38_STABLE 2020-08-13 11:53:06 +08:00
Andrew Nicols ae320424ef Merge branch 'MDL-60492-tagcloud_html-38' of https://github.com/leonstr/moodle into MOODLE_38_STABLE 2020-08-13 11:45:28 +08:00
Adrian Greeve 2d14596f5a Merge branch 'MDL-68423-38' of git://github.com/ferranrecio/moodle into MOODLE_38_STABLE 2020-08-13 11:06:30 +08:00
Andrew Nicols 11e171ffe5 Merge branch 'MDL-69421-38' of git://github.com/noeldemartin/moodle into MOODLE_38_STABLE 2020-08-13 09:36:14 +08:00
Andrew Nicols 3d5679803d Merge branch 'MDL-60260-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-08-13 07:55:52 +08:00
Eloy Lafuente (stronk7) bdea78ba61 MDL-67415 environment: change requirements
- mysql requirement up to 5.7
- postgres requirement up to 9.6
2020-08-13 01:30:26 +02:00
Eloy Lafuente (stronk7) c6fb7763bb MDL-67415 environment: 3.10 base information
This is a direct copy of the 3.9 branch to have
changes under control easier for next commits.
2020-08-13 01:30:26 +02:00
Eloy Lafuente (stronk7) 1d412ff1df Merge branch 'MDL-68860-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-08-13 01:08:43 +02:00
Eloy Lafuente (stronk7) 2e93f26f2f Merge branch 'MDL-68558-38-plugindepscheckdeadend' of git://github.com/mudrd8mz/moodle into MOODLE_38_STABLE 2020-08-13 00:40:25 +02:00
Eloy Lafuente (stronk7) 81dfa11ba8 Merge branch 'MDL-67394-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-08-13 00:29:24 +02:00
Eloy Lafuente (stronk7) 6a6caa019f Merge branch 'MDL-67002_38' of https://github.com/timhunt/moodle into MOODLE_38_STABLE 2020-08-13 00:26:20 +02:00
Ferran Recio c1b3ba3e07 MDL-68964 mod_chat: fix theme param 2020-08-12 17:31:42 +02:00
Bas Brands 5d412e18e7 MDL-68889 block_recentlyaccessedcourses: small viewport issues
- on small devices the recentlyaccessedcourses does not show any courses
2020-08-12 13:06:20 +02:00
Paul Holden b73bb7b9c4 MDL-66900 course: don't clean category description when editing. 2020-08-12 11:48:35 +01:00
Simey Lameze d4d744d544 MDL-26401 group: change import to use csv_import_reader class 2020-08-12 16:36:05 +08:00
Simey Lameze 4cdcf3a407 MDL-26401 group: add delimiter and encoding fields to import 2020-08-12 16:36:05 +08:00
Paul Holden a0283e7bb3 MDL-69449 block_timeline: use dayslimit context data in template.
Ensures the correct value is used when initially rendering the
course timeline.
2020-08-12 09:19:47 +01:00
Andrew Nicols 0ae11f6123 Merge branch 'MDL-68618-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-08-12 13:41:21 +08:00
Andrew Nicols c1efa9acf4 Merge branch 'MDL-69353-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-08-12 11:22:59 +08:00
Andrew Nicols 5ed2aef513 Merge branch 'MDL-68334-38' of git://github.com/lucaboesch/moodle into MOODLE_38_STABLE 2020-08-12 11:14:35 +08:00
Andrew Nicols 1466bef278 Merge branch 'MDL-69296-m38' of https://github.com/NeillM/moodle into MOODLE_38_STABLE 2020-08-12 10:31:43 +08:00
Mikhail Golenkov 7132e1a398 MDL-69358 backup: Do not clean up records for incomplete adhoc tasks.
Co-authored-by: Heena Agheda <heenaagheda@catalyst-au.net>
2020-08-12 12:09:30 +10:00
Andrew Nicols 4328b93712 Merge branch 'MDL-68731_38' of https://github.com/jonof/moodle into MOODLE_38_STABLE 2020-08-12 09:12:37 +08:00
Andrew Nicols bdfc738c6f Merge branch 'MDL-69168_recently-accessed-items-block-uses-stock-lti-icon' of https://github.com/stopfstedt/moodle into MOODLE_38_STABLE 2020-08-11 13:00:54 +08:00
Adrian Greeve 07d4b70470 Merge branch 'MDL-69204-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-08-11 08:46:22 +08:00
Paul Holden de58d4b0a1 MDL-68618 mod_forum: stop reverting idnumber when updating instance. 2020-08-10 09:11:20 +01:00
Paul Holden 349ebe7f45 MDL-68860 mod_lti: Oracle support for retrieving shared secrets.
Thanks to Mark van Hoek!
2020-08-10 09:06:33 +01:00
Adrian Greeve fe39303913 Merge branch 'MDL-60493-grader_span_tag-38' of https://github.com/leonstr/moodle into MOODLE_38_STABLE 2020-08-10 09:23:13 +08:00
Luca Bösch 7abc2da93b MDL-68334 user: Display name in footer as elsewhere. 2020-08-08 10:30:04 +02:00
Stefan Topfstedt bf9d8d79d5 MDL-69168 block_recentlyaccesseditems: apply custom icon
Overwrite the default mod icon with the configured icon url if
applicable.
2020-08-07 09:13:06 -07:00
Matt Davidson 155332f4aa MDL-63375 workshop: fix rubric grid view 2020-08-07 08:49:27 -04:00
Eloy Lafuente (stronk7) 24c68767e5 weekly release 3.8.4+ 2020-08-06 20:51:27 +02:00
Noel De Martin 5b38dd9e1e MDL-69421 behat: Revert app behat navigation to call session visit 2020-08-06 12:15:07 +02:00
Jun Pataleta 72f730972a Merge branch 'MDL-60501-h4_close_tag-38' of https://github.com/leonstr/moodle into MOODLE_38_STABLE 2020-08-06 12:11:07 +08:00
Jun Pataleta f5c7fcd181 Merge branch 'MDL-69111-38' of git://github.com/bmbrands/moodle into MOODLE_38_STABLE 2020-08-06 11:48:34 +08:00
Adrian Greeve 2d436520dc Merge branch 'MDL-40227-38-1' of git://github.com/peterRd/moodle into MOODLE_38_STABLE 2020-08-06 11:29:35 +08:00
Peter eb5d0d7d59 MDL-40227 mod_lesson: Use localised float formatting
* Leverage PARAM_LOCALISEDFLOAT
* Store all numbers with standard '.' dec formatting
* Show all numbers based on locale settings
* Behat test to cover different cases using numeric questions and modified locale setting
2020-08-06 10:44:48 +08:00
Adrian Greeve d158589158 Merge branch 'MOODLE_38_MDL-66626' of https://github.com/golenkovm/moodle into MOODLE_38_STABLE 2020-08-06 09:08:26 +08:00
Eloy Lafuente (stronk7) 268e3b893a Merge branch 'MDL-66670-38' of git://github.com/bmbrands/moodle into MOODLE_38_STABLE 2020-08-06 00:58:33 +02:00
Leon Stringer 54004f286e MDL-60492 core_tag: Fix title attribute
Attribute 'title' was specified inside a condition but closing `"` was
outside condition possibly resulting in <a href="..." class="..." ">.
Also moved </a> outside of condition to match <a>.
2020-08-05 12:56:02 +01:00
Adrian Greeve 12baca4b15 Merge branch 'MDL-68647-38-forumprivacysql' of git://github.com/mudrd8mz/moodle into MOODLE_38_STABLE 2020-08-05 14:23:28 +08:00
Adrian Greeve 08e86bd7b1 Merge branch 'MDL-60932-38' of git://github.com/aanabit/moodle into MOODLE_38_STABLE 2020-08-05 10:09:44 +08:00
Eloy Lafuente (stronk7) 36e03f1596 Merge branch 'MDL-67831-38' of git://github.com/bmbrands/moodle into MOODLE_38_STABLE 2020-08-05 00:48:31 +02:00
Tim Hunt b1341895b1 MDL-69253 mod_quiz: unit test for the last commit 2020-08-04 14:51:13 +01:00
Josh Ebarvia 6d3dca55f8 MDL-69253 mod_quiz: Fix timecreated is 0 when creating a quiz activity 2020-08-04 14:51:12 +01:00
Jun Pataleta d86741395e Merge branch 'MDL-60574_38' of https://github.com/t-schroeder/moodle into MOODLE_38_STABLE 2020-08-04 19:50:20 +08:00
Eloy Lafuente (stronk7) 0f6c21c836 Merge branch 'MDL-55299-38' of git://github.com/ferranrecio/moodle into MOODLE_38_STABLE 2020-08-04 12:34:15 +02:00
Tim Schroeder 8ae39ac69e MDL-60574 atto_undo: fixed redo erasing content
When you'd hit ctrl-y with nothing on the redo stack the entire
content of Atto would get deleted with no way of getting it back.
2020-08-04 09:25:23 +02:00
Leon Stringer 957baa0871 MDL-65847 auth_db: user_update() handle errors
The external database authentication plugin (auth_db) can update the
external database if mapped fields are set to Update external: On
update.  This change adds error handling in case this update fails.
2020-08-03 11:42:50 +01:00
Eloy Lafuente (stronk7) 678bcecc0d Merge branch 'MDL-62980-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-08-03 12:38:37 +02:00
Bas Brands 06f6b499eb MDL-69114 theme_boost: improve the color contrast for .*-info classes 2020-08-03 11:41:40 +02:00
Eric Merrill 88aa4e2071 MDL-69112 assign: Improve parsing of uploaded feedback names 2020-07-31 19:08:43 -04:00
Amaia Anabitarte 49403f979a MDL-60932 core_user: Fix docs link for participants page
Co-authored by: David Mudrák <david@moodle.com>
2020-07-31 10:30:43 +02:00
Neill Magill 28047fa3b1 MDL-69296 resource: Pressing cancel should always exit settings form
Before this change if a user used navigated to a resource activity
from another activity and then edited the settings it was likely
that using the cancel button would result in file downloading,
rather than being returned to their last page.

After this change the user will be back on the page they came from.
2020-07-31 07:58:16 +01:00
Paul Holden 98292864e8 MDL-67394 dml: improve thrown exception when Oracle can't parse query. 2020-07-30 16:23:02 +01:00
Victor Deniz Falcon 71f3a7fca9 weekly release 3.8.4+ 2020-07-30 12:54:08 +01:00
Victor Deniz Falcon 8a416d4e63 Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-07-30 12:54:02 +01:00
Paul Holden 94f4f39ab7 MDL-62980 tool_dataprivacy: show persistent errors inside form. 2020-07-30 08:23:26 +01:00
Eloy Lafuente (stronk7) ad30b41f91 Merge branch 'MDL-63252-38' of git://github.com/lameze/moodle into MOODLE_38_STABLE 2020-07-30 00:48:15 +02:00
Victor Deniz Falcon 7803827502 Merge branch 'MDL-66707-38' of git://github.com/rezaies/moodle into MOODLE_38_STABLE 2020-07-29 23:18:09 +01:00
Victor Deniz Falcon a6986b3e36 Merge branch 'MDL-68968-38' of git://github.com/lameze/moodle into MOODLE_38_STABLE 2020-07-29 22:03:16 +01:00
Paul Holden 73b7597a8c MDL-60260 course: validate external fields on create/update course.
Ensure course fullname/shortname fields are not empty.
2020-07-29 19:57:30 +01:00
Victor Deniz Falcon 9b54ddd465 Merge branch 'MDL-68706-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-07-29 19:04:18 +01:00
Victor Deniz Falcon 39dc97aef9 Merge branch 'MDL-69199-38' of git://github.com/aanabit/moodle into MOODLE_38_STABLE 2020-07-29 11:56:08 +01:00
Jonathon Fowler 8351210984 MDL-68731 forum: fix digests not correctly updating post read statuses 2020-07-29 15:41:21 +10:00
Jun Pataleta bfce37757f Merge branch 'MDL-69252-close_tag-38' of https://github.com/leonstr/moodle into MOODLE_38_STABLE 2020-07-29 11:17:32 +08:00
Eloy Lafuente (stronk7) b4d8be2042 Merge branch 'MDL-69319-38' of https://github.com/snake/moodle into MOODLE_38_STABLE 2020-07-29 00:20:53 +02:00
Leon Stringer 7d3b148e94 MDL-60493 mod_assign: Unused JS variables
Removed unused JavaScript variables fixing CI warning "ESLint error
[no-unused-vars]".
2020-07-28 12:05:49 +01:00
Leon Stringer 595e05d2a7 MDL-60493 mod_assign: Remove rogue </span>
In the grading interface (/mod/assign/view.php?id=2&action=grader)
there was a rogue </span> with no opening <span>.  Also changed
<span><form> to <div><form> in included template fixing CiBoT HTML
Validation error.
2020-07-28 12:05:12 +01:00
Jun Pataleta 4a776d2f67 Merge branch 'MDL-65453-38' of git://github.com/lameze/moodle into MOODLE_38_STABLE 2020-07-28 11:41:46 +08:00
Simey Lameze 975c1d4438 MDL-65453 core: fix behaviour of --skip-database option on install 2020-07-28 11:27:39 +08:00
Paul Holden 019e7dd26c MDL-69204 tool_dataprivacy: summary link only on current user profile. 2020-07-27 17:24:48 +01:00
Jun Pataleta 1b479562cd Merge branch 'MDL-66755-38' of https://github.com/SergioComeron/moodle into MOODLE_38_STABLE 2020-07-27 17:07:38 +08:00
AMOS bot d2b35aea26 Automatically generated installer lang files 2020-07-27 00:07:37 +00:00
AMOS bot 3678ad0949 Automatically generated installer lang files 2020-07-27 00:07:37 +00:00
Mikhail Golenkov 8c4893ffdc MDL-66626 assignfeedback_editpdf: Check page count for attempt.
Co-Authored-By: John Yao <johnyao@catalyst-au.net>
2020-07-27 09:51:54 +10:00
Mikhail Golenkov bab00d9b8c MDL-66626 assignfeedback_editpdf: Count files outside of foreach loop.
Co-Authored-By: John Yao <johnyao@catalyst-au.net>
2020-07-27 09:51:54 +10:00
AMOS bot 88723a6a1d Automatically generated installer lang files 2020-07-25 00:08:02 +00:00
Paul Holden 035c042f1e MDL-68706 customfield_textarea: allow field content to be cleared. 2020-07-24 13:44:58 +01:00
Paul Holden 6ed3f966b7 MDL-69353 admin: set page title when prompting for upgrade key. 2020-07-24 13:30:34 +01:00
Tim Hunt a7f70278c8 MDL-67002 quiz reports: fix sorting on Oracle in the responses report 2020-07-24 11:44:43 +01:00
Sergio Comerón ae1e1dfbd6 MDL-66755 forum: Subscription cancel when edit a message 2020-07-24 09:03:07 +02:00
Sam Marshall 5f417739f3 MDL-63252 tool_xmldb: convert default to float to avoid false positives 2020-07-24 07:54:02 +08:00
Simey Lameze 0d2f34b40d MDL-68968 core: fix wrong phpdoc on admin_externalpage 2020-07-24 07:46:33 +08:00
Amaia Anabitarte e0aa753fe1 MDL-69199 mod_quiz: Show timefinish in user Complete report 2020-07-23 18:54:25 +02:00
Victor Deniz Falcon f001dc447e weekly release 3.8.4+ 2020-07-23 16:10:30 +01:00
Victor Deniz Falcon cc80dec71e Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-07-23 16:10:25 +01:00
David Mudrák b89ebd255c MDL-68558 admin: Allow to go back to plugins check page on failed deps
Once the admin reaches the Plugin dependencies check with a failed
plugin dependency, the "Continue" button should take him/her to the
previous page where the dependency can be sorted out, or the plugin
installation cancelled. Also the "Cancel this installation" should work
on this page, too.

None of this was happening correctly because the page with failed
dependencies is loaded with "confirmplugincheck" set to 1 as a result
of confirming the previous step. We must explicitly override it back to
0 to navigate the user back to the previous step.
2020-07-23 17:05:03 +02:00
Bas Brands 0c773a6a16 MDL-67831 core_message: use space available for message index page
- the prevents the message reply box from being out of view when
a user has many conversations.
2020-07-23 11:34:52 +02:00
AMOS bot b45835b7b8 Automatically generated installer lang files 2020-07-23 00:07:56 +00:00
Victor Deniz Falcon 5aacc83bc4 Merge branch 'MDL-65819-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-07-22 19:01:36 +01:00
Ferran Recio ebb0e91226 MDL-55299 mod_feedback: fix quoted values donwload 2020-07-22 19:23:35 +02:00
Andrew Nicols 3ecf4dff52 MDL-69138 behat: Update session->visit() to use visit step 2020-07-22 16:48:37 +08:00
Andrew Nicols 3f2b9661d8 MDL-69138 behat: Add "I visit :localurl" step 2020-07-22 16:48:37 +08:00
Jun Pataleta 6b3d7a34dd Merge branch 'MDL-52052-38' of git://github.com/mihailges/moodle into MOODLE_38_STABLE 2020-07-22 13:46:59 +08:00
Jun Pataleta 2e38a7cc40 Merge branch 'MDL-68178-38' of git://github.com/mihailges/moodle into MOODLE_38_STABLE 2020-07-22 12:58:38 +08:00
Eloy Lafuente (stronk7) 95269fdb77 Merge branch 'MDL-69160-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-07-21 23:29:48 +02:00
Bas Brands 5a1745b254 MDL-69111 mod_forum: forum grading on small viewports
- changes to make the forum grading UI accessible in small
viewports to meet criterion 1.4.10 Reflow.
2020-07-21 17:42:55 +02:00
David Mudrák e271e28e78 MDL-68647 forum: Add index over posts privatereplyto field
This is to further improve the performance of searching of posts related
to the given user. Once both userid and privatereplyto are indexed, the
query planner can use the merged index to search for posts records.
2020-07-21 11:45:56 +02:00
David Mudrák 9cfcb4bf8a MDL-68647 forum: Improve the SQL performance in the privacy provider
The idea here is to replace the existing LEFT JOINs and
OR / IS NOT NULL conditions with INNER JOINs and ANDs. So we gather the
discussions data from all three areas in individual queries, make their
UNION. The GROUP BY was present before and maybe it is not even needed
any more (due to how UNION works) but it should not hurt to keep it.

This leads to significantly improved performance.
2020-07-21 11:45:56 +02:00
David Mudrák f25f8f0701 MDL-68647 forum: Add missing advanced grading library inclusion
The method get_grading_manager() is called in the file so make sure the
library is loaded. Without it, the forum's privacy provider unit test
ended with error.

Not directly related to the issue, but noticed while working on it.
2020-07-21 11:45:55 +02:00
Adrian Greeve 03670af6da Merge branch 'MDL-67657-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-07-21 14:49:14 +08:00
Ferran Recio 13f06f7a8e MDL-68423 message: avoid self-xss when send a message 2020-07-20 19:56:13 +02:00
Eloy Lafuente (stronk7) a080d4c0df Merge branch 'm38_MDL-67440' of https://github.com/danmarsden/moodle into MOODLE_38_STABLE 2020-07-20 17:08:31 +02:00
Leon Stringer ab7849c105 MDL-60501 themes: Fix closing <h4> in template
In site admin pages (/admin/search.php) <h4> elements were generated
with an incorrect second opening <h4> instead of a closing </h4>.
2020-07-20 15:20:42 +01:00
Bas Brands 756e148f31 MDL-66670 theme_boost: list bullet styling
Ensure lists with bullets are not cut off
2020-07-20 14:49:04 +02:00
Jake Dallimore 5a2ca41bba MDL-69319 mod_lti: style and docs changes in external tests 2020-07-20 15:04:10 +08:00
Jake Dallimore c9d1d8141f MDL-69319 mod_lti: replace try/catch with expectException in ext tests 2020-07-20 15:04:10 +08:00
Jake Dallimore 34616581c5 MDL-69319 mod_lti: remove unused vars from externallib_test 2020-07-20 15:04:10 +08:00
Jake Dallimore 33ec9e3a37 MDL-69319 mod_lti: move test data generation out of common setup 2020-07-20 15:04:10 +08:00
Jake Dallimore 147b984630 MDL-69319 mod_lti: call clean_returnvalue in external tests 2020-07-20 15:04:09 +08:00
Mihail Geshoski 4a2a779e12 MDL-68178 auth: CSRF protection for the resend confirmation email form
Credit to Chandra Kishor.
2020-07-20 12:31:06 +08:00
Adrian Greeve 6364b15e24 Merge branch 'MDL-69113_38' of https://github.com/jonof/moodle into MOODLE_38_STABLE 2020-07-20 10:37:49 +08:00
Mihail Geshoski b71744bb4d MDL-52052 gradeimport_csv: Do not skip rows with blank user fields 2020-07-20 08:55:51 +08:00
Eloy Lafuente (stronk7) 241eacaa7a Merge branch 'MDL-69278-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-07-18 11:56:15 +02:00
Paul Holden 37f3c318ea MDL-65819 message: send contact requests using recipient language. 2020-07-17 13:38:08 +01:00
Sara Arjona 4a6de87cae weekly release 3.8.4+ 2020-07-16 21:28:30 +02:00
Andrew Nicols a89aaec1af MDL-67657 behat: Open course with editing using URL
This is a huge performance improvement for behat.

The current set of steps loads the page
It then looks for the Classic/Clean version of the settings menu
If it fails to find it looks for the Boost Cog
Then it clicks the "Turn editing on" button

This can take a substantial period.

We do not actually need to run these steps as we are able to jump
straight to the URL. We already have access to the sesskey value
required to do this.

There is not loss in testing functionality because the actual testing of
the Turn editing functionality is tested in other places sufficiently.
2020-07-16 11:06:43 +08:00
Andrew Nicols 00df049b9a MDL-67657 behat: Convert existing uses of executeScript 2020-07-16 11:06:31 +08:00
Andrew Nicols a37313a6d1 MDL-67657 behat: Add wrapper for JS execution 2020-07-16 11:05:32 +08:00
Jun Pataleta b3c5e4f5d7 Merge branch 'MDL-69215-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-07-16 09:42:42 +08:00
Andrew Nicols 5eb38638bb MDL-69278 behat: Correct variable name 2020-07-16 08:30:13 +08:00
Andrew Nicols aeb85b66f2 MDL-69278 behat: Mark tests as failed when unable to start Session 2020-07-16 08:30:13 +08:00
Andrew Nicols 7ba288d1d0 MDL-69215 output: Correct use of icon_system::instance 2020-07-16 07:30:32 +08:00
Andrew Nicols d7e8f35e91 MDL-69215 output: Correct font awesome for themes 2020-07-16 07:30:32 +08:00
Eloy Lafuente (stronk7) db6f80a784 Merge branch 'MDL-69165-38' of https://github.com/HuongNV13/moodle into MOODLE_38_STABLE 2020-07-15 23:47:52 +02:00
Charles Fulton b20a875381 MDL-69074 admin: ensure consistent default for getremoteaddrconf 2020-07-15 19:06:06 +02:00
Sara Arjona f3d6fa182b Merge branch 'MDL-68605_38' of https://github.com/t-schroeder/moodle into MOODLE_38_STABLE 2020-07-15 18:52:57 +02:00
Sara Arjona 68a6b6db8d Merge branch 'MDL-68210-38' of https://github.com/snake/moodle into MOODLE_38_STABLE 2020-07-15 18:19:54 +02:00
Shamim Rezaie 9a66680ae1 MDL-66707 mod_forum: do not blindly mark discussion replies as read 2020-07-15 22:27:22 +10:00
Sara Arjona 8d90570067 Merge branch 'MDL-67671_38_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_38_STABLE 2020-07-15 14:11:55 +02:00
Sara Arjona a30f7f13ea Merge branch 'MDL-57678-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-07-15 12:56:54 +02:00
Jun Pataleta d780b1866e MDL-57678 core_course: Remove padding of nbsp's on category names
Padding nested course categories by space to make them render in a tree
structure does not really make a lot of sense as they are already being
rendered as full paths. It's simpler to show them without the
indentation.
2020-07-15 18:28:10 +08:00
Sara Arjona 273ef0b4e3 Merge branch 'MDL-69068-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-07-15 12:20:39 +02:00
Andrew Nicols 8402724494 MDL-69068 behat: Allow singular, pivotted data generators 2020-07-15 15:27:31 +08:00
Andrew Nicols 83b5aea43c MDL-69068 behat: New step to support singular generators 2020-07-15 15:25:27 +08:00
Sara Arjona 51f4f8c612 Merge branch 'MDL-68715-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-07-14 14:32:10 +02:00
Shamim Rezaie 5d9fb70f70 MDL-68444 calendar: Improve how screenreaders say week titles
Also removed the scope attribute from the mini-calendar table
because according to https://www.w3.org/TR/WCAG20-TECHS/H63.html
it was not needed:
  Note 1: For simple tables that have the headers in the first row
  or column then it is sufficient to simply use the TH elements without
  scope.
2020-07-14 22:12:59 +10:00
Shamim Rezaie 0368c8e2a8 MDL-68444 calendar: Improve how screenreaders read day titles
Screenreaders now know if each day has any event or not
2020-07-14 22:12:59 +10:00
Paul Holden 9fea1cc6e4 MDL-68715 completion: fix form default value for course prerequisites.
Adds filtering on the completion criteria form to ensure we are only
selecting actual course instances of this type. Prior to this change
we would also get NULL values from unrelated criteria types.
2020-07-14 12:45:54 +01:00
Sara Arjona b09e569189 Merge branch 'MDL-69228-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-07-14 12:41:33 +02:00
Sara Arjona 9afc404947 Merge branch 'MDL-69115-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-07-13 14:24:26 +02:00
Andrew Nicols 70d6af63ba MDL-69160 workshop: Ensure steps are chained 2020-07-13 14:22:31 +08:00
Andrew Nicols 4338982098 MDL-69160 behat: Add form field setter step 2020-07-13 14:22:31 +08:00
Eloy Lafuente (stronk7) 8634f2b672 Moodle release 3.8.4 2020-07-12 12:12:53 +02:00
Leon Stringer 678ca3ded7 MDL-69252 templates: Invalid HTML
Invalid HTML generated when the page count exceeded the maximum number
of page links to display: <span>...</a>.  Also added example context.
2020-07-11 12:54:43 +01:00
AMOS bot 7ec2bf3776 Automatically generated installer lang files 2020-07-10 19:52:55 +00:00
Eloy Lafuente (stronk7) a6227d5675 weekly release 3.8.3+ 2020-07-10 20:22:15 +02:00
Eloy Lafuente (stronk7) e4d47ed2cc Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-07-10 20:22:09 +02:00
Jake Dallimore 4d069c9339 Merge branch 'MDL-69232-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-07-10 15:12:11 +08:00
Andrew Nicols 3e741db933 MDL-69232 behat: Simplify hooks
The behat hooks were needlessly complicated which made them much harder
to read, and understand, leading to bugs during development.

These have been significantly simplified to favour clarity over
overloading.
2020-07-10 08:40:30 +08:00
Andrew Nicols 90221b5ccf MDL-69232 behat: Make selenium start more fault tolerant
The session was previously only started once, but has now been moved to
restart between each test. Because of this the `$session->start()` is
now called more frequently which exposes a pre-existing issue whereby
Selenium will periodically fail to start.

When the session was only started at the beginning of the test, and at
occasional other times, it made sense to always stop the test runner
because it signified an issue with obtaining the session at all.

Since the session is restarted more frequently, and now between every
test, it no longer makes sense to do this. The test should only be
_stopped_ if the first attempt to obtain the Session fails. Once a
Session has been retrieved at least once it no longer makes sense to
assume that the failure was a configuration failure, but a connection
failure. Therefore subsequent tests should be attempted.
2020-07-10 08:40:29 +08:00
Mark Johnson 2b36e5be2e MDL-67671 backup: Fix modname display on backup form 2020-07-09 10:13:08 +01:00
Jake Dallimore f2de1293e1 Merge branch 'MDL-69135-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-07-09 10:38:51 +08:00
Michael Hawkins ea79b6597a MDL-68426 theme: Set a limit on paths length in yui_combo
The maximum paths length is now consistent with the YUI loader.
This fix also removes any duplicate paths, so each file is only ever
fetched once.
2020-07-09 10:24:01 +08:00
Andrew Nicols 3b97a56c6a MDL-69232 behat: Add debugging information to Selenium fails 2020-07-09 09:45:35 +08:00
Andrew Nicols 07414b90e3 MDL-69232 behat: Move suite tests to BeforeSuite hook 2020-07-09 09:45:34 +08:00
Eloy Lafuente (stronk7) d49c18bba5 Merge branch 'MDL-69134-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-07-08 20:53:32 +02:00
Huong Nguyen 82ddfd7ea6 MDL-69165 Questions: Incorrect id used in init_submit_button function 2020-07-08 11:48:56 +07:00
Andrew Nicols ecc61a125b Merge branch 'MDL-68784-38' of https://github.com/Peterburnett/moodle into MOODLE_38_STABLE 2020-07-08 12:37:56 +08:00
Andrew Nicols d8538f29c4 Merge branch 'm38_MDL-66322_Travis_Run_Using_Docker_ExtTests' of https://github.com/scara/moodle into MOODLE_38_STABLE 2020-07-08 12:22:20 +08:00
Peter Burnett 881b487433 MDL-68784: Updated variable for graph report 2020-07-08 14:07:35 +10:00
Andrew Nicols da91dd3ea0 MDL-69228 tool_mobile: Hide dependant settings 2020-07-08 11:50:18 +08:00
Andrew Nicols e0c0a0c05c Merge branch 'MDL-60494-stray_img_end-38' of https://github.com/leonstr/moodle into MOODLE_38_STABLE 2020-07-08 09:25:11 +08:00
Andrew Nicols 246a03f7dd MDL-69134 competencies: Behat fails randomly opening dialogues 2020-07-08 09:21:54 +08:00
Jake Dallimore 121373ec8f MDL-68210 mod_lesson: fix random failure in override behat test 2020-07-08 09:10:20 +08:00
Jake Dallimore 8fb613ee9f MDL-68210 overrides: allow copy and delete of inactive overrides
This brings lesson and assign in line with the expected behaviour
already implemented in quiz. When an override is inactive, all controls
are shown.
2020-07-08 09:10:20 +08:00
Andrew Nicols 44fd35e8ee Merge branch 'MDL-69109-38-2' of git://github.com/marinaglancy/moodle into MOODLE_38_STABLE 2020-07-08 08:41:07 +08:00
Matt Clarkson 63b646acb1 MDL-67440 analytics: optimse delete's in clean up task. 2020-07-08 11:19:09 +12:00
Matteo Scaramuccia a28a24e2f2 MDL-66322 travis: Configure a local copy of 'exttests' 2020-07-07 21:55:47 +02:00
Eloy Lafuente (stronk7) 3639dc845e Merge branch 'MDL-69086-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-07-07 19:17:29 +02:00
Eloy Lafuente (stronk7) d63c297351 Merge branch 'm38_MDL-68588_Hide_Backuptempdir_From_Message_And_Debuginfo' of https://github.com/scara/moodle into MOODLE_38_STABLE 2020-07-07 19:10:51 +02:00
Eloy Lafuente (stronk7) 54faefbefb Merge branch 'MDL-68784-38' of https://github.com/Peterburnett/moodle into MOODLE_38_STABLE 2020-07-07 18:52:36 +02:00
Tim Schroeder 8c3e24b46c MDL-68605 mod_assign: return grp submissns from ws
Co-authored-by: Septatrix <24257556+Septatrix@users.noreply.github.com>
2020-07-07 12:56:28 +02:00
Víctor Déniz Falcón 735de9020e MDL-69093 enrol_manual: added check for allowed roles a user can assign 2020-07-07 08:33:18 +02:00
Andrew Nicols 71e5f30504 Merge branch 'MDL-69106-38' of git.in.moodle.com:cameron/moodle into MOODLE_38_STABLE 2020-07-07 14:16:48 +08:00
Eloy Lafuente (stronk7) 5b9c5ccf83 Merge branch 'MDL-60827-38' of git://github.com/mihailges/moodle into MOODLE_38_STABLE 2020-07-07 00:17:35 +02:00
Andrew Nicols 46b6ca69d1 Merge branch 'MDL-69158-38' of git://github.com/lucaboesch/moodle into MOODLE_38_STABLE 2020-07-06 12:12:47 +08:00
Jake Dallimore dbd41fa613 Merge branch 'MDL-69136-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-07-06 10:44:50 +08:00
Michael Hawkins 381f45d005 MDL-69129 report: Limit config changes report sort direction values 2020-07-06 10:11:39 +08:00
Mihail Geshoski 0397309abf MDL-60827 oauth2: Consider requireconfirmation setting on login 2020-07-06 10:05:50 +08:00
Michael Hawkins dca95c6fe4 MDL-69128 admin: Convert HTML entities when populating tasklogs filter 2020-07-06 10:05:05 +08:00
AMOS bot 112fc4d513 Automatically generated installer lang files 2020-07-06 00:08:36 +00:00
Leon Stringer 3b81550b8e MDL-60494 mod_lti: Invalid </img>, example context
<img> was followed by an invalid </img>.  Also added example context for
template so it passes CI checks.
2020-07-05 15:58:35 +01:00
Matteo Scaramuccia 0cf43f11f0 MDL-68588 Backup: Hide ->backuptempdir in exception info 2020-07-03 21:19:12 +02:00
Eloy Lafuente (stronk7) 035f5d9423 weekly release 3.8.3+ 2020-07-03 18:41:29 +02:00
Eloy Lafuente (stronk7) 1bae8bd482 Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-07-03 18:41:24 +02:00
Jake Dallimore 3bd1b121ed Merge branch 'MDL-69130-38-enfix' of git://github.com/mudrd8mz/moodle into MOODLE_38_STABLE 2020-07-02 12:08:53 +08:00
Jake Dallimore db58c4cdf2 Merge branch 'MDL-69149-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-07-02 11:57:34 +08:00
Jake Dallimore b730bb5702 Merge branch 'MDL-69122-38' of git://github.com/bmbrands/moodle into MOODLE_38_STABLE 2020-07-02 11:49:35 +08:00
AMOS bot d45a6dd3c3 Automatically generated installer lang files 2020-07-02 00:08:16 +00:00
Eloy Lafuente (stronk7) 0097d8d481 Merge branch 'MDL-69072-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-07-01 23:24:10 +02:00
Jake Dallimore ef6538a8c7 Merge branch 'MDL-68584-38' of git://github.com/lucaboesch/moodle into MOODLE_38_STABLE 2020-07-01 16:43:14 +08:00
Jun Pataleta 7a54747c9a MDL-69115 course: More course management accessibility fixes
* Added aria-label for category single select element when on Courses
view mode.
* Fix correct labelling of custom control checkboxes. Instead of adding
aria-label in the label element, add an sr-only span within the label.
* Remove inappropriate 'group' role for the list of courses.
The list of courses is not being rendered as a tree structure
so adding a 'group' role to the list of courses is not really
necessary.
* Add aria-label for the search courses field.
* Add legend for the search courses fieldset.
* Use the primary colour for the category selection highlight instead
of the info colour.
* Changed the labels for the up/down icons using moveup/movedown
lang strings.
2020-07-01 14:45:37 +08:00
Paul Holden fe65ebcf1c MDL-69150 message_airnotifier: correct apps portal link. 2020-07-01 08:39:59 +08:00
Paul Holden bc2d3e8bb9 MDL-69151 message_airnotifier: start output before accesskey request.
This allows debugging generated by the request to be shown on the
page.
2020-07-01 08:30:10 +08:00
Andrew Nicols d6ce289176 Merge branch 'MDL-67172-38' of git://github.com/cescobedo/moodle into MOODLE_38_STABLE 2020-07-01 07:47:53 +08:00
Marina Glancy d690ed3dd3 MDL-69109 theme: try to load icons from the current theme 2020-06-30 10:13:45 +02:00
Marina Glancy 704153c454 MDL-69109 core: use different cache keys for FA icon maps 2020-06-30 10:13:45 +02:00
Cameron Ball 37ee0fd966 MDL-69106 assignfeedback_editpdf: Keep files in conversion queue
In some circumstances, a submission waiting to be converted needs to persist
in the conversion queue so that it can be polled on subsequent cron runs.
2020-06-30 13:59:28 +08:00
Peter Burnett 58bf57d9d3 MDL-68784 scorm: Removed limit on allowed scorm users in report 2020-06-30 15:21:15 +10:00
Luca Bösch 71d4cc2f4e MDL-69158 block_blog_menu: format search form. 2020-06-29 11:13:46 +02:00
Andrew Nicols 913b96cb21 MDL-69136 behat: Improve reliability of navigation steps 2020-06-29 11:36:36 +08:00
Andrew Nicols 7c2fef6484 MDL-69136 behat: Support find on a NodeElement 2020-06-29 11:36:30 +08:00
Andrew Nicols 687c727cf9 MDL-69072 behat: Remove restart_browser_after feature
This is no longer required as the Mink session is restarted after every
test regardless.
2020-06-29 11:05:53 +08:00
Andrew Nicols ee6d899130 MDL-69072 mod_scorm: Stop mink reset after tests
This is now done for all scenarios. It is no longer necessary to do so
specifically for mod_scorm.
2020-06-26 21:17:22 +08:00
Andrew Nicols c18b08912f MDL-69072 behat: Relaunch browser session between scenarios 2020-06-26 21:17:22 +08:00
Andrew Nicols a46018529b MDL-69149 core_grade: Correct xpath attribute selector 2020-06-26 19:59:56 +08:00
Andrew Nicols 5ae95f265a MDL-69135 core_calendar: PendingJS for event filtering 2020-06-26 07:58:36 +08:00
Luca Bösch 456530205e MDL-68584 core_question: flexbox compatible separator for question types
* the br tag does not work well in a flexbox context, a 100% with div
works in both classic and boost.
2020-06-25 21:57:43 +02:00
cescobedo 6bfddeea21 MDL-67172 core_h5p: Prevent synchronous access to save the same h5p
Backport MDL-67095.
When deploying a new H5P resource we need to ensure that
we don't start deploying the same H5P in another thread
(e.g. for another session/user).
2020-06-25 18:42:40 +02:00
Eloy Lafuente (stronk7) 4557b7fed2 weekly release 3.8.3+ 2020-06-25 18:06:27 +02:00
Eloy Lafuente (stronk7) d93d8f65a8 Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-06-25 18:06:22 +02:00
Helen Foster 406d9bb40f MDL-69130 lang: Import fixed English strings (en_fix) 2020-06-25 14:30:09 +02:00
Jonathon Fowler cd8c136c70 MDL-69113 assign: save grader app workflow/marker filters correctly 2020-06-25 14:39:54 +10:00
Bas Brands a66d07b15c MDL-69122 report_competency: fix clearfix
- a misplaced clearfix caused part of the recontrols to be
inaccessible
2020-06-24 09:15:39 +02:00
Jake Dallimore 44b19c47bf Merge branch 'MDL-68992-38_france_digital_age' of https://github.com/martignoni/moodle into MOODLE_38_STABLE 2020-06-24 09:40:52 +08:00
Eloy Lafuente (stronk7) 81b393a717 Merge branch 'MDL-66568-38-2' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-06-23 17:57:33 +02:00
Nicolas Martignoni 6fb0f6f941 MDL-68992 Privacy: Update default minimal digital age of consent
Updating default minimal digital age of consent according to current legislation,
that was updated for several countries since 2018.
2020-06-23 12:23:36 +02:00
Jake Dallimore 4d26e345d0 Merge branch 'MDL-69021-38' of git://github.com/bmbrands/moodle into MOODLE_38_STABLE 2020-06-23 11:31:48 +08:00
Adrian Greeve 1c8b779f27 Merge branch 'MDL-68841-3.8.3' of https://github.com/DinhHien0307/moodle into MOODLE_38_STABLE 2020-06-23 09:50:54 +08:00
Bas Brands a4099f2932 MDL-69021 theme_boost: improve link styles in alerts
- provide default styles for links in alerts if the .alert-link
css class is omitted.
2020-06-22 16:51:03 +02:00
Adrian Greeve 2557a7f8ff Merge branch 'MDL-69077_38' of https://github.com/timhunt/moodle into MOODLE_38_STABLE 2020-06-22 10:42:49 +08:00
AMOS bot 9518c81ab8 Automatically generated installer lang files 2020-06-21 00:07:28 +00:00
Sara Arjona befe7cce8d Merge branch 'MDL-69008-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-06-19 16:49:29 +02:00
Andrew Nicols 2dc698fb17 MDL-69086 theme_boost: Improve pendingJs checks for bootstrap
Where an element, like an `alert`, is closed it is removed from the DOM
before the event fires (this is a correct behaviour).

This means that the final event confirming that the action happened
(i.e. close => closed) fires, but does not bubble up the DOM to the
document.body.

This change moves the end event listener to only be added after a start
event has been fired, and to attach directly to the HTMLElement where it
will be fired. This means that the Event handler will still be called,
even though it has been removed from the DOM, because it does not need
to bubble up to the body.
2020-06-19 08:17:45 +08:00
Sara Arjona 898415efec weekly release 3.8.3+ 2020-06-18 14:13:55 +02:00
Sara Arjona 5b5233321e Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-06-18 14:13:53 +02:00
Victor Deniz Falcon 4d4ad0fe60 Merge branch 'MDL-66899-log-quiz-regrade_38' of https://github.com/rboyatt/moodle into MOODLE_38_STABLE 2020-06-18 04:55:12 +01:00
Tim Hunt 8fcb1b459d MDL-69077 questions: question tag capabilties are relevant 2020-06-17 13:07:45 +01:00
Jun Pataleta 8816107de4 Merge branch 'MDL-68890-3.8.3' of https://github.com/DinhHien0307/moodle into MOODLE_38_STABLE 2020-06-17 19:54:19 +08:00
Jun Pataleta 42cf09b5b4 MDL-69008 core: Fix accessibility issues in paged content templates
* Added menuitem role for the "Show x per page" menu.
* Added appropriate aria-labels for the links in the paging bar.
2020-06-17 15:59:57 +08:00
Jake Dallimore 408c793ed7 Merge branch 'MDL-68215-38' of git://github.com/lucaboesch/moodle into MOODLE_38_STABLE 2020-06-17 14:59:02 +08:00
Jun Pataleta 6324b63372 Merge branch 'MDL-68971_38' of https://github.com/timhunt/moodle into MOODLE_38_STABLE 2020-06-17 11:35:01 +08:00
Jun Pataleta 3c91dc0784 Merge branch 'MDL-67294-38' of git://github.com/mihailges/moodle into MOODLE_38_STABLE 2020-06-17 10:34:06 +08:00
Andrew Nicols 4d3658f7d8 MDL-66568 behat: Reset theme CSS between scenarios 2020-06-17 07:51:47 +08:00
Andrew Nicols bcbc91091c MDL-66568 behat: Support building of themes for behat 2020-06-17 07:51:47 +08:00
Andrew Nicols d57acc9d80 MDL-66568 core_output: Return built theme CSS 2020-06-17 07:51:47 +08:00
Mihail Geshoski bc125390bb MDL-67294 assignsubmission_file: Make sure record exists before updating 2020-06-17 00:55:57 +08:00
Víctor Déniz Falcón f097a1a20f Merge branch 'MDL-69049-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-06-16 17:52:32 +01:00
Jun Pataleta adc032b170 Merge branch 'MDL-68436_38' of https://github.com/timhunt/moodle into MOODLE_38_STABLE 2020-06-16 14:39:02 +08:00
Jun Pataleta 6c8f7e1ce2 MDL-69049 tool_dataprivacy: Add possibly missing comment format columns
The earlier CONTRIB plugin versions of the tool (<33.2.0, <34.2.0) were
missing the following columns in the data requests table:
* commentsformat
* dpocommentformat
And the upgrade scripts for the merged tool failed in
Moodle 3.3.8+/3.3.0+ failed to add these columns.
So a site which uses the CONTRIB plugin and eventually upgrading to 3.9
will encounter an error during upgrade because of the missing
dpocommentformat column.
2020-06-15 23:42:10 +08:00
Luca Bösch 8cb7cb1fdc MDL-68215 block_activity_result: Format elements more nicely. 2020-06-15 15:25:28 +02:00
hiendinh 5f6ce419c4 MDL-68890 progressbar: prevent display exist file's progress bar 2020-06-15 10:53:12 +07:00
AMOS bot 74235813b3 Automatically generated installer lang files 2020-06-14 00:07:26 +00:00
Sara Arjona 409baab766 weekly release 3.8.3+ 2020-06-11 18:03:58 +02:00
Andrew Nicols ee884c9728 Merge branch 'MDL-69006-38' of git://github.com/bmbrands/moodle into MOODLE_38_STABLE 2020-06-11 13:05:39 +08:00
Andrew Nicols c6a9898ed0 Merge branch 'MDL-69002-38' of git://github.com/sarjona/moodle into MOODLE_38_STABLE 2020-06-11 11:21:16 +08:00
Adrian Greeve 80c3dcb8bf MDL-66601 atto_image: Remove bad build files. 2020-06-11 10:48:36 +08:00
Adrian Greeve 3c142d923f Merge branch 'MDL-66601-38' of git://github.com/mihailges/moodle into MOODLE_38_STABLE 2020-06-11 09:55:51 +08:00
Eloy Lafuente (stronk7) 53e4c04237 Merge branch 'MDL-68954-38' of git://github.com/mihailges/moodle into MOODLE_38_STABLE 2020-06-11 00:10:28 +02:00
Bas Brands 8cf375b627 MDL-69006 repository_flickr: flickr authentication fails
- Flickr does not like useragents including the word "Bot"
2020-06-10 15:56:27 +02:00
Tim Hunt 5e7c083dba MDL-68436 atto_recordrtc: only works once per page 2020-06-10 13:48:12 +01:00
Sara Arjona 7d896212f2 MDL-69002 core_badges: move backpack validation to a separate page
Instead of running the site backpack validation every time badges/backpacks.php
page is loaded, an action button has been added to the backpacks with OB set
to 2.0 to let admins running manually this verification when needed.
2020-06-10 13:01:29 +02:00
Sara Arjona 3a6950ccd7 MDL-69002 core_badges: add methods to support backpack validation
A more generic method has been added to the API to validate the
backpack connection (for now, there was only one method for
validating current backpack).
Besides, a renderer has been added to display this information
depending on the backpackid.
2020-06-10 12:45:14 +02:00
Sara Arjona 24562c031c MDL-69002 core_badges: remove site backpack verification from settings
This site backpack verification is not required so, instead of
running it always here, it will be moved to a separate page to let
admins decide when to check it.
2020-06-10 12:42:03 +02:00
Mihail Geshoski deca8028d9 MDL-66601 atto_image: Set the max-height of the image selection dialogue 2020-06-10 12:21:21 +08:00
Jun Pataleta 3063e8415a Merge branch 'MDL-68864-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-06-10 11:26:21 +08:00
Jun Pataleta ccbe61ee98 MDL-68864 qtype_multichoice: Rebuild clearchoice source map 2020-06-10 11:21:00 +08:00
Bas Brands ef874ad928 MDL-68864 qtype_multichoice: shift focus to first option on keyboard tab
- This prevents losing focus when using keyboard navigation
2020-06-10 11:15:17 +08:00
Bas Brands 9a33db6bea MDL-68864 qtype_multichoice: clearchoice
- Reverted changes from MDL-67901
2020-06-10 11:15:17 +08:00
Jake Dallimore b51501b403 Merge branch 'MDL-68972-38-enfix' of git://github.com/mudrd8mz/moodle into MOODLE_38_STABLE 2020-06-10 09:16:08 +08:00
Jake Dallimore 4f142bccce Merge branch 'MDL-68995-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-06-10 08:53:55 +08:00
Helen Foster dac9cc3139 MDL-68972 lang: Import fixed English strings (en_fix) 2020-06-09 21:08:54 +02:00
Paul Holden 281c882327 MDL-68995 atto_image: remove initial dialogue image src attribute.
It caused a spurious request to be sent to the server on display.
2020-06-09 15:47:55 +01:00
Sara Arjona bbc79e490a weekly release 3.8.3+ 2020-06-09 12:14:38 +02:00
Tim Hunt 666365e46b MDL-68971 webservice: errors should give enough info to find the problem 2020-06-09 11:09:45 +01:00
Russell Boyatt 28509546d3 MDL-66899 quiz: Log a regrading event when quiz attempt is regraded. 2020-06-09 10:08:24 +01:00
Russell Boyatt a860a76a68 MDL-66899 quiz: Adding test for regrading quiz event. 2020-06-09 10:08:03 +01:00
Mihail Geshoski 8d650d9a01 MDL-68954 repository_flickr_public: Return only photo media 2020-06-09 12:37:35 +08:00
Mihail Geshoski bbaab1109e MDL-68954 repository_flickr_public: Handle when photo cannot be found 2020-06-09 12:37:34 +08:00
Jake Dallimore c8a07a5b68 Merge branch 'MDL-68929-38' of git://github.com/mihailges/moodle into MOODLE_38_STABLE 2020-06-08 11:11:00 +08:00
Andrew Nicols abb076ebbd Merge branch 'MDL-68899-38' of git://github.com/mihailges/moodle into MOODLE_38_STABLE 2020-06-08 10:29:27 +08:00
Mihail Geshoski 56d6a5d731 MDL-68899 theme_classic: Fix dashboard course cards rendering
Co-authored-by: Bas Brands <bas@moodle.com>
2020-06-08 09:16:00 +08:00
Mihail Geshoski 59417f0b1d MDL-68929 core_filepicker: Fix radio button alignment 2020-06-07 11:40:47 +08:00
Eloy Lafuente (stronk7) 4180fe0f42 weekly release 3.8.3+ 2020-06-06 18:12:56 +02:00
Eloy Lafuente (stronk7) 8a53b489bb Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-06-06 18:12:52 +02:00
AMOS bot fecb0dcceb Automatically generated installer lang files 2020-06-06 00:07:27 +00:00
Sara Arjona 2b0ae390d7 MDL-68704 h5plib_v124: upgrade JQuery version to 1.12.4 2020-06-05 19:47:49 +01:00
Eloy Lafuente (stronk7) 1f274f5032 Merge branch 'MDL-68888-38-enfix' of git://github.com/mudrd8mz/moodle into MOODLE_38_STABLE 2020-06-05 19:23:07 +02:00
Sara Arjona 6f0115e399 weekly release 3.8.3+ 2020-06-05 13:24:16 +02:00
Helen Foster 4369ef0304 MDL-68888 lang: Import fixed English strings (en_fix) 2020-06-05 09:35:38 +02:00
Adrian Greeve fe3d7cdbaa Merge branch 'MDL-67773' of https://github.com/radzisze/moodle into MOODLE_38_STABLE 2020-06-05 11:48:52 +08:00
Anthony Radziszewski c852856ba7 MDL-67773 course: Make sure tags are enabled before logging the setting. 2020-06-04 11:43:01 -06:00
Adrian Greeve 019420fd11 Merge branch 'MDL-68203-decode-url-quiz-restore-MOODLE_38_STABLE' of https://github.com/ilya-catalyst/moodle into MOODLE_38_STABLE 2020-06-04 08:31:50 +08:00
Sara Arjona c2263f903d Merge branch 'MDL-68772-38' of https://github.com/Clyxz/moodle into MOODLE_38_STABLE 2020-06-03 13:18:00 +02:00
Jake Dallimore 719333e0ec Merge branch 'MDL-68875_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE 2020-06-03 12:29:08 +08:00
Andrew Nicols 3a98b992e9 Merge branch 'MDL-68312-38' of git://github.com/rezaies/moodle into MOODLE_38_STABLE 2020-06-03 08:09:41 +08:00
Martin Hanusch 27a12aba40 MDL-68772 mod_quiz: Navigation overlay fix 2020-06-02 16:53:33 +02:00
Eloy Lafuente (stronk7) b529ffad65 MDL-68875 privacy: Keep moodle_content_writer->get_path() the same
In MDL-62853 a new clean_param(PARAM_PATH) was added to the
moodle_content_writer->get_path() method. And this caused some
Windows tests to start failing.

The problem is that clean_param(PARAM_PATH) does normalise directory
separators to be always forward backslashes and that's normally ok
but the get_path() method has some DIRECTORY_SEPARATOR dependent code
that stopped working under windows.

After analysing various solutions, and trying to keep the behavior
EXACTLY like it was before MDL-62853, but with the cleaning included
we have applied 2 changes:

b) Move the clean_param() to later within the array_map() function,
that way the code there, that uses DIRECTORY_SEPARATOR will continue
working the same.

b) As far as there are more DIRECTORY_SEPARATOR dependent code later
in the function, also perform a str_replace() to convert back to the
OS directory separator.

Those 2 points together (a and b) make the behavior to be 100% the
original one, with separators being kept and the paths being cleaned.

This solution corresponds 100% with the proposed fixes named 3) and
4) in the issue.

Final note... all that DIRECTORY_SEPARATOR maybe needs a review because
it really shouldn't be used unless strictly needed. But that falls out
from this issue which goal was to keep things safely working like they
were before the regression (but with the cleaning applied).
2020-06-02 15:53:45 +02:00
Sara Arjona b5b8b1a486 weekly release 3.8.3+ 2020-06-02 13:03:13 +02:00
Sara Arjona 2f360b90c5 Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-06-02 13:03:11 +02:00
Adrian Greeve efa47a2ba5 Merge branch 'MDL-68828-38' of git://github.com/bmbrands/moodle into MOODLE_38_STABLE 2020-06-02 09:32:33 +08:00
Andrew Nicols 4b47df0236 Merge branch 'MDL-67518_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE 2020-06-02 09:20:19 +08:00
Adrian Greeve d9fe693347 Merge branch 'MDL-68723-38' of git://github.com/mihailges/moodle into MOODLE_38_STABLE 2020-06-02 08:58:37 +08:00
Eloy Lafuente (stronk7) 74206f3d78 Merge branch 'MDL-63284-38' of https://github.com/Clyxz/moodle into MOODLE_38_STABLE 2020-06-02 00:25:17 +02:00
Eloy Lafuente (stronk7) 0fce71647f Merge branch 'MDL-68866-38' of https://github.com/mchurchward/moodle into MOODLE_38_STABLE 2020-06-02 00:14:42 +02:00
Eloy Lafuente (stronk7) 3d50844c9f Merge branch 'MDL-68844-38' of https://github.com/roland04/moodle into MOODLE_38_STABLE 2020-06-02 00:09:48 +02:00
Mike Churchward 661c7a1988 MDL-68866 accesslib: Fixing parameter documentation. 2020-06-01 13:42:16 -04:00
Víctor Déniz Falcón f8f58c441b Merge branch 'MDL-68353-38' of git://github.com/rezaies/moodle into MOODLE_38_STABLE 2020-06-01 16:52:24 +01:00
Shamim Rezaie cdb0af69e1 MDL-68353 theme_classic: Update filepicker xpath selector 2020-06-01 03:45:32 +10:00
AMOS bot 85da65606b Automatically generated installer lang files 2020-05-30 00:07:22 +00:00
Martin Hanusch 6e64255df2 MDL-63284 question: Moving questions with tags disabled bug fix 2020-05-29 16:39:32 +02:00
Eloy Lafuente (stronk7) ec602d2f26 MDL-67518 phpunit: avoid DB sorting randomness in test
While reading from mdl_config, sometimes this test was failing
because an order was being presumed. Now we convert the records
array to an associative one to perform tests against it.
2020-05-29 16:26:07 +02:00
Jun Pataleta 6079a72373 Merge branch 'MDL-68353-38' of git://github.com/rezaies/moodle into MOODLE_38_STABLE 2020-05-29 22:25:54 +08:00
Sara Arjona 111fc893da weekly release 3.8.3+ 2020-05-29 12:52:30 +02:00
Sara Arjona 5d7f88d98b Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-05-29 12:52:27 +02:00
Mikel Martín 3eb69a0a9e MDL-68844 formslib: Fix inline layout for static elements 2020-05-29 11:11:40 +02:00
Shamim Rezaie 465c6e7c45 MDL-68353 test: Update existing tests to work with file elements 2020-05-29 14:51:58 +10:00
Shamim Rezaie 46323748fa MDL-68353 test: Update filemanager/filepicker xpath selector 2020-05-29 14:51:58 +10:00
Shamim Rezaie 32d28f8fac MDL-68353 test: get_field_locator to support custom field labels 2020-05-29 14:51:58 +10:00
Shamim Rezaie 2591f4ce79 MDL-68353 form: filepicker label fix 2020-05-29 14:51:54 +10:00
Shamim Rezaie c3764823cd MDL-68353 admin: Not use label tag in admin setting elements when needed 2020-05-29 14:35:46 +10:00
Shamim Rezaie 49e32e25ff MDL-68353 message: enclose privacy settings within a fieldset 2020-05-29 14:35:46 +10:00
Shamim Rezaie 46962930f7 MDL-68353 core: replace invalid labels with div 2020-05-29 14:35:46 +10:00
Shamim Rezaie 4c97f30360 MDL-68353 form: filemanager label fix 2020-05-29 14:35:43 +10:00
Jun Pataleta 35282e4d1a Merge branch 'MDL-64175-38' of git://github.com/sarjona/moodle into MOODLE_38_STABLE 2020-05-29 12:01:58 +08:00
Shamim Rezaie 78f4960bce MDL-68353 form: Only include the size attribute if there is a size set 2020-05-29 13:52:39 +10:00
Shamim Rezaie 6fa2f55cd0 MDL-68353 form: Removed the size attribute
The size attribute does not work with the checkbox input type.
2020-05-29 13:52:39 +10:00
Shamim Rezaie d3756efc83 MDL-68353 core: do not output empty labels 2020-05-29 13:52:38 +10:00
Shamim Rezaie 261804e95c MDL-68353 core: Set aria-label for close buttons on YUI dialogues 2020-05-29 13:52:36 +10:00
Mihail Geshoski 53c46ffb2e MDL-68723 filepicker: Display parent content in filemanger tree view 2020-05-29 11:46:32 +08:00
AMOS bot 7ba5f4896e Automatically generated installer lang files 2020-05-29 00:07:50 +00:00
Sara Arjona 3a76c07806 MDL-64175 atto_media: update advanced settings
Some OS, such as Ubuntu, are slightly changing the audio attributes,
from <audio attribute1="true"> to <audio attribute1>.
This patch is for reviewing this piece of code and covering both cases.
2020-05-28 17:27:16 +02:00
Eloy Lafuente (stronk7) 1794636ee6 Merge branch 'MDL-68753-38-enfix' of git://github.com/mudrd8mz/moodle into MOODLE_38_STABLE 2020-05-28 13:02:29 +02:00
Sara Arjona 24906971d7 Merge branch 'MDL-68244-38' of https://github.com/Chocolate-lightning/moodle into MOODLE_38_STABLE 2020-05-28 12:42:50 +02:00
Sara Arjona 1ac59631d8 Merge branch 'MDL-68565-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-05-28 12:00:32 +02:00
hiendinh 4a77582d16 MDL-68841 Modal dialogs: Wrong behavior of popup 2020-05-28 16:33:11 +07:00
Eloy Lafuente (stronk7) 2140fe5549 Merge branch 'MDL-68789-38' of git://github.com/crazyserver/moodle into MOODLE_38_STABLE 2020-05-28 10:47:06 +02:00
Pau Ferrer Ocaña fc13b8c1a0 MDL-68789 behat: Rename the app from Moodle Mobile to Moodle app 2020-05-28 08:40:54 +02:00
Jake Dallimore f4163d2748 Merge branch 'MDL-67903-38' of git://github.com/bmbrands/moodle into MOODLE_38_STABLE 2020-05-28 13:59:13 +08:00
Adrian Greeve a90af06899 Merge branch 'MDL-68847-38' of https://github.com/snake/moodle into MOODLE_38_STABLE 2020-05-28 12:01:42 +08:00
Jake Dallimore 81e276c743 Merge branch 'mdl-68425-m38' of https://github.com/deraadt/moodle into MOODLE_38_STABLE 2020-05-28 11:24:07 +08:00
Jake Dallimore 45da2ac9d3 MDL-68847 mod_url: fix bug when using dnd to handle urls
This generates a notice, which wasn't seen because the feature works
asynchronously.
2020-05-28 09:32:34 +08:00
Andrew Nicols 8c83815ab1 Merge branch 'MDL-68846_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE 2020-05-28 07:35:59 +08:00
Paul Holden e34877300c MDL-68565 tool_usertours: account for optional config in WS response. 2020-05-27 22:10:56 +01:00
Eloy Lafuente (stronk7) e917a595b2 MDL-68846 behat: Avoid asserting AM/PM strings. They are not cross-os
The exists/contains steps of behat are case-sensitive, in the other
side, depending of the OS and locales, time functions are not 100%
consistent. See https://bugs.php.net/bug.php?id=76378 for example.

So only solutions are:

1) Create a specific new step performing the checks case insensitively.
2) Avoid making AM / PM part of the checks.

Here we have opted by the 2nd approach, it's not critical part to check.
2020-05-27 18:05:07 +02:00
Thomas.Ludwig 852cda447f MDL-67903 core_grades: remove outdated CSS for grade import form 2020-05-27 16:02:11 +02:00
Sara Arjona 9e2cb2075c Merge branch 'MDL-68343-38' of git://github.com/rezaies/moodle into MOODLE_38_STABLE 2020-05-27 15:09:52 +02:00
Sara Arjona 13b26170b9 Merge branch 'MDL-68667-38' of git://github.com/aanabit/moodle into MOODLE_38_STABLE 2020-05-27 12:27:00 +02:00
Jake Dallimore 6f792b5ed8 Merge branch 'MDL-52138-38-take4' of git://github.com/lucaboesch/moodle into MOODLE_38_STABLE 2020-05-27 14:25:52 +08:00
Andrew Nicols 1612572a62 Merge branch 'MDL-68765-M38' of https://github.com/ised-isde-canada/moodle into MOODLE_38_STABLE 2020-05-27 12:50:13 +08:00
Andrew Nicols 5c5b0ee137 Merge branch 'm38_MDL-68054' of https://github.com/danmarsden/moodle into MOODLE_38_STABLE 2020-05-27 12:14:12 +08:00
Jun Pataleta 582e43bebe Merge branch 'MDL-68750-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-05-27 11:04:04 +08:00
Andrew Nicols 2ea2d6a72f MDL-68750 tool_dataprivacy: Correct behat test modal checks 2020-05-27 10:40:30 +08:00
Ilya Tregubov 37d7820816 MDL-68203 restore: Decode quiz links when restore into existing course
or duplicating.
2020-05-27 10:39:49 +10:00
Eloy Lafuente (stronk7) fc2c76e78e Merge branch 'MDL-68789-38' of git://github.com/crazyserver/moodle into MOODLE_38_STABLE 2020-05-26 23:42:56 +02:00
Luca Bösch 4c5684135a MDL-52138 core_grades: gradebook striped styling 2020-05-26 23:32:22 +02:00
Eloy Lafuente (stronk7) 35dd608161 weekly release 3.8.3+ 2020-05-26 22:52:25 +02:00
Sara Arjona 9faa136ca0 Merge branch 'MDL-68388_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE 2020-05-26 20:03:45 +02:00
Helen Foster 667d004a17 MDL-68753 lang: Import fixed English strings (en_fix) 2020-05-26 19:15:48 +02:00
Eloy Lafuente (stronk7) 640838c117 MDL-68388 core_grades: Tweak unit test assertion to make Oracle happy
Also modify some comments and get rid of some void return types.
2020-05-26 19:02:12 +02:00
Bas Brands f4a77e8381 MDL-68828 theme_classic: fix for mobile
- setting a max width so the page does not overflow its container on
mobile
- fixing dashboard cards to be 100% wide on mobile
2020-05-26 14:13:44 +02:00
Andrew Nicols 833d8bceb8 MDL-68750 analytics: Correct behat test modal checks 2020-05-26 12:56:25 +08:00
Andrew Nicols bc010acae0 MDL-68750 core_tag: Add missing confirmation dialogue title 2020-05-26 12:56:25 +08:00
Andrew Nicols 0deabbfbfd MDL-68750 behat: Correct dialogue selector 2020-05-26 12:56:25 +08:00
Andrew Nicols 404288d3bc Merge branch 'MDL-68099-38' of git://github.com/marinaglancy/moodle into MOODLE_38_STABLE 2020-05-26 11:38:32 +08:00
deraadt b16b681a79 MDL-68425 user: Add capability check for messaging 2020-05-26 13:01:06 +10:00
Andrew Nicols 14cfb3dcbf MDL-68388 grade: Tidy comments and whitespace 2020-05-26 10:19:09 +08:00
Andrew Nicols 074bdceb1f Merge branch 'M3.8-MDL-68388' of https://github.com/marcusboon/moodle into MOODLE_38_STABLE 2020-05-26 10:16:35 +08:00
Andrew Nicols c7545dc852 Merge branch 'MDL-64427-m38' of https://github.com/NeillM/moodle into MOODLE_38_STABLE 2020-05-26 10:05:58 +08:00
Andrew Nicols cd1a39717a Merge branch 'MDL-68270-38' of git://github.com/bmbrands/moodle into MOODLE_38_STABLE 2020-05-26 08:03:06 +08:00
Victor Deniz Falcon c933e28af6 Merge branch 'MDL-68252_38' of https://github.com/timhunt/moodle into MOODLE_38_STABLE 2020-05-26 00:56:32 +01:00
Marcus Boon 0b62a26225 MDL-68388 core_grades: Use MUC for grade letters
In the get_grade_letters there is a static variable that is used
to cache grade letters, we should use MUC for this so that it is
reset properly between unit tests.
2020-05-26 09:27:05 +10:00
Bas Brands 8a977030fc MDL-68270 core_output: prevent blurring of navbar logo 2020-05-25 15:49:19 +02:00
Pau Ferrer Ocaña 0ff1309b3a MDL-68789 behat: Change app page menu text selector 2020-05-25 14:55:52 +02:00
Andrew Nicols 26badfdd1a Merge branch 'MDL-68103-38' of git://github.com/bmbrands/moodle into MOODLE_38_STABLE 2020-05-25 19:55:33 +08:00
Bas Brands 1dafe5fbe5 MDL-68103 theme_classic: show content full width when printing 2020-05-25 13:49:39 +02:00
Nick Phillips f8621e3d58 MDL-68103 theme_classic: hidden-print => d-print-none for BS4. 2020-05-25 13:49:39 +02:00
Amaia Anabitarte e48b197957 MDL-68667 filepicker: Use shortitle parameter 2020-05-25 13:36:56 +02:00
Mathew May 7045cd8e67 MDL-68244 auth_email: Update unit test, remove hard assertion 2020-05-25 16:39:05 +08:00
Adrian Greeve 48583d2740 Merge branch 'MDL-68629_38' of https://github.com/t-schroeder/moodle into MOODLE_38_STABLE 2020-05-25 16:16:44 +08:00
Jake Dallimore 4ad9de59ea Merge branch 'MDL-62853-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-05-25 16:12:17 +08:00
Andrew Nicols b22accf82b Merge branch 'MDL-68658_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE 2020-05-25 15:26:36 +08:00
Adrian Greeve 99f948b4df Merge branch 'MDL-63812_38' of https://github.com/timhunt/moodle into MOODLE_38_STABLE 2020-05-25 14:42:08 +08:00
Ruslan Kabalin e94499f9b3 MDL-68592 formslib: Fix inline layout for nested groups 2020-05-22 17:55:50 +02:00
Eloy Lafuente (stronk7) 4e60865e2c MDL-68658 phpunit: Ensure that the configured proxy is applied always
Previously, if the RSS feed (extests) was being served locally,
CFG->proxybypass was applied and causing the test to fail (proxy
ignored).

In that exact test we need the configured proxy to be applied
always, because the test is exaclty about detecting the problem
when a wrong proxy is used.
2020-05-22 17:07:10 +02:00
Pau Ferrer Ocaña 43268a6a1c MDL-68789 behat: Adapt login step to new app version 2020-05-22 16:45:23 +02:00
Victor Deniz Falcon 38cc6d1071 weekly release 3.8.3+ 2020-05-22 14:21:47 +01:00
Victor Deniz Falcon 92ba52e21d Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-05-22 14:21:42 +01:00
Andrew Nicols 13215b2415 Merge branch '68137-moodle38-prevent-removing-all-dots-in-filename' of https://github.com/DSI-Universite-Rennes2/moodle into MOODLE_38_STABLE 2020-05-22 11:55:20 +08:00
Andrew Nicols 0b464b93d8 Merge branch 'MDL-57240_38' of https://github.com/timhunt/moodle into MOODLE_38_STABLE 2020-05-22 11:48:35 +08:00
Andrew Nicols e3b6ebadcc Merge branch 'MDL-68783-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-05-22 11:24:16 +08:00
Andrew Nicols 6944da3315 Merge branch 'MDL-67700-38' of git://github.com/ferranrecio/moodle into MOODLE_38_STABLE 2020-05-22 10:51:47 +08:00
David Mudrák e67a6060e0 MDL-68738 wiki: Prevent URLs inside links from turning into another link
There was a problem with wiki pages in the HTML markup syntax. If they
contain a link and the link text has a URL in it, that URL was converted
into another link. But it was not correctly nested and it caused
additional troubles with filters (particularly the multimedia filter if
the URL was a video such as on youtube).

The solution here is similar to what we do in filters. We protect the
whole explicit link so that its content is not further parsed. That
prevents the inner URL to be converted into another link and the
explicit link has the full control.
2020-05-21 21:12:42 +02:00
Sara Arjona 0aadca7a48 Merge branch 'm38_MDL-67497' of https://github.com/danmarsden/moodle into MOODLE_38_STABLE 2020-05-21 19:01:45 +02:00
Ferran Recio 0efd87b0f2 MDL-67700 message: prevent async loading conversation message mix 2020-05-21 18:04:31 +02:00
Sara Arjona d42ad4800d Merge branch 'MDL-66471-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-05-21 17:33:33 +02:00
Sara Arjona 19ebf2dc92 Merge branch 'MDL-67126_38' of https://github.com/ffhs/moodle into MOODLE_38_STABLE 2020-05-21 13:35:18 +02:00
Adrian Greeve a644c50920 Merge branch 'MDL-68733_38' of https://github.com/timhunt/moodle into MOODLE_38_STABLE 2020-05-21 08:36:23 +08:00
AMOS bot de19504712 Automatically generated installer lang files 2020-05-21 00:07:22 +00:00
Eloy Lafuente (stronk7) ff5773d511 Merge branch 'MDL-52578-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-05-21 00:57:22 +02:00
Michael Milette 314e9a4064 MDL-68765 auth: Login form has DIV tag with 2 CLASS attributes. 2020-05-20 14:07:37 -04:00
Michael Milette 67ba731f8f MDL-68766 auth: Login form: 'Log in using...' should be h3, not h6 2020-05-20 12:43:10 -04:00
Neill Magill 2f5490410e MDL-64427 course: Mark activities during course contents deletion
When we want to delete all of the activities in a course we should
mark them as having a deletion in progress, as this makes them
unavailable to users immediately.

This should make it much less likely that a request to get a context
that does not exist should be made when a user accesses a page.
2020-05-20 08:30:05 +01:00
Neill Magill 34f176586b MDL-64427 course: Do not allow dirty cm_info during course delete
When deleting a course (especially one containing a large amount of
data) the course mod info cache could contain entries for deleted
activities for a signifcant amount of time making it possible that
users could see errors in Moodle.
2020-05-20 08:30:04 +01:00
Neill Magill 7a168c3beb MDL-64427 category: Stop error when another user deleting courses
If you try to visit a category where another user is deleting a
course the coursecat cache may not be fresh. This is because there
is a breif time where the course record will have been deleted,
while it is deleting other course information, before the event that
triggers the coursecat cache to be purged is fired.
2020-05-20 08:30:04 +01:00
Neill Magill 0be9bb13c7 MDL-64427 category: Test getting category courses during deletion
Adding a unit test for the situation where a course is partially
deleted when a list of courses in a category is retrived.
2020-05-20 08:30:04 +01:00
Jun Pataleta 55dde65d11 MDL-68783 core_grades: Fix outcome page's add/remove button styles
* Applied proper styles of btn-secondary.
* Added some vertical spacing between the buttons by enclosing them in
divs with 'm-y-1' class instead of just a br tag.
2020-05-20 13:13:27 +08:00
Jun Pataleta 45978220ab MDL-52578 core_course: Peer review fixes
* Fetch parent category only when necessary.
* Fix outdated variable names in original patch.
* Fix variable scope for $outcomeexists.
2020-05-20 10:31:31 +08:00
Steve Bader e8e5f49883 MDL-52578 core_course: Activity weight set to 0 on creation 2020-05-20 10:31:31 +08:00
Dan Marsden efeef8d82d MDL-68054 lib: viewhiddenactivities should be set as captype:read 2020-05-20 14:03:02 +12:00
AMOS bot 9821d4d9a7 Automatically generated installer lang files 2020-05-20 00:07:31 +00:00
Paul Holden f138423971 MDL-66471 user: fix user_selector debug about extra identity fields. 2020-05-19 19:12:23 +01:00
Sara Arjona e6d212fc07 weekly release 3.8.3+ 2020-05-19 17:54:31 +02:00
Sara Arjona 1adda884fd Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-05-19 17:54:28 +02:00
Tim Hunt 4fae2c3001 MDL-68733 quiz editing: behat test for altering random question tags 2020-05-19 11:10:04 +01:00
Bence Molnar 3427a6ec76 MDL-68733 quiz editing: be more careful deleting random question tags 2020-05-19 11:10:04 +01:00
Tim Hunt ea5c0c6b61 MDL-68733 question behat: question tag generator and use in quiz test 2020-05-19 11:10:03 +01:00
Ferran Recio fcbc4ccee6 MDL-67700 message: correcting conversation timer reset 2020-05-19 09:58:17 +02:00
Jun Pataleta dd293c28e1 Merge branch 'MDL-68528-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-05-19 11:45:55 +08:00
Andrew Nicols 79c6d0a453 MDL-68528 js: Normalise core component for template strings 2020-05-19 11:37:55 +08:00
Andrew Nicols 1ac5b70c5a MDL-68528 js: Normalise empty component to "core" for string 2020-05-19 11:34:59 +08:00
AMOS bot 9b38e44dfb Automatically generated installer lang files 2020-05-19 00:07:24 +00:00
Sara Arjona 57382b0e5e Merge branch 'MDL-68760_38' of https://github.com/timhunt/moodle into MOODLE_38_STABLE 2020-05-18 20:33:19 +02:00
Sara Arjona 2d2e93c6c6 Merge branch 'MDL-68728-38-2' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-05-18 20:23:47 +02:00
Tim Hunt e23b038479 MDL-68760 timezones: add string for new timezone America/Nuuk 2020-05-18 17:32:13 +01:00
Tim Hunt a2defe29c4 MDL-68760 string tests: make test_timezone_lang_strings message helpful 2020-05-18 17:32:12 +01:00
Marina Glancy aecc9e7170 MDL-68099 gradereport_grader: prevent exception without groups 2020-05-18 15:19:05 +02:00
Andrew Nicols a30ff32351 Merge branch 'MDL-68503_38_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_38_STABLE 2020-05-18 20:31:28 +08:00
Sara Arjona 1b34fbb716 Merge branch 'MDL-68253-38' of git://github.com/lucaboesch/moodle into MOODLE_38_STABLE 2020-05-18 13:56:43 +02:00
Adrian Perez 69e2477f90 MDL-67126 assign: set completion state for all group members 2020-05-18 12:25:57 +02:00
Andrew Nicols bca7a73d14 MDL-68728 calendar: Pending promises for event summary 2020-05-18 13:32:42 +08:00
AMOS bot c27c7abb6b Automatically generated installer lang files 2020-05-18 00:07:46 +00:00
AMOS bot 82d46e5037 Automatically generated installer lang files 2020-05-17 00:07:17 +00:00
Luca Bösch 4853c245c5 MDL-68253 mod_book: Remove prev arrow on the firstmost page. 2020-05-15 12:17:52 +02:00
Eloy Lafuente (stronk7) 4d56bb43b3 weekly release 3.8.3+ 2020-05-15 11:07:01 +02:00
Andrew Nicols 0cbb91e4c0 Merge branch 'MDL-66917-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-05-15 10:55:05 +08:00
Eloy Lafuente (stronk7) 2ef16003f1 Merge branch 'MDL-68677-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-05-15 02:00:39 +02:00
Andrew Nicols 80787a98b3 MDL-68677 core: Correct usage of templaterev for caching templates
The M.cfg.templaterev variable should only be used to present persistent
caching, not caching of content within the same page load.

Preventing caching of same-page content makes it difficult to develop
for real user experiences as content is slow to load and does not give a
realistic and consistent loading experience.

This change affects the loading of partials specifically which notably
includes the loading spinner. Without this patch the loading icon is
often not seen at all because it does not load in a timely fashion and
the content being loaded is loaded first.
2020-05-15 07:55:59 +08:00
Eloy Lafuente (stronk7) 698f0cff54 Merge branch 'MDL-68084-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-05-15 01:30:52 +02:00
Sara Arjona 0e73dacaaf Merge branch 'MDL-68200-38-take2' of git://github.com/rezaies/moodle into MOODLE_38_STABLE 2020-05-14 13:12:50 +02:00
Jake Dallimore 2ba93cc439 Merge branch 'MDL-68631_38' of https://github.com/jonof/moodle into MOODLE_38_STABLE 2020-05-13 09:25:22 +08:00
Paul Holden cd0af947a7 MDL-68084 blocks: check capability before getting content.
Some blocks (e.g. Calendar) load additional JS modules when returning
content. We need to make sure they aren't asked to generate content
unless the user can actually view the block, or the expected content
required by the JS will not exist in the DOM and can cause exceptions.
2020-05-12 19:21:35 +01:00
Sara Arjona 9b2253898a weekly release 3.8.3+ 2020-05-12 14:16:49 +02:00
Shamim Rezaie a81508489d MDL-68200 core: Fix phpdoc for the external return functions 2020-05-12 15:07:23 +10:00
Shamim Rezaie 3ec67cf4bb MDL-68200 core: Fix datetime format
date.toISOString() prints out the seconds as well.
Current code supports most valid values for the datetime attribute
2020-05-12 15:07:23 +10:00
Shamim Rezaie 365bfab967 MDL-68200 mod_forum: fix invalid format of the time tag on modern view 2020-05-12 15:07:23 +10:00
Shamim Rezaie a8b4b9f407 MDL-68200 mod_forum: Fix the invalid date format in the time tags 2020-05-12 15:07:23 +10:00
Jun Pataleta c59656006b MDL-68200 mod_forum: Use core/time_element for the discussion list page 2020-05-12 15:05:04 +10:00
Jun Pataleta 84d550cacb MDL-68200 core: Add new time_element template 2020-05-12 15:05:04 +10:00
Jun Pataleta b238304072 MDL-68200 core: Support fixday/hour for core/user_date's get() method 2020-05-12 15:05:04 +10:00
Jun Pataleta 10127ac33d MDL-68200 core: Support fixday/hour for core_external::get_user_dates() 2020-05-12 15:05:04 +10:00
Shamim Rezaie 6a7350d44b MDL-68200 core: Add calendartype param to user_date.loadDatesFromServer 2020-05-12 15:05:03 +10:00
Shamim Rezaie ed19fe85e4 MDL-68200 core: Add type param to core_get_user_dates external function 2020-05-12 15:05:03 +10:00
Shamim Rezaie bd76f0bb66 MDL-68200 mod_forum: remove address tags
Reasons:
- The element “h4” must not appear as a descendant of the “address” element
- This element should not contain more information than the contact
information, like a publication date (which belongs in a <time> element)
 element)
2020-05-12 15:02:05 +10:00
Shamim Rezaie c78ebc9586 MDL-68200 mod_forum: single discussion to follow nestet_v2 display rules 2020-05-12 15:02:05 +10:00
Shamim Rezaie d2886d283a MDL-68200 theme_boost: workaround for IE for flexbox not filling height
read more:
https://philipwalton.com/articles/normalizing-cross-browser-flexbox-bugs/
2020-05-12 15:02:05 +10:00
Eloy Lafuente (stronk7) 3ab743dcd9 Merge branch 'MDL-68579-38' of git://github.com/cescobedo/moodle into MOODLE_38_STABLE 2020-05-11 23:14:10 +02:00
Brendan Heywood 6f0506fa9d MDL-68276 admin: Skip risky tables and columns in db_replace 2020-05-11 23:11:46 +02:00
Jun Pataleta 2faa47c934 Merge branch 'MDL-66109-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-05-12 00:03:10 +08:00
Mihail Geshoski 6c86327b33 MDL-68576 filepicker: Cover in behat file edition in filemanager
The added behat tests would also confirm whether the behaviour of
a click action on a file using different views in the filemanager
is consistent.
2020-05-11 16:35:09 +02:00
Mihail Geshoski 6619bdf99d MDL-68576 filepicker: Cover in behat file selection from filepicker
The added behat tests would cover the issue in MDL-68576. They test
whether the behaviour of a click action on a file using different
views in the filepicker is consistent.
2020-05-11 16:34:59 +02:00
cescobedo 74860627f2 MDL-68579 core_h5p: Add a check to avoid execute task using BEHAT 2020-05-11 10:15:01 +02:00
Andrew Nicols 738da05555 MDL-66109 js: Built file changes from new Node version 2020-05-11 10:53:49 +08:00
Andrew Nicols 9c07f29d8e MDL-66109 js: Fix circular dependency in Shifter dependency
Shifter is using an ancient and no-longer supported of Istanbul. That
version contains a circular dependency whereby it fetches the version
from the index that included the file in the first place.  This throws a
warning on newer versions of Node.

The fix here is simple and intended to be the bare minimum to remove
these warnings anad resolve the issue.

We have forked the istanbul project and created a v0.1.37_moodle branch
at the root version of the Istanbul version that Shifter uses (v0.1.37
tag). The circular dependency is then addressed and a new tag created.

I have then forked Shifter, pointing its package.json at the tar.gz
download of that new tag and pushed a new branch and tag for that fix.

Following this our own package.json is updated to point to the tar.gz
version of the new Shifter tag.
2020-05-11 10:53:48 +08:00
Andrew Nicols ed68a025ef MDL-66109 js: Upgrade to latest stable version of NodeJS
Version 14.0.0 has just been released as stable, and will make its way
to an LTS release which will be supported until 30th April 2023.

At time of writing it is the "Current stable" release and will remain in
this phase until 20th October 2020, at whciih point it will transition
to LTS status.
2020-05-11 10:53:48 +08:00
Eloy Lafuente (stronk7) 5afef2670e Moodle release 3.8.3 2020-05-09 20:05:41 +02:00
Eloy Lafuente (stronk7) fda378562d weekly release 3.8.2+ 2020-05-08 13:30:01 +02:00
Eloy Lafuente (stronk7) 5edc307f7a Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-05-08 13:29:59 +02:00
Jake Dallimore 8f17c2f11c Merge branch 'MDL-51694-38' of https://github.com/MartinGauk/moodle into MOODLE_38_STABLE 2020-05-08 11:22:55 +08:00
Eloy Lafuente (stronk7) b8b889c7c9 Merge branch 'MDL-68443-xmldb-path-validation-MOODLE_38_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_38_STABLE 2020-05-07 19:16:54 +02:00
Paul Holden 2b188d2299 MDL-68415 core: test attachments in email_to_user from allowed paths. 2020-05-07 18:40:56 +02:00
fujiwara 926277865c MDL-68415 email: Fix attachment in email_to_user() 2020-05-07 18:40:49 +02:00
Tim Schroeder 1f59f848d7 MDL-68629 mod_choice: multilang coursename support 2020-05-07 15:47:53 +02:00
Jake Dallimore b6dfd9d89e Merge branch 'MDL-62403-38' of git://github.com/lameze/moodle into MOODLE_38_STABLE 2020-05-07 14:19:09 +08:00
Simey Lameze 837651249b MDL-62403 portfolio: add upgrade notes for google docs 2020-05-07 13:06:35 +08:00
Ryan Wyllie c4015ffff4 MDL-62403 portfolio: create directories for google drive export
I've modified the Google Drive portfolio export so that it creates a
root directory in Drive for all of the files in the export. This allows
each export to be contained from each other to help with clashing file
names.

Additionally, the paths for the exported files will now be created in
Drive so that exported files are in the correct directory structure.
This is important for forum posts exports which assume a certain
directory structure in the export.
2020-05-07 12:43:14 +08:00
Jun Pataleta 91d3e7a632 MDL-68355 gradingform_guide: Improve lang strings 2020-05-07 11:50:48 +08:00
Jonathon Fowler b9fc865245 MDL-68631 cron: ensure the cron user is reset between scheduled tasks 2020-05-07 13:26:51 +10:00
Andrew Nicols 0bda145eaa Merge branch 'MDL-68556-38-pluginscheckcss' of git://github.com/mudrd8mz/moodle into MOODLE_38_STABLE 2020-05-07 09:14:01 +08:00
Paul Holden fadae3cfe9 MDL-68410 mod_scorm: safer status operator comparison. 2020-05-07 09:03:09 +08:00
Ferran Recio 8aa0b41e9b MDL-68430 filter_mathjaxloader: update default CDN to 2.7.8 2020-05-06 11:14:22 +02:00
Jun Pataleta e247ec921a Merge branch 'MDL-68402_38' of https://github.com/timhunt/moodle into MOODLE_38_STABLE 2020-05-06 17:04:35 +08:00
Tim Hunt 1673baf5dd MDL-68402 accesslib: fix coding style of loops 2020-05-06 09:59:55 +01:00
Tim Hunt 7172233782 MDL-68402 accesslib: Modernise coding style in the functions changed 2020-05-06 09:59:54 +01:00
Tim Hunt 4508f85b7b MDL-68402 accesslib: fix get_with_capability_join logic
In fact, rather than fix the old logic, I noticed that the correct
logic was already implemented in get_users_by_capability. So, I
refactored to extract the working version into a function, which it
turns out can have exactly the same API as get_with_capability_join,
which was convenient.
2020-05-06 09:59:54 +01:00
Jake Dallimore bd0a6a98b8 Merge branch 'MDL-68293-38' of git://github.com/jleyva/moodle into MOODLE_38_STABLE 2020-05-06 12:53:38 +08:00
Jun Pataleta 9ae897f9c9 Merge branch 'MDL-68301-38' of git://github.com/bmbrands/moodle into MOODLE_38_STABLE 2020-05-06 10:32:49 +08:00
Andrew Nicols 02e93de9e1 Merge branch 'MDL-63609-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-05-06 08:51:48 +08:00
Jake Dallimore 1b8bed6664 Merge branch 'MDL-68355-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-05-06 08:36:26 +08:00
AMOS bot 41c21d354e Automatically generated installer lang files 2020-05-06 00:13:12 +00:00
Eloy Lafuente (stronk7) b3c89dafd3 weekly release 3.8.2+ 2020-05-05 19:05:42 +02:00
Eloy Lafuente (stronk7) 9504266620 Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-05-05 19:05:39 +02:00
Bas Brands f1dbea7200 MDL-68266 core_message: disable custom switches for behat testing 2020-05-05 14:20:10 +02:00
Andrew Nicols 18aa8915f0 Merge branch 'MDL-67881-38' of git://github.com/bmbrands/moodle into MOODLE_38_STABLE 2020-05-05 11:18:20 +08:00
Jun Pataleta 6f869765b8 Merge branch 'MDL-68266-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-05-05 09:20:46 +08:00
Bas Brands ab320de86d MDL-68266 theme_boost: behat enable custom switches 2020-05-05 09:12:14 +08:00
AMOS bot 871291264b Automatically generated installer lang files 2020-05-05 00:11:34 +00:00
Eloy Lafuente (stronk7) cfab3a6e6c Merge branch 'MDL-52904-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-05-04 22:32:16 +02:00
Martin Gauk b1345143ea MDL-51694 core_grades: use transactions when deleting 2020-05-04 12:48:10 +00:00
Sara Arjona 11e2fc4b0a Merge branch 'MDL-68315-MOODLE_38_STABLE' of https://github.com/kabalin/moodle into MOODLE_38_STABLE 2020-05-04 10:37:30 +02:00
Andrew Nicols 3cc76c335a Merge branch 'MDL-68266-38' of git://github.com/bmbrands/moodle into MOODLE_38_STABLE 2020-05-04 15:33:33 +08:00
Bas Brands 5190632f6b MDL-68266 core_course: accessibility improvements for course managent
colour contrast improvements
use custom checkboxes
use accessible colour for text-muted
2020-05-04 09:12:15 +02:00
David Saylor 8a29ee1722 MDL-52904 completion: reference context in cron query
Co-authored-by: Barbara Lawrence <blawrence@harlow-college.ac.uk>
2020-05-04 09:58:06 +08:00
Jun Pataleta 2ddc2e8430 MDL-52904 completion: Unit tests for daily completion task 2020-05-04 09:58:06 +08:00
Andrew Nicols f6f68bd59f Merge branch 'MDL-66263_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE 2020-05-03 20:23:26 +08:00
Andrew Nicols f2e7e84f0e Merge branch 'MDL-68509-38' of https://github.com/Dagefoerde/moodle into MOODLE_38_STABLE 2020-05-03 19:54:49 +08:00
Eloy Lafuente (stronk7) 577e336927 MDL-66263 travis: Simple bump to php74
Also update a couple of places (mysql, node)
that were not runnig really on highest. Now they are.
2020-05-02 17:19:23 +02:00
Eloy Lafuente (stronk7) 69ae995d5c weekly release 3.8.2+ 2020-05-02 16:36:42 +02:00
Eloy Lafuente (stronk7) 2fba5aee43 Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-05-02 16:36:38 +02:00
Andrew Nicols 2564088c4c Merge branch 'MDL-68492-m38' of https://github.com/sammarshallou/moodle into MOODLE_38_STABLE 2020-05-01 12:07:23 +08:00
Andrew Nicols 91d3dc31a6 Merge branch 'MOODLE_38_MDL-67540' of https://github.com/golenkovm/moodle into MOODLE_38_STABLE 2020-05-01 11:21:16 +08:00
Andrew Nicols f0e452240e Merge branch 'MDL-57680_38' of https://github.com/timhunt/moodle into MOODLE_38_STABLE 2020-05-01 11:06:58 +08:00
Eloy Lafuente (stronk7) 01ee979b0e Merge branch 'MDL-68427-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-04-30 23:35:23 +02:00
Jun Pataleta d9245d6f87 Merge branch 'MDL-68404-38' of git://github.com/lucaboesch/moodle into MOODLE_38_STABLE 2020-04-30 13:32:57 +08:00
Jun Pataleta c9d9fb3ff7 Merge branch 'MDL-68309-38' of https://github.com/snake/moodle into MOODLE_38_STABLE 2020-04-30 09:57:37 +08:00
AMOS bot 3c67ae2c14 Automatically generated installer lang files 2020-04-30 00:11:57 +00:00
Eloy Lafuente (stronk7) 6fc1bf6646 Merge branch 'MDL-68434-38-enfix' of git://github.com/mudrd8mz/moodle into MOODLE_38_STABLE 2020-04-29 22:52:51 +02:00
David Mudrák ece9b780d5 MDL-68434 lang: Use the updated terminology in the tests 2020-04-29 17:47:36 +02:00
David Mudrák 0bfb8c4d83 MDL-68556 admin: Fix some minor styling issues on the plugins check page
The patch fixes missing space around elements and some other minor
visual issues detected. This was a good opportunity to get rid of custom
CSS rules and use the native bootstrap classes and utilities.
2020-04-29 14:33:33 +02:00
Dan Marsden d95f185556 MDL-67497 lib: backuptargetimport should be set as captype:read 2020-04-29 08:14:45 +12:00
Helen Foster 53611ca744 MDL-68434 lang: Import fixed English strings (en_fix)
Significant string changes:

* pluginnamesummary,qtype_ddimageortext and
  pluginnamesummary,qtype_ddmarker - Note about the question type not
  being accessible to visually impaired users
2020-04-28 15:35:48 +02:00
Andrew Nicols a56ecac082 Merge branch 'MDL66035_38_STABLE' of https://github.com/jwalits/moodle into MOODLE_38_STABLE 2020-04-28 20:04:43 +08:00
Luca Bösch 8f15f3e753 MDL-68404 gradingform_rubric: Style "Add level" button. 2020-04-28 14:04:07 +02:00
Andrew Nicols 23cd7eb539 Merge branch 'MDL-68445_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE 2020-04-28 18:31:11 +08:00
Julien Boulen af9bf5f609 MDL-68137 core_files: replace consecutive dots in filename by single dot 2020-04-28 11:29:52 +02:00
Eloy Lafuente (stronk7) d946fcd870 weekly release 3.8.2+ 2020-04-28 11:15:30 +02:00
Eloy Lafuente (stronk7) 7a53f91feb Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-04-28 11:15:27 +02:00
Andrew Nicols 74b553af3e Merge branch 'MDL-68525-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-04-28 10:22:24 +02:00
Andrew Nicols 1cbf0b9513 Merge branch 'MDL-66259_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE 2020-04-28 10:22:21 +02:00
Andrew Nicols d75dd9318a Merge branch 'MDL-67316_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE 2020-04-28 10:22:18 +02:00
Andrew Nicols 6d9c9e24a4 Merge branch 'MDL-68047_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE 2020-04-28 10:22:15 +02:00
Eloy Lafuente (stronk7) 7d599aeea4 MDL-68525 behat: chrome/switches caps not allowed in Chrome > 81
Now we need to use extra_capabilities/chromeOptions/args instead

The former was deprecated long ago, it seems that Chrome 81 has
stopped accepting it. The later seems to be working at very least
since Chrome 76 (haven't gone further back).
2020-04-28 12:32:11 +08:00
Eloy Lafuente (stronk7) 65e1204528 Merge branch 'MDL-68393-38-availableupdateui' of git://github.com/mudrd8mz/moodle into MOODLE_38_STABLE 2020-04-27 17:40:00 +02:00
Eloy Lafuente (stronk7) 055bd177fd Merge branch 'MDL-65967-38' of https://github.com/danielneis/moodle into MOODLE_38_STABLE 2020-04-27 17:31:29 +02:00
AMOS bot 0d4a715c46 Automatically generated installer lang files 2020-04-27 00:11:31 +00:00
Jwalit Shah 51c65d7bc5 MDL-66035 message: Restore missing message preferences files 2020-04-27 09:49:20 +10:00
Tim Hunt af64d73515 MDL-57680 form autocomplete: extend Behat tests 2020-04-26 15:11:52 +01:00
Tim Hunt 27e80b99b7 MDL-57680 form autocomplete: fix triggering change event 2020-04-26 14:21:19 +01:00
Tim Hunt 79542e4f11 MDL-57680 form autocomplete: let singleselects be cleared.
This was already working after ajax had refreshed the choices, it was just
broken on first page load.
2020-04-26 14:21:18 +01:00
Mikhail Golenkov a58cfea205 MDL-67540 quiz: Start transaction before selecting existing slots.
Co-authored-by: Conn <conn@cmrwarwicker.com>
2020-04-26 10:55:17 +10:00
Thiagolivramento 114d51f98b MDL-65967 tool_recyclebin: add recycle bin link to category edit menu 2020-04-24 17:08:33 -03:00
Eloy Lafuente (stronk7) 5ff9020fe3 MDL-68445 behat: Bump to 3.6.x
composer.lock generated with PHP 7.1, following:

https://docs.moodle.org/dev/Composer#How_to_prepare_and_submit_composer_changes

Also, ensure Symfony/Process > 4.0 compatibility
(needed for parallel runs)
2020-04-24 15:57:12 +02:00
Eloy Lafuente (stronk7) 92deb62243 MDL-67316 ldap: Pass correct hex chars to hexdec()
Before php74 they were silently discarded, now they
show a deprecation message.
2020-04-24 15:56:46 +02:00
Eloy Lafuente (stronk7) f769b8f4d0 MDL-67316 typo3: Pass correct hex chars to hexdec()
Typo3 was relaying on the feature of base converter
functions silently removing invalid chars so, for example:

'U+00A0' => '00A0' => 160

Since php74, the existence of those invalid chars do produce
a deprecation warning, no matter the outcome continues being the same.

So, here, we are just converting that invalud 'U+' by '0x'
2020-04-24 15:56:46 +02:00
Tim Hunt bc113f89cc MDL-66259 qtypes: Add missing comment on get_random_guess_score
A bit off-topic for this issue number, but I noticed it while
working on this, and though it was not worth creating a
separate MDL for.
2020-04-24 15:56:31 +02:00
Tim Hunt f18b531639 MDL-66259 qtype_numerical: remove no-longer relevant todo I noticed 2020-04-24 15:56:31 +02:00
Eloy Lafuente (stronk7) a18a00bd2d MDL-66259 qtypes: get_question_options() always call parent::
To get the question->options initialised, children must
call parent::get_question_options() always. Also, it is
just general good practice. Subclasses are meant to be
adaptations of the base class, not something completely
different.

Note, there are some changes in the data structure
produced (see changes in the tests) but these changes
are not wrong.
2020-04-24 15:56:31 +02:00
Tim Hunt d37c61365a MDL-66259 quiz responses: fix unrealistic test setup 2020-04-24 15:56:31 +02:00
Eloy Lafuente (stronk7) 15ffdf736a MDL-66259 qtype: add tests to all remaining involved qtypes
That way we get the load_question_data() method covered
and all the main data, options, hints checked.
2020-04-24 15:56:31 +02:00
Tim Hunt 42eae914f1 MDL-66259 qtype_truefalse: unit test of loading questions from the DB
This is about to be changes, so we need a test first to catch regressions.
2020-04-24 15:56:31 +02:00
sam marshall 6effee8992 MDL-68492 Behat: Use faster direct link steps in lib/tests/behat 2020-04-24 12:08:14 +01:00
sam marshall eeef704d40 MDL-68492 Behat: Direct URL links for courses, activities 2020-04-24 12:08:14 +01:00
Tim Hunt f42b67ab2c MDL-68252 question tags: fix tag editing for missingtype questions 2020-04-24 11:26:39 +01:00
Tim Hunt 088d4309fe MDL-68252 question bank: for 'missingtype' questions, hide actions 2020-04-24 11:26:38 +01:00
Shamim Rezaie 4281fe1070 MDL-68509 core_ddl: Keep databasemeta cache after dropping temptables
Backport of MDL-58584 (934c2ee + 94e2509)
2020-04-24 11:05:59 +02:00
Jun Pataleta a6f315c1e7 weekly release 3.8.2+ 2020-04-24 09:41:12 +08:00
Jun Pataleta 094b66ea85 NOBUG: Fixed file access permissions 2020-04-24 09:41:11 +08:00
Jun Pataleta 8af31de77b Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-04-24 09:41:10 +08:00
Mark Johnson a84620c2d5 MDL-68503 user profile: Make sortorders relative to existing records 2020-04-23 15:55:53 +01:00
Eloy Lafuente (stronk7) 6da6114778 Merge branch 'MDL-67886_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE 2020-04-23 16:06:26 +02:00
Tim Hunt 59afcdd850 MDL-63812 qtype_gapselect: fix questions with non-consecutive gap nos 2020-04-23 14:41:38 +01:00
Tim Hunt 69b0bbde10 MDL-63812 qtype_gapselect: test data generator to standard qtype pattern 2020-04-23 14:41:37 +01:00
Eloy Lafuente (stronk7) 656a05bef8 MDL-67886 phpunit: Make tests cross-db
The suggested SQL in some of the assertions was not cross-db
but db-dependent. Now we just keep that part out from the
assertions, because it's not important to verify the
errors that are being asserted.
2020-04-23 12:30:17 +02:00
Andrew Nicols 76223a290d MDL-68427 core: Correct previous/next page in paging bar 2020-04-23 12:49:06 +08:00
Jun Pataleta 801c9c2717 Merge branch 'MDL-68351_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE 2020-04-23 11:17:27 +08:00
AMOS bot fc2497fbc5 Automatically generated installer lang files 2020-04-23 00:14:37 +00:00
Eloy Lafuente (stronk7) 6c73d86264 Merge branch 'MDL-67886_38' of git://github.com/mdjnelson/moodle into MOODLE_38_STABLE 2020-04-23 01:37:10 +02:00
Mark Nelson 3aa10ddd4f MDL-67886 core: check_database_schema() checks for missing indexes 2020-04-22 23:19:16 +02:00
Tim Hunt 660fa2871a MDL-57240 quiz: don't show useless links on overdue attempt summary page 2020-04-22 21:38:52 +01:00
Jun Pataleta 81c011d388 Merge branch 'MDL-68392_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE 2020-04-22 11:09:35 +08:00
Shamim Rezaie 24d7375f0f MDL-68312 grade: Fix empty links
If a link contains no text, the function or purpose of the link will not
be presented to the user. This can introduce confusion for keyboard and
screen reader users.
2020-04-22 04:33:05 +10:00
Shamim Rezaie 71caffb7e0 MDL-68312 output: Fix empty links
If a link contains no text, the function or purpose of the link will not
be presented to the user. This can introduce confusion for keyboard and
screen reader users.
2020-04-22 04:33:04 +10:00
Shamim Rezaie 04e9010c92 MDL-68312 gradereport_grader: Remove adjacent links to the same URL 2020-04-22 04:33:04 +10:00
Shamim Rezaie 9912c37afd MDL-68312 gradereport_grader: replace invalid label by aria-describedby
The for attribute of the label element should not refer to a non-hidden
form control.
2020-04-22 04:33:04 +10:00
Shamim Rezaie d37757abf1 MDL-68312 gradereport_grader: Use caption instead of summary in table
The summary attribute on the table element is obsolete.
2020-04-22 04:33:04 +10:00
Shamim Rezaie f9b144d6bf MDL-68343 gradereport_singleview: Remove adjacent links to the same URL 2020-04-22 04:31:06 +10:00
Shamim Rezaie 85bf5b2e2c MDL-68343 gradereport_singleview: Use caption instead of summary
The summary attribute on the table element is obsolete.
2020-04-22 04:31:06 +10:00
Shamim Rezaie cc36c39b46 MDL-68343 gradereport_singleview: fix empty links 2020-04-22 04:31:06 +10:00
Shamim Rezaie 5d2be187a2 MDL-68343 gradereport_singleview: Only output label tag if label exists
This also fixes the issue of having multiple form labels for a single
element.
2020-04-22 04:31:06 +10:00
Shamim Rezaie 10bc73d5b6 MDL-68343 output: fix html table structure
A <th> that contains no text may result in cells with missing or
incorrect header information. WAVE advises that we should make a cell
a <td> rather than a <th> if the cell must remain empty (such as the
top-left cell in a data table).

Also note that the scope attribute is only valid for <th>
2020-04-22 04:31:06 +10:00
Paul Holden bde34b41f8 MDL-63609 media_videojs: support Youtube URL start time. 2020-04-21 14:45:53 +01:00
Paul Holden 80827f076c MDL-62853 privacy: sanitize subcontext paths. 2020-04-21 14:38:14 +01:00
Paul Holden 059f402a51 MDL-66917 admin: validate uploaded plugin version.
Prevent overwriting current plugins with older versions of themselves.
2020-04-21 14:36:18 +01:00
Jun Pataleta 9116fd6e97 Merge branch 'MDL-68356-38' of git://github.com/cescobedo/moodle into MOODLE_38_STABLE 2020-04-21 09:25:10 +08:00
Jun Pataleta 06fe619327 Merge branch 'MDL-68339_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE 2020-04-20 21:52:49 +08:00
Bas Brands fe2fc1c79b MDL-67881 core_message: fix tab order for message drawer 2020-04-20 12:03:06 +02:00
AMOS bot 78939c0069 Automatically generated installer lang files 2020-04-19 00:13:19 +00:00
Brendan Heywood db94d504f7 MDL-68443 xmldb: Improve path validation on view_xml action 2020-04-18 20:50:41 +10:00
Andrew Nicols cba151a391 Merge branch 'MDL-67317_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE 2020-04-17 18:36:15 +08:00
cescobedo 00de69b59f MDL-68356 core_h5p: Fix h5p mimetype
Add a correct mime type for h5p files and update existing
mime type for stored h5p files.
2020-04-17 09:07:17 +02:00
AMOS bot 072050567a Automatically generated installer lang files 2020-04-17 00:16:18 +00:00
Eloy Lafuente (stronk7) 76b745e76a MDL-67317 behat: Bump to 3.38.4 moodle-behat-extension
It comes with behat/mink 1.8.x that provides php74 compatibility.

lock file generated with php71 (min version supported by the branch)
2020-04-16 20:28:56 +02:00
Eloy Lafuente (stronk7) cd93d0b9cf MDL-67317 behat: Ensure that on every scenario we have a session.
Before Mink 1.8.0, any call to getSession() used to auto-start
the session if it was not avaliable there. That always has been
an unsupported detail.

With https://github.com/minkphp/Mink/pull/705 new sessions aren't
auto-created anymore.

And we were relying on that.

So this is, simply about to explicitly create the new session
in our before_scenario stuff, to guarantee that it's always there.
2020-04-16 20:28:56 +02:00
Shamim Rezaie 11278ad7a3 MDL-68351 libraries: Update the upgrade instructions
Backport of MDL-67374
2020-04-16 20:28:41 +02:00
Shamim Rezaie d9c1feece4 MDL-68351 libraries: Upgrade SimplePie to version 1.5.3
Backport of MDL-67374
2020-04-16 20:28:41 +02:00
Eloy Lafuente (stronk7) 35bf8e5c25 MDL-68339 message: move array_key_exists() to property_exists()
Towards PHP 7.4 compliance:

array_key_exists(): Using array_key_exists() on objects is
deprecated. Use isset() or property_exists() instead
2020-04-16 20:28:30 +02:00
Eloy Lafuente (stronk7) 666cc20c30 weekly release 3.8.2+ 2020-04-16 19:34:28 +02:00
Eloy Lafuente (stronk7) e0fd39791c Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-04-16 19:34:23 +02:00
Juan Leyva dcc4bfa042 MDL-68293 mobile: Update language strings to mention new app plans
We need to update different language strings to let our site admins know about the new app restrictions
(for both features and user devices able to receive notifications)
2020-04-16 12:53:36 +02:00
Adrian Greeve d0323fb7c6 Merge branch 'MDL-68196-38' of git://github.com/rezaies/moodle into MOODLE_38_STABLE 2020-04-16 10:56:37 +08:00
Shamim Rezaie 0a9b84efff MDL-68196 core: not expand autocomplete elements too soon on IE 2020-04-16 12:19:00 +10:00
Eloy Lafuente (stronk7) f8c8576f63 Merge branch 'MDL-66849-M38' of https://github.com/ised-isde-canada/moodle into MOODLE_38_STABLE 2020-04-16 01:02:53 +02:00
Eloy Lafuente (stronk7) 14a4038810 Merge branch 'MDL-68323-38' of git://github.com/marinaglancy/moodle into MOODLE_38_STABLE 2020-04-16 00:53:58 +02:00
Eloy Lafuente (stronk7) d6347d8c3c Merge branch 'MDL-68279-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-04-16 00:33:19 +02:00
Eloy Lafuente (stronk7) 29dccc952c Merge branch 'MDL-68189-m38' of https://github.com/NeillM/moodle into MOODLE_38_STABLE 2020-04-16 00:13:42 +02:00
Eloy Lafuente (stronk7) 100c569431 Merge branch 'MDL-68280-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-04-16 00:10:48 +02:00
Sara Arjona b1c442ccc4 Merge branch 'MDL-67751-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-04-15 17:57:13 +02:00
Jun Pataleta e45c2fd424 Merge branch 'MDL-66200-MOODLE_38_STABLE_gradebook_csv_import' of https://github.com/jwalits/moodle into MOODLE_38_STABLE 2020-04-15 23:17:50 +08:00
Paul Holden 7ada02755d MDL-67751 course: include inline folders in list of resources. 2020-04-15 13:59:41 +01:00
Eloy Lafuente (stronk7) f7c1752fb3 Merge branch 'MDL-67499-38' of git://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-04-15 12:49:42 +02:00
Bas Brands 210794be38 MDL-68301 theme_boost: move course format css
this reduces duplication of css in format_topic
and format_weeks
2020-04-15 09:53:06 +02:00
Adrian Greeve 6278b8af59 Merge branch 'MDL-67663-38-3' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-04-15 13:23:12 +08:00
Michael Milette 9ff584a1e9 MDL-66849 output: Remove custom menu title when not specified 2020-04-14 22:24:13 -04:00
Jun Pataleta 194a801160 Merge branch 'MDL-68405-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-04-14 16:09:24 +08:00
Andrew Nicols 5af33db074 MDL-68405 js: Ensure correct exit code for gherkinlint 2020-04-14 15:09:48 +08:00
AMOS bot 052c43eec9 Automatically generated installer lang files 2020-04-11 00:11:54 +00:00
AMOS bot f43c324b0b Automatically generated installer lang files 2020-04-11 00:11:54 +00:00
David Mudrák 64bff8a106 MDL-68393 admin: Fix some minor styling issues on the notifications page
The patch makes the available update information elements more
distinguishable, the Download button more prominent, and the Check for
available update button better aligned. It reduces the space between
multiple available Moodle updates, too.
2020-04-10 14:41:13 +02:00
Eloy Lafuente (stronk7) 6090492eec Merge branch 'MDL-67919-38' of git://github.com/sarjona/moodle into MOODLE_38_STABLE 2020-04-10 11:55:30 +02:00
Eloy Lafuente (stronk7) 3d94784459 Merge branch 'MDL-67910-38' of git://github.com/sarjona/moodle into MOODLE_38_STABLE 2020-04-10 11:36:42 +02:00
Luca Bösch 4e445b9709 MDL-68392 travis: Fix validation warnings and infos
Can verify that this file passes the validation @
https://config.travis-ci.com/explore
2020-04-10 00:14:08 +02:00
Jun Pataleta 706f17d90f MDL-68355 gradingform_guide: Fix accessibility issues
* Add sr-only label for criterion information.
* Add sr-only label for frequently used comments picker button.
* Removed unused string grade_help.
* Fixed tags for hidden help texts, changing them from <small> to <span>
* Added aria-label for the score and additional comments fields so that
  the user would know which criterion they are currently working on.
* Added score_help and remark_help lang strings for more description
  for the score and additional comments fields.
* Remove text-muted class for additional comments' field label to avoid
  colour contrast issues.
2020-04-09 21:46:08 +08:00
Jun Pataleta de7c77913c MDL-67663 mod_forum: Show/hide elements from screen reader on search
* When the search input gets shown, users can still navigate on the
close button and the grading status container which can cause confusion
among users. So hide and show them accordingly as well.
* Hide/show user picker and body container when the search results
container is shown/hidden.
2020-04-09 21:44:28 +08:00
Jun Pataleta 485917574e MDL-67663 core: Do not use aria-hidden="false" on drawer
From https://www.w3.org/TR/wai-aria-1.1/#aria-hidden:
* "aria-hidden="false" is known to work inconsistently in browsers"
2020-04-09 21:44:28 +08:00
Jun Pataleta c20f4f5efd MDL-67663 mod_forum: Add missing lang strings 2020-04-09 21:44:28 +08:00
Jun Pataleta 8896d073e2 MDL-67663 mod_forum: Designate forum grading landmark regions
Adding the following landmark regions for easier keyboard navigation:
* Forum grading navigation
* User's forum posts
* Forum grading panel
2020-04-09 21:44:28 +08:00
Jun Pataleta c08eb88ae9 MDL-67663 mod_forum: Use proper lang string for aria-label
Use a proper language string for the aria-label of the hide grader
panel button instead of a hard-coded one.
2020-04-09 21:44:28 +08:00
Jun Pataleta dceb61ac68 MDL-67663 mod_forum: Fix focus order of the grading form
* Focus should flow from the form header down to the forum posts, and
then to the grading panel itself.
2020-04-09 21:44:28 +08:00
Jun Pataleta 79d668fc8f MDL-67663 mod_forum: Make user switching more accessible
* Add a more descriptive label for the next and previous buttons so that
the users would know that clicking on the next or previous buttons will
save the changes they made before proceeding to the next user.
* Add an sr-only div with aria-live to the user picker to let the grader
know the current user that is being graded.
* Hide the user picture from screen readers
2020-04-09 21:44:27 +08:00
Jwalit Shah 305060c055 MDL-66200 gradebook: check selected feedback option when importing data 2020-04-09 11:00:49 +10:00
Sara Arjona 49f07dc861 weekly release 3.8.2+ 2020-04-08 16:24:48 +02:00
Sara Arjona d6e96f06cc Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-04-08 16:24:45 +02:00
Andrew Nicols 7d726708ff Merge branch 'MDL-68148-38' of git://github.com/rezaies/moodle into MOODLE_38_STABLE 2020-04-08 11:24:14 +08:00
Shamim Rezaie c332400ba6 MDL-68148 user: remove the noscript tag
The submit button remains deactive if js is disabled. So having a
noscript tag to output a submit button here does not make sense.
2020-04-08 11:44:28 +10:00
Shamim Rezaie 94a55738ad MDL-68148 user: fixed stray end tag (input) 2020-04-08 11:44:28 +10:00
Shamim Rezaie b77c5e78dc MDL-68148 core_user: avoid multiple enrol buttons with the same id 2020-04-08 11:44:28 +10:00
Shamim Rezaie 5dfebd739f MDL-68148 core_user: set the fullname column as the header column
ref: https://www.w3.org/WAI/tutorials/tables/
2020-04-08 11:44:28 +10:00
Shamim Rezaie cabbb145dd MDL-68148 output: type attribute is unnecessary for javascript resources 2020-04-08 11:44:28 +10:00
Shamim Rezaie 351262b192 MDL-68148 core: remove cellspacing
The cellspacing attribute of <table> is not supported in HTML5.
So the removed line did not have any effect since ages ago.
2020-04-08 11:44:28 +10:00
AMOS bot 74ff19965a Automatically generated installer lang files 2020-04-08 00:11:13 +00:00
AMOS bot c1159327b4 Automatically generated installer lang files 2020-04-08 00:11:12 +00:00
Sara Arjona b5c776a789 Merge branch 'MDL-40081-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-04-07 15:10:14 +02:00
Sara Arjona 0a92167603 Merge branch 'MOODLE_38_MDL-68223' of https://github.com/golenkovm/moodle into MOODLE_38_STABLE 2020-04-07 13:43:03 +02:00
Sara Arjona 7cb0548c1b Merge branch 'MOODLE_38_MDL-65700' of https://github.com/golenkovm/moodle into MOODLE_38_STABLE 2020-04-07 13:34:22 +02:00
Mikhail Golenkov 214542af79 MDL-65700 javascript: Add url-polyfill. 2020-04-07 20:56:46 +10:00
Andrew Nicols 6a0f166fef Merge branch 'MDL-68285-38' of git://github.com/cescobedo/moodle into MOODLE_38_STABLE 2020-04-07 13:43:06 +08:00
Sara Arjona c904d2249f Merge branch 'MDL-65539-m38' of https://github.com/NeillM/moodle into MOODLE_38_STABLE 2020-04-06 16:42:10 +02:00
Paul Holden 63cf950324 MDL-40081 completion: clean up criteria records for deleted courses. 2020-04-06 12:21:57 +01:00
Paul Holden 5a63310250 MDL-67499 restore: account for deleted user truncated email/username. 2020-04-06 12:09:54 +01:00
Eloy Lafuente (stronk7) 98014f03cd MDL-67499 restore: add 100% cov. to restore_dbops::precheck_user()
Supports multiple mails to be tested.

So we can perform changes to it and also some related stuff,
like delete_user() with confidence.
2020-04-06 11:48:36 +01:00
Paul Holden 80a8c362ea MDL-67499 user: truncate long username/email during user deletion. 2020-04-06 11:48:36 +01:00
Paul Holden 42396a33e9 MDL-68280 user: fix PHP notice for unknown user invalid login token. 2020-04-06 11:46:17 +01:00
Paul Holden 46a290b1b9 MDL-68279 admin: filter site fullname when sending test email. 2020-04-06 11:41:26 +01:00
Sara Arjona edb85411b8 Merge branch 'MDL-68239-38' of https://github.com/NinaHerrmann/moodle into MOODLE_38_STABLE 2020-04-06 10:18:40 +02:00
Jake Dallimore b90f72b304 MDL-68309 overrides: clarify inactive overrides help string 2020-04-06 07:38:21 +08:00
Eloy Lafuente (stronk7) 11b3c817a5 MDL-68047 tcpdf: Prevent images out from cache to be removed
This corresponds to https://github.com/tecnickcom/TCPDF/pull/174
(and was fixed bycommit 510070b) and was a regression causing
image files to be removed unconditionally. Only if the images
are from cache, they can be removed.

It's fixed upstream in version 6.3.4 and up.
2020-04-06 00:31:02 +02:00
Sara Arjona bcd723cf97 MDL-67919 dataprivacy: Fix behat error when contacting DPO 2020-04-03 19:49:43 +02:00
Ruslan Kabalin 13413304ef MDL-68315 formslib: Fix completion attribute in course form element.
This fixes 'onlywithcompletion' attribute in course form element.
2020-04-03 16:15:22 +01:00
n_herr03 39bf9c63e6 MDL-68239 mod_data: make required icon in multimenu visible 2020-04-03 12:21:04 +02:00
Neill Magill 8d6234bedc MDL-65539 dragdrop: Ignore drag proxy in keyboard menu
Before this change the node that is displayed during a the last mouse
drag and drop would be listed in a keyboard drag and drop if it was
the container node of one of the types of node being moved in this action.

If a node is inside a node with the .yui3-dd-proxy class then it is
one of the proxy elements used to display the dragged content during
mouse drag and drop so we will start ignoring it.
2020-04-03 08:37:47 +01:00
Neill Magill a7ac45bc7d MDL-65539 dragdrop: Allow sections and blocks to move to the top
Before this change sections and blocks could not be moved to be the
top item when using keyboard drag and drop.

They can now be moved to the top in one action.

The way they move using keyboard drag and drop has changed when they
are below the item they are dropped on, not instead of appearing
below it they will be placed above it.
2020-04-03 08:37:47 +01:00
Neill Magill 1170bb3465 MDL-65539 dragdrop: Allow direction detection when using keyboard
Before this change keyboard drag and drop could not detect the
direction of movement, this meant that an item would only be placed
below an item or at the top of a container item.

This change means that extending modules can declare
detectkeyboarddirection to true. This will mean that when an item is
moved it's position will be determined by the direction of travel as
it would be when dragging using the mouse.

If detectkeyboarddirection is true then:

* If you move an item upwards it will be placed before the item
  selected in the drop menu
* If you move a item downwards it will be placed after the item
  selected in the drop menu
* The item above the one being dragged will now be displayed on
  the drop menu

If detectkeyboarddirection is false there will be no change in
behaviour.
2020-04-03 08:37:46 +01:00
Neill Magill a8c0956b22 MDL-65539 course: Keyboad drag and drop should not break page
Before this change keyboard drag and drop of sections would alter
the structure of the page.

This occured because in this case the dragnode was the original node
2020-04-03 08:37:46 +01:00
Neill Magill 231d5161d6 MDL-65539 formats: Section labels not updated during move
Before this change when moving a section via drag and drop the
aria-label for the section was not being updated neither was the
title on the drag handle.

The result was the the drop menu on keyboard drag and drop displayed
the wrong information after a section was moved.
2020-04-03 08:37:46 +01:00
Neill Magill 96988de3ff MDL-68189 course: Section name change should display in DD menu
Before this patch if a section was renamed inline the old name was
still displayed in the keyboard drag and drop menu until the page
was refreshed.

This change ensures that the two places that section names were not
updated in get changed after an inline update to the name.
2020-04-03 08:37:26 +01:00
Sara Arjona 255b396328 weekly release 3.8.2+ 2020-04-02 16:51:17 +02:00
Sara Arjona 525688f879 Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-04-02 16:51:14 +02:00
Marina Glancy 8effb03227 MDL-68323 core: add --max-lint-warnings option to grunt 2020-04-02 13:44:46 +02:00
Luca Bösch 0b4ac78d6d MDL-67672 user: Display name in user menu as elsewhere. 2020-04-02 00:17:41 +02:00
Eloy Lafuente (stronk7) 9c42bab6bc Merge branch 'MDL-68265-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-04-01 23:29:21 +02:00
Eloy Lafuente (stronk7) 4ea9f5d7db Merge branch 'MDL-68193_38' of git://github.com/mdjnelson/moodle into MOODLE_38_STABLE 2020-04-01 23:22:35 +02:00
Mark Nelson 390a7cc8d2 MDL-68193 core: added new database_text_field_content_replaced event 2020-04-01 23:20:54 +02:00
Eloy Lafuente (stronk7) b3c6d95eee Merge branch 'MDL-68191_38' of git://github.com/timhunt/moodle into MOODLE_38_STABLE 2020-04-01 20:18:34 +02:00
Eloy Lafuente (stronk7) c0c6ffd9d5 Merge branch 'MDL-67995-38' of git://github.com/cescobedo/moodle into MOODLE_38_STABLE 2020-04-01 19:11:50 +02:00
Jake Dallimore 8cee84e682 Merge branch 'MDL-67672-38' of git://github.com/lucaboesch/moodle into MOODLE_38_STABLE 2020-04-01 16:43:28 +08:00
Sara Arjona 97d21f097d Merge branch 'MDL-68281_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE 2020-04-01 09:25:25 +02:00
Sara Arjona aefb25dae5 Merge branch 'MDL-68277_38' of https://github.com/timhunt/moodle into MOODLE_38_STABLE 2020-04-01 09:14:47 +02:00
Luca Bösch b16cd34860 MDL-67672 user: Display name in user menu as elsewhere. 2020-04-01 09:03:39 +02:00
Sara Arjona 795a11a328 Merge branch 'MDL-58964-38' of git://github.com/abias/moodle into MOODLE_38_STABLE 2020-03-31 19:13:44 +02:00
Eloy Lafuente (stronk7) f9ecf3d3af Merge branch 'MDL-64494-38' of git://github.com/bmbrands/moodle into MOODLE_38_STABLE 2020-03-31 18:59:24 +02:00
Bas Brands 463ad12363 MDL-64494 theme_boost: accessible theme colours 2020-03-31 18:54:19 +02:00
Sara Arjona 3b1be8fb8f Merge branch 'MDL-66245-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-03-31 15:09:15 +02:00
Sara Arjona 3466e64d62 MDL-67910 behat: PendingJS improvements for deleteevent modal 2020-03-31 08:40:43 +02:00
Jake Dallimore b38841280d Merge branch 'MDL-68144-38' of git://github.com/lucaboesch/moodle into MOODLE_38_STABLE 2020-03-31 13:59:39 +08:00
Eloy Lafuente (stronk7) 81c8aee9f2 Merge branch 'MDL-68269-38' of git://github.com/rezaies/moodle into MOODLE_38_STABLE 2020-03-30 22:54:17 +02:00
Eloy Lafuente (stronk7) 1e1eed0aa4 Merge branch 'MDL-68049-38' of https://github.com/spvickers/moodle into MOODLE_38_STABLE 2020-03-30 16:23:27 +02:00
cescobedo d2791a63ec MDL-68285 core_h5p: Fix unused variables and undeclared globals 2020-03-30 11:37:59 +02:00
Andrew Nicols ecc9d9c48c Merge branch 'MDL-52319-38-environmentxml' of git://github.com/mudrd8mz/moodle into MOODLE_38_STABLE 2020-03-30 16:54:37 +08:00
Shamim Rezaie 3999cbaa6a MDL-68269 form: fieldset in group elements should be full width 2020-03-30 18:32:39 +11:00
cescobedo 6e3dfc7927 MDL-67995 format_singleactivity: Fix dropwdown type of activity 2020-03-30 08:27:02 +02:00
Mikhail Golenkov 4a363544eb MDL-68223 assign: Fix selection of comment text. 2020-03-30 14:57:36 +11:00
Andrew Nicols 478c14d75d MDL-68265 core_question: Switch question import to request dir 2020-03-30 08:14:46 +08:00
Andrew Nicols 02ed9c4196 MDL-68265 mod_lesson: Switch question import to request dir 2020-03-30 08:14:46 +08:00
AMOS bot 7d4ade8bb1 Automatically generated installer lang files 2020-03-29 00:11:46 +00:00
Eloy Lafuente (stronk7) 3eeadb6ae2 MDL-68281 unit test: Include required class
Also, add missing line break, that I did not see 1 week ago.
2020-03-28 16:27:29 +01:00
AMOS bot 548e3f2aef Automatically generated installer lang files 2020-03-28 00:11:38 +00:00
Tim Hunt 7e6d6f97aa MDL-68277 qtype_essay: answer area in reviews should be right size
The answer box size is set by teachers and provides a useful
visual cue how long a response was expected. Therefore, it is
useful to keep the space at least that size in quiz reviews, etc.
2020-03-27 14:12:37 +00:00
Luca Bösch 75532d2266 MDL-68144 mod_folder: make top margins less dominant for folder content 2020-03-27 07:12:54 +01:00
Jake Dallimore 49914a57d4 weekly release 3.8.2+ 2020-03-27 09:18:37 +08:00
Jake Dallimore c23192f642 Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-03-27 09:18:36 +08:00
Eloy Lafuente (stronk7) fa33530059 Merge branch 'MDL-64429-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-03-26 18:38:18 +01:00
Paul Holden 02e24d7098 MDL-64429 tool_usertours: upgrade step to fix existing tours sortorder. 2020-03-26 16:48:56 +00:00
Eloy Lafuente (stronk7) 3d247d80bb Merge branch 'MDL-68183-38-mysqlpwdresetsql' of git://github.com/mudrd8mz/moodle into MOODLE_38_STABLE 2020-03-26 01:18:20 +01:00
Eloy Lafuente (stronk7) 9f9134e1ae Merge branch 'MDL-63865-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-03-26 00:32:05 +01:00
Eloy Lafuente (stronk7) 39f07a058f Merge branch 'MDL-68116-38' of git://github.com/sarjona/moodle into MOODLE_38_STABLE 2020-03-26 00:28:11 +01:00
Eloy Lafuente (stronk7) 8d0fb6a548 Merge branch 'MDL-67442_38' of https://github.com/jonof/moodle into MOODLE_38_STABLE 2020-03-26 00:04:18 +01:00
Jun Pataleta 658624d7d0 Merge branch 'MDL-68149_38' of https://github.com/timhunt/moodle into MOODLE_38_STABLE 2020-03-26 00:09:38 +08:00
Jun Pataleta 4390cc47d9 Merge branch 'MDL-68153_38' of https://github.com/timhunt/moodle into MOODLE_38_STABLE 2020-03-25 22:34:27 +08:00
Jun Pataleta d89837abf6 Merge branch 'MDL-67024-38' of git://github.com/farhan6318/moodle into MOODLE_38_STABLE 2020-03-25 08:34:23 +08:00
Eloy Lafuente (stronk7) b669b3cb86 Merge branch 'MDL-67731-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-03-25 00:06:12 +01:00
Eloy Lafuente (stronk7) 570faa0c48 Merge branch 'MDL-67930-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-03-24 22:48:14 +01:00
Eloy Lafuente (stronk7) ed8046b929 Merge branch 'MDL-68068-38' of git://github.com/cescobedo/moodle into MOODLE_38_STABLE 2020-03-24 22:39:32 +01:00
Jake Dallimore c155794221 Merge branch 'MDL-68135-38' of git://github.com/rezaies/moodle into MOODLE_38_STABLE 2020-03-24 12:10:55 +08:00
AMOS bot c1707b2b50 Automatically generated installer lang files 2020-03-24 00:11:05 +00:00
Alexander Bias eaf3679e08 MDL-58964 navigation: Reindex array when element is removed 2020-03-23 21:36:13 +01:00
David Mudrák b6caef105b MDL-52319 upgrade: Better report the environment checks in CLI scripts
Before we did not display the source of the environment check failure
(whether it was a core check or a plugin) and there was a missing space
before the "Error" status.
2020-03-23 11:27:01 +01:00
Tim Hunt 8eab502760 MDL-52319 install: Fix some coding style issues 2020-03-23 11:27:01 +01:00
Tim Hunt 213d9daf8d MDL-52319 upgrade: Also run environment checks if plugins need upgrades
Also perform the environment checks if a plugin triggers the upgrade.
Core upgrade and CLI upgrade was doing this already.
2020-03-23 11:27:01 +01:00
AMOS bot f09e31b9c2 Automatically generated installer lang files 2020-03-23 00:12:12 +00:00
Paul Holden 241edb45ec MDL-64429 tool_usertours: ensure tour sortorder can't move out of range. 2020-03-22 20:04:00 +00:00
Paul Holden e8c219a187 MDL-63865 tool_dataprivacy: unit test for plugin privacy provider. 2020-03-22 19:59:49 +00:00
Paul Holden 41831d5651 MDL-67731 backup: fix async restores in progress table listing. 2020-03-22 19:57:25 +00:00
Paul Holden 9fbbb1e46d MDL-67930 mod_forum: consistent default group image when hidden. 2020-03-22 19:55:00 +00:00
AMOS bot 4e64d26901 Automatically generated installer lang files 2020-03-22 00:10:44 +00:00
Sara Arjona d9c9c01f26 MDL-68116 atto_h5p: simplify fields to add H5P content
The embed section has been removed in order to simplify this screen.
It was added to make easier include content coming from h5p.org but,
as soon users won't be able to use it, it makes no sense.
Users will still be able to use the "HTML" button to paste the
embed code.
2020-03-20 10:08:00 +01:00
Sara Arjona da8426112f MDL-68116 filter_h5p: remove h5p.org from allowed sources
h5p.org has to be removed as default value for the allowedsources in
the "Display H5P" filter because H5P is going to close it down completely
so that only the author can see the test content.
2020-03-20 10:08:00 +01:00
cescobedo dc0cbc24f3 MDL-68068 core_h5p: Replace $_SESSION by $SESSION
The third-party library H5P has some references to  instead of Moodle's.
That implies that the information is not saved to backends and other issues,
so only the Moodle one should be used by core (core should be free from  and always use .).
2020-03-20 07:53:30 +01:00
Farhan Karmali 98ae29ae24 MDL-67024 Lib: Check if user->mnethostid is set before using it 2020-03-20 11:59:45 +05:30
Adrian Greeve 46fe2c5533 weekly release 3.8.2+ 2020-03-20 13:35:49 +08:00
Alexander Bias cf0270260b MDL-58964 navigation: Add class attributes to Boost flat navigation 2020-03-19 20:48:38 +01:00
Stephen Vickers c84b8e77f1 MDL-68049 mod_lti: Fix link-level memberships service
Fix cause of 404 error
Ensure personal name and email fields are included
Add ext_user_username field when being passed in LTI messages
2020-03-19 11:22:37 +00:00
Adrian Greeve 95d3c122bf Merge branch 'MDL-68081-MOODLE_38_STABLE' of https://github.com/kritisingh1/moodle into MOODLE_38_STABLE 2020-03-19 11:27:53 +08:00
Adrian Greeve 4fdcc6a534 Merge branch 'MDL-68014-38' of git://github.com/peterRd/moodle into MOODLE_38_STABLE 2020-03-19 11:04:54 +08:00
Jun Pataleta e1f9aa101b Merge branch 'MDL-68108-38' of git://github.com/crazyserver/moodle into MOODLE_38_STABLE 2020-03-18 22:59:42 +08:00
Pau Ferrer Ocaña cc3985ed02 MDL-68108 formslib: Add element password inline template 2020-03-18 08:45:57 +01:00
Adrian Greeve 9d0c43f072 Merge branch 'MDL-67901-38' of git://github.com/bmbrands/moodle into MOODLE_38_STABLE 2020-03-18 09:59:58 +08:00
Tim Hunt c16c0271bb MDL-68191 CSS minification: apply upstream performance/accuracy fix
There was a bug with the code to strip comments.
https://github.com/matthiasmullie/minify/issues/317

Applying the fix as a Moodle-specific change for now, because the
effect is significant.
2020-03-17 23:28:15 +00:00
David Mudrák bee8448520 MDL-68183 auth: Fix the performance of get_complete_user_data search
When searching for the user by a case-insensitive field (email address
is the only one supported now), the performance may be very poor as the
DB cannot use the index due to the LOWER() operation and the full
sequential scan of all the user records is performed. On some DBs such
as MySQL, this can be significantly improved by pre-filtering the users
with accent-insensitive search.

So we first perform accent-insensitive search for potential candidates
in a subselect, which can use the index. Only then we perform the
additional accent-sensitive search on this limited set or records.
2020-03-17 14:51:15 +01:00
David Mudrák d23fba1deb MDL-68183 auth: Fix the performance of signup_validate_data search query
When searching for other users with the same email address, we perform
the case-insensitive and accent-sensitive search. That may be expensive
as some DBs such as MySQL cannot use the index in that case. Instead,
sequential scan of all the user records is performed and the comparison
uses the LOWER function to filter the matching records. This leads to
significant performance heavy queries which in turn represent a surface
for DoS attacks.

For that reason, we first perform accent-insensitive search for
potential candidates in a subselect, which can use the index. Only then
we perform the additional accent-sensitive search on this limited set or
records.
2020-03-17 14:10:47 +01:00
David Mudrák 1e19d154ba MDL-68183 auth: Fix the performance of forgotten password user search
When searching for the user matching the given email address, we perform
the case-insensitive and accent-sensitive search. That may be expensive
as some DBs such as MySQL cannot use the index in that case. Instead,
sequential scan of all the user records is performed and the comparison
uses the LOWER function to filter the matching records. This leads to
significant performance heavy queries which in turn represent a surface
for DoS attacks.

For that reason, we first perform accent-insensitive search for
potential candidates, which can use the index. Only then we perform the
additional accent-sensitive search on this limited set or records.
2020-03-17 14:08:54 +01:00
Jun Pataleta d9eea68192 Merge branch 'MDL-68069-38' of git://github.com/cescobedo/moodle into MOODLE_38_STABLE 2020-03-17 16:14:49 +08:00
Adrian Greeve e2e6b49aab Merge branch 'MDL-67970-38' of git://github.com/rezaies/moodle into MOODLE_38_STABLE 2020-03-17 15:25:10 +08:00
Shamim Rezaie 41a5c8c54d MDL-67970 output: use fieldset in core/chooser instead of label 2020-03-17 18:20:06 +11:00
Shamim Rezaie b29634d89f MDL-67970 core: remove unnecessary roles
- The navigation role is unnecessary for element nav
- The textbox role is unnecessary for element textarea
2020-03-17 18:20:02 +11:00
Shamim Rezaie 3611f682e9 MDL-67970 output: replace new-sections attribute with data-new-sections
new-sections is not a valid attribute name for the a element.
Replaced that with data-new-sections
2020-03-17 18:20:02 +11:00
Shamim Rezaie 84c87b62f2 MDL-67970 output: fixed duplicate id attribute
action_menu::export_for_template generates the id attributes and send it
to core/action_menu_trigger template as part of the attributes variable.
2020-03-17 18:20:02 +11:00
Shamim Rezaie 9ecde13781 MDL-67970 search: fixed stray end tag (input) 2020-03-17 18:20:02 +11:00
Adrian Greeve 90227d2d76 Merge branch 'MDL-67981_38' of https://github.com/timhunt/moodle into MOODLE_38_STABLE 2020-03-17 11:32:30 +08:00
Jonathon Fowler 06c3a4cc55 MDL-67442 assign: expand/contract text works in all browsers now 2020-03-16 08:58:44 +10:00
kritisingh1 eed0cbe176 MDL-68081 Groups: Fixes string error in member removal function 2020-03-14 23:24:30 +05:30
Victor Deniz Falcon c78e908404 weekly release 3.8.2+ 2020-03-12 14:22:23 +00:00
Victor Deniz Falcon 7862e1fa12 Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-03-12 14:22:17 +00:00
Eloy Lafuente (stronk7) 2f2f184cdb Merge branch 'MDL-66607-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-03-12 10:09:46 +01:00
Eloy Lafuente (stronk7) c96bfdd6a0 Merge branch 'MDL-68125-regression-MOODLE_38_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_38_STABLE 2020-03-12 01:19:41 +01:00
Brendan Heywood af97e88071 MDL-68125 core: Fixed $CFG->reverseproxyignore install regression 2020-03-12 09:53:54 +11:00
Eloy Lafuente (stronk7) 355f829ad9 Merge branch 'MDL-68061-38' of git://github.com/mickhawkins/moodle into MOODLE_38_STABLE 2020-03-11 22:56:23 +01:00
Tim Hunt 8a90179246 MDL-68153 qbank: question of unknown type should not cause fatal error
Regression casued by MDL-67153
2020-03-11 20:41:27 +00:00
Tim Hunt faf7ab39f2 MDL-68149 qtype_match: correctly distinguish 0 and 0.0 answers
Also added a test for backup & restore (which was working).
2020-03-11 13:44:26 +00:00
Tim Hunt 57cc9b6499 MDL-68149 qtype_match: Updatey tests to follow make_question() pattern 2020-03-11 13:44:26 +00:00
Andrew Nicols 736f6a6602 MDL-66607 message: Add pendingJS checks 2020-03-11 20:41:25 +08:00
Andrew Nicols 1c24b2f567 MDL-66607 message: Resolve race conditions in message deletion process
This commit makes several changes:
1) Explicitly stop polling for messages when a conversation is deleted;
2) Check for deleted conversations when displaying new messages;
3) Do not add a new empty conversation; and
4) Introduce pendingJS checks to ensure that Behat waits for messags to finish rendering.
2020-03-11 20:41:25 +08:00
Andrew Nicols c9a466cee7 Merge branch 'MDL-68146_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE 2020-03-11 11:52:03 +08:00
Eloy Lafuente (stronk7) 6b46f1a53a MDL-68146 forms: remove duped help and advanced icons in checkboxes
They are exceptionally shown later, after the checkbox text already.

This is a fix for the regression introduced by MDL-63424.
2020-03-10 23:04:08 +01:00
Eloy Lafuente (stronk7) 55b717ee66 Merge branch 'MDL-65724-38-3' of git://github.com/peterRd/moodle into MOODLE_38_STABLE 2020-03-10 13:51:25 +01:00
Eloy Lafuente (stronk7) 4d1ccc6700 Merge branch 'MDL-67189-38' of git://github.com/dpalou/moodle into MOODLE_38_STABLE 2020-03-10 11:30:32 +01:00
Shamim Rezaie 4293339fc9 MDL-68135 output: remove the presentation role from user pic
"presentation" is not a valid role for the img element.
Moreover, it doesn't make sense to have both role="presentation" and
aria-hidden="true" for an element at the same time.
For more info please see:
https://timwright.org/blog/2016/11/19/difference-rolepresentation-aria-hiddentrue/
2020-03-10 19:06:01 +11:00
Dani Palou fef31ac7c1 MDL-67189 external: Add test to catch PHP exceptions 2020-03-10 08:32:14 +01:00
Dani Palou 3f128fff10 MDL-67189 external: Catch Throwable in call_external_function 2020-03-10 08:32:14 +01:00
Eloy Lafuente (stronk7) 1aa7347965 Merge branch 'MDL-67827-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-03-09 20:36:17 +01:00
Sara Arjona 8fba462e74 Merge branch 'MDL-66671-m38-master' of https://github.com/dthies/moodle into MOODLE_38_STABLE 2020-03-09 18:49:11 +01:00
Sara Arjona 19b644ed08 Merge branch 'MDL-67968-38' of git://github.com/rezaies/moodle into MOODLE_38_STABLE 2020-03-09 18:17:06 +01:00
Sara Arjona 1bbace8bd0 Merge branch 'MDL-67902-38' of git://github.com/rezaies/moodle into MOODLE_38_STABLE 2020-03-09 15:06:49 +01:00
Andrew Nicols be9325c7cf MDL-67827 behat: Pending JS improvements for dialogues 2020-03-09 08:31:21 +08:00
Andrew Nicols 836e523edd MDL-67827 behat: Add missing exception use 2020-03-09 08:31:21 +08:00
AMOS bot 85162ad8e1 Automatically generated installer lang files 2020-03-09 00:11:53 +00:00
Tim Hunt 11212ea69b MDL-67981 questions: avoid errors deleting contextless questions 2020-03-06 18:02:36 +00:00
Shamim Rezaie 399369fb19 MDL-67968 calendar: use aria-label instead of the abbr tag 2020-03-07 04:12:28 +11:00
Shamim Rezaie 11a8af9012 MDL-67968 calendar: explain weekday abbreviations 2020-03-07 04:08:10 +11:00
Shamim Rezaie bb24115b88 MDL-67968 form: not to put empty label when no label is available 2020-03-07 04:08:10 +11:00
Shamim Rezaie d7bca2339a MDL-67968 question: do not display sr-only legends
.accesshide was removed because:
 1. It was only kept in case it's still used somewhere, in a custom form
 field for instance.
 2. It was broken since 3.5 where we integrated
 https://github.com/bmbrands/moodle/compare/ab65b87f3d...MDL-62419-master
 So it's been ages that the reason mentioned on point 1 was not being
 satisfied
2020-03-07 04:08:10 +11:00
Shamim Rezaie eebe003104 MDL-67968 form: grouped element label fix 2020-03-07 04:08:10 +11:00
Sara Arjona 9ce2442ea9 Moodle release 3.8.2 2020-03-06 12:34:11 +01:00
cescobedo 9f4968676a MDL-68069 core_h5p: delete cache assets when removing libraries
The cache assets linked to a library have to be removed also when a
library is deleted, in order to rebuild them again next time they are
required.
2020-03-06 09:51:31 +01:00
Peter fc51caf533 MDL-65724 core: Force restore to use the settings from the plan
When importing use the import settings.
2020-03-06 14:13:45 +08:00
AMOS bot 9044d294a2 Automatically generated installer lang files 2020-03-06 00:10:50 +00:00
Peter Dias 628c056258 MDL-68014 lti: Remove alt text for image 2020-03-06 07:57:06 +08:00
Sara Arjona cd9828dadf weekly release 3.8.1+ 2020-03-05 17:31:32 +01:00
Sara Arjona 28f2858004 Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-03-05 17:31:28 +01:00
Michael Hawkins 941507e78a MDL-67861 core: Fix getremoteaddr unit test to match new proxy setup 2020-03-05 14:39:34 +08:00
Brendan Heywood 1954482cc5 MDL-67861 core: Added $CFG->reverseproxyignore IP subnet list
If your server is behind multiple reverse proxies that append to the
X-Forwarded-For header then you will need to specify a comma separated
list of ip addresses or subnets of the reverse proxies to be ignored
in order to find the users correct IP address.
2020-03-05 01:27:57 +01:00
Brendan Heywood 7d8096eb18 MDL-67861 libraries: Refactor is_ip_in_subnet_list in ip_utils 2020-03-05 01:27:57 +01:00
Brendan Heywood 1cf6629ba2 MDL-67861 admin: Default $CFG->getremoteaddrconf to only use REMOTE_ADDR 2020-03-05 01:27:57 +01:00
Brendan Heywood d403416579 MDL-67861 core: Use last ip in X-Forwarded-For list 2020-03-05 01:27:57 +01:00
Andrew Nicols 9d23ee9003 MDL-65106 theme_classic: Remove unused variable 2020-03-05 08:15:54 +08:00
Andrew Nicols c706dd09a3 Merge branch 'MDL-65106-38' of git://github.com/bmbrands/moodle into MOODLE_38_STABLE 2020-03-05 08:15:48 +08:00
Eloy Lafuente (stronk7) 563931d924 Merge branch 'MDL-62768-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-03-04 18:37:17 +01:00
Sara Arjona a552c30018 Merge branch 'MDL-67696-MOODLE_38_STABLE_count_warning' of https://github.com/JayChurchward/moodle into MOODLE_38_STABLE 2020-03-04 17:55:48 +01:00
Bas Brands 5288ca8a73 MDL-67901 type_multichoice: clear my choice accessibility
Improve the accessibility for the clear my choice option. The
extra radio input controlling the reset feature was removed and
resetting the choice is now controlled by JavaScript.
This fixes the missing label reported in Accessibility audit and W3C
validation of the reset link

By this change this issue also fixes MDL-67280
2020-03-04 16:45:03 +01:00
Sara Arjona 2f7e2ff457 Merge branch 'MDL-67767-38' of git://github.com/dpalou/moodle into MOODLE_38_STABLE 2020-03-04 15:04:58 +01:00
Dani Palou 714a816050 MDL-67767 tool_mobile: Allow using more characters in forcedurlscheme 2020-03-04 14:22:54 +01:00
Sara Arjona e490f86d57 Merge branch 'MDL-67863-38' of git://github.com/bmbrands/moodle into MOODLE_38_STABLE 2020-03-04 14:05:29 +01:00
Sara Arjona eccde3bc19 Merge branch 'MDL-67969-38' of git://github.com/rezaies/moodle into MOODLE_38_STABLE 2020-03-04 12:58:17 +01:00
Marina Glancy 4c16eba0b5 MDL-56287 gradereport_history: Separate groups queries improved 2020-03-04 11:47:19 +01:00
Jun Pataleta ec7ce8f204 MDL-56287 gradereport_history: Show users from groups that can be viewed 2020-03-04 11:47:19 +01:00
Eloy Lafuente (stronk7) 47f96d5e9f Merge branch 'MDL-67641-38' of git://github.com/dpalou/moodle into MOODLE_38_STABLE 2020-03-04 10:47:55 +01:00
Sara Arjona be47691d79 Merge branch 'MDL-68008-38' of git://github.com/ferranrecio/moodle into MOODLE_38_STABLE 2020-03-04 08:41:30 +01:00
Dani Palou 235f139992 MDL-67641 auth: Fix shortname type in get_signup_settings WS 2020-03-04 08:12:04 +01:00
AMOS bot e10cf2368a Automatically generated installer lang files 2020-03-04 00:11:12 +00:00
Eloy Lafuente (stronk7) 7bda43ee60 Merge branch 'MDL-67728-38' of git://github.com/crazyserver/moodle into MOODLE_38_STABLE 2020-03-03 19:50:17 +01:00
Eloy Lafuente (stronk7) 28298a6fe9 Merge branch 'MDL-68038-38' of git://github.com/sarjona/moodle into MOODLE_38_STABLE 2020-03-03 19:45:15 +01:00
Eloy Lafuente (stronk7) ddaee0c87d Merge branch 'MDL-67971-38' of git://github.com/sarjona/moodle into MOODLE_38_STABLE 2020-03-03 19:02:30 +01:00
Sara Arjona 9515f40ced Merge branch 'MDL-67993-38' of git://github.com/lameze/moodle into MOODLE_38_STABLE 2020-03-03 18:06:37 +01:00
Ferran Recio 7949aaceae MDL-68008 tool_capability: shows multiple contexts when overrides exists 2020-03-03 17:51:27 +01:00
Sara Arjona 305807d27b Merge branch 'MDL-68048-38-behatnotfound' of git://github.com/mudrd8mz/moodle into MOODLE_38_STABLE 2020-03-03 17:01:44 +01:00
Sara Arjona 845c943d7f Merge branch 'MDL-68060-38-huburlcompare' of git://github.com/mudrd8mz/moodle into MOODLE_38_STABLE 2020-03-03 13:10:13 +01:00
Sara Arjona 007ab3cf17 Merge branch 'MDL-67891-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-03-03 12:48:24 +01:00
Bas Brands 8540968781 MDL-65106 theme_classic: set custom navigationitem icon 2020-03-03 11:53:41 +01:00
Sara Arjona 8bf66cf2d3 Merge branch 'MDL-63316-38' of https://github.com/azito122/moodle into MOODLE_38_STABLE 2020-03-03 11:10:46 +01:00
Sara Arjona e0ba5fb608 Merge branch 'MDL-67945-38' of git://github.com/ferranrecio/moodle into MOODLE_38_STABLE 2020-03-03 10:10:45 +01:00
Sara Arjona 3687eb52a0 Merge branch 'MDL-67749-38' of git://github.com/dpalou/moodle into MOODLE_38_STABLE 2020-03-03 09:30:21 +01:00
Adrian Hutchinson 80f4ad43b8 MDL-67988 mod_lti: remove padding from JWS base64url encoding 2020-03-02 14:01:05 +01:00
Paul Holden 9da23023af MDL-67891 tool_cohortroles: move upgrade step inside plugin.
The step added in MDL-67458 was added to core, which broke the upgrade
process if this plugin had been uninstalled prior.
2020-03-02 08:50:35 +00:00
Sara Arjona caf37336d2 MDL-67971 core_badges: review issuer URL 2020-03-02 08:02:31 +01:00
Sara Arjona b3eb933a40 MDL-68038 core_h5p: rename can_update_library test 2020-03-02 08:00:54 +01:00
Andrew Zito b7fe18eb8b MDL-63316 participants: lastname sort for participants table 2020-02-28 14:34:01 -05:00
Daniel Thies 4a2e0b810f MDL-66671 enrol_lti: Skip grade sync when cm deleted 2020-02-28 09:30:34 -06:00
Eloy Lafuente (stronk7) b4a13e9a65 weekly release 3.8.1+ 2020-02-28 12:22:42 +01:00
Bas Brands 324d931ed0 MDL-67863 theme_boost: change keyboard tab order
Move navdrawer up in the dom for a more logical tab order
Hide navdrawer links for tab / screenreader when navdrawer is closed
2020-02-27 17:11:45 +01:00
Michael Hawkins 535be631f8 MDL-68061 gradereport_history: Restrict per page config value to int 2020-02-27 15:41:23 +08:00
Eloy Lafuente (stronk7) c2a1fb945e Merge branch 'MDL-67865-38' of git://github.com/rezaies/moodle into MOODLE_38_STABLE 2020-02-26 23:37:00 +01:00
Eloy Lafuente (stronk7) 9adfd8ccd5 Merge branch 'MDL-64686-38' of git://github.com/lucaboesch/moodle into MOODLE_38_STABLE 2020-02-26 23:27:29 +01:00
Eloy Lafuente (stronk7) 779f58b227 Merge branch 'MDL-67758-38' of git://github.com/dpalou/moodle into MOODLE_38_STABLE 2020-02-26 17:35:55 +01:00
Eloy Lafuente (stronk7) a4a667ab06 Merge branch 'MDL-67132-MOODLE_38' of https://github.com/cengage/moodle into MOODLE_38_STABLE
(amended to move the upgrade.txt info to correct 3.8.2)
2020-02-26 17:18:15 +01:00
Eloy Lafuente (stronk7) fc7e263912 Merge branch 'MDL-67979-38-enfix' of git://github.com/mudrd8mz/moodle into MOODLE_38_STABLE 2020-02-26 17:13:37 +01:00
Anthony Forth c47d17b93b MDL-67945 enrol: missing $DB in edit_instance_form 2020-02-26 16:34:38 +01:00
David Mudrák 5aea4d98cb MDL-68060 registration: Improve the sites directory location check
This allows to define the custom HUB_MOODLEORGHUBURL with HTTP Basic
Auth credentials so that the registration features can be tested against
our staging site.
2020-02-26 10:56:05 +01:00
Jun Pataleta b6970abb18 Merge branch 'MDL-67921-38' of git://github.com/sarjona/moodle into MOODLE_38_STABLE 2020-02-26 16:51:12 +08:00
Jun Pataleta d2b37ff747 Merge branch 'MOODLE_38_MDL-67980' of https://github.com/golenkovm/moodle into MOODLE_38_STABLE 2020-02-26 14:30:40 +08:00
David Balch 75d4b0f949 MDL-67993 roles: Fix pix_icon() calls. 2020-02-26 12:15:31 +08:00
Claude Vervoort d2c96c5be9 MDL-67132 mod_lti: document new param 2020-02-25 21:24:36 -05:00
Eloy Lafuente (stronk7) 80509c0cdd Merge branch 'MDL-67644-38' of git://github.com/dpalou/moodle into MOODLE_38_STABLE 2020-02-26 00:10:13 +01:00
Eloy Lafuente (stronk7) 2de3eefda5 Merge branch 'MDL-67806-38' of git://github.com/dpalou/moodle into MOODLE_38_STABLE 2020-02-25 23:57:55 +01:00
Eloy Lafuente (stronk7) 5d83769d27 Merge branch 'MDL-67237-38' of git://github.com/dpalou/moodle into MOODLE_38_STABLE 2020-02-25 23:53:28 +01:00
Eloy Lafuente (stronk7) 341a509763 Merge branch 'MDL-67920-38' of git://github.com/aanabit/moodle into MOODLE_38_STABLE 2020-02-25 23:33:39 +01:00
Paul Holden 0111c671e4 MDL-62768 tool_policy: add page title & breadcrumb navigation. 2020-02-25 22:05:56 +00:00
Paul Holden a8df356e33 MDL-62768 tool_dataprivacy: add page breadcrumbs to navigation. 2020-02-25 21:37:56 +00:00
Helen Foster 69935b2021 MDL-67979 lang: Import fixed English strings (en_fix)
* configcustommenuitems,core_admin - corrected example
* custommenuitems_desc,tool_mobile - fallback behaviour of custom menu
  items in the app
2020-02-25 12:23:36 +01:00
Eloy Lafuente (stronk7) b424d7956e Merge branch 'MDL-67862-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-02-25 12:09:48 +01:00
Eloy Lafuente (stronk7) 34a98290d2 Merge branch 'MDL-67364-38' of git://github.com/mickhawkins/moodle into MOODLE_38_STABLE 2020-02-25 12:05:48 +01:00
David Mudrák 706e99c6d4 MDL-68048 behat: Fix the ElementNotFoundException message wording
The exception class itself adds the "not found" to the error message.
2020-02-25 11:55:57 +01:00
Shamim Rezaie 169917563c MDL-67902 calendar: keyboard users should be able to toggle day popover 2020-02-25 03:40:45 +11:00
Shamim Rezaie 7df5814667 MDL-67902 calendar: informative aria label for event days in mini cals 2020-02-25 03:40:45 +11:00
Shamim Rezaie fa88a2c32a MDL-67902 calendar: informative aria label for event days in calendar 2020-02-25 03:40:44 +11:00
Shamim Rezaie 66fbe3c48b MDL-67902 calendar: Fix label of the course filter in calendar 2020-02-25 03:40:44 +11:00
Mikhail Golenkov 3d20910e88 MDL-67980 tasks: Sort ad-hoc tasks by nextruntime. 2020-02-24 09:32:37 +11:00
Pau Ferrer Ocaña 7d623c4a45 MDL-67728 behat: Increase app start timeout 2020-02-21 12:46:04 +01:00
Pau Ferrer Ocaña 1c447dcc44 MDL-67728 behat: Improve behat app selectors 2020-02-21 12:46:04 +01:00
Sara Arjona ae778f4193 MDL-67921 core_h5p: re-implement framework->getOption
The implementation done for getOption was not correct because it
was only taking into account the displayoptions for download and
embed.
Besides, setOption implementation has been added.
2020-02-21 09:29:29 +01:00
Amaia Anabitarte c1fbab8a81 MDL-67920 core_h5p: Move upload button into form and fix title
Minor bugs in Site administration > H5P > Manage H5P content types admin page'
2020-02-21 09:00:16 +01:00
Luca Bösch 26143b5d62 MDL-64686 theme: align course search form for small screens sizes. 2020-02-21 06:36:40 +01:00
Jun Pataleta 7b37466710 weekly release 3.8.1+ 2020-02-21 11:04:05 +08:00
Jun Pataleta 09f6b75f70 Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-02-21 11:03:25 +08:00
Eloy Lafuente (stronk7) cd0e753519 Merge branch 'MDL-67727-38' of git://github.com/crazyserver/moodle into MOODLE_38_STABLE 2020-02-20 16:12:48 +01:00
Eloy Lafuente (stronk7) 4d951d4bac Merge branch 'MDL-67899-38' of git://github.com/rezaies/moodle into MOODLE_38_STABLE 2020-02-20 00:41:29 +01:00
Luke Tucker 421537407d MDL-50455: tool_capability: Use static cache when loading context data 2020-02-20 00:29:32 +01:00
Eloy Lafuente (stronk7) 61f6f15177 Merge branch 'MDL-67942-38' of https://github.com/HuongNV13/moodle into MOODLE_38_STABLE 2020-02-19 19:18:44 +01:00
Eloy Lafuente (stronk7) 11a4df56f8 Merge branch 'MDL-67947_38' of https://github.com/timhunt/moodle into MOODLE_38_STABLE 2020-02-19 17:48:26 +01:00
Tim Hunt 7bde84a705 MDL-67947 questions: questions_in_use should ask all components
Previously it was only checking mods.
2020-02-19 11:58:12 +00:00
Dani Palou 4d4b22da05 MDL-67749 ws: Set private token when reset or manual create token 2020-02-19 12:04:57 +01:00
Shamim Rezaie 85a43994ca MDL-67969 lib: Fix duplicate blockinstanceid for fake blocks 2020-02-19 21:25:47 +11:00
Huong Nguyen fcf3d8b748 MDL-67942 Quiz: Quiz attempt report delete_selected_attempts issue 2020-02-19 15:35:55 +07:00
Eloy Lafuente (stronk7) 663cdc54fe Merge branch 'MDL-67471_38' of https://github.com/t-schroeder/moodle into MOODLE_38_STABLE 2020-02-18 23:54:44 +01:00
Eloy Lafuente (stronk7) 4eeb89d0a7 Merge branch 'MDL-61390-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-02-18 19:06:51 +01:00
Eloy Lafuente (stronk7) b6aae0fc5b Merge branch 'MDL-67953-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-02-18 17:18:58 +01:00
Shamim Rezaie 68a3863961 MDL-67865 output: Fix id of the dropdown trigger 2020-02-18 16:19:17 +11:00
Eloy Lafuente (stronk7) 7e17a2a4fc Merge branch 'MDL-61389-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-02-17 23:30:08 +01:00
Eloy Lafuente (stronk7) bb6281a5c9 Merge branch 'MDL-67817-m38-master' of https://github.com/dthies/moodle into MOODLE_38_STABLE 2020-02-17 22:09:05 +01:00
Tim Schroeder 4745203bc0 MDL-67471 message: fixed mark_notification_read with messaging disabled 2020-02-17 09:16:13 +01:00
Jun Pataleta f1dd21a3c7 MDL-61390 mod_forum: Create template for forum search results 2020-02-17 15:58:04 +08:00
Jun Pataleta 4d90df63d2 MDL-61389 mod_forum: Descriptive aria-label for "Discuss this topic" 2020-02-17 15:52:06 +08:00
AMOS bot 37397ed119 Automatically generated installer lang files 2020-02-16 00:11:11 +00:00
Daniel Thies b9792633c9 MDL-67817 core_date: Add test for timezone localization strings 2020-02-14 11:56:33 -06:00
Daniel Thies f5677dadeb MDL-67817 core_lang: Update timezone strings 2020-02-14 11:56:33 -06:00
Sara Arjona 199ff6cc6b weekly release 3.8.1+ 2020-02-14 12:12:12 +01:00
Sara Arjona 462002f1ec Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-02-14 12:12:10 +01:00
Jun Pataleta 7fdcd5cb4d Merge branch 'MDL-67965-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-02-14 13:25:10 +08:00
Andrew Nicols ca63a87509 MDL-67965 behat: Get theme-specific context classes correctly 2020-02-14 10:15:49 +08:00
Claude Vervoort 1fde9dea67 MDL-67132 mod_lti: call grade api to trigger course total computation 2020-02-13 18:45:05 -05:00
Michael Hawkins 2359ec14f7 MDL-67364 output: Add unit testing for editor_scss_to_css 2020-02-13 22:53:19 +08:00
Michael Hawkins 999bb6578b MDL-67364 output: Allow child themes to use parent editor_scss config
This still allows child themes to override editor_scss, but will fall
back to what the parent is using if they do not specify it. This
negates the need for every child them to have the config duplicated
in order to utilise it.
2020-02-13 22:53:19 +08:00
Pau Ferrer Ocaña 71f62ad8ce MDL-67727 behat: Reset ionic app properly 2020-02-13 08:37:28 +01:00
Andrew Nicols 8ccb773f9b MDL-67953 grunt: Work around spawn length limits 2020-02-13 13:34:03 +08:00
Eloy Lafuente (stronk7) 84a6421857 Merge branch 'MDL-67876_38' of https://github.com/timhunt/moodle into MOODLE_38_STABLE 2020-02-12 15:51:17 +01:00
Dani Palou c3fc5fca65 MDL-67644 tool_mobile: Add OAuth 2 providers in disabled features 2020-02-12 14:13:17 +01:00
Tim Hunt bb9176eee4 MDL-67876 forms: not all field types need validation JS 2020-02-12 10:02:27 +00:00
Tim Hunt 5048dbbf06 MDL-67876 forms: scroll to any invalid element if form cannot submit 2020-02-12 10:01:24 +00:00
Shamim Rezaie a2d619941f MDL-67899 message: Add aria-label to the emoji picker button 2020-02-12 15:40:45 +11:00
Eloy Lafuente (stronk7) 5df69d28ad Merge branch 'MDL-67532-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-02-11 23:08:07 +01:00
Eloy Lafuente (stronk7) 95ecaf2d1e Merge branch 'MDL-67675-38' of git://github.com/rezaies/moodle into MOODLE_38_STABLE 2020-02-11 22:56:17 +01:00
Eloy Lafuente (stronk7) 13caf292eb Merge branch 'MDL-67690-38' of git://github.com/merrill-oakland/moodle into MOODLE_38_STABLE 2020-02-11 22:45:27 +01:00
Sara Arjona 1fae040842 Merge branch 'MDL-59303-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-02-11 13:52:29 +01:00
Sara Arjona 659795e8e8 Merge branch 'MDL-66847-38' of git://github.com/lucaboesch/moodle into MOODLE_38_STABLE 2020-02-11 12:28:46 +01:00
Sara Arjona 5e3aad0090 Merge branch 'MDL-66834-MOODLE_38_STABLE' of https://github.com/kepeter/moodle into MOODLE_38_STABLE 2020-02-11 11:54:22 +01:00
Sara Arjona 934e913a97 Merge branch 'mdl67142-moodle38' of https://github.com/AngadSethi/moodle into MOODLE_38_STABLE 2020-02-11 10:18:59 +01:00
Sara Arjona a10e70cf56 Merge branch 'MDL-67894-38' of https://github.com/grabs/moodle into MOODLE_38_STABLE 2020-02-11 08:20:38 +01:00
Dani Palou c618f24c70 MDL-67758 airnotifier: Send wwwroot to airnotifier 2020-02-10 11:55:51 +01:00
Jun Pataleta fb13d3a118 MDL-66245 privacy: Encode each part of the data URL instead of the whole 2020-02-10 16:56:10 +08:00
Jun Pataleta 90a3ce934e MDL-67862 message: Render dialogue header only when necessary 2020-02-10 13:12:35 +08:00
Angad Sethi 9dd517653c MDL-67142 quiz: fixed error when deleting saved questions long-name-quiz
An error was showing up while deleting questions
(in the question_save_from_deletion method) which had been saved
and which belonged to a quiz with a super long name, not exceeding 255
characters, as the 'name' field in 'question_categories' table had a
max size of 255 characters. The shorten_text function was used to
shorten the string to 255 characters and a unit test was added with
the name test_question_save_from_deletion_quiz_with_long_name to test
the patch.
2020-02-08 19:46:59 +05:30
AMOS bot 68b1fa37d5 Automatically generated installer lang files 2020-02-08 00:11:54 +00:00
Andreas Grabs df55da0a4b MDL-67894 mod_feedback: database error on show responses 2020-02-07 18:47:37 +01:00
Paul Holden f179253ab7 MDL-59303 auth_shibboleth: consistent readme URL. 2020-02-07 14:26:06 +00:00
Luca Bösch 82fa8144a5 MDL-66847 webservice: Correct breadcrumb + title for ws documentation. 2020-02-07 14:40:10 +01:00
Paul Holden 103c623b83 MDL-67532 badges: better default for new badge language. 2020-02-07 09:47:03 +00:00
Sara Arjona 9691980198 weekly release 3.8.1+ 2020-02-07 09:44:56 +01:00
Sara Arjona 3ae5f9ce0c Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-02-07 09:44:54 +01:00
Brendan Heywood 8973440f1f MDL-67726 tool_phpunit: add missing input escaping 2020-02-06 19:43:32 +01:00
Dani Palou 71b91e606b MDL-67237 tool_mobile: Add H5P offline option in disabled features 2020-02-06 11:34:10 +01:00
Andrew Nicols b079a267b4 Merge branch 'MDL-67175-38' of git://github.com/ferranrecio/moodle into MOODLE_38_STABLE 2020-02-06 10:20:54 +08:00
Eloy Lafuente (stronk7) 5016b08fcc Merge branch 'MDL-67832_38' of https://github.com/timhunt/moodle into MOODLE_38_STABLE
(fixed a couple of typos in the merge commit)
2020-02-06 00:02:25 +01:00
Eloy Lafuente (stronk7) c58d4d4591 Merge branch 'MDL-67732-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-02-05 20:05:41 +01:00
Eloy Lafuente (stronk7) ff3b9e1afa Merge branch 'MDL-67830_38' of https://github.com/timhunt/moodle into MOODLE_38_STABLE 2020-02-05 19:08:05 +01:00
Andrew Nicols 0d3c0e4377 Merge branch 'MDL-49103-38' of git://github.com/sarjona/moodle into MOODLE_38_STABLE 2020-02-05 13:51:15 +08:00
Eloy Lafuente (stronk7) 7005e1c999 Merge branch 'MDL-67842_38' of https://github.com/timhunt/moodle into MOODLE_38_STABLE 2020-02-04 22:46:24 +01:00
Eloy Lafuente (stronk7) bed550541b Merge branch 'MDL-63424-38' of git://github.com/lucaboesch/moodle into MOODLE_38_STABLE 2020-02-04 19:28:44 +01:00
Eloy Lafuente (stronk7) ca9ff05eba Merge branch 'MDL-66875-38' of git://github.com/lucaboesch/moodle into MOODLE_38_STABLE 2020-02-04 19:02:33 +01:00
Sara Arjona 2ff1e5d1fa MDL-49103 badges: bake badges with iTXt chunk instead of tEXt
The final OB 1.0 specification changed the baking badges method
from tEXt to iTXt. Besides, the iTXt chunk should be a signed
assertion or the raw JSON (instead of the assertion URL).
This has been changed in order to make Moodle OB compliant.

Yuliya Bozhko, thanks for the patch! :-)
2020-02-04 18:50:01 +01:00
Ferran Recio 5bd9eaaef0 MDL-67175 mod_scorm: fixing js eslint errors 2020-02-04 12:37:31 +01:00
Sam Hemelryk ede71aea73 MDL-67175 mod_scorm: sync XHR requests use sendBeacon when available
Totara reference TL-22621 (original code by Sam Hemelryk)
https://github.com/moodle/moodle/commit/2add402f8183c50bc1238ef2da5ea9cd06cb1dd9
2020-02-04 12:37:31 +01:00
Brendan Cox ab1939e5e6 MDL-67175 session: set SameSite=None for Chrome 78 and above
Totara reference TL-22311 (original code by Brendan Cox and Sam Hemelryk)
https://github.com/moodle/moodle/commit/a3f4de2b7efe66de6617a67ce7c87f2862e76ac6
2020-02-04 12:37:15 +01:00
Andrew Nicols 045d69a61d Merge branch 'MDL-60126-38-3' of git://github.com/mihailges/moodle into MOODLE_38_STABLE 2020-02-04 14:40:20 +08:00
Peter c6e2821be1 MDL-60126 competency: Unit tests 2020-02-04 08:51:50 +08:00
Simey Lameze 75c21efdea MDL-60126 core: upgrade step to clean user comp 2020-02-04 08:51:45 +08:00
Simey Lameze c852a0d308 MDL-60126 competency: delete content upon user delete 2020-02-04 08:40:25 +08:00
AMOS bot f722f3ef15 Automatically generated installer lang files 2020-02-04 00:11:15 +00:00
Sara Arjona e47f0220a6 Merge branch 'MDL-67721-38' of git://github.com/rezaies/moodle into MOODLE_38_STABLE 2020-02-03 14:52:30 +01:00
Sara Arjona 94e2bc3cac Merge branch 'MDL-67511-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-02-03 14:10:30 +01:00
Peter Eliyahu Kornfeld 90ae31ecb1 MDL-66834 Questions: add transaction, move trigger 2020-02-03 12:28:19 +02:00
Andrew Nicols feb32ff597 MDL-67511 core: Adjust spacing at top of toast-wrapper 2020-02-03 07:38:06 +08:00
Tim Hunt e5c2879063 MDL-67832 quiz: fix lots of PHPdoc in attemptlib.php 2020-01-31 19:09:28 +00:00
Paul Holden c3496f8599 MDL-67732 group: observe viewfullnames capability.
Backport from MDL-67245.
2020-01-31 16:48:08 +00:00
JayChurchward 7476acd514 MDL-67696 mod_forum: Changed invalid count() to loop counter. 2020-01-30 15:01:24 -05:00
Tim Hunt 8ad3593d0c MDL-67842 questions: Cannot remove the idnumber from a question 2020-01-30 17:29:23 +00:00
Eloy Lafuente (stronk7) 7f697f7a44 weekly release 3.8.1+ 2020-01-30 16:11:27 +01:00
Eloy Lafuente (stronk7) efcc2a7ac5 Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-01-30 16:11:24 +01:00
Jun Pataleta d2ba630385 Merge branch 'MDL-67353-38' of https://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-01-30 12:41:22 +08:00
Eloy Lafuente (stronk7) b2dfaa5d3a MDL-67353 course: move form tearDown() to reset_all_data()
We are already cleaning all sort of caches, statics, singletons
there and it's better to ensure they are always reset to avoid
myterious failures @ distance.
2020-01-30 12:41:04 +08:00
Eloy Lafuente (stronk7) ccb5136b94 MDL-67353 filters: fix filterlib tests
- move resetAfterTest() to test units.
- remove setUp(), moving code to remove_all_filters_from_config().
- remove class properties, moving to return values of own setup_xxx() methods.
2020-01-30 12:41:04 +08:00
Eloy Lafuente (stronk7) 89a4d27f34 MDL-67353 favourites: Random DB id matching solved
Depending on the tests executed it was possible to arrive
to favourites tests with 2 "concepts" (say userid and contextid,
or userid and itemid) having the same ID.

Then, the array_diff() operations used by some mock stuff in the
tests wrongly was returning matches by value, ultimately causing
the test to fail.

Now, the matching is performed using array_diff_assoc() that takes
keys into considation when performing the match.
2020-01-30 12:41:04 +08:00
Andrew Nicols b2e08b7caa MDL-67353 course: Fix more broken unit tests 2020-01-30 12:41:04 +08:00
Andrew Nicols a946a9aac6 MDL-67353 course: Fix broken unit test 2020-01-30 12:41:04 +08:00
Michelle Melton ad5a2c9b07 MDL-64169 course: fix padding when display on one section per page
(amended to keep the $o.= consistent with surrounding code)
2020-01-29 22:35:49 +01:00
Tim Hunt 54908ae907 MDL-67830 quiz: notice in grade details redirect script 2020-01-29 18:35:28 +00:00
Jun Pataleta 36d2a83aa6 Merge branch 'MDL-67626_38' of git://github.com/adpe/moodle into MOODLE_38_STABLE 2020-01-29 21:37:08 +08:00
Adrian Greeve e02fbba097 Merge branch 'MDL-67768-38-componentdirs' of git://github.com/mudrd8mz/moodle into MOODLE_38_STABLE 2020-01-29 10:02:58 +08:00
Eloy Lafuente (stronk7) d18b6693ad Merge branch 'MDL-67472-38' of git://github.com/bmbrands/moodle into MOODLE_38_STABLE 2020-01-28 22:57:37 +01:00
Eloy Lafuente (stronk7) 9b1e5ee508 Merge branch 'MDL-52189_38' of https://github.com/jonof/moodle into MOODLE_38_STABLE 2020-01-28 22:45:14 +01:00
Eloy Lafuente (stronk7) c11ad45a99 Merge branch 'MDL-67447-38-autocomplete' of git://github.com/mudrd8mz/moodle into MOODLE_38_STABLE 2020-01-28 22:24:31 +01:00
Eloy Lafuente (stronk7) c1ad1072da Merge branch 'MDL-67722-38' of git://github.com/mickhawkins/moodle into MOODLE_38_STABLE 2020-01-28 20:13:37 +01:00
David Mudrák 572c8c74cc MDL-67447 form: Fix the duplicate autocomplete selection node
When the autocomplete selection is updated, the content of the selection
wrapper is replaced with the new list of selected items. We must replace
only the content of the selection wrapper and not to nest it into
itself.
2020-01-28 19:52:29 +01:00
Shamim Rezaie 4a87ffb336 MDL-67675 atto_h5p: No need to manually clear the H5P placeholder 2020-01-28 22:30:37 +11:00
Eloy Lafuente (stronk7) 0419687a7f Merge branch 'MDL-57755_38' of https://github.com/t-schroeder/moodle into MOODLE_38_STABLE 2020-01-28 10:34:56 +01:00
David Mudrák d8cc1761f1 MDL-67768 core: Add some common dirs to core_component::$ignoreddirs
The core_component::$ignoreddirs lists all directories that are reserved
and cannot be used as valid plugin names. This is particularly important
for some plugin types such as 'webservice' that share the same root
location as the core subsystem of the same name.
2020-01-28 10:33:37 +01:00
Adrian Greeve 1ff0018969 Merge branch 'MDL-67740-38-behatstepsfilter' of git://github.com/mudrd8mz/moodle into MOODLE_38_STABLE 2020-01-28 15:07:56 +08:00
Adrian Greeve 557a351daf Merge branch 'MOODLE_38_MDL-67746' of https://github.com/golenkovm/moodle into MOODLE_38_STABLE 2020-01-28 13:13:45 +08:00
AMOS bot 916130a390 Automatically generated installer lang files 2020-01-28 00:11:42 +00:00
Adrian Greeve c3c3d12462 Merge branch 'MDL-67691_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE 2020-01-28 07:53:31 +08:00
Shamim Rezaie c385803441 MDL-67721 mod_forum: See 'view grade' button on single discussion forums 2020-01-28 05:03:12 +11:00
Eloy Lafuente (stronk7) 912ba0f5d0 Merge branch 'MDL-64531-38-questiondeletejson' of git://github.com/mudrd8mz/moodle into MOODLE_38_STABLE 2020-01-27 17:08:07 +01:00
Eloy Lafuente (stronk7) b25bd34adf Merge branch 'MDL-67577-38' of git://github.com/bmbrands/moodle into MOODLE_38_STABLE 2020-01-27 16:19:49 +01:00
Eloy Lafuente (stronk7) 7163df9a93 Merge branch 'm38_MDL-67414_Add_PostgreSQL_12x_Support' of https://github.com/scara/moodle into MOODLE_38_STABLE 2020-01-27 12:16:17 +01:00
Bas Brands 1719110c23 MDL-67577 core_message: navbar_output order
* moved the logic from core_message_popup_render_navbar_output to
message_popup_render_navbar_output in message/output/popup/lib.php

* using float: left instead of float: right in theme
2020-01-27 12:15:18 +01:00
Dani Palou bb0a08a7b4 MDL-67806 tool_mobile: Add Dark mode option in disabled features
We must allow site admins to remotely disable that feature in the app
2020-01-27 11:33:04 +01:00
Tim Schroeder c2f2919cf8 MDL-57755 message: fix notificaiton read status when messaging disabled 2020-01-27 09:18:28 +01:00
Matteo Scaramuccia ec2ea6c725 MDL-67414 adodb: Backport upstream fix for PostgreSQL 12.x
Upstream: https://github.com/ADOdb/ADOdb/commit/a4876f100602c2ce4760bb72d3050f73387adcca
          pgsql: stop using obsolete pg_attrdef.adsrc column
2020-01-26 09:40:22 +01:00
Matteo Scaramuccia 05a89b9b45 MDL-67414 database: Fixed PostgreSQL 12.x support 2020-01-26 09:40:21 +01:00
AMOS bot 5b90fa9f73 Automatically generated installer lang files 2020-01-25 00:11:41 +00:00
Luca Bösch a2841e3af6 MDL-66875 calendar: allow the use of day, mon and year again. 2020-01-25 01:01:54 +01:00
Luca Bösch de9c260296 MDL-63424 form: allow checkboxes to have req icon. 2020-01-24 17:38:20 +01:00
David Mudrák 2648ab76be MDL-67740 behat: Show info as collapsed at the acceptance testing page
The static information with the links to Behat documentation is quite
long an irrelevant for experienced developers returning to this page. No
need to waste the prominent screen place with it - better to offer it
only when needed via collapsible form section.
2020-01-24 10:44:37 +01:00
David Mudrák aa9f7001da MDL-67740 behat: Improve the layout of the acceptance testing page
- The CSS contains more specific selectors.
- Make use of the whole screen width for the list of found steps.
- Visually distinguish found steps from each other.
- Make it look less like a unicorn rainbow.
2020-01-24 10:44:37 +01:00
David Mudrák 5013ed92a2 MDL-67740 behat: Fix the name of the class in the inline documentation
The said class is provided by the moodlehq/behat-extension composer
package and was renamed as a part of upgrade to Behat 3.0.x (MDL-46891).
2020-01-24 10:44:37 +01:00
David Mudrák c538c5a1a3 MDL-67740 behat: Allow multiple words filter at acceptance testing page
Because of the too strict input param type, the form did not allow to
search for Behat steps containing the given phrase. The patch sets the
param type to match the one in the form definition, and makes sure that
the submitted value can be safely used as a CLI script argument.
2020-01-24 10:44:37 +01:00
Mikhail Golenkov 2cb5e23006 MDL-67746 Tasks: Cleanup task logs in chunks. 2020-01-24 14:03:48 +11:00
Adrian Greeve 85a035b1c5 weekly release 3.8.1+ 2020-01-24 10:17:40 +08:00
Adrian Greeve 1f3bc3164e Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-01-24 10:17:30 +08:00
Eric Merrill 7bfcb01b81 MDL-67690 block_myoverview: Clean usage of starred vs favourites
The block accidentally mixes usage of starred vs favourites, but core
requires favourites. This fixes the issue of user settings remembering
the correct value without a more major work.
2020-01-23 15:22:02 -05:00
Eloy Lafuente (stronk7) 2abbcb4761 Merge branch 'MDL-51225-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-01-23 11:14:12 +01:00
Jun Pataleta 9afa3fc326 MDL-51225 mod_forum: Revert @javascript tag removal
Put back the removed  @javascript tag to prevent random goutte
fails.
2020-01-23 15:30:36 +08:00
Jun Pataleta b4466151b0 Merge branch 'MDL-67118_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE 2020-01-23 12:55:28 +08:00
Jun Pataleta e4ae433b3b Merge branch 'MDL-67115_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE 2020-01-23 11:40:57 +08:00
Jun Pataleta 7c7932aaa5 Merge branch 'MDL-65952_m38' of https://github.com/fabiendallet/moodle into MOODLE_38_STABLE 2020-01-23 10:43:41 +08:00
Eloy Lafuente (stronk7) 5977f2fc3d Merge branch 'MDL-67296-38' of git://github.com/vmdef/moodle into MOODLE_38_STABLE 2020-01-22 23:46:18 +01:00
Víctor Déniz Falcón f7355ebc2c MDL-67296 core_h5p: tests modified to use exttests 2020-01-22 20:41:23 +00:00
Víctor Déniz Falcón b80d4a6b26 MDL-67296 core_h5p: minor changes
core.php-Avoid to use the factory for each content type
h5p_get_content_types_task-new method to simplify test execution
framework.php-returns error if you get a 404 response after requesting a file
2020-01-22 18:56:38 +00:00
Jun Pataleta c4e6d74577 Merge branch 'MDL-66897-38-1' of git://github.com/mihailges/moodle into MOODLE_38_STABLE 2020-01-22 23:17:05 +08:00
Mihail Geshoski ac32e20ada MDL-66897 mod_assign: Properly display error messages in quick grading 2020-01-22 14:02:59 +08:00
Adrian Greeve 37821e0918 Merge branch 'MDL-67424-38' of git://github.com/rezaies/moodle into MOODLE_38_STABLE 2020-01-22 13:57:53 +08:00
Adrian Greeve b1e2c36330 Merge branch 'MDL-67653_38' of https://github.com/timhunt/moodle into MOODLE_38_STABLE 2020-01-22 11:04:09 +08:00
Adrian Greeve 4ea5ab220a Merge branch 'MDL-67660-38-v2' of https://github.com/TobiGa/moodle into MOODLE_38_STABLE 2020-01-22 10:42:24 +08:00
Jun Pataleta f2955fae89 Merge branch 'MDL-67684-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-01-22 10:38:02 +08:00
Adrian Greeve 0206502461 Merge branch 'MDL-67680-38' of git://github.com/marinaglancy/moodle into MOODLE_38_STABLE 2020-01-22 10:30:05 +08:00
Colin Campbell b4779307a2 MDL-52189 file: skip deleting temp files that appear during cleanup 2020-01-22 12:09:50 +10:00
Adrian Greeve 4ff40b48e7 Merge branch 'MDL-67656-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-01-22 09:45:58 +08:00
Eloy Lafuente (stronk7) 830ef192ad Merge branch 'MDL-66858_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE 2020-01-22 01:57:28 +01:00
Michael Milette 8b466d2803 MDL-66858 master: Enable <header> tags in Atto editor.
(amended to add the src/editor/js/clean.js
file that was originally missing)
2020-01-22 00:06:14 +01:00
Eloy Lafuente (stronk7) bd290493b1 Merge branch 'MDL-51225-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-01-21 23:40:16 +01:00
Adrian Greeve 6e6b973f0a Merge branch 'MDL-66237-38' of git://github.com/mickhawkins/moodle into MOODLE_38_STABLE 2020-01-21 11:20:32 +08:00
Jun Pataleta 43b39b0ce9 Merge branch 'MDL-66108-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-01-21 09:50:56 +08:00
Eloy Lafuente (stronk7) 7523e0c352 Merge branch 'MDL-66024-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-01-20 22:48:27 +01:00
Eloy Lafuente (stronk7) 77234ad1ef Merge branch 'MDL-66220-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-01-20 22:34:17 +01:00
Eloy Lafuente (stronk7) 132809e8ff Merge branch 'MDL-66712-38-selfautounenrol' of git://github.com/mudrd8mz/moodle into MOODLE_38_STABLE 2020-01-20 22:29:00 +01:00
Paul Holden e53dadd3a1 MDL-65884 filters: update exclusive separator characters for tags.
The previous characters mangled the output of filtered text, exhibited
in the activity names filter for activities named '-' (single hyphen).
2020-01-20 20:55:34 +01:00
David Mudrák 7b6f691f3d MDL-64531 course: Add Behat test for deleting a quiz with own questions
Teachers can delete Quiz activities that have a question in their own
context via AJAX request with the course recycle bin disabled. This used
to lead to "Unexpected token < in JSON" because of the extra HTML in the
output.
2020-01-20 18:20:27 +01:00
Tim Hunt 596cbeb955 MDL-64531 course: course_delete_module shouldn't output during AJAX
Committer's note: This change was originally part of a bigger patchset
submitted by the author. This is a stripped-down version that does not
use phpunit tests for the new behaviour.
2020-01-20 18:07:17 +01:00
Eloy Lafuente (stronk7) 4a617ad4c6 Merge branch 'MDL-67724-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-01-20 10:53:28 +01:00
Sara Arjona 9ef53aba3a Merge branch 'MDL-67312-38' of git://github.com/lameze/moodle into MOODLE_38_STABLE 2020-01-20 08:03:52 +01:00
Adrian Greeve 288d4fc575 Merge branch 'MDL-66761-38' of git://github.com/mickhawkins/moodle into MOODLE_38_STABLE 2020-01-20 14:47:30 +08:00
Adrian Greeve 68fd5cfaf4 Merge branch 'MDL-67583-38' of https://github.com/KietChan/moodle into MOODLE_38_STABLE 2020-01-20 13:38:14 +08:00
Simey Lameze df6160f8a1 MDL-67312 core_user: clean subs events on user deletion 2020-01-20 08:50:55 +08:00
Simey Lameze 7434f3abf3 MDL-67312 calendar: upgrade step to delete orphaned events 2020-01-20 08:50:51 +08:00
Simey Lameze abaf1375c1 MDL-67312 core: change db upgrade step to use get_fieldset_sql 2020-01-20 08:47:34 +08:00
Eloy Lafuente (stronk7) 646e72349d MDL-67691 behat: inform about the_following_exist() removal
behat_data_generators::the_following_exist() has been removed, please use
behat_data_generators::the_following_entities_exist() instead.

See MDL-67691 for more info.
2020-01-20 00:11:57 +01:00
Eloy Lafuente (stronk7) 7781e1e2bf MDL-67115 google: php74 params order for implode()
Passing parameters to implode() in reverse order is deprecated, use
implode($glue, $parts) instead of implode($parts, $glue).

This commit corresponds to general search of wrong cases.
2020-01-19 18:49:24 +01:00
Eloy Lafuente (stronk7) 41f06cfc92 MDL-67115 htmlpurifier: php74 params order for implode()
Passing parameters to implode() in reverse order is deprecated, use
implode($glue, $parts) instead of implode($parts, $glue).

This commit corresponds to general search of wrong cases.
2020-01-19 18:49:24 +01:00
Eloy Lafuente (stronk7) 903428a532 MDL-67115 minify: php74 params order for implode()/join()
Passing parameters to implode() in reverse order is deprecated, use
implode($glue, $parts) instead of implode($parts, $glue).

This commit corresponds to phpunit detections, minify library.
2020-01-19 18:49:23 +01:00
Eloy Lafuente (stronk7) 20c78476a3 MDL-67115 core: php74 params order for implode()/join()
Passing parameters to implode() in reverse order is deprecated, use
implode($glue, $parts) instead of implode($parts, $glue).

This commit corresponds to phpunit and manual detections, core files.
2020-01-19 18:49:23 +01:00
Adrian Perez 63b7cd9927 MDL-67626 assign: fix view full/view summary control in IE 2020-01-18 14:16:07 +01:00
AMOS bot dc89ea0e88 Automatically generated installer lang files 2020-01-18 00:10:49 +00:00
fdallet 52136af780 MDL-65952 mod_scorm: Fix unwanted changes to require status 2020-01-17 17:29:36 +01:00
Paul Holden 7b0a8e09c0 MDL-66108 course: fix false positives when bulk moving categories. 2020-01-17 16:19:17 +00:00
Jun Pataleta 13a34d0aa7 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.
2020-01-17 17:50:11 +08:00
Tobias Garske a6a79e25f4 MDL-67660 core_message: Messages search change input focus 2020-01-17 09:40:18 +01:00
Michael Hawkins 511dc1cd96 MDL-67722 mod_forum: Reduce wait time on time limit expires behat test 2020-01-17 15:46:45 +08:00
Jun Pataleta df7cacee50 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.
2020-01-17 14:45:50 +08:00
Jun Pataleta 994ec1690d MDL-51225 mod_forum: Create behat tests for forum recent activity 2020-01-17 14:45:50 +08:00
Jun Pataleta b92880fd4a MDL-51225 mod_forum: New behat step for creating question discussion 2020-01-17 14:45:50 +08:00
Michael Hawkins 27557f1a55 MDL-66761 forumreport_summary: Added groups filter behat testing 2020-01-17 10:35:37 +08:00
Michael Hawkins 58c1af595e MDL-66761 mod_forum: Behat support group ID in bulk discussion adding 2020-01-17 10:35:37 +08:00
AMOS bot 4c495c2aa3 Automatically generated installer lang files 2020-01-17 00:12:19 +00:00
Eloy Lafuente (stronk7) 86362a7fb2 MDL-67118 enrol_ldap: add pagesize/subcontexts provider
With that provider we'll be explicitly checking that any
pagesize and subcontexts search is returning results consistently
so the internal paging/servercontrols work as expected.
2020-01-16 19:16:21 +01:00
Eloy Lafuente (stronk7) f8b9cc01c3 MDL-67118 enrol_ldap: paged results functions deprecated php74 and up
Starting with php74 the following functions are deprecated:
- ldap_control_paged_result()
- ldap_control_paged_result_response()

Starting with php73, ldap servercontrols were included. One of those
servercontrols, LDAP_CONTROL_PAGEDRESULTS, is the one in charge of
controlling paged results.

So, we are going to add some conditional code here:

1) if php < 7.3, use old paged result functions.
2) if php >= 7.3, switch to LDAP_CONTROL_PAGEDRESULTS servercontrol.

With a TODO about removing 1) in Moodle 4.1, once php73 becomes required.
2020-01-16 19:16:21 +01:00
Eloy Lafuente (stronk7) 19e3cdbad9 MDL-67118 auth_ldap: add pagesize/subcontexts test provider
With that provider we'll be explicitly covering that any
pagesize and subcontexts search is returning results consistently
so the internal paging/servercontrols work as expected.
2020-01-16 19:16:21 +01:00
Eloy Lafuente (stronk7) bcf7349371 MDL-67118 auth_ldap: paged results functions deprecated php74 and up
Starting with php74 the following functions are deprecated:
- ldap_control_paged_result()
- ldap_control_paged_result_response()

Starting with php73, ldap servercontrols were included. One of those
servercontrols, LDAP_CONTROL_PAGEDRESULTS, is the one in charge of
controlling paged results.

So, we are going to add some conditional code here:

1) if php < 7.3, use old paged result functions.
2) if php >= 7.3, switch to LDAP_CONTROL_PAGEDRESULTS servercontrol.

With a TODO about removing 1) in Moodle 4.1, once php73 becomes required.
2020-01-16 19:16:21 +01:00
Sara Arjona 36984d4d1d weekly release 3.8.1+ 2020-01-16 17:19:21 +01:00
Sara Arjona bcb56b9071 Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-01-16 17:19:19 +01:00
David Mudrák 82505a878b 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.
2020-01-16 13:44:22 +01:00
Jun Pataleta 8e45839933 MDL-66220 mod_forum: Prevent from replying to a post the user can't see 2020-01-16 15:06:11 +08:00
Jun Pataleta e1eea0cf36 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.
2020-01-16 15:06:11 +08:00
Jun Pataleta cf32c9116b MDL-66220 mod_forum: Additional unit test for can_reply_to_post 2020-01-16 15:06:11 +08:00
Andrew Nicols cdf31c3d57 Merge branch 'wip-MDL-66918-38stable' of https://github.com/Beedell/moodle into MOODLE_38_STABLE 2020-01-16 11:43:18 +08:00
Eloy Lafuente (stronk7) 0c01f98410 Merge branch 'MDL-67625-38' of git://github.com/lucaboesch/moodle into MOODLE_38_STABLE 2020-01-16 00:26:57 +01:00
Sara Arjona e7721e50c6 Merge branch 'MDL-67379-38' of git://github.com/rezaies/moodle into MOODLE_38_STABLE 2020-01-15 22:12:41 +01:00
Eloy Lafuente (stronk7) 8f112b1064 Merge branch 'MDL-67622_38' of git://github.com/dmonllao/moodle into MOODLE_38_STABLE 2020-01-15 18:55:55 +01:00
Shamim Rezaie 65fcabe132 MDL-67424 mod_forum: error on complete report when no rating or grade 2020-01-16 03:17:52 +11:00
Shamim Rezaie 2c76c1893f MDL-67424 report_outline: behat user report with a no-grade forum 2020-01-16 03:17:52 +11:00
Shamim Rezaie e27ac65f3d MDL-67379 libraries: Upgrade scssphp to 1.0.6 2020-01-16 00:26:47 +11:00
Sara Arjona 3d8f92e4be Merge branch 'MDL-67617-38' of git://github.com/lucaboesch/moodle into MOODLE_38_STABLE 2020-01-15 12:43:10 +01:00
Sara Arjona 35fd550dc9 Merge branch 'MDL-67638-38' of https://github.com/nguyenphuctien/moodle into MOODLE_38_STABLE 2020-01-15 12:19:44 +01:00
Andrew Nicols 712b21c6e7 Merge branch 'MDL-67486-swap-cron-lock-MOODLE_38_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_38_STABLE 2020-01-15 13:53:56 +08:00
Mark Johnson b5410980aa MDL-67674 Cache: Lock rebuilding of the course category tree cache 2020-01-15 00:02:06 +01:00
Sara Arjona b2c6ab2d0a Merge branch 'MDL-65573-38-2' of git://github.com/peterRd/moodle into MOODLE_38_STABLE 2020-01-14 12:20:09 +01:00
Andrew Nicols 4fb25b5b6c Merge branch 'MDL-66721-38' of git://github.com/bmbrands/moodle into MOODLE_38_STABLE 2020-01-14 14:09:42 +08:00
Andrew Nicols 3467ce09c8 MDL-67684 core: Add missing li tag 2020-01-14 08:47:08 +08:00
Andrew Nicols 83d4daee8d Merge branch 'MDL-35971-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-01-14 08:32:14 +08:00
AMOS bot e653281d4a Automatically generated installer lang files 2020-01-14 00:10:24 +00:00
Peter 03b372b804 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.
2020-01-14 07:37:41 +08:00
Eloy Lafuente (stronk7) c1724722c8 Merge branch 'MDL-65649-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-01-13 18:56:52 +01:00
Eloy Lafuente (stronk7) d1b3b4af95 Merge branch 'MDL-65987-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-01-13 18:37:30 +01:00
Marina Glancy f9a80888bc MDL-67680 core: Catch PHP exceptions in the after_config callback 2020-01-13 17:01:27 +01:00
Sara Arjona 0ebf9b16ea Merge branch 'MDL-59817-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-01-13 14:26:49 +01:00
Kiet.Chan 01fd8ac565 MDL-67583 themes: Popover placement should react to scroll event 2020-01-13 17:29:46 +07:00
Bas Brands 80a5640ed2 MDL-67472 theme_boost: configurable sass variable for drawer bgcolour 2020-01-13 09:16:36 +01:00
Tien Nguyen Phuc decf6b62ae MDL-67638 Course: update course timemodified on bulk category move 2020-01-13 10:42:06 +07:00
Andrew Nicols 5b31655420 Merge branch 'MDL-67204-38' of https://github.com/mwehr/moodle into MOODLE_38_STABLE 2020-01-13 08:53:56 +08:00
Brendan Heywood 8e725dd819 MDL-67486 cron: Improve throughput by holding cron lock for less time 2020-01-12 00:45:02 +11:00
Tim Hunt d0c48cd693 MDL-67653 questions: prevent the flag flickering as the page loads 2020-01-10 14:28:16 +00:00
Andrew Nicols b2f13181ec 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.
2020-01-10 15:26:51 +08:00
Andrew Nicols fcdc318982 MDL-67656 behat: Removed nested spin 2020-01-10 13:37:43 +08:00
Andrew Nicols c89d25a046 MDL-67656 behat: Fix usleep call in spin 2020-01-10 13:37:36 +08:00
Andrew Nicols 77be1e3fe3 Moodle release 3.8.1 2020-01-10 13:03:44 +08:00
Andrew Nicols de7b3e37b3 Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-01-10 13:03:42 +08:00
AMOS bot ffd8dfcf27 Automatically generated installer lang files 2020-01-10 00:12:13 +00:00
Luca Bösch b116f84589 MDL-67625 quiz: only section titles should be large when editing. 2020-01-09 17:23:11 +01:00
Luca Bösch 36e70e664b MDL-67617 gradereport_singleview: Style the form element with bs classes 2020-01-09 17:22:18 +01:00
Mario Wehr 0debc8f826 MDL-67204 assign task: Use lastruntime from task_scheduled 2020-01-09 17:11:20 +01:00
John Beedell 81801a0685 MDL-66918 behat: Behat app step failing 2020-01-09 15:57:27 +00:00
Sara Arjona 8a82f51043 weekly release 3.8+ 2020-01-09 15:42:53 +01:00
Jun Pataleta 68cab31dba Merge branch 'MDL-67544-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-01-09 15:22:35 +08:00
Andrew Nicols 3f50c24fc3 MDL-67544f= mod_forum: Correct "for" attribute on private checkbox 2020-01-09 14:55:52 +08:00
Andrew Nicols 9973646ca7 MDL-67544 mod_forum: Ensure post actions menu id is unique 2020-01-09 14:09:21 +08:00
Andrew Nicols f14420c739 Merge branch 'MOODLE_38_MDL-67485' of https://github.com/golenkovm/moodle into MOODLE_38_STABLE 2020-01-09 12:40:19 +08:00
Mikhail Golenkov 70868d8648 MDL-67485 task: Release the task runner lock before throwing exception. 2020-01-09 14:49:38 +11:00
Andrew Nicols 8f45c9b6a5 Merge branch 'MDL-67596-cron-ramp-up-MOODLE_38_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_38_STABLE 2020-01-09 09:32:49 +08:00
Brendan Heywood 1f5c6c6b7a MDL-67596 cron: Allow runners to ramp up instantly 2020-01-09 11:07:19 +11:00
Eloy Lafuente (stronk7) 26999dda23 Merge branch 'MDL-67544-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2020-01-08 16:35:32 +01:00
Eloy Lafuente (stronk7) 022206f2fe Merge branch 'MDL-67533-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-01-08 16:31:18 +01:00
Jake Dallimore f9e0f61467 MDL-67637 core_message: only preview lastmessage text if safe to do so
If any html/script tags are found in the text() value, don't display it.
2020-01-08 12:31:17 +01:00
Jun Pataleta c07bc83480 MDL-67533 mod_forum: Remove duplicate Re in experimental view subject 2020-01-08 16:29:43 +08:00
Jun Pataleta de2238985d MDL-35971 mod_forum: Add proper discussion list table description 2020-01-08 16:04:20 +08:00
Sara Arjona 7d7d3520a7 Merge branch 'MDL-67417-38' of https://github.com/KietChan/moodle into MOODLE_38_STABLE 2020-01-08 08:26:44 +01:00
Andrew Nicols f34f8131ba MDL-67544 mod_forum: Ensure that private reply checkbox has unique id 2020-01-08 15:26:03 +08:00
Sara Arjona 85ba5d1d88 Merge branch 'MDL-67510-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-01-08 08:11:01 +01:00
Andrew Nicols e0b8a3b17a Merge branch 'MDL-64764-38' of git://github.com/paulholden/moodle into MOODLE_38_STABLE 2020-01-08 08:30:33 +08:00
Eloy Lafuente (stronk7) 5577e472e5 Merge branch 'MDL-67469-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2020-01-07 22:59:51 +01:00
Marina Glancy 571f508d4e MDL-64764 core_admin: allow to submit empty list of allowed roles.
Co-authored-by: Paul Holden <paulh@moodle.com>
2020-01-07 10:01:33 +00:00
Andrew Nicols 764ec8d7fb Merge branch 'MDL-65849-38' of git://github.com/rezaies/moodle into MOODLE_38_STABLE 2020-01-07 13:26:56 +08:00
Andrew Nicols eb04dc8792 Merge branch 'MDL-66938-38' of https://github.com/grabs/moodle into MOODLE_38_STABLE 2020-01-07 12:49:42 +08:00
Paul Holden 2f19ac90c6 MDL-66237 message_popup: Get redirecturl from notification contexturl 2020-01-07 11:18:24 +08:00
Andrew Nicols 6fefb88819 MDL-67114 mod_wiki: Whitespace fix 2020-01-07 11:05:02 +08:00
Andrew Nicols 1b2a8dad89 Merge branch 'MDL-67114_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE 2020-01-07 11:04:55 +08:00
Andrew Nicols ec63d3eab4 Merge branch 'MDL-66871-38-v2' of git://github.com/lameze/moodle into MOODLE_38_STABLE 2020-01-07 08:54:44 +08:00
Bas Brands 63052bffb0 MDL-66721 core_chooser: height correction for chooser modal 2020-01-06 10:13:12 +01:00
Andrew Nicols 5f4250dc43 MDL-67544 form: Ensure that form errors have a unique id 2020-01-06 15:01:07 +08:00
Andrew Nicols b024306e5c MDL-67544 mod_forum: Add missing label for discussion move 2020-01-06 15:01:07 +08:00
Andrew Nicols 0d285e9334 MDL-67544 mod_forum: Add missing menuitem roles 2020-01-06 15:01:07 +08:00
Andrew Nicols bed212f61b MDL-67544 mod_forum: Correct aria-labelledby node 2020-01-06 15:01:07 +08:00
Andrew Nicols 14d58697a3 MDL-67544 mod_forum: Correct aria-controls to point to valid node 2020-01-06 15:01:07 +08:00
Andrew Nicols e98103354d MDL-67544 mod_forum: Add missing aria label for grade search 2020-01-06 15:01:07 +08:00
Andrew Nicols d8dfb98417 MDL-67544 core: Ensure unique IDs for YUI dialogues 2020-01-06 15:01:07 +08:00
Andrew Nicols 3684d9e03c MDL-67544 theme: Ensure that search box is in valid li 2020-01-06 15:01:06 +08:00
Andrew Nicols 629ef7772f MDL-67544 mod_forum: Add default role for favourite toggle 2020-01-06 15:01:06 +08:00
Andrew Nicols 9e57c09d7b MDL-67544 mod_forum: Add missing aria label for discussion actions 2020-01-06 15:01:06 +08:00
Andrew Nicols 949d3f1c02 MDL-67544 mod_forum: Correct aria-role => aria-live 2020-01-06 15:01:06 +08:00
Andrew Nicols 11524653b0 MDL-67544 mod_forum: Correct aria-role => role 2020-01-06 15:01:06 +08:00
David Monllaó 74299cd64b MDL-67622 mlbackend_python: Fix f1score calculation 2020-01-06 13:16:38 +08:00
Jun Pataleta f9b2f6634d MDL-67510 tool_dataprivacy: Fix the reply-to name of the privacy officer 2020-01-06 11:36:49 +08:00
Simey Lameze dafe4c5a78 MDL-66871 calendar: fix deprecated parameter in the phpDoc 2020-01-06 10:42:22 +08:00
Simey Lameze 550c4e1c42 MDL-66871 calendar: add unit test coverage for ics importing 2020-01-06 10:42:22 +08:00
Simey Lameze 0287928c4b MDL-66871 calendar: fix ics importing logic 2020-01-06 10:42:22 +08:00
Luca Bösch 50bcb24e09 MDL-65987 mod_forum: Add string 'Advanced' for the advanced editor.
AMOS BEGIN
    CPY [advanced,moodle],[showadvancededitor,moodle]
   AMOS END
2020-01-06 09:41:51 +08:00
Jake Dallimore 701d27e5d9 Merge branch 'MDL-67336-38' of https://github.com/roland04/moodle into MOODLE_38_STABLE 2020-01-06 09:36:53 +08:00
Andreas Grabs 13d5d3edb1 MDL-66938 mod_feedback: Export includes unwanted html in field names 2020-01-05 19:33:27 +01:00
Eloy Lafuente (stronk7) abc8f149ce MDL-67114 core: php74 fix. Fix use of scalar as array in core
There are various places where it's not guaranteed that the
variable being used is array, and instead, can be null, bool, int...

We need to check that because php74 warns about it.

Where possible we have used the coalesce operator as
replacement for isset() ternary operations.
2020-01-03 11:33:23 +01:00
Eloy Lafuente (stronk7) c3a6437220 MDL-67114 scssphp: php74 compatibility local fixes
Note they are already available upstream, versions 1.0.4 and up so,
in next upgrade they will be fixed.
2020-01-03 11:33:23 +01:00
Eloy Lafuente (stronk7) c910982c49 MDL-67114 mustache: php74 fix. Fix use of scalar as array
Trying to use values of type null, bool, int, float or resource as an
array (such as $null["key"]) will now generate a notice. This does not
affect array accesses performed by list().

RFC: https://wiki.php.net/rfc/notice-for-non-valid-array-container
2020-01-03 11:33:23 +01:00
Jake Dallimore 4d5849b0e4 weekly release 3.8+ 2020-01-03 11:25:08 +08:00
Jake Dallimore cc0b18ec0e Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2020-01-03 11:25:05 +08:00
AMOS bot 3c7ebda9a5 Automatically generated installer lang files 2020-01-03 00:12:10 +00:00
Adrian Greeve 19401adbdd Merge branch 'MDL-67599-38' of https://github.com/snake/moodle into MOODLE_38_STABLE 2020-01-02 15:16:18 +08:00
Jake Dallimore a7fb29a8ff MDL-67599 behat: fix behat tests assuming Jan 2020 is a future date 2020-01-02 13:52:24 +08:00
Jake Dallimore c53861fd66 Merge branch 'MDL-67598_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE 2020-01-02 10:19:30 +08:00
AMOS bot 88d4a01089 Automatically generated installer lang files 2020-01-02 00:10:23 +00:00
Eloy Lafuente (stronk7) b71e7b79e8 MDL-67598 unit tests: Pass day of month without leading zero
Note this fixes the unit tests. Still the calendar API itself
should be able to manage this cases, both casting (int) or
being stricter about what's allowed there (param hinting).

But that falls out from this issue and the code that introduced
the failures, so the pure unit-test fix has been applied.
2020-01-02 00:10:16 +01:00
Eloy Lafuente (stronk7) 6c7199a426 Merge branch 'MDL-67593-38' of https://github.com/snake/moodle into MOODLE_38_STABLE 2019-12-31 10:50:41 +01:00
Jake Dallimore 827f3cd471 MDL-67593 core_iplookup: update lang string describing download process
Let users know they need to register on maxmind before granted download
access.
2019-12-31 15:54:33 +08:00
Jake Dallimore 0260074ba1 MDL-67593 core_iplookup: use MaxMind test database in unit tests
Instead of downloading a live database (now not available publicly)
use a local test database.
2019-12-31 15:54:27 +08:00
Jun Pataleta edab811944 Merge branch 'MDL-63996-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2019-12-31 15:19:17 +08:00
Jun Pataleta 348ceb4631 Merge branch 'MDL-67487-38' of git://github.com/lucaboesch/moodle into MOODLE_38_STABLE 2019-12-31 11:55:55 +08:00
Jun Pataleta 5544dc1cc7 Merge branch 'MDL-67470-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2019-12-31 11:29:52 +08:00
Bas Brands c02d168cd7 MDL-67470 theme_boost: settings_menu_proxy correct background
the .region_main_settings_proxy was introduced in MDL-56582 using the
wrong bootstrap variable for the background color
2019-12-31 09:59:51 +08:00
Adrian Greeve 53fde6278a Merge branch 'MDL-67233-38' of git://github.com/peterRd/moodle into MOODLE_38_STABLE 2019-12-30 12:56:59 +08:00
Jun Pataleta 25221f73a6 Merge branch 'MDL-67491-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2019-12-30 12:41:40 +08:00
Didier 'OdyX' Raboud b901252f6d MDL-67491 core_message: Primary'fy the contact request counts 2019-12-30 11:47:36 +08:00
Eloy Lafuente (stronk7) be73a0ed4e Merge branch 'MDL-67523-38' of git://github.com/marinaglancy/moodle into MOODLE_38_STABLE 2019-12-29 23:32:07 +01:00
Eloy Lafuente (stronk7) e654258446 Merge branch 'MDL-67527-38-enfix' of git://github.com/mudrd8mz/moodle into MOODLE_38_STABLE 2019-12-29 23:27:13 +01:00
Adrian Greeve 8c14984028 Merge branch 'MDL-63107-38' of git://github.com/bmbrands/moodle into MOODLE_38_STABLE 2019-12-27 16:34:10 +08:00
Adrian Greeve dd6bbf3962 Merge branch 'MDL-65809-38-onlyenv' of git://github.com/sarjona/moodle into MOODLE_38_STABLE 2019-12-24 14:54:57 +08:00
Adrian Greeve 01e84ac720 Merge branch 'MOODLE_38_STABLE-MDL-67524' of https://github.com/yao9394/moodle into MOODLE_38_STABLE 2019-12-23 10:30:23 +08:00
John Yao b423c5ad38 MDL-67524 book: fixing view hidden chapter issue
* Users who has permission should be able to view after turning editing off
2019-12-23 09:48:31 +11:00
AMOS bot f70cc95a13 Automatically generated installer lang files 2019-12-21 00:10:57 +00:00
Luca Bösch d9887f7350 MDL-67487 forms: align "Custom" checkbox for course section name. 2019-12-20 13:48:48 +01:00
Eloy Lafuente (stronk7) f2db42f921 weekly release 3.8+ 2019-12-20 11:02:10 +01:00
Eloy Lafuente (stronk7) b85896f7bc NOBUG: Fixed SVG browser compatibility 2019-12-20 11:02:08 +01:00
Eloy Lafuente (stronk7) 6350a758d7 Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2019-12-20 11:02:07 +01:00
Eloy Lafuente (stronk7) a3ea0db227 Merge branch 'MDL-67151-38' of git://github.com/rezaies/moodle into MOODLE_38_STABLE 2019-12-19 23:01:23 +01:00
Shamim Rezaie cd62c520e2 MDL-67151 qtype_numerical: convert the tolerance to string before saving
Fix the sqlserver issue when saving a number into a text field
2019-12-20 01:20:12 +11:00
Marina Glancy 86d4aca10d MDL-67523 core_admin: do not require admin to view category
Revert changes from MDL-58439 (in this file only)
2019-12-19 10:15:10 +01:00
Jun Pataleta 40ba9d9cfa Merge branch 'MOODLE_38_STABLE_MDL-63795_core_setting_defaults' of https://github.com/mattporritt/moodle into MOODLE_38_STABLE 2019-12-19 11:17:41 +08:00
Matt Porritt 5c510b92e2 MDL-63795 Administration: CLI upgrade apply all settings
This patch fixes a regression caused by MDL-62777.  MDL-62777 added output to inform
administrators of new default settings.  However, the recursion in the code did not
handle new settings made available as the result of the defaults of other settings
being set.
This patch fixes the issue, now all defaults are correctly set, even those exposed
after other defaults are set.
2019-12-19 12:22:01 +11:00
Eloy Lafuente (stronk7) 754ecb5768 Merge branch 'MDL-67151-38' of git://github.com/rezaies/moodle into MOODLE_38_STABLE 2019-12-18 23:05:56 +01:00
David Mudrák e7a122bba9 MDL-67527 lang: Propagate the string fixes to Behat and other places 2019-12-18 21:22:15 +01:00
Helen Foster 13edb4f9f9 MDL-67527 lang: Import fixed English strings (en_fix) 2019-12-18 21:22:15 +01:00
Eloy Lafuente (stronk7) db394d5b08 Merge branch 'MDL-64695-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2019-12-18 19:56:10 +01:00
Eloy Lafuente (stronk7) d18802eb2f Merge branch 'MDL-67464-38' of git://github.com/sarjona/moodle into MOODLE_38_STABLE 2019-12-17 19:37:00 +01:00
Mikel Martín ead3a41240 MDL-67336 mod_forum: Fixing forum inline reply filtering before saving 2019-12-17 11:59:02 +01:00
Jake Dallimore ae7b1be0b6 Merge branch 'MDL-67304_38' of git://github.com/dmonllao/moodle into MOODLE_38_STABLE 2019-12-17 13:47:11 +08:00
Jake Dallimore cca393d2f6 Merge branch 'MDL-65735-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE 2019-12-17 13:25:24 +08:00
Eloy Lafuente (stronk7) 69430157a3 Merge branch 'MDL-67522-38' of git://github.com/marinaglancy/moodle into MOODLE_38_STABLE 2019-12-17 00:22:33 +01:00
Eloy Lafuente (stronk7) f077d9fbea Merge branch 'MDL-67410-38' of https://github.com/felicemcc/moodle into MOODLE_38_STABLE 2019-12-16 19:18:31 +01:00
Bas Brands 8c20e76d43 MDL-63107 mod_book: rewrite styles for book chapter block
* using flexbox to position titles
* fix for title overlap on edit mode
* show correct bullets, number or indent
2019-12-16 13:30:28 +01:00
Jake Dallimore a0ac535549 Merge branch 'MDL-67327-38' of git://github.com/andrewnicols/moodle into MOODLE_38_STABLE 2019-12-16 15:12:35 +08:00
Andrew Nicols 11260d5f3f MDL-63996 core/tags: Pending JS for all tag code 2019-12-16 14:03:46 +08:00
Andrew Nicols 67fc9943b9 MDL-63996 behat: Fix multi-tag autocomplete usage 2019-12-16 14:00:04 +08:00
Jake Dallimore 29a5f6eaa2 Merge branch 'MDL-66503-38' of git://github.com/abgreeve/moodle into MOODLE_38_STABLE 2019-12-16 09:11:33 +08:00
Marina Glancy a6fd7ada34 MDL-67522 core_lock: fix mistype in config-dist 2019-12-14 19:29:40 +01:00
AMOS bot c86c872db3 Automatically generated installer lang files 2019-12-14 00:10:53 +00:00
Jun Pataleta 7b4848ca80 MDL-67469 tool_dataprivacy: Put back missing test code
This patch simply brings back the missing test code for
\tool_dataprivacy_api_testcase::test_approve_data_request_non_dpo_user()
2019-12-13 10:05:24 +08:00
AMOS bot d9e3c11834 Automatically generated installer lang files 2019-12-13 00:11:09 +00:00
Felice Candilio 1437e35d2d MDL-67410 Enrolments: Cast the perpage parameter to integer in JS
The parameter called "perpage" on the call is treated as a string,
therefore, It could have a value 15001 resulting from a "+" operation
of the "1500" string and the number 1. That big number makes
the AJAX call extremely slow.

The proposed solution is to parse the number as an integer
when performing the addition.
2019-12-12 22:25:55 +01:00
Paul Holden 914d5ab82d MDL-65735 report_progress: reset URL start parameter in initials bars. 2019-12-12 18:24:12 +00:00
Paul Holden fbf0c8810b MDL-64695 tool_dataprivacy: filter site fullname in outgoing messages. 2019-12-12 18:20:22 +00:00
Paul Holden 25da0b49ea MDL-64695 privacy: filter site fullname in data export. 2019-12-12 18:20:22 +00:00
Sara Arjona 70e47fdc2a MDL-67464 core_h5p: use h5p.com URLs in behat tests
The H5P content used in behat for validating external URLs
behaviour shouldn't point h5p.org because it may stop working
(it's not for real content). These content have been moved to
moodle.h5p.com (payment account).
Besides, the scenarios loading content from external URLs
have been labelel with @external.
2019-12-12 16:07:17 +01:00
Eloy Lafuente (stronk7) 3bfdc05d3a weekly release 3.8+ 2019-12-12 13:26:31 +01:00
Eloy Lafuente (stronk7) d64a94713e NOBUG: Fixed SVG browser compatibility 2019-12-12 13:26:29 +01:00
Eloy Lafuente (stronk7) 8d7f1fd428 Merge branch 'install_38_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_38_STABLE 2019-12-12 13:26:28 +01:00
Andrew Nicols a7268b4f8a MDL-67327 js: Make requirejs.php more fault tolerant 2019-12-12 16:37:08 +08:00
Jake Dallimore 4792cc508e Merge branch 'MDL-67154-38' of git://github.com/ferranrecio/moodle into MOODLE_38_STABLE 2019-12-12 09:05:11 +08:00
Ferran Recio 7bc625d846 MDL-67154 theme_classic: fixing firefox printing 2019-12-11 16:57:36 +01:00
AMOS bot 6dc25cc165 Automatically generated installer lang files 2019-12-11 13:50:07 +00:00
AMOS bot 747000a2fe Automatically generated installer lang files 2019-12-11 13:50:07 +00:00
Kiet.Chan bec0808b18 MDL-67417 theme_boost: Tooltip icon stop working after closing using ESC 2019-12-11 15:00:14 +07:00
Andrew Nicols 7f40272535 Merge branch 'MDL-67458-38' of https://github.com/snake/moodle into MOODLE_38_STABLE 2019-12-11 10:27:19 +08:00
Jake Dallimore f9735bbde7 MDL-67458 core: removing stale cohortroles and role assignments 2019-12-11 09:36:54 +08:00
Jake Dallimore 4dc1413cc7 MDL-67458 tool_cohortroles: remove role mapping for deleted roles
Before syncing anything, clean up records pointing to deleted roles.
2019-12-11 09:36:15 +08:00
Adrian Greeve 79b6a4acac MDL-66503 themes: Set the embed page to display block. 2019-12-11 09:32:54 +08:00
Andrew Nicols cf50c5f1cb Merge branch 'MDL-67434-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2019-12-10 17:29:02 +08:00
Marina Glancy fc74a6e6d2 MDL-66936 mod_url: revert MDL-65024 adding fullurl to modinfo
This reverts commit cc56e409c3, reversing
changes made to 01cdf16c0e.
2019-12-10 15:27:59 +08:00
Jonathon Fowler a48bd1c4e3 MDL-66936 url: fix error when modinfo cache is rebuilt non-interactively 2019-12-10 15:27:52 +08:00
Jake Dallimore ee215ddd43 Merge branch 'MDL-67179-38' of git://github.com/Chocolate-lightning/moodle into MOODLE_38_STABLE 2019-12-10 15:03:24 +08:00
Mathew May f3e7533b9d MDL-67179 core: Add missing grading pix 2019-12-10 14:38:55 +08:00
Andrew Nicols 921469db8f Merge branch 'MDL-67277-38-strongtopics' of git://github.com/mudrd8mz/moodle into MOODLE_38_STABLE 2019-12-10 12:49:18 +08:00
Jake Dallimore b99f2bce77 Merge branch 'MDL-67154-38' of git://github.com/ferranrecio/moodle into MOODLE_38_STABLE 2019-12-10 11:53:56 +08:00
Jake Dallimore 7df9eb36cd Merge branch 'MDL-67451-38' of git://github.com/sarjona/moodle into MOODLE_38_STABLE 2019-12-10 10:37:15 +08:00
Jake Dallimore aee09a6357 Merge branch 'MDL-66708-MOODLE_38_KeyGenCache' of https://github.com/Cengage/moodle into MOODLE_38_STABLE 2019-12-10 09:12:13 +08:00
David Monllaó 8ae7a4ad68 MDL-67304 analytics: Add missing png svg incorrect icon
Credit to jaked for the icons and the testing instructions
2019-12-10 09:01:43 +08:00
Andrew Nicols d911548cf4 Merge branch 'MDL-67152-38' of git://github.com/rezaies/moodle into MOODLE_38_STABLE 2019-12-10 08:21:20 +08:00
Paul Holden 7a4b6df0fe MDL-65649 backup: ensure valid course URL for async mode. 2019-12-09 23:34:30 +00:00
Shamim Rezaie c8435454a7 MDL-67152 calendar: The day view should start from the current day 2019-12-10 06:58:18 +11:00
Jake Dallimore df2bda2f00 Merge branch 'MDL-67392-38' of git://github.com/rezaies/moodle into MOODLE_38_STABLE 2019-12-09 14:46:56 +08:00
Andrew Nicols bf52b2a3bc Merge branch 'MDL-60975-38' of https://github.com/Kathrin84/moodle into MOODLE_38_STABLE 2019-12-09 13:12:59 +08:00
Frédéric Massart f130c810f9 MDL-67434 javascript: Use static get_string after recycling promise 2019-12-09 10:12:43 +08:00
Paul Holden f0a2800a3a MDL-66024 tool_uploadcourse: validate shortname/fullname field length. 2019-12-05 23:11:19 +00:00
Kathrin Osswald d294483e9c MDL-60975 behat tests: Added search for admin setting filepickers 2019-12-05 14:59:18 +01:00
Sara Arjona ca89aca702 MDL-65809 environment: mbstring extension required 2019-12-05 14:00:16 +01:00
Sara Arjona 7e561cc4a8 MDL-65809 environment: PHP 7.2 required 2019-12-05 14:00:16 +01:00
Sara Arjona 57d601bc23 MDL-65809 environment: postgres requirement up to 9.5 2019-12-05 14:00:16 +01:00
Sara Arjona 7cdc332930 MDL-65809 environment: mariadb requirement up to 10.2 2019-12-05 14:00:16 +01:00
Sara Arjona 484eab15e3 MDL-65809 environment: 3.5 (LTS) required 2019-12-05 14:00:16 +01:00
Sara Arjona 0a0d55a3e1 MDL-65809 environment: 3.9 base information
This is a direct copy of the 3.8 branch to have changes
under control easier in next commits.
2019-12-05 14:00:16 +01:00
Eloy Lafuente (stronk7) 773b1f738f weekly release 3.8+ 2019-12-05 13:24:15 +01:00
Eloy Lafuente (stronk7) 96475f49de NOBUG: Fixed SVG browser compatibility 2019-12-05 13:24:13 +01:00
Adrian Greeve 9a64cc2b0b Merge branch 'MDL-65620-38' of git://github.com/aanabit/moodle into MOODLE_38_STABLE 2019-12-05 09:26:43 +08:00
Sara Arjona 56c570f68a MDL-67451 badges: use the site OB version as default 2019-12-04 21:27:16 +01:00
Sara Arjona ab2bb07f2e Merge branch 'MDL-67404_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE 2019-12-04 11:24:56 +01:00
Amaia Anabitarte d0aa6bf098 MDL-65620 core_message: Notification preferences behat tests 2019-12-04 11:03:49 +01:00
Ferran Recio 132e638209 MDL-67154 theme_boost: fixing firefox printing 2019-12-04 10:53:53 +01:00
Amaia Anabitarte 6713912510 MDL-65620 core_message: User preference generator 2019-12-04 10:03:34 +01:00
Amaia Anabitarte 96c48a5058 MDL-65620 core_message: Default notification preferences 2019-12-04 10:03:34 +01:00
Adrian Greeve d3de95f446 Merge branch 'MDL-40360-38' of git://github.com/lucaboesch/moodle into MOODLE_38_STABLE 2019-12-04 11:50:48 +08:00
Andrew Nicols 6d98038c8f Merge branch 'MDL-67359-38' of git://github.com/Chocolate-lightning/moodle_forum-project into MOODLE_38_STABLE 2019-12-04 10:38:12 +08:00
David Mudrák 83e5983a88 MDL-67277 forum: Replace the HTML comments with Mustache comments
It does not seem necessary to have the actual HTML sent to browsers full
of these developer-focused comments.
2019-12-03 20:16:53 +01:00
David Mudrák 0ddd9c54bc MDL-67277 forum: Remove the pinned class from the first cell
There should be no need to have it, and the name is confusing here.
2019-12-03 20:16:53 +01:00
David Mudrák 39bd01c11a MDL-67277 forum: Do not display discussion topics in bold
The topics are now inside a table header cell, which shows them in bold
by default.
2019-12-03 20:15:50 +01:00
David Mudrák 1e58e180d4 MDL-67277 forum: Apply CSS class describing the discussion status
This is to allow the themes to style pinned, favourited, subscribed and
discussions with unread replies.
2019-12-03 20:15:08 +01:00
Shamim Rezaie 163bff4a18 MDL-67151 qtype_calculatedsimple: Support for the scientific format 2019-12-03 16:57:41 +11:00
Shamim Rezaie 910c2ab7b4 MDL-67151 qtype_calculated: Support for the scientific format 2019-12-03 16:57:41 +11:00
Shamim Rezaie fcf199b0ec MDL-67151 qtype_numerical: Support for the scientific format 2019-12-03 16:57:41 +11:00
Shamim Rezaie bb511f30d6 MDL-67151 core_question: Support scientific format at question preview 2019-12-03 16:57:41 +11:00
Shamim Rezaie 481ad40e0e MDL-67151 forms: Support for the scientific format in the float element 2019-12-03 16:57:41 +11:00
Shamim Rezaie 031f3a1d4b MDL-67151 core: format_float can auto detect number of decimal points 2019-12-03 16:57:36 +11:00
Mathew May 5548689ead MDL-67359 mod_forum: Relocate notification templates to reallign it 2019-12-03 12:57:41 +08:00
Sara Arjona f751a8edbe Merge branch 'wip-MDL-67339-38stable' of https://github.com/Beedell/moodle into MOODLE_38_STABLE 2019-12-02 18:06:31 +01:00
John Beedell 0de719024c MDL-67339 behat: Enhance Behat exception message 2019-12-02 09:53:35 +00:00
Shamim Rezaie ac084982cf MDL-67392 mod_forum: Fix unescaped quotes issue in template 2019-12-02 20:50:40 +11:00
Jake Dallimore d3158895a8 Merge branch 'MDL-66581-38' of git://github.com/junpataleta/moodle into MOODLE_38_STABLE 2019-12-02 16:12:47 +08:00
Jun Pataleta 0e58303ea3 MDL-66581 auth: Properly assign the link attribute 2019-12-02 15:30:39 +08:00
Iñigo Zendegi f0d380703a MDL-66581 auth: Do string concatenation for the password change URL
This reverts the change introduced by MDL-59298 where the password
change URL data is being assigned with a moodle_url object instead
of concatenating it.
2019-12-02 15:30:39 +08:00
Jake Dallimore baf264ebc8 Merge branch 'MDL-66877-38' of git://github.com/jleyva/moodle into MOODLE_38_STABLE 2019-12-02 10:02:34 +08:00
Luca Bösch e61f7ba324 MDL-40360 gradingform_rubric: remove unused class 'label' for a label. 2019-11-30 10:28:22 +01:00
Shamim Rezaie afda296526 MDL-65849 mod_forum: Add course param to the author's profile url 2019-11-29 20:58:37 +11:00
Eloy Lafuente (stronk7) 6d6b14e8a4 weekly release 3.8+ 2019-11-29 00:45:52 +01:00
Juan Leyva 27d6bd5de1 MDL-66877 mod: Fix unfiltered activity names in page headings 2019-11-28 17:24:31 +01:00
Juan Leyva 907db7f06b MDL-66877 mod: Fix WebServices returning unfiltered activity names 2019-11-28 17:24:31 +01:00
Eloy Lafuente (stronk7) 33bfd161cd MDL-67404 composer: update to newer versions
(using php71 for this branch)

Without changing any requirement, just an update
to get latest versions onboard, some fixing known
php 7.4 issues.
2019-11-28 13:12:23 +01:00
Andrew Nicols f88b4e9f81 MDL-67348 theme: Return CSS from localcache if available 2019-11-27 10:38:52 +08:00
Eloy Lafuente (stronk7) 114f0b612f Merge branch 'MDL-67300-m38' of https://github.com/sammarshallou/moodle into MOODLE_38_STABLE
(fix trailing whitespace case)
2019-11-26 22:29:37 +01:00
Jun Pataleta a5f1dd6cb1 Merge branch 'MOODLE_38_MDL-56886' of https://github.com/golenkovm/moodle into MOODLE_38_STABLE 2019-11-26 22:32:41 +08:00
Luca Bösch 283cd6db67 MDL-67210 tool_uploadcourse: Allow only 0 and 1 for visible value. 2019-11-26 08:30:34 +01:00
Eloy Lafuente (stronk7) 3eac4851e3 MDL-67307 core: Fix onject creation from empty value cases
The "creating default object from empty value" warning is now consistently
thrown if a falsy value is promoted into an stdClass object. Previously some
cases like `$null->prop[0] = $val` missed this warning.
2019-11-26 14:15:06 +08:00
Sara Arjona 006ec3c96f MDL-67042 customfield: Add behat tests to check hidden fields
Fields with the visibility different to Everyone should
be never displayed in the available filters custom field.
2019-11-26 11:59:41 +08:00
Sara Arjona cabc1dafa9 MDL-67042 customfield: Display only fields visible to everybody
When defining the available filters for the Dashboard, only the
fields visible to everyone should be displayed in the Custom field
filter.
2019-11-26 11:59:36 +08:00
Eloy Lafuente (stronk7) 1b4c878f48 MDL-66966 tcpdf: Update readme to point to manual commits to review
Apart from the main import of the library, there are a couple of
commits (with corresponding PRs upstream) that have been added to
provide php74 compatibility.

This commit addes them to the instructions, to ensure that they
will be reviewed on next import.
2019-11-26 11:43:34 +08:00
Eloy Lafuente (stronk7) 91286bb138 MDL-66966 tcpdf: Silence non-existing K_PATH_CACHE
I was fixing this adding a extra dir_exists() check that
is better than the silence operator but that was that already
there was a PR using @. So went to it.

This is https://git.io/JeKft
2019-11-26 11:43:25 +08:00
Eloy Lafuente (stronk7) 71af7accff MDL-66966 tcpdf: Some more curly braces to fix
This is https://git.io/JeKfT
2019-11-26 11:43:18 +08:00
Eloy Lafuente (stronk7) ce97501b2b MDL-66966 tcpdf: PHP 7.4 - cannot use array offset on integers
This is https://git.io/JeKfU
2019-11-26 11:43:10 +08:00
Eloy Lafuente (stronk7) dadb3cb372 MDL-66966 tcpdf: Bump to tcpdf 6.3.2
Bug fixes and php74 support.
2019-11-26 11:43:00 +08:00
Peter 5cb05d8b77 MDL-67233 mod_timeline: Allow events with only open dates in the future 2019-11-26 11:27:01 +08:00
Bas Brands e29b355121 MDL-67222 tool_lp: update css classes for Bootstrap 4.3 2019-11-26 10:12:46 +08:00
Mikhail Golenkov 95ca6f656e MDL-56886 navigation: Allow local plugins to modify navigation via AJAX. 2019-11-26 13:01:14 +11:00
Claude Vervoort fbd1829594 MDL-66708 lti adv: fix check for key in config 2019-11-25 14:17:08 -05:00
Marina Glancy 0c91305856 MDL-67342 theme_boost: Do not hardcode tooltip container 2019-11-25 15:59:25 +01:00
Sara Arjona c42b488aaf Merge branch 'MDL-66627-38' of git://github.com/mickhawkins/moodle into MOODLE_38_STABLE 2019-11-25 15:42:02 +01:00
David Monllaó 5bde4eb35e MDL-67217 unittest: usleep and windows don't get along well 2019-11-25 16:13:39 +08:00
Andrew Nicols 1943c03bbb MDL-67168 forum: Correct behaviour of viewfullnames 2019-11-25 08:56:37 +01:00
Jun Pataleta 0da427c800 Merge branch 'MDL-65956-38-1' of git://github.com/mihailges/moodle into MOODLE_38_STABLE 2019-11-25 14:23:11 +08:00
Mihail Geshoski 7045a22f3a MDL-65956 mod_assign: Add behat tests 2019-11-25 10:50:22 +08:00
Mihail Geshoski c7f9c7ae0f MDL-65956 mod_assign: Add proper capability checks and error handling 2019-11-25 10:50:22 +08:00
Andrew Nicols 751e4964b1 MDL-67285 core: YUI dialogues must use focuslock
YUI Dialogues were using an older method for locking focus to modals,
but this way conflicts with the way in which we lock focus for AMD
modules.

As a result, when an AMD dialogue launches a YUI dialogue the focus is
not correctly locked and it is not possible to focus on anything in the
YUI dialogue.

This includes a minor changes to the focuslock AMD module to ensure that
it is possible to loop the focus in both directions. Many of our older
YUI dialogues are themselves focusable. As a result we need to include
the lock region in the calculation when calculating the possible
descendants.
If we do not do so then the reverse looping does not work.
2019-11-25 10:35:08 +08:00
Eloy Lafuente (stronk7) 5a108a3064 MDL-67049 grading: options are array, ensure json_decode() knows it
By default json_decode() returns object for associative arrays. That
was not a problem till now becuause array_key_exists() worked with
objects too. But in php74 that emits a warning.

So we need to ensure that the information arriving to it is
an array, allowing everything to continue working ok.
2019-11-25 09:34:22 +08:00
Eloy Lafuente (stronk7) 417ff4f035 weekly release 3.8+ 2019-11-22 00:17:15 +01:00
sam marshall d3a5df14f7 MDL-67300 Calendar: Inconsistent behaviour of managegroupentries
When calling the calendar_get_allowed_event_types function with
no course id, it is supposed to return true if you have the
relevant permissions in any course.

For users who have the managegroupentries permission, this was not
the case - even though it works correctly if you call the function
with a supplied course id.

This change makes behaviour with and without a supplied course id
consistent.
2019-11-21 10:54:08 +00:00
Eloy Lafuente (stronk7) 82853489ca MDL-67035 tags: fix nested ternary operators to be php74 compliant
Nesting ternary operators without explicit parentheses is deprecated:

    // Code like
    $a ? $b : $c ? $d : $e
    // should be replaced by (current interpretation)
    ($a ? $b : $c) ? $d : $e
    // or (likely intended interpretation)
    $a ? $b : ($c ? $d : $e)
2019-11-21 11:55:27 +08:00
Eloy Lafuente (stronk7) 9eaea6a7bf MDL-66964 markdown: add details to readme
The commit to apply, from upstream repo, is:

https://github.com/michelf/php-markdown/commit/a35858f0409e5f01474f5cd562d17289fe8e5435

But it doesn't apply clean to our current 1.8.0 version.

So we have ended a slightly different version in core reproducing the same changes.
2019-11-21 11:37:50 +08:00
Eloy Lafuente (stronk7) f11b82df7c MDL-66964 markdown: php74 fixup for markdown lib 1.8.0
Note this is different from the upstream commit:

https://github.com/michelf/php-markdown/commit/a35858f0409e5f01474f5cd562d17289fe8e5435

because it was conflicting so only the cases corresponding
to our current 1.8.0 version have been modified.

This commit is trivial, just a pure curly to square replacement.
2019-11-21 11:37:50 +08:00
Tim Hunt 5d2f8bd98d MDL-48024 behat: allow plugins to have data generators
This extends the step
Given the following "users" exist:
to also support things like
Given the following "mod_quiz > user overrides" exist:

Instructions are on the behat_data_generators and
behat_generator_base classes.
2019-11-21 09:33:48 +08:00
Eloy Lafuente (stronk7) 023109f1b1 MDL-67030 htmlpurifier: add details to readme 2019-11-21 08:19:17 +08:00
Eloy Lafuente (stronk7) 51bedcee13 MDL-67030 htmlpurifier: php74 fixup for htmlpurifier v4.10.0
This simply applies this pull request:

https://github.com/ezyang/htmlpurifier/pull/224

straight to our library. Once there is some new htmlpurifier
release available (>v4.11.0) we'll be back upstream because
the fix will be included.
2019-11-21 08:19:11 +08:00
Eloy Lafuente (stronk7) 7cec76396f MDL-67031 s3: php74 fixup for class S3 v0.5.1 2019-11-20 16:22:07 +08:00
Eloy Lafuente (stronk7) daed88e656 MDL-67077 h5p: php74 fix (curly braces) for the H5P lib
This has been sent also upstream @ https://github.com/h5p/h5p-php-library/pull/69
2019-11-20 16:11:55 +08:00
Michael Hawkins 212595bbd0 MDL-66627 forumreport_summary: Added content access behat tests 2019-11-20 14:58:22 +08:00
Eloy Lafuente (stronk7) 6cff678c08 MDL-67034 lti_provider: php74 fix (curly braces) for LTI Provider lib 2019-11-20 13:17:09 +08:00
Eloy Lafuente (stronk7) 980193f55b MDL-67034 google: php74 fix (curly braces) for the Google-Client lib 2019-11-20 13:17:02 +08:00
Eloy Lafuente (stronk7) b4f9c2e906 MDL-67034 adodb: php74 fix (curly braces) for the AdoDB lib 2019-11-20 13:16:55 +08:00
Eloy Lafuente (stronk7) 93ed2a597c MDL-67034 horde: php74 fix (curly braces) for the Horde lib 2019-11-20 13:16:49 +08:00
Eloy Lafuente (stronk7) a2c6a69070 MDL-67029 bennu: add details to readme 2019-11-20 11:46:18 +08:00
Eloy Lafuente (stronk7) 7a68a37fda MDL-67029 bennu: php74 fixup for bennu lib 0.1-custom 2019-11-20 11:46:13 +08:00
Eloy Lafuente (stronk7) 3c1b6ed7bd MDL-67017 typo3: add details to readme 2019-11-20 10:01:13 +08:00
Eloy Lafuente (stronk7) 8ff55e3b1b MDL-67017 typo3: php74 fixup for typo3 lib 4.7.19
We are using a really outdated Typo3 library (2014) already patched
for php73 support. Plus, probably, we'll be soon removing it from core.

So we have decided to, instead of upgrade, apply the needed php74 fixes.
2019-11-20 10:01:02 +08:00
sam marshall 7d05f78363 MDL-67274 Tasks: Log display fails with memory errors 2019-11-19 10:51:22 +08:00
Jun Pataleta d0a9211f51 MDL-67148 tool_mobile: Set auth_cas|auth_name config value in unit test
Thanks to Renaat Debleu for the fix suggestion!
2019-11-18 18:50:11 +01:00
Marina Glancy e2a0a42003 MDL-67073 core_course: fix capability context 2019-11-18 16:02:46 +08:00
Jake Dallimore 7e24491f2c Merge branch 'MDL-67284_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE 2019-11-18 11:29:29 +08:00
Eloy Lafuente (stronk7) 4619c8a7e3 MDL-67284 mod_feedback: Add missing file phpdoc block 2019-11-17 12:47:05 +01:00
Eloy Lafuente (stronk7) 2aff0046c1 MDL-67284 upgrade: add 3.8.0 separation line to all upgrade scripts 2019-11-17 11:43:41 +01:00
1475 changed files with 31502 additions and 11065 deletions
+1 -1
View File
@@ -1 +1 @@
v8.16.1
v14.15.0
+27 -12
View File
@@ -2,23 +2,23 @@
# process (which uses our internal CI system) this file is here for the benefit
# of community developers git clones - see MDL-51458.
sudo: required
# We currently disable Travis notifications entirely until https://github.com/travis-ci/travis-ci/issues/4976
# is fixed.
notifications:
email: false
email:
if: env(MOODLE_EMAIL) != no
language: php
os: linux
dist: xenial
services:
- mysql
- docker
php:
# We only run the highest and lowest supported versions to reduce the load on travis-ci.org.
- 7.3
- 7.4
- 7.1.30 # Make this sticky because current default version (7.1.11) has a bug with redis-extension output (MDL-66062)
addons:
@@ -41,18 +41,18 @@ env:
# Perform an upgrade test too.
- DB=pgsql TASK=UPGRADE
matrix:
jobs:
# Enable fast finish.
# This will fail the build if a single job fails (except those in allow_failures).
# It will not stop the jobs from running.
fast_finish: true
include:
# Run mysql only on 7.3 - it's just too slow
- php: 7.3
# Run mysql only on highest - it's just too slow
- php: 7.4
env: DB=mysqli TASK=PHPUNIT
# Run grunt/npm install on highest version ('node' is an alias for the latest node.js version.)
- php: 7.2
# Run grunt/npm install on highest version too ('node' is an alias for the latest node.js version.)
- php: 7.4
env: DB=none TASK=GRUNT NVM_VERSION='lts/carbon'
cache:
@@ -61,8 +61,9 @@ cache:
- $HOME/.npm
before_install:
- docker run -d -p 127.0.0.1:8080:80 --name exttests moodlehq/moodle-exttests
# Avoid IPv6 default binding as service (causes redis not to start).
sudo service redis-server start --bind 127.0.0.1
- sudo service redis-server start --bind 127.0.0.1
install:
- >
@@ -169,6 +170,12 @@ before_script:
-e "/require_once/i \\\$CFG->phpunit_dataroot = '\/home\/travis\/roots\/phpunit';" \
-e "/require_once/i \\\$CFG->phpunit_prefix = 'p_';" \
config.php ;
# Enable test external resources
sed -i \
-e "/require_once/i \\define('TEST_EXTERNAL_FILES_HTTP_URL', 'http://127.0.0.1:8080');" \
-e "/require_once/i \\define('TEST_EXTERNAL_FILES_HTTPS_URL', 'http://127.0.0.1:8080');" \
config.php ;
# Redis cache store tests
sed -i \
-e "/require_once/i \\define('TEST_CACHESTORE_REDIS_TESTSERVERS', '127.0.0.1');" \
@@ -284,3 +291,11 @@ script:
exit 1 ;
fi
fi
after_script:
- >
if [ "$TASK" = 'PHPUNIT' ];
then
EXTTESTS_HITS=$(docker logs exttests 2>&1 | grep -Fv -e 'AH00558' -e '[pid 1]' | wc -l)
echo -e "\nTest local resources number of hits: ${EXTTESTS_HITS}.\n"
fi
+27 -13
View File
@@ -127,7 +127,13 @@ module.exports = function(grunt) {
eslint: {
// Even though warnings dont stop the build we don't display warnings by default because
// at this moment we've got too many core warnings.
options: {quiet: !grunt.option('show-lint-warnings')},
// To display warnings call: grunt eslint --show-lint-warnings
// To fail on warnings call: grunt eslint --max-lint-warnings=0
// Also --max-lint-warnings=-1 can be used to display warnings but not fail.
options: {
quiet: (!grunt.option('show-lint-warnings')) && (typeof grunt.option('max-lint-warnings') === 'undefined'),
maxWarnings: ((typeof grunt.option('max-lint-warnings') !== 'undefined') ? grunt.option('max-lint-warnings') : -1)
},
amd: {src: files ? files : amdSrc},
// Check YUI module source files.
yui: {src: files ? files : ['**/yui/src/**/*.js', '!*/**/yui/src/*/meta/*.js']}
@@ -356,19 +362,27 @@ module.exports = function(grunt) {
};
tasks.gherkinlint = function() {
var done = this.async(),
options = grunt.config('gherkinlint.options');
const done = this.async();
const options = grunt.config('gherkinlint.options');
var args = grunt.file.expand(options.files);
args.unshift(path.normalize(__dirname + '/node_modules/.bin/gherkin-lint'));
grunt.util.spawn({
cmd: 'node',
args: args,
opts: {stdio: 'inherit', env: process.env}
}, function(error, result, code) {
// Propagate the exit code.
done(code === 0);
});
// Grab the gherkin-lint linter and required scaffolding.
const linter = require('gherkin-lint/src/linter.js');
const featureFinder = require('gherkin-lint/src/feature-finder.js');
const configParser = require('gherkin-lint/src/config-parser.js');
const formatter = require('gherkin-lint/src/formatters/stylish.js');
// Run the linter.
const results = linter.lint(
featureFinder.getFeatureFiles(grunt.file.expand(options.files)),
configParser.getConfiguration(configParser.defaultConfigFileName)
);
// Print the results out uncondtionally.
formatter.printResults(results);
// Report on the results.
// The done function takes a bool whereby a falsey statement causes the task to fail.
done(results.every(result => result.errors.length === 0));
};
tasks.startup = function() {
+1 -1
View File
@@ -30,7 +30,7 @@ $category = required_param('category', PARAM_SAFEDIR);
$return = optional_param('return','', PARAM_ALPHA);
$adminediting = optional_param('adminedit', -1, PARAM_BOOL);
require_admin();
require_login(0, false);
$PAGE->set_context(context_system::instance());
$PAGE->set_url('/admin/category.php', array('category' => $category));
$PAGE->set_pagetype('admin-setting-' . $category);
@@ -178,6 +178,7 @@ class filesize extends \admin_setting {
'id' => $this->get_id(),
'name' => $this->get_full_name(),
'value' => $data['v'],
'readonly' => $this->is_readonly(),
'options' => array_map(function($unit, $title) use ($data, $defaultunit) {
return [
'value' => $unit,
+2 -1
View File
@@ -131,7 +131,8 @@ class task_log_table extends \table_sql {
}
$sql = "SELECT
tl.*,
tl.id, tl.type, tl.component, tl.classname, tl.userid, tl.timestart, tl.timeend,
tl.dbreads, tl.dbwrites, tl.result,
tl.dbreads + tl.dbwrites AS db,
tl.timeend - tl.timestart AS duration,
{$userfields}
+99 -90
View File
@@ -266,6 +266,7 @@ list($options, $unrecognized) = cli_get_params(
);
$interactive = empty($options['non-interactive']);
$skipdatabase = $options['skip-database'];
// set up language
$lang = clean_param($options['lang'], PARAM_SAFEDIR);
@@ -637,96 +638,100 @@ do {
}
} while ($hintdatabase !== '');
// ask for fullname
if ($interactive) {
cli_separator();
cli_heading(get_string('fullsitename', 'moodle'));
// If --skip-database option is provided, we do not need to ask for site fullname, shortname, adminuser, adminpass, adminemail.
// These fields will be requested during the database install part.
if (!$skipdatabase) {
// Ask for fullname.
if ($interactive) {
cli_separator();
cli_heading(get_string('fullsitename', 'moodle'));
if ($options['fullname'] !== '') {
$prompt = get_string('clitypevaluedefault', 'admin', $options['fullname']);
if ($options['fullname'] !== '') {
$prompt = get_string('clitypevaluedefault', 'admin', $options['fullname']);
} else {
$prompt = get_string('clitypevalue', 'admin');
}
do {
$options['fullname'] = cli_input($prompt, $options['fullname']);
} while (empty($options['fullname']));
} else {
$prompt = get_string('clitypevalue', 'admin');
if (empty($options['fullname'])) {
$a = (object)['option' => 'fullname', 'value' => $options['fullname']];
cli_error(get_string('cliincorrectvalueerror', 'admin', $a));
}
}
do {
$options['fullname'] = cli_input($prompt, $options['fullname']);
} while (empty($options['fullname']));
} else {
if (empty($options['fullname'])) {
$a = (object)array('option'=>'fullname', 'value'=>$options['fullname']);
cli_error(get_string('cliincorrectvalueerror', 'admin', $a));
}
}
// Ask for shortname.
if ($interactive) {
cli_separator();
cli_heading(get_string('shortsitename', 'moodle'));
// ask for shortname
if ($interactive) {
cli_separator();
cli_heading(get_string('shortsitename', 'moodle'));
if ($options['shortname'] !== '') {
$prompt = get_string('clitypevaluedefault', 'admin', $options['shortname']);
} else {
$prompt = get_string('clitypevalue', 'admin');
}
if ($options['shortname'] !== '') {
$prompt = get_string('clitypevaluedefault', 'admin', $options['shortname']);
do {
$options['shortname'] = cli_input($prompt, $options['shortname']);
} while (empty($options['shortname']));
} else {
$prompt = get_string('clitypevalue', 'admin');
if (empty($options['shortname'])) {
$a = (object)['option' => 'shortname', 'value' => $options['shortname']];
cli_error(get_string('cliincorrectvalueerror', 'admin', $a));
}
}
do {
$options['shortname'] = cli_input($prompt, $options['shortname']);
} while (empty($options['shortname']));
} else {
if (empty($options['shortname'])) {
$a = (object)array('option'=>'shortname', 'value'=>$options['shortname']);
cli_error(get_string('cliincorrectvalueerror', 'admin', $a));
}
}
// ask for admin user name
if ($interactive) {
cli_separator();
cli_heading(get_string('cliadminusername', 'install'));
if (!empty($options['adminuser'])) {
$prompt = get_string('clitypevaluedefault', 'admin', $options['adminuser']);
// Ask for admin user name.
if ($interactive) {
cli_separator();
cli_heading(get_string('cliadminusername', 'install'));
if (!empty($options['adminuser'])) {
$prompt = get_string('clitypevaluedefault', 'admin', $options['adminuser']);
} else {
$prompt = get_string('clitypevalue', 'admin');
}
do {
$options['adminuser'] = cli_input($prompt, $options['adminuser']);
} while (empty($options['adminuser']) or $options['adminuser'] === 'guest');
} else {
if ((empty($options['adminuser']) || $options['adminuser'] === 'guest')) {
$a = (object)['option' => 'adminuser', 'value' => $options['adminuser']];
cli_error(get_string('cliincorrectvalueerror', 'admin', $a));
}
}
// Ask for admin user password.
if ($interactive) {
cli_separator();
cli_heading(get_string('cliadminpassword', 'install'));
$prompt = get_string('clitypevalue', 'admin');
do {
$options['adminpass'] = cli_input($prompt);
} while (empty($options['adminpass']) or $options['adminpass'] === 'admin');
} else {
if ((empty($options['adminpass']) or $options['adminpass'] === 'admin')) {
$a = (object)['option' => 'adminpass', 'value' => $options['adminpass']];
cli_error(get_string('cliincorrectvalueerror', 'admin', $a));
}
}
do {
$options['adminuser'] = cli_input($prompt, $options['adminuser']);
} while (empty($options['adminuser']) or $options['adminuser'] === 'guest');
} else {
if (empty($options['adminuser']) or $options['adminuser'] === 'guest') {
$a = (object)array('option'=>'adminuser', 'value'=>$options['adminuser']);
// Ask for the admin email address.
if ($interactive) {
cli_separator();
cli_heading(get_string('cliadminemail', 'install'));
$prompt = get_string('clitypevaluedefault', 'admin', $options['adminemail']);
$options['adminemail'] = cli_input($prompt, $options['adminemail']);
}
// Validate that the address provided was an e-mail address.
if (!empty($options['adminemail']) && !validate_email($options['adminemail'])) {
$a = (object)['option' => 'adminemail', 'value' => $options['adminemail']];
cli_error(get_string('cliincorrectvalueerror', 'admin', $a));
}
}
// ask for admin user password
if ($interactive) {
cli_separator();
cli_heading(get_string('cliadminpassword', 'install'));
$prompt = get_string('clitypevalue', 'admin');
do {
$options['adminpass'] = cli_input($prompt);
} while (empty($options['adminpass']) or $options['adminpass'] === 'admin');
} else {
if (empty($options['adminpass']) or $options['adminpass'] === 'admin') {
$a = (object)array('option'=>'adminpass', 'value'=>$options['adminpass']);
cli_error(get_string('cliincorrectvalueerror', 'admin', $a));
}
}
// Ask for the admin email address.
if ($interactive) {
cli_separator();
cli_heading(get_string('cliadminemail', 'install'));
$prompt = get_string('clitypevaluedefault', 'admin', $options['adminemail']);
$options['adminemail'] = cli_input($prompt, $options['adminemail']);
}
// Validate that the address provided was an e-mail address.
if (!empty($options['adminemail']) && !validate_email($options['adminemail'])) {
$a = (object) array('option' => 'adminemail', 'value' => $options['adminemail']);
cli_error(get_string('cliincorrectvalueerror', 'admin', $a));
}
// Ask for the upgrade key.
if ($interactive) {
cli_separator();
@@ -745,22 +750,26 @@ if ($options['upgradekey'] !== '') {
$CFG->upgradekey = $options['upgradekey'];
}
if ($interactive) {
if (!$options['agree-license']) {
cli_separator();
cli_heading(get_string('copyrightnotice'));
echo "Moodle - Modular Object-Oriented Dynamic Learning Environment\n";
echo get_string('gpl3')."\n\n";
echo get_string('doyouagree')."\n";
$prompt = get_string('cliyesnoprompt', 'admin');
$input = cli_input($prompt, '', array(get_string('clianswerno', 'admin'), get_string('cliansweryes', 'admin')));
if ($input == get_string('clianswerno', 'admin')) {
exit(1);
// The user does not also need to pass agree-license when --skip-database is provided as the user will need to accept
// the license again in the database install part.
if (!$skipdatabase) {
if ($interactive) {
if (!$options['agree-license']) {
cli_separator();
cli_heading(get_string('copyrightnotice'));
echo "Moodle - Modular Object-Oriented Dynamic Learning Environment\n";
echo get_string('gpl3')."\n\n";
echo get_string('doyouagree')."\n";
$prompt = get_string('cliyesnoprompt', 'admin');
$input = cli_input($prompt, '', array(get_string('clianswerno', 'admin'), get_string('cliansweryes', 'admin')));
if ($input == get_string('clianswerno', 'admin')) {
exit(1);
}
}
} else {
if (!$options['agree-license'] && !$skipdatabase) {
cli_error(get_string('climustagreelicense', 'install'));
}
}
} else {
if (!$options['agree-license']) {
cli_error(get_string('climustagreelicense', 'install'));
}
}
@@ -809,7 +818,7 @@ if (!core_plugin_manager::instance()->all_plugins_ok($version, $failed)) {
cli_error(get_string('pluginschecktodo', 'admin'));
}
if (!$options['skip-database']) {
if (!$skipdatabase) {
install_cli_database($options, $interactive);
// This needs to happen at the end to ensure it occurs after all caches
// have been purged for the last time.
+10 -2
View File
@@ -34,6 +34,7 @@ $help = "Command line tool to uninstall plugins.
Options:
-h --help Print this help.
--show-all Displays a list of all installed plugins.
--show-contrib Displays a list of all third-party installed plugins.
--show-missing Displays a list of plugins missing from disk.
--purge-missing Uninstall all missing from disk plugins.
--plugins=<plugin name> A comma separated list of plugins to be uninstalled. E.g. mod_assign,mod_forum
@@ -44,6 +45,9 @@ Examples:
# php uninstall_plugins.php --show-all
Prints tab-separated list of all installed plugins.
# php uninstall_plugins.php --show-contrib
Prints tab-separated list of all third-party installed plugins.
# php uninstall_plugins.php --show-missing
Prints tab-separated list of all missing from disk plugins.
@@ -63,6 +67,7 @@ Examples:
list($options, $unrecognised) = cli_get_params([
'help' => false,
'show-all' => false,
'show-contrib' => false,
'show-missing' => false,
'purge-missing' => false,
'plugins' => false,
@@ -84,12 +89,15 @@ if ($options['help']) {
$pluginman = core_plugin_manager::instance();
$plugininfo = $pluginman->get_plugins();
if ($options['show-all'] || $options['show-missing']) {
if ($options['show-all'] || $options['show-missing'] || $options['show-contrib']) {
foreach ($plugininfo as $type => $plugins) {
foreach ($plugins as $name => $plugin) {
if ($options['show-contrib'] && $plugin->is_standard()) {
continue;
}
$pluginstring = $plugin->component . "\t" . $plugin->displayname;
if ($options['show-all']) {
if ($options['show-all'] || $options['show-contrib']) {
cli_writeln($pluginstring);
} else {
if ($plugin->get_status() === core_plugin_manager::PLUGIN_STATUS_MISSING) {
+362
View File
@@ -2982,4 +2982,366 @@
</CUSTOM_CHECK>
</CUSTOM_CHECKS>
</MOODLE>
<MOODLE version="3.9" requires="3.5">
<UNICODE level="required">
<FEEDBACK>
<ON_ERROR message="unicoderequired" />
</FEEDBACK>
</UNICODE>
<DATABASE level="required">
<VENDOR name="mariadb" version="10.2.29" />
<VENDOR name="mysql" version="5.6" />
<VENDOR name="postgres" version="9.5" />
<VENDOR name="mssql" version="11.0" />
<VENDOR name="oracle" version="11.2" />
</DATABASE>
<PHP version="7.2.0" level="required">
</PHP>
<PCREUNICODE level="optional">
<FEEDBACK>
<ON_CHECK message="pcreunicodewarning" />
</FEEDBACK>
</PCREUNICODE>
<PHP_EXTENSIONS>
<PHP_EXTENSION name="iconv" level="required">
<FEEDBACK>
<ON_ERROR message="iconvrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="mbstring" level="required">
<FEEDBACK>
<ON_ERROR message="mbstringrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="curl" level="required">
<FEEDBACK>
<ON_ERROR message="curlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="openssl" level="required">
<FEEDBACK>
<ON_ERROR message="opensslrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="tokenizer" level="optional">
<FEEDBACK>
<ON_CHECK message="tokenizerrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="xmlrpc" level="optional">
<FEEDBACK>
<ON_CHECK message="xmlrpcrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="soap" level="optional">
<FEEDBACK>
<ON_CHECK message="soaprecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="ctype" level="required">
<FEEDBACK>
<ON_ERROR message="ctyperequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="zip" level="required">
<FEEDBACK>
<ON_ERROR message="ziprequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="zlib" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="gd" level="required">
<FEEDBACK>
<ON_ERROR message="gdrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="simplexml" level="required">
<FEEDBACK>
<ON_ERROR message="simplexmlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="spl" level="required">
<FEEDBACK>
<ON_ERROR message="splrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="pcre" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="dom" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="xml" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="xmlreader" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="intl" level="required">
<FEEDBACK>
<ON_ERROR message="intlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="json" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="hash" level="required"/>
<PHP_EXTENSION name="fileinfo" level="required"/>
</PHP_EXTENSIONS>
<PHP_SETTINGS>
<PHP_SETTING name="memory_limit" value="96M" level="required">
<FEEDBACK>
<ON_ERROR message="settingmemorylimit" />
</FEEDBACK>
</PHP_SETTING>
<PHP_SETTING name="file_uploads" value="1" level="optional">
<FEEDBACK>
<ON_CHECK message="settingfileuploads" />
</FEEDBACK>
</PHP_SETTING>
<PHP_SETTING name="opcache.enable" value="1" level="optional">
<FEEDBACK>
<ON_CHECK message="opcacherecommended" />
</FEEDBACK>
</PHP_SETTING>
</PHP_SETTINGS>
<CUSTOM_CHECKS>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_database_storage_engine" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddbstorageengine" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="question/engine/upgrade/upgradelib.php" function="quiz_attempts_upgraded" level="required">
<FEEDBACK>
<ON_ERROR message="quizattemptsupgradedmessage" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_slasharguments" level="optional">
<FEEDBACK>
<ON_CHECK message="slashargumentswarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_database_tables_row_format" level="optional">
<FEEDBACK>
<ON_CHECK message="unsupporteddbtablerowformat" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_unoconv_version" level="optional">
<FEEDBACK>
<ON_CHECK message="unoconvwarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_libcurl_version" level="optional">
<FEEDBACK>
<ON_CHECK message="libcurlwarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_file_format" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddbfileformat" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_file_per_table" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddbfilepertable" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_large_prefix" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddblargeprefix" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_is_https" level="optional">
<FEEDBACK>
<ON_CHECK message="ishttpswarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_incomplete_unicode_support" level="optional">
<FEEDBACK>
<ON_CHECK message="incompleteunicodesupport" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_sixtyfour_bits" level="optional">
<FEEDBACK>
<ON_CHECK message="sixtyfourbitswarning" />
</FEEDBACK>
</CUSTOM_CHECK>
</CUSTOM_CHECKS>
</MOODLE>
<MOODLE version="3.10" requires="3.5">
<UNICODE level="required">
<FEEDBACK>
<ON_ERROR message="unicoderequired" />
</FEEDBACK>
</UNICODE>
<DATABASE level="required">
<VENDOR name="mariadb" version="10.2.29" />
<VENDOR name="mysql" version="5.7" />
<VENDOR name="postgres" version="9.6" />
<VENDOR name="mssql" version="11.0" />
<VENDOR name="oracle" version="11.2" />
</DATABASE>
<PHP version="7.2.0" level="required">
</PHP>
<PCREUNICODE level="optional">
<FEEDBACK>
<ON_CHECK message="pcreunicodewarning" />
</FEEDBACK>
</PCREUNICODE>
<PHP_EXTENSIONS>
<PHP_EXTENSION name="iconv" level="required">
<FEEDBACK>
<ON_ERROR message="iconvrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="mbstring" level="required">
<FEEDBACK>
<ON_ERROR message="mbstringrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="curl" level="required">
<FEEDBACK>
<ON_ERROR message="curlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="openssl" level="required">
<FEEDBACK>
<ON_ERROR message="opensslrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="tokenizer" level="optional">
<FEEDBACK>
<ON_CHECK message="tokenizerrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="xmlrpc" level="optional">
<FEEDBACK>
<ON_CHECK message="xmlrpcrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="soap" level="optional">
<FEEDBACK>
<ON_CHECK message="soaprecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="ctype" level="required">
<FEEDBACK>
<ON_ERROR message="ctyperequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="zip" level="required">
<FEEDBACK>
<ON_ERROR message="ziprequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="zlib" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="gd" level="required">
<FEEDBACK>
<ON_ERROR message="gdrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="simplexml" level="required">
<FEEDBACK>
<ON_ERROR message="simplexmlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="spl" level="required">
<FEEDBACK>
<ON_ERROR message="splrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="pcre" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="dom" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="xml" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="xmlreader" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="intl" level="required">
<FEEDBACK>
<ON_ERROR message="intlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="json" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="hash" level="required"/>
<PHP_EXTENSION name="fileinfo" level="required"/>
</PHP_EXTENSIONS>
<PHP_SETTINGS>
<PHP_SETTING name="memory_limit" value="96M" level="required">
<FEEDBACK>
<ON_ERROR message="settingmemorylimit" />
</FEEDBACK>
</PHP_SETTING>
<PHP_SETTING name="file_uploads" value="1" level="optional">
<FEEDBACK>
<ON_CHECK message="settingfileuploads" />
</FEEDBACK>
</PHP_SETTING>
<PHP_SETTING name="opcache.enable" value="1" level="optional">
<FEEDBACK>
<ON_CHECK message="opcacherecommended" />
</FEEDBACK>
</PHP_SETTING>
</PHP_SETTINGS>
<CUSTOM_CHECKS>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_database_storage_engine" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddbstorageengine" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="question/engine/upgrade/upgradelib.php" function="quiz_attempts_upgraded" level="required">
<FEEDBACK>
<ON_ERROR message="quizattemptsupgradedmessage" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_slasharguments" level="optional">
<FEEDBACK>
<ON_CHECK message="slashargumentswarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_database_tables_row_format" level="optional">
<FEEDBACK>
<ON_CHECK message="unsupporteddbtablerowformat" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_unoconv_version" level="optional">
<FEEDBACK>
<ON_CHECK message="unoconvwarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_libcurl_version" level="optional">
<FEEDBACK>
<ON_CHECK message="libcurlwarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_file_format" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddbfileformat" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_file_per_table" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddbfilepertable" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_large_prefix" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddblargeprefix" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_is_https" level="optional">
<FEEDBACK>
<ON_CHECK message="ishttpswarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_incomplete_unicode_support" level="optional">
<FEEDBACK>
<ON_CHECK message="incompleteunicodesupport" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_sixtyfour_bits" level="optional">
<FEEDBACK>
<ON_CHECK message="sixtyfourbitswarning" />
</FEEDBACK>
</CUSTOM_CHECK>
</CUSTOM_CHECKS>
</MOODLE>
</COMPATIBILITY_MATRIX>
+29 -10
View File
@@ -226,7 +226,7 @@ if (!core_tables_exist()) {
}
if (empty($confirmrelease)) {
require_once($CFG->libdir.'/environmentlib.php');
list($envstatus, $environment_results) = check_moodle_environment(normalize_version($release), ENV_SELECT_RELEASE);
list($envstatus, $environmentresults) = check_moodle_environment(normalize_version($release), ENV_SELECT_RELEASE);
$strcurrentrelease = get_string('currentrelease');
$PAGE->navbar->add($strcurrentrelease);
@@ -235,7 +235,7 @@ if (!core_tables_exist()) {
$PAGE->set_cacheable(false);
$output = $PAGE->get_renderer('core', 'admin');
echo $output->install_environment_page($maturity, $envstatus, $environment_results, $release);
echo $output->install_environment_page($maturity, $envstatus, $environmentresults, $release);
die();
}
@@ -358,9 +358,9 @@ if (!$cache and $version > $CFG->version) { // upgrade
echo $output->upgrade_confirm_page($a->newversion, $maturity, $testsite);
die();
} else if (empty($confirmrelease)){
} else if (empty($confirmrelease)) {
require_once($CFG->libdir.'/environmentlib.php');
list($envstatus, $environment_results) = check_moodle_environment($release, ENV_SELECT_RELEASE);
list($envstatus, $environmentresults) = check_moodle_environment($release, ENV_SELECT_RELEASE);
$strcurrentrelease = get_string('currentrelease');
$PAGE->navbar->add($strcurrentrelease);
@@ -368,7 +368,7 @@ if (!$cache and $version > $CFG->version) { // upgrade
$PAGE->set_heading($strcurrentrelease);
$PAGE->set_cacheable(false);
echo $output->upgrade_environment_page($release, $envstatus, $environment_results);
echo $output->upgrade_environment_page($release, $envstatus, $environmentresults);
die();
} else if (empty($confirmplugins)) {
@@ -509,7 +509,8 @@ if (!$cache and $version > $CFG->version) { // upgrade
// Always verify plugin dependencies!
$failed = array();
if (!core_plugin_manager::instance()->all_plugins_ok($version, $failed)) {
echo $output->unsatisfied_dependencies_page($version, $failed, $PAGE->url);
echo $output->unsatisfied_dependencies_page($version, $failed, new moodle_url($PAGE->url,
array('confirmplugincheck' => 0)));
die();
}
unset($failed);
@@ -533,7 +534,10 @@ if (!$cache and $branch <> $CFG->branch) { // Update the branch
if (!$cache and moodle_needs_upgrading()) {
$PAGE->set_url(new moodle_url($PAGE->url, array('confirmplugincheck' => $confirmplugins)));
$PAGE->set_url(new moodle_url($PAGE->url, array(
'confirmrelease' => $confirmrelease,
'confirmplugincheck' => $confirmplugins,
)));
check_upgrade_key($upgradekeyhash);
@@ -543,7 +547,21 @@ if (!$cache and moodle_needs_upgrading()) {
$pluginman = core_plugin_manager::instance();
$output = $PAGE->get_renderer('core', 'admin');
if (!$confirmplugins) {
if (empty($confirmrelease)) {
require_once($CFG->libdir . '/environmentlib.php');
list($envstatus, $environmentresults) = check_moodle_environment($release, ENV_SELECT_RELEASE);
$strcurrentrelease = get_string('currentrelease');
$PAGE->navbar->add($strcurrentrelease);
$PAGE->set_title($strcurrentrelease);
$PAGE->set_heading($strcurrentrelease);
$PAGE->set_cacheable(false);
echo $output->upgrade_environment_page($release, $envstatus, $environmentresults);
die();
} else if (!$confirmplugins) {
$strplugincheck = get_string('plugincheck');
$PAGE->navbar->add($strplugincheck);
@@ -684,7 +702,8 @@ if (!$cache and moodle_needs_upgrading()) {
$failed = array();
if (!$pluginman->all_plugins_ok($version, $failed)) {
$output = $PAGE->get_renderer('core', 'admin');
echo $output->unsatisfied_dependencies_page($version, $failed, $PAGE->url);
echo $output->unsatisfied_dependencies_page($version, $failed, new moodle_url($PAGE->url,
array('confirmplugincheck' => 0)));
die();
}
unset($failed);
@@ -802,7 +821,7 @@ $SESSION->admin_critical_warning = ($insecuredataroot==INSECURE_DATAROOT_ERROR);
$adminroot = admin_get_root();
// Check if there are any new admin settings which have still yet to be set
if (any_new_admin_settings($adminroot)){
if (any_new_admin_settings($adminroot)) {
redirect('upgradesettings.php');
}
+31 -11
View File
@@ -33,13 +33,17 @@ $allprocessors = get_message_processors();
$processors = array_filter($allprocessors, function($processor) {
return $processor->enabled;
});
$disabledprocessors = array_filter($allprocessors, function($processor) {
return !$processor->enabled;
});
// Fetch message providers.
$providers = get_message_providers();
// Fetch the manage message outputs interface.
$preferences = get_message_output_default_preferences();
if (($form = data_submitted()) && confirm_sesskey()) {
$preferences = array();
$newpreferences = array();
// Prepare default message outputs settings.
foreach ($providers as $provider) {
$componentproviderbase = $provider->component.'_'.$provider->name;
@@ -47,9 +51,9 @@ if (($form = data_submitted()) && confirm_sesskey()) {
$providerdisabled = false;
if (!isset($form->$disableprovidersetting)) {
$providerdisabled = true;
$preferences[$disableprovidersetting] = 1;
$newpreferences[$disableprovidersetting] = 1;
} else {
$preferences[$disableprovidersetting] = 0;
$newpreferences[$disableprovidersetting] = 0;
}
foreach (array('permitted', 'loggedin', 'loggedoff') as $setting) {
@@ -75,20 +79,36 @@ if (($form = data_submitted()) && confirm_sesskey()) {
$form->{$componentproviderbase.'_loggedoff'}[$processor->name] = 1;
}
// Record the site preference.
$preferences[$processor->name.'_provider_'.$componentprovidersetting] = $value;
$newpreferences[$processor->name.'_provider_'.$componentprovidersetting] = $value;
}
} else if (property_exists($form, $componentprovidersetting)) {
// We must be processing loggedin or loggedoff checkboxes. Store
// defained comma-separated processors as setting value.
// Using array_filter eliminates elements set to 0 above.
$value = join(',', array_keys(array_filter($form->{$componentprovidersetting})));
} else {
$newsettings = array();
if (property_exists($form, $componentprovidersetting)) {
// We must be processing loggedin or loggedoff checkboxes.
// Store defained comma-separated processors as setting value.
// Using array_filter eliminates elements set to 0 above.
$newsettings = array_keys(array_filter($form->{$componentprovidersetting}));
}
// Let's join existing setting values for disabled processors.
$property = 'message_provider_'.$componentprovidersetting;
if (property_exists($preferences, $property)) {
$existingsetting = $preferences->$property;
foreach ($disabledprocessors as $disable) {
if (strpos($existingsetting, $disable->name) > -1) {
$newsettings[] = $disable->name;
}
}
}
$value = join(',', $newsettings);
if (empty($value)) {
$value = null;
}
}
if ($setting != 'permitted') {
// We have already recoded site preferences for 'permitted' type.
$preferences['message_provider_'.$componentprovidersetting] = $value;
$newpreferences['message_provider_'.$componentprovidersetting] = $value;
}
}
}
@@ -102,7 +122,7 @@ if (($form = data_submitted()) && confirm_sesskey()) {
\core_message\api::update_processor_status($processor, $enabled);
}
foreach ($preferences as $name => $value) {
foreach ($newpreferences as $name => $value) {
set_config($name, $value, 'message');
}
$transaction->allow_commit();
+4 -2
View File
@@ -49,6 +49,7 @@
array($module->id));
core_plugin_manager::reset_caches();
admin_get_root(true, false); // settings not required - only pages
redirect(new moodle_url('/admin/modules.php'));
}
if (!empty($show) and confirm_sesskey()) {
@@ -66,6 +67,7 @@
array($module->id));
core_plugin_manager::reset_caches();
admin_get_root(true, false); // settings not required - only pages
redirect(new moodle_url('/admin/modules.php'));
}
echo $OUTPUT->header();
@@ -121,8 +123,8 @@
$count = -1;
}
if ($count>0) {
$countlink = "<a href=\"{$CFG->wwwroot}/course/search.php?modulelist=$module->name" .
"&amp;sesskey=".sesskey()."\" title=\"$strshowmodulecourse\">$count</a>";
$countlink = $OUTPUT->action_link(new moodle_url('/course/search.php', ['modulelist' => $module->name]),
$count, null, ['title' => $strshowmodulecourse]);
} else if ($count < 0) {
$countlink = get_string('error');
} else {
+1 -1
View File
@@ -53,7 +53,6 @@ $pageurl = new moodle_url('/admin/plugins.php', $pageparams);
$pluginman = core_plugin_manager::instance();
if ($uninstall) {
require_sesskey();
if (!$confirmed) {
admin_externalpage_setup('pluginsoverview', '', $pageparams);
@@ -92,6 +91,7 @@ if ($uninstall) {
exit();
} else {
require_sesskey();
$SESSION->pluginuninstallreturn = $pluginfo->get_return_url_after_uninstall($return);
$progress = new progress_trace_buffer(new text_progress_trace(), false);
$pluginman->uninstall_plugin($pluginfo->component, $progress);
+1 -1
View File
@@ -45,7 +45,7 @@ $error = optional_param('error', '', PARAM_ALPHANUM);
admin_externalpage_setup('registrationmoodleorg');
if ($url !== HUB_MOODLEORGHUBURL) {
if (parse_url($url, PHP_URL_HOST) !== parse_url(HUB_MOODLEORGHUBURL, PHP_URL_HOST)) {
// Allow other plugins to confirm registration on custom hubs. Plugins implementing this
// callback need to redirect or exit. See https://docs.moodle.org/en/Hub_registration .
$callbacks = get_plugins_with_function('hub_registration');
+1 -1
View File
@@ -39,7 +39,7 @@ $token = optional_param('token', '', PARAM_TEXT);
admin_externalpage_setup('registrationmoodleorg');
if ($url !== HUB_MOODLEORGHUBURL) {
if (parse_url($url, PHP_URL_HOST) !== parse_url(HUB_MOODLEORGHUBURL, PHP_URL_HOST)) {
// Allow other plugins to renew registration on custom hubs. Plugins implementing this
// callback need to redirect or exit. See https://docs.moodle.org/en/Hub_registration .
$callbacks = get_plugins_with_function('hub_registration');
+53 -44
View File
@@ -361,14 +361,15 @@ class core_admin_renderer extends plugin_renderer_base {
$output = '';
if ($checker->enabled()) {
$output .= $this->container_start('checkforupdates');
$output .= $this->container_start('checkforupdates mb-4');
$output .= $this->single_button(
new moodle_url($reloadurl, array('fetchupdates' => 1)),
get_string('checkforupdates', 'core_plugin')
);
if ($timefetched = $checker->get_last_timefetched()) {
$timefetched = userdate($timefetched, get_string('strftimedatetime', 'core_langconfig'));
$output .= $this->container(get_string('checkforupdateslast', 'core_plugin', $timefetched), 'lasttimefetched');
$output .= $this->container(get_string('checkforupdateslast', 'core_plugin', $timefetched),
'lasttimefetched small text-muted mt-1');
}
$output .= $this->container_end();
}
@@ -823,7 +824,7 @@ class core_admin_renderer extends plugin_renderer_base {
}
}
$updateinfo .= $this->container_start('checkforupdates');
$updateinfo .= $this->container_start('checkforupdates mt-1');
$fetchurl = new moodle_url('/admin/index.php', array('fetchupdates' => 1, 'sesskey' => sesskey(), 'cache' => 0));
$updateinfo .= $this->single_button($fetchurl, get_string('checkforupdates', 'core_plugin'));
if ($fetch) {
@@ -912,7 +913,7 @@ class core_admin_renderer extends plugin_renderer_base {
*/
protected function moodle_available_update_info(\core\update\info $updateinfo) {
$boxclasses = 'moodleupdateinfo';
$boxclasses = 'moodleupdateinfo mb-2';
$info = array();
if (isset($updateinfo->release)) {
@@ -932,7 +933,8 @@ class core_admin_renderer extends plugin_renderer_base {
}
if (isset($updateinfo->download)) {
$info[] = html_writer::link($updateinfo->download, get_string('download'), array('class' => 'info download'));
$info[] = html_writer::link($updateinfo->download, get_string('download'),
array('class' => 'info download btn btn-secondary'));
}
if (isset($updateinfo->url)) {
@@ -940,9 +942,9 @@ class core_admin_renderer extends plugin_renderer_base {
array('class' => 'info more'));
}
$box = $this->output->box_start($boxclasses);
$box .= $this->output->box(implode(html_writer::tag('span', ' ', array('class' => 'separator')), $info), '');
$box .= $this->output->box_end();
$box = $this->output->container_start($boxclasses);
$box .= $this->output->container(implode(html_writer::tag('span', ' | ', array('class' => 'separator')), $info), '');
$box .= $this->output->container_end();
return $box;
}
@@ -1054,7 +1056,7 @@ class core_admin_renderer extends plugin_renderer_base {
$displayname = new html_table_cell(
$icon.
html_writer::span($plugin->displayname, 'pluginname').
html_writer::div($plugin->get_dir(), 'plugindir')
html_writer::div($plugin->get_dir(), 'plugindir text-muted small')
);
$versiondb = new html_table_cell($plugin->versiondb);
@@ -1089,17 +1091,17 @@ class core_admin_renderer extends plugin_renderer_base {
break;
case core_plugin_manager::PLUGIN_STATUS_NODB:
case core_plugin_manager::PLUGIN_STATUS_UPTODATE:
$statusclass .= $dependenciesok ? '' : 'badge-warning';
$statusclass .= $dependenciesok ? 'badge-light' : 'badge-warning';
break;
}
$status = html_writer::span(get_string('status_' . $statuscode, 'core_plugin'), $statusclass);
if (!empty($installabortable[$plugin->component])) {
$status .= $this->output->single_button(
new moodle_url($this->page->url, array('abortinstall' => $plugin->component)),
new moodle_url($this->page->url, array('abortinstall' => $plugin->component, 'confirmplugincheck' => 0)),
get_string('cancelinstallone', 'core_plugin'),
'post',
array('class' => 'actionbutton cancelinstallone')
array('class' => 'actionbutton cancelinstallone d-block mt-1')
);
}
@@ -1108,7 +1110,7 @@ class core_admin_renderer extends plugin_renderer_base {
new moodle_url($this->page->url, array('abortupgrade' => $plugin->component)),
get_string('cancelupgradeone', 'core_plugin'),
'post',
array('class' => 'actionbutton cancelupgradeone')
array('class' => 'actionbutton cancelupgradeone d-block mt-1')
);
}
@@ -1178,7 +1180,7 @@ class core_admin_renderer extends plugin_renderer_base {
}
}
$out .= $this->output->container_start('actions');
$out .= $this->output->container_start('actions mb-2');
$installableupdates = $pluginman->filter_installable($pluginman->available_updates());
if ($installableupdates) {
@@ -1186,16 +1188,16 @@ class core_admin_renderer extends plugin_renderer_base {
new moodle_url($this->page->url, array('installupdatex' => 1)),
get_string('updateavailableinstallall', 'core_admin', count($installableupdates)),
'post',
array('class' => 'singlebutton updateavailableinstallall')
array('class' => 'singlebutton updateavailableinstallall mr-1')
);
}
if ($installabortable) {
$out .= $this->output->single_button(
new moodle_url($this->page->url, array('abortinstallx' => 1)),
new moodle_url($this->page->url, array('abortinstallx' => 1, 'confirmplugincheck' => 0)),
get_string('cancelinstallall', 'core_plugin', count($installabortable)),
'post',
array('class' => 'singlebutton cancelinstallall')
array('class' => 'singlebutton cancelinstallall mr-1')
);
}
@@ -1204,15 +1206,17 @@ class core_admin_renderer extends plugin_renderer_base {
new moodle_url($this->page->url, array('abortupgradex' => 1)),
get_string('cancelupgradeall', 'core_plugin', count($upgradeabortable)),
'post',
array('class' => 'singlebutton cancelupgradeall')
array('class' => 'singlebutton cancelupgradeall mr-1')
);
}
$out .= html_writer::div(html_writer::link(new moodle_url($this->page->url, array('showallplugins' => 0)),
get_string('plugincheckattention', 'core_plugin')).' '.html_writer::span($sumattention, 'badge'));
get_string('plugincheckattention', 'core_plugin')).' '.html_writer::span($sumattention, 'badge badge-light'),
'btn btn-link mr-1');
$out .= html_writer::div(html_writer::link(new moodle_url($this->page->url, array('showallplugins' => 1)),
get_string('plugincheckall', 'core_plugin')).' '.html_writer::span($sumtotal, 'badge'));
get_string('plugincheckall', 'core_plugin')).' '.html_writer::span($sumtotal, 'badge badge-light'),
'btn btn-link mr-1');
$out .= $this->output->container_end(); // End of .actions container.
$out .= $this->output->container_end(); // End of #plugins-check-info container.
@@ -1280,12 +1284,13 @@ class core_admin_renderer extends plugin_renderer_base {
}
}
$out = $this->output->container_start('plugins-check-dependencies');
$out = $this->output->container_start('plugins-check-dependencies mb-4');
if ($unavailable or $unknown) {
$out .= $this->output->heading(get_string('misdepsunavail', 'core_plugin'));
if ($unknown) {
$out .= $this->output->notification(get_string('misdepsunknownlist', 'core_plugin', implode($unknown, ', ')));
$out .= $this->output->render((new \core\output\notification(get_string('misdepsunknownlist', 'core_plugin',
implode(', ', $unknown))))->set_show_closebutton(false));
}
if ($unavailable) {
$unavailablelist = array();
@@ -1299,18 +1304,18 @@ class core_admin_renderer extends plugin_renderer_base {
}
$unavailablelist[] = $unavailablelistitem;
}
$out .= $this->output->notification(get_string('misdepsunavaillist', 'core_plugin',
implode($unavailablelist, ', ')));
$out .= $this->output->render((new \core\output\notification(get_string('misdepsunavaillist', 'core_plugin',
implode(', ', $unavailablelist))))->set_show_closebutton(false));
}
$out .= $this->output->container_start('plugins-check-dependencies-actions');
$out .= $this->output->container_start('plugins-check-dependencies-actions mb-4');
$out .= ' '.html_writer::link(new moodle_url('/admin/tool/installaddon/'),
get_string('dependencyuploadmissing', 'core_plugin'));
get_string('dependencyuploadmissing', 'core_plugin'), array('class' => 'btn btn-secondary'));
$out .= $this->output->container_end(); // End of .plugins-check-dependencies-actions container.
}
if ($available) {
$out .= $this->output->heading(get_string('misdepsavail', 'core_plugin'));
$out .= $this->output->container_start('plugins-check-dependencies-actions');
$out .= $this->output->container_start('plugins-check-dependencies-actions mb-2');
$installable = $pluginman->filter_installable($available);
if ($installable) {
@@ -1318,12 +1323,13 @@ class core_admin_renderer extends plugin_renderer_base {
new moodle_url($this->page->url, array('installdepx' => 1)),
get_string('dependencyinstallmissing', 'core_plugin', count($installable)),
'post',
array('class' => 'singlebutton dependencyinstallmissing')
array('class' => 'singlebutton dependencyinstallmissing d-inline-block mr-1')
);
}
$out .= html_writer::div(html_writer::link(new moodle_url('/admin/tool/installaddon/'),
get_string('dependencyuploadmissing', 'core_plugin')), 'dependencyuploadmissing');
get_string('dependencyuploadmissing', 'core_plugin'), array('class' => 'btn btn-link')),
'dependencyuploadmissing d-inline-block mr-1');
$out .= $this->output->container_end(); // End of .plugins-check-dependencies-actions container.
@@ -1364,7 +1370,7 @@ class core_admin_renderer extends plugin_renderer_base {
if ($CFG->branch == str_replace('.', '', $moodle->release)) {
$supportedmoodles[] = html_writer::span($moodle->release, 'badge badge-success');
} else {
$supportedmoodles[] = html_writer::span($moodle->release, 'label');
$supportedmoodles[] = html_writer::span($moodle->release, 'badge badge-light');
}
}
@@ -1378,7 +1384,7 @@ class core_admin_renderer extends plugin_renderer_base {
}
$info = html_writer::div(
get_string('requiredby', 'core_plugin', implode(', ', $requriedby)),
'requiredby'
'requiredby mb-1'
);
} else {
$info = '';
@@ -1389,38 +1395,39 @@ class core_admin_renderer extends plugin_renderer_base {
$info .= html_writer::div(
html_writer::link('https://moodle.org/plugins/view.php?plugin='.$plugin->component,
get_string('misdepinfoplugin', 'core_plugin')),
'misdepinfoplugin'
'misdepinfoplugin d-inline-block mr-3 mb-1'
);
$info .= html_writer::div(
html_writer::link('https://moodle.org/plugins/pluginversion.php?id='.$plugin->version->id,
get_string('misdepinfoversion', 'core_plugin')),
'misdepinfoversion'
'misdepinfoversion d-inline-block mr-3 mb-1'
);
$info .= html_writer::div(html_writer::link($plugin->version->downloadurl, get_string('download')), 'misdepdownload');
$info .= html_writer::div(html_writer::link($plugin->version->downloadurl, get_string('download')),
'misdepdownload d-inline-block mr-3 mb-1');
if ($pluginman->is_remote_plugin_installable($plugin->component, $plugin->version->version, $reason)) {
$info .= $this->output->single_button(
new moodle_url($this->page->url, array('installdep' => $plugin->component)),
get_string('dependencyinstall', 'core_plugin'),
'post',
array('class' => 'singlebutton dependencyinstall')
array('class' => 'singlebutton dependencyinstall mr-3 mb-1')
);
} else {
$reasonhelp = $this->info_remote_plugin_not_installable($reason);
if ($reasonhelp) {
$info .= html_writer::div($reasonhelp, 'reasonhelp dependencyinstall');
$info .= html_writer::div($reasonhelp, 'reasonhelp dependencyinstall d-inline-block mr-3 mb-1');
}
}
$info .= $this->output->container_end(); // End of .actions container.
$table->data[] = array(
html_writer::div($plugin->name, 'name').' '.html_writer::div($plugin->component, 'component'),
html_writer::div($plugin->name, 'name').' '.html_writer::div($plugin->component, 'component text-muted small'),
$plugin->version->release,
$plugin->version->version,
implode($supportedmoodles, ' '),
implode(' ', $supportedmoodles),
$info
);
}
@@ -1463,7 +1470,7 @@ class core_admin_renderer extends plugin_renderer_base {
foreach ($pluginman->resolve_requirements($plugin, $version) as $reqname => $reqinfo) {
if ($reqname === 'core') {
if ($reqinfo->status == $pluginman::REQUIREMENT_STATUS_OK) {
$class = 'requires-ok';
$class = 'requires-ok text-muted';
$label = '';
} else {
$class = 'requires-failed';
@@ -1480,7 +1487,7 @@ class core_admin_renderer extends plugin_renderer_base {
if ($reqinfo->status == $pluginman::REQUIREMENT_STATUS_OK) {
$label = '';
$class = 'requires-ok';
$class = 'requires-ok text-muted';
} else if ($reqinfo->status == $pluginman::REQUIREMENT_STATUS_MISSING) {
if ($reqinfo->availability == $pluginman::REQUIREMENT_AVAILABLE) {
@@ -1534,13 +1541,14 @@ class core_admin_renderer extends plugin_renderer_base {
return '';
}
$out = html_writer::tag('ul', implode("\n", $requires));
$out = html_writer::tag('ul', implode("\n", $requires), array('class' => 'm-0'));
if ($displayuploadlink) {
$out .= html_writer::div(
html_writer::link(
new moodle_url('/admin/tool/installaddon/'),
get_string('dependencyuploadmissing', 'core_plugin')
get_string('dependencyuploadmissing', 'core_plugin'),
array('class' => 'btn btn-secondary btn-sm m-1')
),
'dependencyuploadmissing'
);
@@ -1550,7 +1558,8 @@ class core_admin_renderer extends plugin_renderer_base {
$out .= html_writer::div(
html_writer::link(
new moodle_url($this->page->url, array('sesskey' => sesskey(), 'fetchupdates' => 1)),
get_string('checkforupdates', 'core_plugin')
get_string('checkforupdates', 'core_plugin'),
array('class' => 'btn btn-secondary btn-sm m-1')
),
'checkforupdates'
);
@@ -2011,7 +2020,7 @@ class core_admin_renderer extends plugin_renderer_base {
if (empty($CFG->docroot) or $environment_result->plugin) {
$report = get_string($stringtouse, 'admin', $rec);
} else {
$report = $this->doc_link(join($linkparts, '/'), get_string($stringtouse, 'admin', $rec), true);
$report = $this->doc_link(join('/', $linkparts), get_string($stringtouse, 'admin', $rec), true);
}
// Enclose report text in div so feedback text will be displayed underneath it.
$report = html_writer::div($report);
@@ -157,19 +157,19 @@ class core_role_define_role_table_advanced extends core_role_capability_table_wi
// Allowed roles.
$allow = optional_param_array('allowassign', null, PARAM_INT);
if (!is_null($allow)) {
$this->allowassign = $allow;
$this->allowassign = array_filter($allow);
}
$allow = optional_param_array('allowoverride', null, PARAM_INT);
if (!is_null($allow)) {
$this->allowoverride = $allow;
$this->allowoverride = array_filter($allow);
}
$allow = optional_param_array('allowswitch', null, PARAM_INT);
if (!is_null($allow)) {
$this->allowswitch = $allow;
$this->allowswitch = array_filter($allow);
}
$allow = optional_param_array('allowview', null, PARAM_INT);
if (!is_null($allow)) {
$this->allowview = $allow;
$this->allowview = array_filter($allow);
}
// Now read the permissions for each capability.
@@ -618,7 +618,9 @@ class core_role_define_role_table_advanced extends core_role_capability_table_wi
if ($this->roleid == 0) {
$options[-1] = get_string('thisnewrole', 'core_role');
}
return html_writer::select($options, 'allow'.$type.'[]', $selected, false, array('multiple' => 'multiple',
return
html_writer::empty_tag('input', array('type' => 'hidden', 'name' => 'allow'.$type.'[]', 'value' => "")) .
html_writer::select($options, 'allow'.$type.'[]', $selected, false, array('multiple' => 'multiple',
'size' => 10, 'class' => 'form-control'));
}
+3 -8
View File
@@ -131,15 +131,10 @@ if ($hassiteconfig && \core_analytics\manager::is_analytics_enabled()) {
$timesplittingdefaults, $timesplittingoptions)
);
// Predictions processor output dir.
$defaultmodeloutputdir = rtrim($CFG->dataroot, '/') . DIRECTORY_SEPARATOR . 'models';
if (empty(get_config('analytics', 'modeloutputdir')) && !file_exists($defaultmodeloutputdir) &&
is_writable($defaultmodeloutputdir)) {
// Automatically create the dir for them so users don't see the invalid value red cross.
mkdir($defaultmodeloutputdir, $CFG->directorypermissions, true);
}
// Predictions processor output dir - specify default in setting description (used if left blank).
$defaultmodeloutputdir = \core_analytics\model::default_output_dir();
$settings->add(new admin_setting_configdirectory('analytics/modeloutputdir', new lang_string('modeloutputdir', 'analytics'),
new lang_string('modeloutputdirinfo', 'analytics'), $defaultmodeloutputdir));
new lang_string('modeloutputdirwithdefaultinfo', 'analytics', $defaultmodeloutputdir), ''));
// Disable web interface evaluation and get predictions.
$settings->add(new admin_setting_configcheckbox('analytics/onlycli', new lang_string('onlycli', 'analytics'),
-7
View File
@@ -105,13 +105,6 @@ if (($hassiteconfig || has_any_capability(array(
new lang_string('sitebackpack_help', 'badges'),
1, $choices));
$warning = badges_verify_site_backpack();
if (!empty($warning)) {
$backpacksettings->add(new admin_setting_description('badges_site_backpack_verify',
new lang_string('sitebackpackverify', 'badges'),
$warning));
}
$ADMIN->add('badges', $backpacksettings);
$ADMIN->add('badges',
+50 -14
View File
@@ -1,21 +1,57 @@
<?php
// This file is part of Moodle - https://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
/**
* Define administration settings on the Location settings page.
*
* @package core
* @category admin
* @copyright 2006 Martin Dougiamas <martin@moodle.com>
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
// "locations" settingpage
$temp = new admin_settingpage('locationsettings', new lang_string('locationsettings', 'admin'));
$temp->add(new admin_setting_servertimezone());
$temp->add(new admin_setting_forcetimezone());
$temp->add(new admin_settings_country_select('country', new lang_string('country', 'admin'), new lang_string('configcountry', 'admin'), 0));
$temp->add(new admin_setting_configtext('defaultcity', new lang_string('defaultcity', 'admin'), new lang_string('defaultcity_help', 'admin'), ''));
defined('MOODLE_INTERNAL') || die();
$temp->add(new admin_setting_heading('iplookup', new lang_string('iplookup', 'admin'), new lang_string('iplookupinfo', 'admin')));
$temp->add(new admin_setting_configfile('geoip2file', new lang_string('geoipfile', 'admin'),
new lang_string('configgeoipfile', 'admin', $CFG->dataroot.'/geoip/'), $CFG->dataroot.'/geoip/GeoLite2-City.mmdb'));
$temp->add(new admin_setting_configtext('googlemapkey3', new lang_string('googlemapkey3', 'admin'), new lang_string('googlemapkey3_help', 'admin'), '', PARAM_RAW, 60));
if ($hassiteconfig) {
$temp = new admin_settingpage('locationsettings', new lang_string('locationsettings', 'core_admin'));
$temp->add(new admin_setting_configtext('allcountrycodes', new lang_string('allcountrycodes', 'admin'), new lang_string('configallcountrycodes', 'admin'), '', '/^(?:\w+(?:,\w+)*)?$/'));
if ($ADMIN->fulltree) {
$temp->add(new admin_setting_servertimezone());
$temp->add(new admin_setting_forcetimezone());
$temp->add(new admin_settings_country_select('country', new lang_string('country', 'core_admin'),
new lang_string('configcountry', 'core_admin'), 0));
$temp->add(new admin_setting_configtext('defaultcity', new lang_string('defaultcity', 'core_admin'),
new lang_string('defaultcity_help', 'core_admin'), ''));
$temp->add(new admin_setting_heading('iplookup', new lang_string('iplookup', 'core_admin'),
new lang_string('iplookupinfo', 'core_admin')));
$temp->add(new admin_setting_configfile('geoip2file', new lang_string('geoipfile', 'core_admin'),
new lang_string('configgeoipfile', 'core_admin', $CFG->dataroot . '/geoip/'),
$CFG->dataroot . '/geoip/GeoLite2-City.mmdb'));
$temp->add(new admin_setting_configtext('googlemapkey3', new lang_string('googlemapkey3', 'core_admin'),
new lang_string('googlemapkey3_help', 'core_admin'), '', PARAM_RAW, 60));
$temp->add(new admin_setting_countrycodes('allcountrycodes', new lang_string('allcountrycodes', 'core_admin'),
new lang_string('configallcountrycodes', 'core_admin')));
}
$ADMIN->add('location', $temp);
} // end of speedup
}
+4 -1
View File
@@ -97,7 +97,10 @@ $options = array(
GETREMOTEADDR_SKIP_HTTP_CLIENT_IP => 'HTTP_X_FORWARDED_FOR, REMOTE_ADDR',
GETREMOTEADDR_SKIP_HTTP_X_FORWARDED_FOR => 'HTTP_CLIENT, REMOTE_ADDR',
GETREMOTEADDR_SKIP_HTTP_X_FORWARDED_FOR|GETREMOTEADDR_SKIP_HTTP_CLIENT_IP => 'REMOTE_ADDR');
$temp->add(new admin_setting_configselect('getremoteaddrconf', new lang_string('getremoteaddrconf', 'admin'), new lang_string('configgetremoteaddrconf', 'admin'), 0, $options));
$temp->add(new admin_setting_configselect('getremoteaddrconf', new lang_string('getremoteaddrconf', 'admin'),
new lang_string('configgetremoteaddrconf', 'admin'),
GETREMOTEADDR_SKIP_DEFAULT, $options));
$temp->add(new admin_setting_configtext('reverseproxyignore', new lang_string('reverseproxyignore', 'admin'), new lang_string('configreverseproxyignore', 'admin'), ''));
$temp->add(new admin_setting_heading('webproxy', new lang_string('webproxy', 'admin'), new lang_string('webproxyinfo', 'admin')));
$temp->add(new admin_setting_configtext('proxyhost', new lang_string('proxyhost', 'admin'), new lang_string('configproxyhost', 'admin'), '', PARAM_HOST));
+18
View File
@@ -260,10 +260,28 @@ if ($hassiteconfig) {
$temp->add($setting);
// See {@link https://gdpr-info.eu/art-8-gdpr/}.
// See {@link https://www.betterinternetforkids.eu/web/portal/practice/awareness/detail?articleId=3017751}.
$ageofdigitalconsentmap = implode(PHP_EOL, [
'*, 16',
'AT, 14',
'BE, 13',
'BG, 14',
'CY, 14',
'CZ, 15',
'DK, 13',
'EE, 13',
'ES, 14',
'FI, 13',
'FR, 15',
'GB, 13',
'GR, 15',
'IT, 14',
'LT, 14',
'LV, 13',
'MT, 13',
'NO, 13',
'PT, 13',
'SE, 13',
'US, 13'
]);
$setting = new admin_setting_agedigitalconsentmap('agedigitalconsentmap',
+3 -1
View File
@@ -46,6 +46,8 @@ $logid = optional_param('logid', null, PARAM_INT);
$download = optional_param('download', false, PARAM_BOOL);
if (null !== $logid) {
// Raise memory limit in case the log is large.
raise_memory_limit(MEMORY_HUGE);
$log = $DB->get_record('task_log', ['id' => $logid], '*', MUST_EXIST);
if ($download) {
@@ -62,7 +64,7 @@ $renderer = $PAGE->get_renderer('tool_task');
echo $OUTPUT->header();
echo $OUTPUT->render_from_template('core_admin/tasklogs', (object) [
'action' => $pageurl->out(),
'filter' => $filter,
'filter' => htmlentities($filter),
'resultfilteroptions' => [
(object) [
'value' => -1,
+35 -9
View File
@@ -49,15 +49,28 @@
}}
<div class="form-item row" id="{{id}}">
<div class="form-label col-sm-3 text-sm-right">
<label {{#labelfor}}for="{{labelfor}}"{{/labelfor}}>
{{{title}}}
{{#override}}
<div class="form-overridden">{{override}}</div>
{{/override}}
{{#warning}}
<div class="form-warning">{{warning}}</div>
{{/warning}}
</label>
{{#customcontrol}}
<p {{#labelfor}}id="{{labelfor}}_label"{{/labelfor}}>
{{{title}}}
{{#override}}
<div class="form-overridden">{{override}}</div>
{{/override}}
{{#warning}}
<div class="form-warning">{{warning}}</div>
{{/warning}}
</p>
{{/customcontrol}}
{{^customcontrol}}
<label {{#labelfor}}for="{{labelfor}}"{{/labelfor}}>
{{{title}}}
{{#override}}
<div class="form-overridden">{{override}}</div>
{{/override}}
{{#warning}}
<div class="form-warning">{{warning}}</div>
{{/warning}}
</label>
{{/customcontrol}}
<span class="form-shortname d-block small text-muted">{{{name}}}</span>
</div>
<div class="form-setting col-sm-9">
@@ -72,3 +85,16 @@
{{#dependenton}}<div class="form-dependenton mb-4 text-muted">{{{.}}}</div>{{/dependenton}}
</div>
</div>
{{#customcontrol}}
{{#js}}
require(['jquery'], function($) {
$('#{{id}}_label').css('cursor', 'default');
$('#{{id}}_label').click(function() {
$('#{{id}}')
.find('button, a, input:not([type="hidden"]), select, textarea, [tabindex]')
.filter(':not([disabled]):not([tabindex="0"]):not([tabindex="-1"])')
.first().focus();
});
});
{{/js}}
{{/customcontrol}}
@@ -25,6 +25,7 @@
* value - yes value
* id - element id
* checked - boole
* readonly - bool
Example context (json):
{
@@ -32,10 +33,11 @@
"no": "False",
"value": "True",
"id": "test0",
"checked": "checked"
"checked": "checked",
"readonly": false
}
}}
<div class="form-checkbox defaultsnext">
<input type="hidden" name="{{name}}" value="{{no}}">
<input type="checkbox" name="{{name}}" value="{{value}}" id="{{id}}" {{#checked}}checked{{/checked}}>
<input {{#readonly}}disabled{{/readonly}} type="checkbox" name="{{name}}" value="{{value}}" id="{{id}}" {{#checked}}checked{{/checked}}>
</div>
@@ -25,6 +25,7 @@
* id - element id
* value - element value
* haspreviewconfig - show preview of selected color
* readonly - bool
Example context (json):
{
@@ -32,6 +33,7 @@
"name": "name0",
"id": "id0",
"value": "#555655",
"readonly": false,
"haspreviewconfig": false
}
}}
@@ -44,7 +46,7 @@
{{>core/pix_icon}}
{{/icon}}
</div>
<input type="text" name="{{name}}" id="{{id}}" value="{{value}}" size="12" class="form-control text-ltr">
<input type="text" name="{{name}}" id="{{id}}" value="{{value}}" size="12" class="form-control text-ltr" {{#readonly}}disabled{{/readonly}}>
{{#haspreviewconfig}}
<input type="button" id="{{id}}_preview" value={{#quote}}{{#str}}preview{{/str}}{{/quote}} class="admin_colourpicker_preview">
{{/haspreviewconfig}}
@@ -33,7 +33,7 @@
"name": "test",
"value": "/my-super-secret-path/",
"id": "test0",
"readonly": true,
"readonly": false,
"showvalidity": true,
"valid": false
}
@@ -23,6 +23,7 @@
* name - form element name
* options - list of options for units containing name, value, selected
* value - yes
* readonly - bool
* id - element id
Example context (json):
@@ -30,6 +31,7 @@
"name": "test",
"value": "5",
"id": "test0",
"readonly": false,
"options": [ { "name": "Minutes", "value": "mins", "selected": true } ]
}
}}
@@ -38,9 +40,9 @@
}}
<div class="form-duration defaultsnext">
<div class="form-inline">
<input type="text" size="5" id="{{id}}v" name="{{name}}[v]" value="{{value}}" class="form-control text-ltr">
<input type="text" size="5" id="{{id}}v" name="{{name}}[v]" value="{{value}}" class="form-control text-ltr" {{#readonly}}disabled{{/readonly}}>
<label class="sr-only" for="{{id}}u">{{#str}}durationunits, admin{{/str}}</label>
<select id="{{id}}u" name="{{name}}[u]" class="form-control custom-select">
<select id="{{id}}u" name="{{name}}[u]" class="form-control custom-select" {{#readonly}}disabled{{/readonly}}>
{{#options}}
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
{{/options}}
@@ -33,7 +33,7 @@
"name": "test",
"value": "/usr/bin/cowsay",
"id": "test0",
"readonly": true,
"readonly": false,
"showvalidity": true,
"valid": false
}
+3 -1
View File
@@ -26,6 +26,7 @@
* readonly - Make the field readonly
* value - value
* showvalidity - Show a green check if the path is readable
* readonly - bool
* valid - True if the path is readable
Example context (json):
@@ -33,8 +34,9 @@
"name": "test",
"value": "/my-super-secret-path/file",
"id": "test0",
"readonly": true,
"readonly": false,
"showvalidity": true,
"readonly": false,
"valid": false
}
}}
@@ -24,12 +24,14 @@
* options - list of options for units containing name, value, selected
* value - yes
* id - element id
* readonly - bool
Example context (json):
{
"name": "test",
"value": "5",
"id": "test0",
"readonly": false,
"options": [ { "name": "KB", "value": "1024", "selected": true } ]
}
}}
@@ -38,9 +40,9 @@
}}
<div class="form-filesize defaultsnext">
<div class="form-inline">
<input type="text" size="5" id="{{id}}v" name="{{name}}[v]" value="{{value}}" class="form-control text-ltr">
<input type="text" size="5" id="{{id}}v" name="{{name}}[v]" value="{{value}}" class="form-control text-ltr" {{#readonly}}disabled{{/readonly}}>
<label class="sr-only" for="{{id}}u">{{#str}}filesizeunits, admin{{/str}}</label>
<select id="{{id}}u" name="{{name}}[u]" class="form-control custom-select">
<select id="{{id}}u" name="{{name}}[u]" class="form-control custom-select" {{#readonly}}disabled{{/readonly}}>
{{#options}}
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
{{/options}}
@@ -24,11 +24,13 @@
* id - element id
* size - element size
* options - list of options containing name, value, selected
* readonly - bool
Example context (json):
{
"name": "test",
"id": "test0",
"readonly": false,
"size": "3",
"options": [ { "name": "Option 1", "value": "V", "selected": true },
{ "name": "Option 2", "value": "V", "selected": true } ]
@@ -39,7 +41,7 @@
}}
<div class="form-select">
<input type="hidden" name="{{name}}[xxxxx]" value="1">
<select id="{{id}}" name="{{name}}[]" size="{{size}}" class="form-control" multiple>
<select {{#readonly}}disabled{{/readonly}} id="{{id}}" name="{{name}}[]" size="{{size}}" class="form-control" multiple>
{{#options}}
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
{{/options}}
@@ -25,11 +25,13 @@
* size - element size
* options - list of options not grouped
* optgroups - list of options grouped containing the group label and for each option: name, value, selected
* readonly - bool
Example context (json):
{
"name": "test",
"id": "test0",
"readonly": false,
"size": "3",
"options": [
{ "name": "Option 1", "value": "V", "selected": false },
@@ -58,7 +60,7 @@
}}
<div class="form-select">
<input type="hidden" name="{{name}}[xxxxx]" value="1">
<select id="{{id}}" name="{{name}}[]" size="{{size}}" class="form-control" multiple>
<select {{#readonly}}disabled{{/readonly}} id="{{id}}" name="{{name}}[]" size="{{size}}" class="form-control" multiple>
{{#options}}
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
{{/options}}
@@ -24,15 +24,30 @@
* size - form element size
* value - form element value
* id - element id
* readonly - has value been defined in config.php
Example context (json):
{
"name": "test",
"id": "test0",
"size": "8",
"value": "secret"
"value": "secret",
"readonly": false
}
}}
{{#readonly}}
<div class="form-password">
<input type="text"
name = "{{ name }}"
id="{{ id }}"
value="********"
size="{{ size }}"
class="form-control"
disabled
>
</div>
{{/readonly}}
{{^readonly}}
<div class="form-password">
<span data-passwordunmask="wrapper" data-passwordunmaskid="{{ id }}">
<span data-passwordunmask="editor">
@@ -61,3 +76,4 @@ require(['core_form/passwordunmask'], function(PasswordUnmask) {
new PasswordUnmask("{{ id }}");
});
{{/js}}
{{/readonly}}
@@ -23,11 +23,13 @@
* name - form element name
* id - element id
* options - list of options containing name, value, selected
* readonly - bool
Example context (json):
{
"name": "test",
"id": "test0",
"readonly": false,
"options": [
{ "name": "Option 1", "value": "V", "selected": true },
{ "name": "Option 2", "value": "V", "selected": true }
@@ -38,7 +40,7 @@
Setting configselect.
}}
<div class="form-select defaultsnext">
<select id="{{id}}" name="{{name}}" class="custom-select">
<select {{#readonly}}disabled{{/readonly}} id="{{id}}" name="{{name}}" class="custom-select">
{{#options}}
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
{{/options}}
@@ -22,6 +22,7 @@
Context variables required for this template:
* name - form element name
* id - element id
* readonly - bool
* options - list of options (not grouped)
* optgroups - list of options grouped containing the group label and for each option: name, value, selected
@@ -29,6 +30,7 @@
{
"name": "test",
"id": "test0",
"readonly": false,
"options": [
{ "name": "Option 1", "value": "V", "selected": false },
{ "name": "Option 2", "value": "V", "selected": false }
@@ -55,7 +57,7 @@
Setting configselect with optgroup support.
}}
<div class="form-select defaultsnext">
<select id="{{id}}" name="{{name}}" class="custom-select">
<select {{#readonly}}disabled{{/readonly}} id="{{id}}" name="{{name}}" class="custom-select">
{{#options}}
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
{{/options}}
+3 -1
View File
@@ -26,6 +26,7 @@
* size - element size
* forceltr - always display as ltr
* attributes - list of additional attributes containing name, value
* readonly - bool
Example context (json):
{
@@ -34,6 +35,7 @@
"value": "A tall, dark stranger will have more fun than you.",
"size": "21",
"forceltr": false,
"readonly": false,
"attributes": [ { "name": "readonly", "value": "readonly" } ]
}
}}
@@ -41,5 +43,5 @@
Setting configtext.
}}
<div class="form-text defaultsnext">
<input type="text" name="{{name}}" value="{{value}}" size="{{size}}" id="{{id}}" class="form-control {{#forceltr}}text-ltr{{/forceltr}}">
<input type="text" name="{{name}}" value="{{value}}" size="{{size}}" id="{{id}}" class="form-control {{#forceltr}}text-ltr{{/forceltr}}" {{#readonly}}disabled{{/readonly}}>
</div>
@@ -33,6 +33,7 @@
"cols": "30",
"rows": "3",
"value": "Excellent day for putting Slinkies on an escalator.",
"readonly": false,
"id": "test0"
}
}}
@@ -40,5 +41,5 @@
Setting configtextarea.
}}
<div class="form-textarea">
<textarea rows="{{rows}}" cols="{{cols}}" id="{{id}}" name="{{name}}" spellcheck="true" class="form-control {{#forceltr}}text-ltr{{/forceltr}}">{{value}}</textarea>
<textarea {{#readonly}}disabled{{/readonly}} rows="{{rows}}" cols="{{cols}}" id="{{id}}" name="{{name}}" spellcheck="true" class="form-control {{#forceltr}}text-ltr{{/forceltr}}">{{value}}</textarea>
</div>
+4 -2
View File
@@ -24,11 +24,13 @@
* id - element id
* hours - list of valid hour options containing name, value, selected
* minutes - list of valid minute options containing name, value, selected
* readonly - bool
Example context (json):
{
"name": "test",
"id": "test0",
"readonly": false,
"minutes": [
{ "name": "00", "value": "0", "selected": true },
{ "name": "01", "value": "1", "selected": false }
@@ -45,13 +47,13 @@
<div class="form-time defaultsnext">
<div class="form-inline text-ltr">
<label class="sr-only" for="{{id}}h">{{#str}}hours{{/str}}</label>
<select id="{{id}}h" name="{{name}}[h]" class="custom-select">
<select id="{{id}}h" name="{{name}}[h]" class="custom-select" {{#readonly}}disabled{{/readonly}}>
{{#hours}}
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
{{/hours}}
</select>:
<label class="sr-only" for="{{id}}m">{{#str}}minutes{{/str}}</label>
<select id="{{id}}m" name="{{name}}[m]" class="custom-select">
<select id="{{id}}m" name="{{name}}[m]" class="custom-select" {{#readonly}}disabled{{/readonly}}>
{{#minutes}}
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
{{/minutes}}
+2 -1
View File
@@ -46,7 +46,8 @@ if ($data) {
$emailuser->email = $data->recipient;
$emailuser->id = -99;
$subject = get_string('testoutgoingmailconf_subject', 'admin', $SITE->fullname);
$subject = get_string('testoutgoingmailconf_subject', 'admin',
format_string($SITE->fullname, true, ['context' => context_system::instance()]));
$messagetext = get_string('testoutgoingmailconf_message', 'admin');
// Manage Moodle debugging options.
@@ -0,0 +1,29 @@
@core @core_admin
Feature: Administrator is warned and when trying to set invalid allcountrycodes value.
In order to avoid misconfiguration of the country selector fields
As an admin
I want to be warned when I try to set an invalid country code in the allcountrycodes field
Scenario: Attempting to set allcountrycodes field with valid country codes
Given I log in as "admin"
And I navigate to "Location > Location settings" in site administration
When I set the following administration settings values:
| All country codes | CZ,BE,GB,ES |
Then I should not see "Invalid country code"
Scenario: Attempting to set allcountrycodes field with invalid country code
Given I log in as "admin"
And I navigate to "Location > Location settings" in site administration
When I set the following administration settings values:
| All country codes | CZ,BE,FOOBAR,GB,ES |
Then I should see "Invalid country code: FOOBAR"
Scenario: Attempting to unset allcountrycodes field
Given I log in as "admin"
And I navigate to "Location > Location settings" in site administration
And I set the following administration settings values:
| All country codes | CZ,BE,GB,ES |
And I navigate to "Location > Location settings" in site administration
When I set the following administration settings values:
| All country codes | |
Then I should not see "Invalid country code"
@@ -0,0 +1,34 @@
@core @core_admin
Feature: Configure language settings for the site
In order to configure language settings for the site
As an admin
I want to set language settings relevant to my site users
Scenario: Set languages on language menu
Given I log in as "admin"
And I navigate to "Language > Language settings" in site administration
When I set the field "Languages on language menu" to "en"
And I press "Save changes"
Then I should not see "Invalid language code"
Scenario: Reset languages on language menu
Given I log in as "admin"
And I navigate to "Language > Language settings" in site administration
When I set the field "Languages on language menu" to ""
And I press "Save changes"
Then I should not see "Invalid language code"
Scenario Outline: Set languages on language menu with invalid language
Given I log in as "admin"
And I navigate to "Language > Language settings" in site administration
When I set the field "Languages on language menu" to "<fieldvalue>"
And I press "Save changes"
Then I should see "Invalid language code: <invalidlang>"
Examples:
| fieldvalue | invalidlang |
| xx | xx |
| xx\|Bad | xx |
| en,qq | qq |
| en,qq\|Bad | qq |
| en$$ | en$$ |
| en$$\|Bad | en$$ |
+6
View File
@@ -164,6 +164,8 @@ if ($options['install']) {
mtrace("Acceptance tests site installed");
}
// Note: Do not build the themes here. This is done during the 'enable' stage.
} else if ($options['drop']) {
// Ensure no tests are running.
test_lock::acquire('behat');
@@ -182,6 +184,10 @@ if ($options['install']) {
// Enable test mode.
behat_util::start_test_mode($options['add-core-features-to-theme'], $options['optimize-runs'], $parallel, $run);
// Themes are only built in the 'enable' command.
behat_util::build_themes();
mtrace("Testing environment themes built");
// This is only displayed once for parallel install.
if (empty($run)) {
// Notify user that 2.5 profile has been converted to 3.5.
+1 -1
View File
@@ -32,7 +32,7 @@ require_once($CFG->libdir . '/behat/classes/behat_config_manager.php');
// systems, but let's allow room for expansion.
core_php_time_limit::raise(300);
$filter = optional_param('filter', '', PARAM_ALPHANUMEXT);
$filter = optional_param('filter', '', PARAM_NOTAGS);
$type = optional_param('type', false, PARAM_ALPHAEXT);
$component = optional_param('component', '', PARAM_ALPHAEXT);
+1 -1
View File
@@ -24,7 +24,7 @@
$string['aim'] = 'This administration tool helps developers and test writers to create .feature files describing Moodle\'s functionalities and run them automatically. Step definitions available for use in .feature files are listed below.';
$string['allavailablesteps'] = 'All available step definitions';
$string['errorapproot'] = '$CFG->behat_ionic_dirroot is not pointing to a valid Moodle Mobile developer install.';
$string['errorapproot'] = '$CFG->behat_ionic_dirroot is not pointing to a valid Moodle app developer install.';
$string['errorbehatcommand'] = 'Error running behat CLI command. Try running "{$a} --help" manually from CLI to find out more about the problem.';
$string['errorcomposer'] = 'Composer dependencies are not installed.';
$string['errordataroot'] = '$CFG->behat_dataroot is not set or is invalid.';
+2 -2
View File
@@ -55,13 +55,13 @@ class tool_behat {
// The loaded steps depends on the component specified.
behat_config_manager::update_config_file($component, false);
// The Moodle\BehatExtension\HelpPrinter\MoodleDefinitionsPrinter will parse this search format.
// The Moodle\BehatExtension\Definition\Printer\ConsoleDefinitionInformationPrinter will parse this search format.
if ($type) {
$filter .= '&&' . $type;
}
if ($filter) {
$filteroption = ' -d "' . $filter . '"';
$filteroption = ' -d ' . escapeshellarg($filter);
} else {
$filteroption = ' -di';
}
+8 -17
View File
@@ -44,13 +44,9 @@ class tool_behat_renderer extends plugin_renderer_base {
global $CFG;
require_once($CFG->libdir . '/behat/classes/behat_selectors.php');
$html = $this->generic_info();
// Form.
ob_start();
$form->display();
$html .= ob_get_contents();
ob_end_clean();
$html = $this->output->header();
$html .= $this->output->heading(get_string('pluginname', 'tool_behat'));
$html .= $form->render();
if (empty($stepsdefinitions)) {
$stepsdefinitions = get_string('nostepsdefinitions', 'tool_behat');
@@ -128,7 +124,9 @@ class tool_behat_renderer extends plugin_renderer_base {
*/
public function render_error($msg) {
$html = $this->generic_info();
$html = $this->output->header();
$html .= $this->output->heading(get_string('pluginname', 'tool_behat'));
$html .= $this->generic_info();
$a = new stdClass();
$a->errormsg = $msg;
@@ -153,13 +151,7 @@ class tool_behat_renderer extends plugin_renderer_base {
*
* @return string
*/
protected function generic_info() {
$title = get_string('pluginname', 'tool_behat');
// Header.
$html = $this->output->header();
$html .= $this->output->heading($title);
public function generic_info() {
// Info.
$installurl = behat_command::DOCS_URL;
@@ -175,8 +167,7 @@ class tool_behat_renderer extends plugin_renderer_base {
);
// List of steps.
$html .= $this->output->box_start();
$html .= html_writer::tag('h3', get_string('infoheading', 'tool_behat'));
$html = $this->output->box_start();
$html .= html_writer::tag('div', get_string('aim', 'tool_behat'));
$html .= html_writer::start_tag('div');
$html .= html_writer::start_tag('ul');
@@ -40,8 +40,14 @@ class steps_definitions_form extends moodleform {
* @return void
*/
public function definition() {
global $PAGE;
$mform = $this->_form;
$output = $PAGE->get_renderer('tool_behat');
$mform->addElement('header', 'info', get_string('infoheading', 'tool_behat'));
$mform->setExpanded('info', false);
$mform->addElement('html', $output->generic_info());
$mform->addElement('header', 'filters', get_string('stepsdefinitionsfilters', 'tool_behat'));
+20 -14
View File
@@ -1,25 +1,31 @@
.steps-definitions {
border-style: solid;
border-width: 1px;
border-color: #bbb;
padding: 5px;
margin: auto;
width: 50%;
#page-admin-tool-behat-index .steps-definitions {
margin: 1rem auto;
}
.steps-definitions .step {
margin: 10px 0 10px 0;
#page-admin-tool-behat-index .steps-definitions .step {
margin: 1rem 0 0 0;
border: 1px solid #eee;
padding: 1rem;
}
.steps-definitions .stepdescription {
color: #bf8c12;
#page-admin-tool-behat-index .steps-definitions .stepdescription {
font-style: italic;
}
.steps-definitions .steptype {
#page-admin-tool-behat-index .steps-definitions .stepcontent {
margin: 1rem 0;
}
#page-admin-tool-behat-index .steps-definitions .steptype {
color: #1467a6;
margin-right: 5px;
margin-right: 1ex;
}
.steps-definitions .stepregex {
#page-admin-tool-behat-index .steps-definitions .stepapipath {
font-family: monospace;
font-size: smaller;
}
#page-admin-tool-behat-index .steps-definitions .stepregex {
color: #060;
}
@@ -26,3 +26,11 @@ Feature: List the system steps definitions
Given I set the field "Contains" to "homepage"
When I press "Filter"
Then I should see "Opens Moodle homepage."
@javascript
Scenario: Filtering by the multiple words pattern
Given I set the field "Contains" to "should exist"
When I press "Filter"
Then I should not see "There aren't steps definitions matching this filter"
And I should see "Checks the provided element and selector type exists in the current page."
And I should see "Checks that an element and selector type exists in another element and selector type on the current page."
+14 -4
View File
@@ -75,6 +75,7 @@ class tool_capability_renderer extends plugin_renderer_base {
* @return string
*/
public function capability_comparison_table(array $capabilities, $contextid, array $roles) {
static $capabilitycontexts = array();
$strpermissions = $this->get_permission_strings();
$permissionclasses = $this->get_permission_classes();
@@ -92,8 +93,13 @@ class tool_capability_renderer extends plugin_renderer_base {
}
$table->data = array();
$childcontextsids = [];
foreach ($capabilities as $capability) {
$contexts = tool_capability_calculate_role_data($capability, $roles);
if (empty($capabilitycontexts[$capability])) {
$capabilitycontexts[$capability] = tool_capability_calculate_role_data($capability, $roles);
}
$contexts = $capabilitycontexts[$capability];
$captitle = new html_table_cell(get_capability_string($capability) . html_writer::span($capability));
$captitle->header = true;
@@ -111,6 +117,10 @@ class tool_capability_renderer extends plugin_renderer_base {
}
$table->data[] = $row;
if (!empty($contexts[$contextid]->children)) {
$childcontextsids = array_merge($childcontextsids, $contexts[$contextid]->children);
$childcontextsids = array_unique($childcontextsids);
}
}
// Start the list item, and print the context name as a link to the place to make changes.
@@ -127,9 +137,9 @@ class tool_capability_renderer extends plugin_renderer_base {
$html = $this->output->heading(html_writer::link($url, $title), 3);
$html .= html_writer::table($table);
// If there are any child contexts, print them recursively.
if (!empty($contexts[$contextid]->children)) {
foreach ($contexts[$contextid]->children as $childcontextid) {
$html .= $this->capability_comparison_table($capabilities, $childcontextid, $roles, true);
if (!empty($childcontextsids)) {
foreach ($childcontextsids as $childcontextid) {
$html .= $this->capability_comparison_table($capabilities, $childcontextid, $roles);
}
}
return $html;
@@ -0,0 +1,97 @@
@tool @tool_capability
Feature: Show capabilities for multiple contexts
In order to check roles capabilities
As an admin
I need to be able to see capability overrides on several contexts
Background:
And the following "courses" exist:
| fullname | shortname | category |
| Course 1 | C1 | 0 |
| Course 2 | C2 | 0 |
And the following "permission overrides" exist:
| capability | permission | role | contextlevel | reference |
| enrol/category:config | Allow | student | Course | C1 |
| enrol/cohort:unenrol | Allow | student | Course | C2 |
And I log in as "admin"
And I navigate to "Users > Permissions > Capability overview" in site administration
Scenario: Show capabilities table with one capability with overrides
When I set the following fields to these values:
| Capability: | enrol/category:config |
| Roles: | Student |
And I click on "Get the overview" "button"
Then I should see "Permissions in System"
And I should see "Permissions in Category: Miscellaneous"
And I should see "Permissions in Course: Course 1"
And I should not see "Permissions in Course: Course 2"
Scenario: Show capabilities table with one capability without overrides
When I set the following fields to these values:
| Capability: | enrol/cohort:config |
| Roles: | Student |
And I click on "Get the overview" "button"
Then I should see "Permissions in System"
And I should not see "Permissions in Category: Miscellaneous"
And I should not see "Permissions in Course: Course 1"
And I should not see "Permissions in Course: Course 2"
Scenario: Show capabilities table with two capabilities, 1st without overrides and 2nd with
When I set the following fields to these values:
| Capability: | enrol/category:synchronised, enrol/category:config |
| Roles: | Student |
And I click on "Get the overview" "button"
Then I should see "Permissions in System"
And I should see "Permissions in Category: Miscellaneous"
And I should see "Permissions in Course: Course 1"
And I should not see "Permissions in Course: Course 2"
Scenario: Show capabilities table with two capabilities, 1st with overrides and 2nd without
When I set the following fields to these values:
| Capability: | enrol/category:config, enrol/cohort:config |
| Roles: | Student |
And I click on "Get the overview" "button"
Then I should see "Permissions in System"
And I should see "Permissions in Category: Miscellaneous"
And I should see "Permissions in Course: Course 1"
And I should not see "Permissions in Course: Course 2"
Scenario: Show capabilities table with two capabilities, none with overrides
When I set the following fields to these values:
| Capability: | enrol/category:synchronised, enrol/cohort:config |
| Roles: | Student |
And I click on "Get the overview" "button"
Then I should see "Permissions in System"
And I should not see "Permissions in Category: Miscellaneous"
And I should not see "Permissions in Course: Course 1"
And I should not see "Permissions in Course: Course 2"
Scenario: Show capabilities table with capability with override and no role selected
When I set the following fields to these values:
| Capability: | enrol/category:config |
| Roles: | |
And I click on "Get the overview" "button"
Then I should see "Permissions in System"
And I should see "Permissions in Category: Miscellaneous"
And I should see "Permissions in Course: Course 1"
And I should not see "Permissions in Course: Course 2"
Scenario: Show capabilities table with capability without override and no role selected
When I set the following fields to these values:
| Capability: | enrol/cohort:config |
| Roles: | |
And I click on "Get the overview" "button"
Then I should see "Permissions in System"
And I should not see "Permissions in Category: Miscellaneous"
And I should not see "Permissions in Course: Course 1"
And I should not see "Permissions in Course: Course 2"
Scenario: Show capabilities table with capability with two overrides on different contexts
When I set the following fields to these values:
| Capability: | enrol/category:config, enrol/cohort:unenrol |
| Roles: | |
And I click on "Get the overview" "button"
Then I should see "Permissions in System"
And I should see "Permissions in Category: Miscellaneous"
And I should see "Permissions in Course: Course 1"
And I should see "Permissions in Course: Course 2"
+4
View File
@@ -144,6 +144,10 @@ class api {
$rolesadded = array();
$rolesremoved = array();
// Remove any cohort role mappings for roles which have been deleted.
// The role assignments are not a consideration because these will have been removed when the role was.
$DB->delete_records_select('tool_cohortroles', "roleid NOT IN (SELECT id FROM {role})");
// Get all cohort role assignments and group them by user and role.
$all = cohort_role_assignment::get_records(array(), 'userid, roleid');
// We build an better structure to loop on.
+45
View File
@@ -0,0 +1,45 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Plugin upgrade code
*
* @package tool_cohortroles
* @copyright 2020 Paul Holden <paulh@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
/**
* Function to upgrade tool_cohortroles.
*
* @param int $oldversion the version we are upgrading from
* @return bool result
*/
function xmldb_tool_cohortroles_upgrade($oldversion) {
global $DB;
if ($oldversion < 2019111801) {
// Delete any tool_cohortroles mappings for roles which no longer exist.
$DB->delete_records_select('tool_cohortroles', 'roleid NOT IN (SELECT id FROM {role})');
// Cohortroles savepoint reached.
upgrade_plugin_savepoint(true, 2019111801, 'tool', 'cohortroles');
}
return true;
}
+1 -1
View File
@@ -25,7 +25,7 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2019111800; // The current plugin version (Date: YYYYMMDDXX).
$plugin->version = 2019111801; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2019111200; // Requires this Moodle version.
$plugin->component = 'tool_cohortroles'; // Full name of the plugin (used for diagnostics).
+3
View File
@@ -44,5 +44,8 @@ function xmldb_tool_customlang_upgrade($oldversion) {
// Automatically generated Moodle v3.7.0 release upgrade line.
// Put any upgrade step following this.
// Automatically generated Moodle v3.8.0 release upgrade line.
// Put any upgrade step following this.
return true;
}
@@ -36,7 +36,7 @@ $string['customlang:view'] = 'View local translation';
$string['filter'] = 'Filter strings';
$string['filtercomponent'] = 'Show strings of these components';
$string['filtercustomized'] = 'Customised only';
$string['filtermodified'] = 'Modified only';
$string['filtermodified'] = 'Modified in this session only';
$string['filteronlyhelps'] = 'Help only';
$string['filtershowstrings'] = 'Show strings';
$string['filterstringid'] = 'String identifier';
+1 -1
View File
@@ -1,2 +1,2 @@
define ("tool_dataprivacy/myrequestactions",["jquery","core/ajax","core/notification","core/str","core/modal_factory","core/modal_events","core/templates"],function(a,b,c,d,e,f,g){var i={CANCEL_REQUEST:"[data-action=\"cancel\"]",CONTACT_DPO:"[data-action=\"contactdpo\"]"},j=function(){this.registerEvents()};j.prototype.registerEvents=function(){a(i.CANCEL_REQUEST).click(function(g){g.preventDefault();var h=a(this).data("requestid");d.get_strings([{key:"cancelrequest",component:"tool_dataprivacy"},{key:"cancelrequestconfirmation",component:"tool_dataprivacy"}]).then(function(a){var d=a[0],g=a[1];return e.create({title:d,body:g,type:e.types.SAVE_CANCEL}).then(function(a){a.setSaveButtonText(d);a.getRoot().on(f.save,function(){b.call([{methodname:"tool_dataprivacy_cancel_data_request",args:{requestid:h}}])[0].done(function(a){if(a.result){window.location.reload()}else{c.addNotification({message:a.warnings[0].message,type:"error"})}}).fail(c.exception)});a.getRoot().on(f.hidden,function(){a.destroy()});return a})}).done(function(a){a.show()}).fail(c.exception)});a(i.CONTACT_DPO).click(function(b){b.preventDefault();var i=a(this).data("replytoemail"),j="";d.get_strings([{key:"contactdataprotectionofficer",component:"tool_dataprivacy"},{key:"send",component:"tool_dataprivacy"}]).then(function(a){var b=a[0];j=a[1];return e.create({title:b,body:g.render("tool_dataprivacy/contact_dpo",{replytoemail:i}),type:e.types.SAVE_CANCEL,large:!0})}).done(function(b){b.setSaveButtonText(j);b.getRoot().on(f.save,function(b){var c=a("#message").val().trim();if(0===c.length){b.preventDefault();a("[data-region=\"messageinput\"]").addClass("has-danger notifyproblem");a("#id_error_message").removeAttr("hidden")}else{h(c)}});b.getRoot().on(f.hidden,function(){b.destroy()});b.show()}).fail(c.exception)})};function h(a){var e="success";b.call([{methodname:"tool_dataprivacy_contact_dpo",args:{message:a}}])[0].then(function(a){if(a.result){return d.get_string("requestsubmitted","tool_dataprivacy")}e="error";return a.warnings.join("<br>")}).done(function(a){c.addNotification({message:a,type:e})}).fail(c.exception)}return{init:function init(){return new j}}});
define ("tool_dataprivacy/myrequestactions",["jquery","core/ajax","core/notification","core/str","core/modal_factory","core/modal_events","core/templates","core/pending"],function(a,b,c,d,e,f,g,h){var j={CANCEL_REQUEST:"[data-action=\"cancel\"]",CONTACT_DPO:"[data-action=\"contactdpo\"]"},k=function(){this.registerEvents()};k.prototype.registerEvents=function(){a(j.CANCEL_REQUEST).click(function(g){g.preventDefault();var h=a(this).data("requestid");d.get_strings([{key:"cancelrequest",component:"tool_dataprivacy"},{key:"cancelrequestconfirmation",component:"tool_dataprivacy"}]).then(function(a){var d=a[0],g=a[1];return e.create({title:d,body:g,type:e.types.SAVE_CANCEL}).then(function(a){a.setSaveButtonText(d);a.getRoot().on(f.save,function(){b.call([{methodname:"tool_dataprivacy_cancel_data_request",args:{requestid:h}}])[0].done(function(a){if(a.result){window.location.reload()}else{c.addNotification({message:a.warnings[0].message,type:"error"})}}).fail(c.exception)});a.getRoot().on(f.hidden,function(){a.destroy()});return a})}).done(function(a){a.show()}).fail(c.exception)});a(j.CONTACT_DPO).click(function(b){var j=new h("dataprivacy/crud:initModal:contactdpo");b.preventDefault();var k=a(this).data("replytoemail"),l="";d.get_strings([{key:"contactdataprotectionofficer",component:"tool_dataprivacy"},{key:"send",component:"tool_dataprivacy"}]).then(function(a){var b=a[0];l=a[1];return e.create({title:b,body:g.render("tool_dataprivacy/contact_dpo",{replytoemail:k}),type:e.types.SAVE_CANCEL,large:!0})}).then(function(b){b.setSaveButtonText(l);b.show();b.getRoot().on(f.save,function(b){var c=a("#message").val().trim();if(0===c.length){b.preventDefault();a("[data-region=\"messageinput\"]").addClass("has-danger notifyproblem");a("#id_error_message").removeAttr("hidden")}else{i(c)}});b.getRoot().on(f.hidden,function(){b.destroy()})}).then(j.resolve).catch(c.exception)})};function i(a){var e="success";b.call([{methodname:"tool_dataprivacy_contact_dpo",args:{message:a}}])[0].then(function(a){if(a.result){return d.get_string("requestsubmitted","tool_dataprivacy")}e="error";return a.warnings.join("<br>")}).done(function(a){c.addNotification({message:a,type:e})}).fail(c.exception)}return{init:function init(){return new k}}});
//# sourceMappingURL=myrequestactions.min.js.map
File diff suppressed because one or more lines are too long
@@ -28,8 +28,9 @@ define([
'core/str',
'core/modal_factory',
'core/modal_events',
'core/templates'],
function($, Ajax, Notification, Str, ModalFactory, ModalEvents, Templates) {
'core/templates',
'core/pending'],
function($, Ajax, Notification, Str, ModalFactory, ModalEvents, Templates, Pending) {
/**
* List of action selectors.
@@ -118,6 +119,7 @@ function($, Ajax, Notification, Str, ModalFactory, ModalEvents, Templates) {
});
$(ACTIONS.CONTACT_DPO).click(function(e) {
var pendingPromise = new Pending('dataprivacy/crud:initModal:contactdpo');
e.preventDefault();
var replyToEmail = $(this).data('replytoemail');
@@ -146,9 +148,12 @@ function($, Ajax, Notification, Str, ModalFactory, ModalEvents, Templates) {
type: ModalFactory.types.SAVE_CANCEL,
large: true
});
}).done(function(modal) {
}).then(function(modal) {
modal.setSaveButtonText(sendButtonText);
// Show the modal!
modal.show();
// Handle send event.
modal.getRoot().on(ModalEvents.save, function(e) {
var message = $('#message').val().trim();
@@ -169,9 +174,9 @@ function($, Ajax, Notification, Str, ModalFactory, ModalEvents, Templates) {
modal.destroy();
});
// Show the modal!
modal.show();
}).fail(Notification.exception);
return;
}).then(pendingPromise.resolve)
.catch(Notification.exception);
});
};
+1 -1
View File
@@ -712,7 +712,7 @@ class api {
'requestedby' => $requestedby->fullname,
'requesttype' => $typetext,
'requestdate' => userdate($requestdata->timecreated),
'requestorigin' => $SITE->fullname,
'requestorigin' => format_string($SITE->fullname, true, ['context' => context_system::instance()]),
'requestoriginurl' => new moodle_url('/'),
'requestcomments' => $requestdata->messagehtml,
'datarequestsurl' => $datarequestsurl
@@ -26,10 +26,11 @@ namespace tool_dataprivacy;
defined('MOODLE_INTERNAL') || die();
use lang_string;
use core\persistent;
/**
* Class for loading/storing competencies from the DB.
* Class for loading/storing data requests from the DB.
*
* @copyright 2018 Jun Pataleta
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
@@ -62,6 +63,7 @@ class data_request extends persistent {
],
'comments' => [
'type' => PARAM_TEXT,
'message' => new lang_string('errorinvalidrequestcomments', 'tool_dataprivacy'),
'default' => ''
],
'commentsformat' => [
@@ -75,7 +77,10 @@ class data_request extends persistent {
'default' => FORMAT_PLAIN
],
'userid' => [
'default' => 0,
'default' => function() {
global $USER;
return $USER->id;
},
'type' => PARAM_INT
],
'requestedby' => [
+1 -1
View File
@@ -1613,7 +1613,7 @@ class external extends external_api {
*/
private static function get_tree_node_structure($allowchildbranches = true) {
$fields = [
'text' => new external_value(PARAM_TEXT, 'The node text', VALUE_REQUIRED),
'text' => new external_value(PARAM_RAW, 'The node text', VALUE_REQUIRED),
'expandcontextid' => new external_value(PARAM_INT, 'The contextid this node expands', VALUE_REQUIRED),
'expandelement' => new external_value(PARAM_ALPHA, 'What element is this node expanded to', VALUE_REQUIRED),
'contextid' => new external_value(PARAM_INT, 'The node contextid', VALUE_REQUIRED),
@@ -26,6 +26,7 @@ namespace tool_dataprivacy\task;
use action_link;
use coding_exception;
use context_system;
use core\message\message;
use core\task\adhoc_task;
use core_user;
@@ -152,7 +153,7 @@ class process_data_request_task extends adhoc_task {
$message->name = 'datarequestprocessingresults';
$message->userfrom = $dpo;
$message->replyto = $dpo->email;
$message->replytoname = fullname($dpo->email);
$message->replytoname = fullname($dpo);
$typetext = null;
// Prepare the context data for the email message body.
@@ -180,7 +181,8 @@ class process_data_request_task extends adhoc_task {
$message->contexturl = $datarequestsurl;
$message->contexturlname = get_string('datarequests', 'tool_dataprivacy');
// Message to the recipient.
$messagetextdata['message'] = get_string('resultdownloadready', 'tool_dataprivacy', $SITE->fullname);
$messagetextdata['message'] = get_string('resultdownloadready', 'tool_dataprivacy',
format_string($SITE->fullname, true, ['context' => context_system::instance()]));
// Prepare download link.
$downloadurl = moodle_url::make_pluginfile_url($usercontext->id, 'tool_dataprivacy', 'export', $thing->get_itemid(),
$thing->get_filepath(), $thing->get_filename(), true);
@@ -192,7 +194,8 @@ class process_data_request_task extends adhoc_task {
// No point notifying a deleted user in Moodle.
$message->notification = 0;
// Message to the recipient.
$messagetextdata['message'] = get_string('resultdeleted', 'tool_dataprivacy', $SITE->fullname);
$messagetextdata['message'] = get_string('resultdeleted', 'tool_dataprivacy',
format_string($SITE->fullname, true, ['context' => context_system::instance()]));
// Message will be sent to the deleted user via email only.
$emailonly = true;
break;
+11 -3
View File
@@ -45,21 +45,30 @@ if ($manage) {
$context = context_system::instance();
// Make sure the user has the proper capability.
require_capability('tool/dataprivacy:managedatarequests', $context);
navigation_node::override_active_url($returnurl);
} else {
// For the case where a user makes request for themselves (or for their children if they are the parent).
$returnurl = new moodle_url($CFG->wwwroot . '/admin/tool/dataprivacy/mydatarequests.php');
$context = context_user::instance($USER->id);
}
$PAGE->set_context($context);
if (!$manage && $profilenode = $PAGE->settingsnav->find('myprofile', null)) {
$profilenode->make_active();
}
$title = get_string('createnewdatarequest', 'tool_dataprivacy');
$PAGE->navbar->add($title);
// If contactdataprotectionofficer is disabled, send the user back to the profile page, or the privacy policy page.
// That is, unless you have sufficient capabilities to perform this on behalf of a user.
if (!$manage && !\tool_dataprivacy\api::can_contact_dpo()) {
redirect($returnurl, get_string('contactdpoviaprivacypolicy', 'tool_dataprivacy'), 0, \core\output\notification::NOTIFY_ERROR);
}
$mform = new tool_dataprivacy_data_request_form($url->out(false), ['manage' => !empty($manage)]);
$mform->set_data(['type' => $requesttype]);
$mform = new tool_dataprivacy_data_request_form($url->out(false), ['manage' => !empty($manage),
'persistent' => new \tool_dataprivacy\data_request(0, (object) ['type' => $requesttype])]);
// Data request cancelled.
if ($mform->is_cancelled()) {
@@ -100,7 +109,6 @@ if ($data = $mform->get_data()) {
redirect($returnurl, $redirectmessage);
}
$title = get_string('createnewdatarequest', 'tool_dataprivacy');
$PAGE->set_heading($SITE->fullname);
$PAGE->set_title($title);
echo $OUTPUT->header();
@@ -23,6 +23,7 @@
*/
use tool_dataprivacy\api;
use tool_dataprivacy\data_request;
use tool_dataprivacy\local\helper;
defined('MOODLE_INTERNAL') || die();
@@ -36,7 +37,10 @@ require_once($CFG->libdir.'/formslib.php');
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
* @package tool_dataprivacy
*/
class tool_dataprivacy_data_request_form extends moodleform {
class tool_dataprivacy_data_request_form extends \core\form\persistent {
/** @var string Name of the persistent class. */
protected static $persistentclass = data_request::class;
/** @var bool Flag to indicate whether this form is being rendered for managing data requests or for regular requests. */
protected $manage = false;
@@ -96,14 +100,13 @@ class tool_dataprivacy_data_request_form extends moodleform {
api::DATAREQUEST_TYPE_EXPORT => get_string('requesttypeexport', 'tool_dataprivacy'),
api::DATAREQUEST_TYPE_DELETE => get_string('requesttypedelete', 'tool_dataprivacy')
];
$mform->addElement('select', 'type', get_string('requesttype', 'tool_dataprivacy'), $options);
$mform->setType('type', PARAM_INT);
$mform->addHelpButton('type', 'requesttype', 'tool_dataprivacy');
// Request comments text area.
$textareaoptions = ['cols' => 60, 'rows' => 10];
$mform->addElement('textarea', 'comments', get_string('requestcomments', 'tool_dataprivacy'), $textareaoptions);
$mform->setType('type', PARAM_ALPHANUM);
$mform->addHelpButton('comments', 'requestcomments', 'tool_dataprivacy');
// Action buttons.
@@ -129,34 +132,49 @@ class tool_dataprivacy_data_request_form extends moodleform {
}
}
/**
* Get the default data. Unset the default userid if managing data requests
*
* @return stdClass
*/
protected function get_default_data() {
$data = parent::get_default_data();
if ($this->manage) {
unset($data->userid);
}
return $data;
}
/**
* Form validation.
*
* @param array $data
* @param stdClass $data
* @param array $files
* @param array $errors
* @return array
* @throws coding_exception
* @throws dml_exception
*/
public function validation($data, $files) {
public function extra_validation($data, $files, array &$errors) {
global $USER;
$errors = [];
$validrequesttypes = [
api::DATAREQUEST_TYPE_EXPORT,
api::DATAREQUEST_TYPE_DELETE
];
if (!in_array($data['type'], $validrequesttypes)) {
if (!in_array($data->type, $validrequesttypes)) {
$errors['type'] = get_string('errorinvalidrequesttype', 'tool_dataprivacy');
}
if (api::has_ongoing_request($data['userid'], $data['type'])) {
$userid = $data->userid;
if (api::has_ongoing_request($userid, $data->type)) {
$errors['type'] = get_string('errorrequestalreadyexists', 'tool_dataprivacy');
}
// Check if current user can create data deletion request.
$userid = $data['userid'];
if ($data['type'] == api::DATAREQUEST_TYPE_DELETE) {
if ($data->type == api::DATAREQUEST_TYPE_DELETE) {
if ($userid == $USER->id) {
if (!api::can_create_data_deletion_request_for_self()) {
$errors['type'] = get_string('errorcannotrequestdeleteforself', 'tool_dataprivacy');
+26
View File
@@ -319,5 +319,31 @@ function xmldb_tool_dataprivacy_upgrade($oldversion) {
// Automatically generated Moodle v3.7.0 release upgrade line.
// Put any upgrade step following this.
// Automatically generated Moodle v3.8.0 release upgrade line.
// Put any upgrade step following this.
if ($oldversion < 2019111801) {
// Define field commentsformat to be added to tool_dataprivacy_request.
$table = new xmldb_table('tool_dataprivacy_request');
$field = new xmldb_field('commentsformat', XMLDB_TYPE_INTEGER, '2', null, XMLDB_NOTNULL, null, '0', 'comments');
// Conditionally launch add field commentsformat.
if (!$dbman->field_exists($table, $field)) {
$dbman->add_field($table, $field);
}
// Define field dpocommentformat to be added to tool_dataprivacy_request.
$field = new xmldb_field('dpocommentformat', XMLDB_TYPE_INTEGER, '2', null, XMLDB_NOTNULL, null, '0', 'dpocomment');
// Conditionally launch add field dpocommentformat.
if (!$dbman->field_exists($table, $field)) {
$dbman->add_field($table, $field);
}
// Dataprivacy savepoint reached.
upgrade_plugin_savepoint(true, 2019111801, 'tool', 'dataprivacy');
}
return true;
}
@@ -130,6 +130,7 @@ $string['effectiveretentionperioduser'] = '{$a} (since the last time the user ac
$string['emailsalutation'] = 'Dear {$a},';
$string['errorcannotrequestdeleteforself'] = 'You don\'t have permission to create deletion request for yourself.';
$string['errorcannotrequestdeleteforother'] = 'You don\'t have permission to create deletion request for this user.';
$string['errorinvalidrequestcomments'] = 'The comments field may contain plain text only.';
$string['errorinvalidrequestcreationmethod'] = 'Invalid request creation method!';
$string['errorinvalidrequeststatus'] = 'Invalid request status!';
$string['errorinvalidrequesttype'] = 'Invalid request type!';
+1 -1
View File
@@ -95,7 +95,7 @@ function tool_dataprivacy_myprofile_navigation(tree $tree, $user, $iscurrentuser
$showsummary = true;
}
if ($showsummary) {
if ($showsummary && $iscurrentuser) {
$summaryurl = new moodle_url('/admin/tool/dataprivacy/summary.php');
$summarynode = new core_user\output\myprofile\node('privacyandpolicies', 'retentionsummary',
get_string('dataretentionsummary', 'tool_dataprivacy'), null, $summaryurl);
+7 -1
View File
@@ -42,6 +42,13 @@ if (isguestuser()) {
$usercontext = context_user::instance($USER->id);
$PAGE->set_context($usercontext);
if ($profilenode = $PAGE->settingsnav->find('myprofile', null)) {
$profilenode->make_active();
}
$title = get_string('datarequests', 'tool_dataprivacy');
$PAGE->navbar->add($title);
// Return URL.
$params = ['id' => $USER->id];
if ($courseid) {
@@ -49,7 +56,6 @@ if ($courseid) {
}
$returnurl = new moodle_url('/user/profile.php', $params);
$title = get_string('datarequests', 'tool_dataprivacy');
$PAGE->set_heading($title);
$PAGE->set_title($title);
echo $OUTPUT->header();
+3 -9
View File
@@ -27,12 +27,10 @@ require_once('../../../config.php');
$requestid = required_param('requestid', PARAM_INT);
$confirm = optional_param('confirm', null, PARAM_INT);
$PAGE->set_url(new moodle_url('/admin/tool/dataprivacy/resubmitrequest.php', ['requestid' => $requestid]));
$url = new moodle_url('/admin/tool/dataprivacy/resubmitrequest.php', ['requestid' => $requestid]);
$title = get_string('resubmitrequestasnew', 'tool_dataprivacy');
require_login();
$PAGE->set_context(\context_system::instance());
require_capability('tool/dataprivacy:managedatarequests', $PAGE->context);
\tool_dataprivacy\page_helper::setup($url, $title, 'datarequests', 'tool/dataprivacy:managedatarequests');
$manageurl = new moodle_url('/admin/tool/dataprivacy/datarequests.php');
@@ -53,10 +51,6 @@ if (null !== $confirm && confirm_sesskey()) {
redirect($manageurl, get_string('resubmittedrequest', 'tool_dataprivacy', $stringparams));
}
$heading = get_string('resubmitrequest', 'tool_dataprivacy', $stringparams);
$PAGE->set_title($heading);
$PAGE->set_heading($heading);
echo $OUTPUT->header();
$confirmstring = get_string('confirmrequestresubmit', 'tool_dataprivacy', $stringparams);
+7
View File
@@ -34,6 +34,13 @@ $PAGE->set_context($context);
$PAGE->set_title($title);
$PAGE->set_heading($SITE->fullname);
// If user is logged in, then use profile navigation in breadcrumbs.
if ($profilenode = $PAGE->settingsnav->find('myprofile', null)) {
$profilenode->make_active();
}
$PAGE->navbar->add($title);
$output = $PAGE->get_renderer('tool_dataprivacy');
echo $output->header();
$summarypage = new \tool_dataprivacy\output\summary_page();
@@ -301,6 +301,11 @@ class tool_dataprivacy_api_testcase extends advanced_testcase {
$datarequest = api::create_data_request($student->id, api::DATAREQUEST_TYPE_EXPORT);
$requestid = $datarequest->get('id');
// Login as a user without DPO role.
$this->setUser($teacher);
$this->expectException(required_capability_exception::class);
api::approve_data_request($requestid);
}
/**
@@ -12,7 +12,7 @@ Feature: Manage data categories
And I press "Add category"
And I set the field "Name" to "Category 1"
And I set the field "Description" to "Category 1 description"
When I click on "Save" "button" in the "Delete category" "dialogue"
When I click on "Save" "button" in the "Add category" "dialogue"
Then I should see "Category 1" in the "List of data categories" "table"
And I should see "Category 1 description" in the "Category 1" "table_row"
@@ -30,5 +30,5 @@ Feature: Manage data categories
And I choose "Delete" in the open action menu
And I should see "Delete category"
And I should see "Are you sure you want to delete the category 'Category 1'?"
When I click on "Delete" "button" in the "Confirm" "dialogue"
When I click on "Delete" "button" in the "Delete category" "dialogue"
Then I should not see "Category 1" in the "List of data categories" "table"
@@ -52,5 +52,5 @@ Feature: Manage data storage purposes
And I choose "Delete" in the open action menu
And I should see "Delete purpose"
And I should see "Are you sure you want to delete the purpose 'Purpose 1'?"
When I click on "Delete" "button" in the "Confirm" "dialogue"
When I click on "Delete" "button" in the "Delete purpose" "dialogue"
Then I should not see "Purpose 1" in the "List of data purposes" "table"
@@ -0,0 +1,187 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Tests for the plugin privacy provider
*
* @package tool_dataprivacy
* @copyright 2020 Paul Holden <paulh@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
use core_privacy\local\request\userlist;
use core_privacy\local\request\writer;
use core_privacy\tests\provider_testcase;
use tool_dataprivacy\api;
use tool_dataprivacy\local\helper;
use tool_dataprivacy\privacy\provider;
/**
* Privacy provider tests
*
* @package tool_dataprivacy
* @copyright 2020 Paul Holden <paulh@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class tool_dataprivacy_privacy_provider_testcase extends provider_testcase {
/**
* Test provider get_contexts_for_userid method
*
* @return void
*/
public function test_get_contexts_for_userid() {
$this->resetAfterTest();
$user = $this->getDataGenerator()->create_user();
$context = context_user::instance($user->id);
// Returned context list should contain a single item.
$contextlist = $this->get_contexts_for_userid($user->id, 'tool_dataprivacy');
$this->assertCount(1, $contextlist);
// We should have the user context of our test user.
$this->assertSame($context, $contextlist->current());
}
/**
* Test provider get_users_in_context method
*
* @return void
*/
public function test_get_users_in_context() {
$this->resetAfterTest();
$user = $this->getDataGenerator()->create_user();
$context = context_user::instance($user->id);
$userlist = new userlist($context, 'tool_dataprivacy');
provider::get_users_in_context($userlist);
$this->assertEquals([$user->id], $userlist->get_userids());
}
/**
* Test provider get_users_in_context method for a non-user context
*
* @return void
*/
public function test_get_users_in_context_non_user_context() {
$context = context_system::instance();
$userlist = new userlist($context, 'tool_dataprivacy');
provider::get_users_in_context($userlist);
$this->assertEmpty($userlist);
}
/**
* Test provider export_user_data method
*
* @return void
*/
public function test_export_user_data() {
$this->resetAfterTest();
$user = $this->getDataGenerator()->create_user();
$context = context_user::instance($user->id);
$this->setUser($user);
// Create an export request, approve it.
$requestexport = api::create_data_request($user->id, api::DATAREQUEST_TYPE_EXPORT,
'Please export my stuff');
api::update_request_status($requestexport->get('id'), api::DATAREQUEST_STATUS_APPROVED);
// Create a deletion request, reject it.
$requestdelete = api::create_data_request($user->id, api::DATAREQUEST_TYPE_DELETE);
api::update_request_status($requestdelete->get('id'), api::DATAREQUEST_STATUS_REJECTED, 0, 'Nope');
$this->export_context_data_for_user($user->id, $context, 'tool_dataprivacy');
/** @var \core_privacy\tests\request\content_writer $writer */
$writer = writer::with_context($context);
$this->assertTrue($writer->has_any_data());
/** @var stdClass[] $data */
$data = (array) $writer->get_data([
get_string('privacyandpolicies', 'admin'),
get_string('datarequests', 'tool_dataprivacy'),
]);
$this->assertCount(2, $data);
$strs = get_strings(['requesttypeexportshort', 'requesttypedeleteshort',
'statusapproved', 'statusrejected', 'creationmanual'], 'tool_dataprivacy');
// First item is the approved export request.
$this->assertEquals($strs->requesttypeexportshort, $data[0]->type);
$this->assertEquals($strs->statusapproved, $data[0]->status);
$this->assertEquals($strs->creationmanual, $data[0]->creationmethod);
$this->assertEquals($requestexport->get('comments'), $data[0]->comments);
$this->assertEmpty($data[0]->dpocomment);
$this->assertNotEmpty($data[0]->timecreated);
// Next is the rejected deletion request.
$this->assertEquals($strs->requesttypedeleteshort, $data[1]->type);
$this->assertEquals($strs->statusrejected, $data[1]->status);
$this->assertEquals($strs->creationmanual, $data[1]->creationmethod);
$this->assertEmpty($data[1]->comments);
$this->assertContains('Nope', $data[1]->dpocomment);
$this->assertNotEmpty($data[1]->timecreated);
}
/**
* Test class export_user_preferences method
*
* @return void
*/
public function test_export_user_preferences() {
$this->resetAfterTest();
$user = $this->getDataGenerator()->create_user();
$this->setUser($user);
// Set filters preference.
$filters = [
helper::FILTER_TYPE . ':' . api::DATAREQUEST_TYPE_EXPORT,
helper::FILTER_STATUS . ':' . api::DATAREQUEST_STATUS_PENDING,
];
set_user_preference(helper::PREF_REQUEST_FILTERS, json_encode($filters), $user);
// Set paging preference.
set_user_preference(helper::PREF_REQUEST_PERPAGE, 6, $user);
provider::export_user_preferences($user->id);
/** @var \core_privacy\tests\request\content_writer $writer */
$writer = writer::with_context(context_system::instance());
$this->assertTrue($writer->has_any_data());
/** @var stdClass[] $preferences */
$preferences = (array) $writer->get_user_preferences('tool_dataprivacy');
$this->assertCount(2, $preferences);
$this->assertEquals((object) [
'value' => '1:1, 2:0',
'description' => 'Type: Export, Status: Pending',
], $preferences[helper::PREF_REQUEST_FILTERS]);
$this->assertEquals(6, $preferences[helper::PREF_REQUEST_PERPAGE]->value);
}
}
+1 -1
View File
@@ -24,6 +24,6 @@
defined('MOODLE_INTERNAL') || die;
$plugin->version = 2019111800;
$plugin->version = 2019111801;
$plugin->requires = 2019111200; // Moodle 3.5dev (Build 2018031600) and upwards.
$plugin->component = 'tool_dataprivacy';
+3
View File
@@ -48,5 +48,8 @@ function xmldb_tool_log_upgrade($oldversion) {
// Automatically generated Moodle v3.7.0 release upgrade line.
// Put any upgrade step following this.
// Automatically generated Moodle v3.8.0 release upgrade line.
// Put any upgrade step following this.
return true;
}
@@ -49,5 +49,8 @@ function xmldb_logstore_database_upgrade($oldversion) {
// Automatically generated Moodle v3.7.0 release upgrade line.
// Put any upgrade step following this.
// Automatically generated Moodle v3.8.0 release upgrade line.
// Put any upgrade step following this.
return true;
}
@@ -49,5 +49,8 @@ function xmldb_logstore_standard_upgrade($oldversion) {
// Automatically generated Moodle v3.7.0 release upgrade line.
// Put any upgrade step following this.
// Automatically generated Moodle v3.8.0 release upgrade line.
// Put any upgrade step following this.
return true;
}
+1 -1
View File
@@ -1,2 +1,2 @@
define ("tool_lp/dialogue",["core/yui"],function(a){var b=function(b,c,d,e,f){this.yuiDialogue=null;var g=this;if("undefined"==typeof f){f=!1}a.use("moodle-core-notification","timers",function(){var h="480px";if(f){h="800px"}g.yuiDialogue=new M.core.dialogue({headerContent:b,bodyContent:c,draggable:!0,visible:!1,center:!0,modal:!0,width:h});g.yuiDialogue.after("visibleChange",function(b){if(b.newVal){if("undefined"!=typeof d){a.soon(function(){d(g);g.yuiDialogue.centerDialogue()})}}else{if("undefined"!=typeof e){a.soon(function(){e(g)})}}});g.yuiDialogue.show()})};b.prototype.close=function(){this.yuiDialogue.hide();this.yuiDialogue.destroy()};b.prototype.getContent=function(){return this.yuiDialogue.bodyNode.getDOMNode()};return b});
define ("tool_lp/dialogue",["core/yui"],function(a){var b=function(b,c,d,e,f){M.util.js_pending("tool_lp/dialogue:dialogue");this.yuiDialogue=null;var g=this;if("undefined"==typeof f){f=!1}a.use("moodle-core-notification","timers",function(){var h="480px";if(f){h="800px"}g.yuiDialogue=new M.core.dialogue({headerContent:b,bodyContent:c,draggable:!0,visible:!1,center:!0,modal:!0,width:h});g.yuiDialogue.before("visibleChange",function(){M.util.js_pending("tool_lp/dialogue:before:visibleChange")});g.yuiDialogue.after("visibleChange",function(b){if(b.newVal){if("undefined"!=typeof d){a.soon(function(){d(g);g.yuiDialogue.centerDialogue();M.util.js_complete("tool_lp/dialogue:before:visibleChange")})}else{M.util.js_complete("tool_lp/dialogue:before:visibleChange")}}else{if("undefined"!=typeof e){a.soon(function(){e(g);M.util.js_complete("tool_lp/dialogue:before:visibleChange")})}else{M.util.js_complete("tool_lp/dialogue:before:visibleChange")}}});g.yuiDialogue.show();M.util.js_complete("tool_lp/dialogue:dialogue")})};b.prototype.close=function(){this.yuiDialogue.hide();this.yuiDialogue.destroy()};b.prototype.getContent=function(){return this.yuiDialogue.bodyNode.getDOMNode()};return b});
//# sourceMappingURL=dialogue.min.js.map
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,2 +1,2 @@
define ("tool_lp/grade_dialogue",["jquery","core/notification","core/templates","tool_lp/dialogue","tool_lp/event_base","core/str"],function(a,b,c,d,e,f){var g=function(a){e.prototype.constructor.apply(this,[]);this._ratingOptions=a};g.prototype=Object.create(e.prototype);g.prototype._popup=null;g.prototype._ratingOptions=null;g.prototype._afterRender=function(){var b=this._find("[data-action=\"rate\"]"),c=this._find("[name=\"rating\"]"),d=this._find("[name=\"comment\"]");this._find("[data-action=\"cancel\"]").click(function(a){a.preventDefault();this._trigger("cancelled");this.close()}.bind(this));c.change(function(){var c=a(this);if(!c.val()){b.prop("disabled",!0)}else{b.prop("disabled",!1)}}).change();b.click(function(a){a.preventDefault();var b=c.val();if(!b){return}this._trigger("rated",{rating:b,note:d.val()});this.close()}.bind(this))};g.prototype.close=function(){this._popup.close();this._popup=null};g.prototype.display=function(){return a.when(f.get_string("rate","tool_lp"),this._render()).then(function(a,b){this._popup=new d(a,b[0],this._afterRender.bind(this));return this._popup}.bind(this)).catch(b.exception)};g.prototype._find=function(b){return a(this._popup.getContent()).find(b)};g.prototype._render=function(){var a={cangrade:this._canGrade,ratings:this._ratingOptions};return c.render("tool_lp/competency_grader",a)};return g});
define ("tool_lp/grade_dialogue",["jquery","core/notification","core/templates","tool_lp/dialogue","tool_lp/event_base","core/str"],function(a,b,c,d,e,f){var g=function(a){e.prototype.constructor.apply(this,[]);this._ratingOptions=a};g.prototype=Object.create(e.prototype);g.prototype._popup=null;g.prototype._ratingOptions=null;g.prototype._afterRender=function(){var b=this._find("[data-action=\"rate\"]"),c=this._find("[name=\"rating\"]"),d=this._find("[name=\"comment\"]");this._find("[data-action=\"cancel\"]").click(function(a){a.preventDefault();this._trigger("cancelled");this.close()}.bind(this));c.change(function(){var c=a(this);if(!c.val()){b.prop("disabled",!0)}else{b.prop("disabled",!1)}}).change();b.click(function(a){a.preventDefault();var b=c.val();if(!b){return}this._trigger("rated",{rating:b,note:d.val()});this.close()}.bind(this))};g.prototype.close=function(){this._popup.close();this._popup=null};g.prototype.display=function(){M.util.js_pending("tool_lp/grade_dialogue:display");return a.when(f.get_string("rate","tool_lp"),this._render()).then(function(a,b){this._popup=new d(a,b[0],function(){this._afterRender();M.util.js_complete("tool_lp/grade_dialogue:display")}.bind(this));return this._popup}.bind(this)).catch(b.exception)};g.prototype._find=function(b){return a(this._popup.getContent()).find(b)};g.prototype._render=function(){var a={cangrade:this._canGrade,ratings:this._ratingOptions};return c.render("tool_lp/competency_grader",a)};return g});
//# sourceMappingURL=grade_dialogue.min.js.map
File diff suppressed because one or more lines are too long
@@ -1,2 +1,2 @@
define ("tool_lp/grade_user_competency_inline",["jquery","core/notification","core/ajax","core/log","tool_lp/grade_dialogue","tool_lp/event_base","tool_lp/scalevalues"],function(a,b,c,d,e,f,g){var h=function(b,c,d,e,g,h,i){f.prototype.constructor.apply(this,[]);var j=a(b);if(!j.length){throw new Error("Could not find the trigger")}this._scaleId=c;this._competencyId=d;this._userId=e;this._planId=g;this._courseId=h;this._chooseStr=i;this._setUp();j.click(function(a){a.preventDefault();this._dialogue.display()}.bind(this));if(this._planId){this._methodName="core_competency_grade_competency_in_plan";this._args={competencyid:this._competencyId,planid:this._planId}}else if(this._courseId){this._methodName="core_competency_grade_competency_in_course";this._args={competencyid:this._competencyId,courseid:this._courseId,userid:this._userId}}else{this._methodName="core_competency_grade_competency";this._args={userid:this._userId,competencyid:this._competencyId}}};h.prototype=Object.create(f.prototype);h.prototype._setUp=function(){var a=[],d=this,f=g.get_values(d._scaleId);f.then(function(b){a.push({value:"",name:d._chooseStr});for(var c=0,e;c<b.length;c++){e=b[c];a.push({value:e.id,name:e.name})}return a}).then(function(a){return new e(a)}).then(function(a){a.on("rated",function(a,e){var f=d._args;f.grade=e.rating;f.note=e.note;c.call([{methodname:d._methodName,args:f,done:function done(a){d._trigger("competencyupdated",{args:f,evidence:a})},fail:b.exception}])});return a}).then(function(a){d._dialogue=a}).fail(b.exception)};h.prototype._scaleId=null;h.prototype._competencyId=null;h.prototype._userId=null;h.prototype._planId=null;h.prototype._courseId=null;h.prototype._chooseStr=null;h.prototype._dialogue=null;return h});
define ("tool_lp/grade_user_competency_inline",["jquery","core/notification","core/ajax","core/log","tool_lp/grade_dialogue","tool_lp/event_base","tool_lp/scalevalues"],function(a,b,c,d,e,f,g){var h=function(b,c,d,e,g,h,i){f.prototype.constructor.apply(this,[]);var j=a(b);if(!j.length){throw new Error("Could not find the trigger")}this._scaleId=c;this._competencyId=d;this._userId=e;this._planId=g;this._courseId=h;this._chooseStr=i;this._setUp();j.click(function(a){a.preventDefault();this._dialogue.display()}.bind(this));if(this._planId){this._methodName="core_competency_grade_competency_in_plan";this._args={competencyid:this._competencyId,planid:this._planId}}else if(this._courseId){this._methodName="core_competency_grade_competency_in_course";this._args={competencyid:this._competencyId,courseid:this._courseId,userid:this._userId}}else{this._methodName="core_competency_grade_competency";this._args={userid:this._userId,competencyid:this._competencyId}}};h.prototype=Object.create(f.prototype);h.prototype._setUp=function(){var a=[],d=this;M.util.js_pending("tool_lp/grade_user_competency_inline:_setUp");var f=g.get_values(d._scaleId);f.then(function(b){a.push({value:"",name:d._chooseStr});for(var c=0,e;c<b.length;c++){e=b[c];a.push({value:e.id,name:e.name})}return a}).then(function(a){return new e(a)}).then(function(a){a.on("rated",function(a,e){var f=d._args;f.grade=e.rating;f.note=e.note;c.call([{methodname:d._methodName,args:f,done:function done(a){d._trigger("competencyupdated",{args:f,evidence:a})},fail:b.exception}])});return a}).then(function(a){d._dialogue=a;M.util.js_complete("tool_lp/grade_user_competency_inline:_setUp")}).fail(b.exception)};h.prototype._scaleId=null;h.prototype._competencyId=null;h.prototype._userId=null;h.prototype._planId=null;h.prototype._courseId=null;h.prototype._chooseStr=null;h.prototype._dialogue=null;return h});
//# sourceMappingURL=grade_user_competency_inline.min.js.map
File diff suppressed because one or more lines are too long
+13
View File
@@ -35,6 +35,8 @@ define(['core/yui'], function(Y) {
* @param {Boolean} wide Specify we want an extra wide dialogue (the size is standard, but wider than the default).
*/
var dialogue = function(title, content, afterShow, afterHide, wide) {
M.util.js_pending('tool_lp/dialogue:dialogue');
this.yuiDialogue = null;
var parent = this;
@@ -59,6 +61,10 @@ define(['core/yui'], function(Y) {
width: width
});
parent.yuiDialogue.before('visibleChange', function() {
M.util.js_pending('tool_lp/dialogue:before:visibleChange');
});
parent.yuiDialogue.after('visibleChange', function(e) {
if (e.newVal) {
// Delay the callback call to the next tick, otherwise it can happen that it is
@@ -67,18 +73,25 @@ define(['core/yui'], function(Y) {
Y.soon(function() {
afterShow(parent);
parent.yuiDialogue.centerDialogue();
M.util.js_complete('tool_lp/dialogue:before:visibleChange');
});
} else {
M.util.js_complete('tool_lp/dialogue:before:visibleChange');
}
} else {
if ((typeof afterHide !== 'undefined')) {
Y.soon(function() {
afterHide(parent);
M.util.js_complete('tool_lp/dialogue:before:visibleChange');
});
} else {
M.util.js_complete('tool_lp/dialogue:before:visibleChange');
}
}
});
parent.yuiDialogue.show();
M.util.js_complete('tool_lp/dialogue:dialogue');
});
};
+5 -1
View File
@@ -102,6 +102,7 @@ define(['jquery',
* @return {Promise}
*/
Grade.prototype.display = function() {
M.util.js_pending('tool_lp/grade_dialogue:display');
return $.when(
Str.get_string('rate', 'tool_lp'),
this._render()
@@ -110,7 +111,10 @@ define(['jquery',
this._popup = new Dialogue(
title,
templateResult[0],
this._afterRender.bind(this)
function() {
this._afterRender();
M.util.js_complete('tool_lp/grade_dialogue:display');
}.bind(this)
);
return this._popup;
@@ -94,6 +94,7 @@ define(['jquery',
var options = [],
self = this;
M.util.js_pending('tool_lp/grade_user_competency_inline:_setUp');
var promise = ScaleValues.get_values(self._scaleId);
promise.then(function(scalevalues) {
options.push({
@@ -134,6 +135,7 @@ define(['jquery',
.then(function(dialogue) {
self._dialogue = dialogue;
M.util.js_complete('tool_lp/grade_user_competency_inline:_setUp');
return;
})
.fail(notification.exception);
@@ -26,7 +26,6 @@ namespace tool_lp\form;
defined('MOODLE_INTERNAL') || die();
use moodleform;
use core\form\persistent;
require_once($CFG->libdir . '/formslib.php');
@@ -39,17 +38,20 @@ require_once($CFG->libdir . '/formslib.php');
*/
class template_cohorts extends moodleform {
/**
* Form definition
*
* @return void
*/
public function definition() {
$mform = $this->_form;
$options = array(
'ajax' => 'tool_lp/form-cohort-selector',
'multiple' => true,
'data-contextid' => $this->_customdata['pagecontextid'],
'data-includes' => 'parents'
'exclude' => implode(',', $this->_customdata['excludecohorts']),
'contextid' => $this->_customdata['pagecontextid'],
);
$mform->addElement('autocomplete', 'cohorts', get_string('selectcohortstosync', 'tool_lp'), array(), $options);
$mform->addElement('cohort', 'cohorts', get_string('selectcohortstosync', 'tool_lp'), $options);
$mform->addElement('submit', 'submit', get_string('addcohorts', 'tool_lp'));
}
}
+13 -1
View File
@@ -54,7 +54,19 @@ if ($canmanagetemplate && ($removecohort = optional_param('removecohort', false,
}
// Capture the form submission.
$form = new \tool_lp\form\template_cohorts($url->out(false), array('pagecontextid' => $pagecontextid));
$existingcohortsql =
'SELECT c.id
FROM {' . \core_competency\template_cohort::TABLE . '} tc
JOIN {cohort} c ON c.id = tc.cohortid
WHERE tc.templateid = :templateid';
$existingcohorts = $DB->get_records_sql_menu($existingcohortsql, ['templateid' => $template->get('id')]);
$form = new \tool_lp\form\template_cohorts($url->out(false), [
'pagecontextid' => $pagecontextid,
'excludecohorts' => array_keys($existingcohorts),
]);
if ($canmanagetemplate && ($data = $form->get_data()) && !empty($data->cohorts)) {
$maxtocreate = 50;
$maxreached = false;
@@ -32,7 +32,7 @@
// No example context because the JS is connected to webservices
}}
<div class="float-sm-right card card-block">
<div class="float-sm-right border p-2 mb-2">
{{#hascompetencies}}
<span>
<label for="competency-nav-{{uniqid}}" class="accesshide">{{#str}}jumptocompetency, tool_lp{{/str}}</label>
@@ -82,7 +82,7 @@
{{/comppath}}
{{#usercompetencycourse}}
{{#grade}}
<span class="badge {{^proficiency}}badge-danger{{/proficiency}}">{{gradename}}</span>
<span class="badge {{#proficiency}}badge-success{{/proficiency}}{{^proficiency}}badge-danger{{/proficiency}}">{{gradename}}</span>
{{/grade}}
{{/usercompetencycourse}}
{{#canmanagecoursecompetencies}}
@@ -49,7 +49,7 @@
Template statistics template.
}}
{{#competencycount}}
<div data-region="coursecompetencystatistics" class="card">
<div data-region="coursecompetencystatistics" class="border p-2 mb-2">
{{#canbegradedincourse}}
{{< tool_lp/progress_bar}}
{{$progresstext}}
@@ -44,7 +44,7 @@
"id": 1
}
}}
<div class="card well-small evidence" data-region="evidence" data-id="{{id}}">
<div class="border p-2 mb-2 evidence" data-region="evidence" data-id="{{id}}">
{{#candelete}}
<div class="float-sm-right">
<a href="#" data-action="delete-evidence">{{#pix}}t/delete{{/pix}}</a>
@@ -50,10 +50,12 @@
<div class="col-lg-6">
<p>
<form data-region="filtercompetencies" data-frameworkid="{{framework.id}}" class="form-inline">
<div class="form-group">
<div class="input-group mb-3">
<label class="accesshide" for="filter{{uniqid}}">{{#str}}search, tool_lp{{/str}}</label>
<input class="form-control" type="text" id="filter{{uniqid}}" placeholder="{{#str}}search, tool_lp{{/str}}" value="{{search}}">
<button class="btn btn-secondary">{{#pix}}a/search, , {{#str}}search{{/str}}{{/pix}}</button>
<div class="input-group-append">
<button class="btn btn-secondary">{{#pix}}a/search, , {{#str}}search{{/str}}{{/pix}}</button>
</div>
</div>
</form>
</p>
@@ -62,8 +64,8 @@
</ul>
</div>
<div class="card col-lg-6">
<div class="card-block card-body">
<div class="col-lg-6">
<div class="border p-2 mb-2">
<div class="card-title">
<h4 data-region="selected-competency">{{#str}}selectedcompetency, tool_lp{{/str}}</h4>
<span data-region="competencyactionsmenu" class="float-sm-right">
@@ -28,7 +28,7 @@
// No example context because the JS is connected to webservices
}}
<div class="float-right card p-2">
<div class="float-right border mb-2 p-2">
<form class="user-competency-course-navigation">
<input type="hidden" name="courseid" value="{{courseid}}"/>
<input type="hidden" name="mod" value="{{moduleid}}"/>
@@ -26,10 +26,8 @@
</h2>
<div>{{{template.description}}}</div>
{{#canmanagetemplatecompetencies}}
<div data-region="actions" class="clearfix">
<div class="float-left">
<button disabled class="btn btn-secondary">{{#str}}addtemplatecompetencies, tool_lp{{/str}}</button>
</div>
<div data-region="actions" class="my-4">
<button disabled class="btn btn-secondary">{{#str}}addtemplatecompetencies, tool_lp{{/str}}</button>
</div>
{{/canmanagetemplatecompetencies}}
<h3 class="mt-1">{{#str}}templatecompetencies, tool_lp{{/str}}</h3>
@@ -41,7 +39,7 @@
<div class="drag-parentnode">
{{#competencies}}
<div class="drag-samenode" data-id="{{competency.id}}">
<div class="card">
<div class="border p-2 mb-2">
{{#canmanagetemplatecompetencies}}
<span class="drag-handlecontainer float-left"></span>
<div class="float-sm-right">
@@ -45,8 +45,7 @@
Template statistics template.
}}
{{#competencycount}}
<div data-region="templatestatistics" class="card">
<div class="card-block">
<div data-region="templatestatistics" class="border p-2 mb-2">
{{< tool_lp/progress_bar}}
{{$progresstext}}
{{#str}}xcompetencieslinkedoutofy, tool_lp, { "x": "{{linkedcompetencycount}}", "y": "{{competencycount}}" } {{/str}}
@@ -90,6 +89,5 @@
</div>
</div>
{{/leastproficientcount}}
</div>
</div>
{{/competencycount}}
@@ -35,7 +35,7 @@
// No example context because the JS is connected to webservices
}}
<div class="float-sm-right card card-block p-x-1 p-b-1">
<div class="float-sm-right border p-2 mb-2">
<p>{{{groupselector}}}</p>
<form class="user-competency-course-navigation">
<input type="hidden" name="userid" value="{{userid}}"/>

Some files were not shown because too many files have changed in this diff Show More