Compare commits

...

8672 Commits

Author SHA1 Message Date
Eloy Lafuente (stronk7) acd4236df9 Moodle release 3.10.5 2021-07-10 18:56:08 +02:00
AMOS bot e47bf9a095 Automatically generated installer lang files 2021-07-09 00:07:29 +00:00
Eloy Lafuente (stronk7) f577c9f128 weekly release 3.10.4+ 2021-07-08 23:44:10 +02:00
Jun Pataleta 39a8d3ada6 Merge branch 'MDL-71919-310-fix' of https://github.com/cescobedo/moodle into MOODLE_310_STABLE 2021-07-08 23:33:31 +02:00
Jun Pataleta 7bcaff1f45 Merge branch 'MDL-70594_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2021-07-08 23:33:31 +02:00
cescobedo 2ad0a4d863 MDL-71919 core_message: Fix tests in message_send 2021-07-08 23:33:31 +02:00
Huong Nguyen 625703c176 MDL-71922 file: Enhance endless recursion requests protection 2021-07-08 23:33:31 +02:00
cescobedo 045fe3f45f MDL-71919 core_message: Fix unclosed html tags in email notification 2021-07-08 23:33:31 +02:00
Paul Holden a2bd7e21df MDL-71957 auth_shibboleth: safer session retrieval during logout. 2021-07-08 23:33:31 +02:00
Eloy Lafuente (stronk7) f83598d827 MDL-70335 behat: Ensure the scenario passes under all themes
Also, get rid of not needed @javascript tag
2021-07-08 23:33:31 +02:00
Dongsheng Cai 1e199ea63d MDL-71978 core_calendar: only allow owner to edit user subscriptions 2021-07-08 23:33:31 +02:00
Adrian Greeve 2a26fa5c33 Merge branch 'MDL-71887-310' of https://github.com/snake/moodle into MOODLE_310_STABLE 2021-07-08 23:33:31 +02:00
Mihail Geshoski 0d340b657d MDL-58393 core: Remove firstname argument from emailconfirmation string 2021-07-08 23:33:31 +02:00
Sujith Haridasan 9c621d53e9 MDL-71241 course: Validate and sanitize sort arguments
Signed-off-by: Sujith Haridasan <sujith@moodle.com>
2021-07-08 23:33:25 +02:00
Mihail Geshoski 50c9a3f3ee MDL-71242 core_course: Fix failing unit test 2021-07-08 23:33:25 +02:00
Mihail Geshoski 717f81810e MDL-71242 core_course: Test the validation of the sort value
Adds new unit test, test_course_get_recent_courses_sort_validation(),
which is reponsible for testing the validation of the sort value in
course_get_recent_courses().
2021-07-08 23:33:24 +02:00
Mihail Geshoski 4bad6006b4 MDL-71242 core_course: Update test_course_get_recent_courses() unit test
Adds additional assertions in test_course_get_recent_courses() test to
ensure that the sort funcionality works as expected.
2021-07-08 23:33:24 +02:00
Mihail Geshoski 97a56d77a9 MDL-71242 core_course: Validate the value of the sort argument
This change validates the value of the sort argument in
course_get_recent_courses().
2021-07-08 23:33:07 +02:00
Claude Vervoort 89feb325b7 MDL-71887 mod_lti: repost when no cookie due to crosssite request 2021-07-07 14:18:23 +08:00
Michael Hawkins 582b013046 MDL-71916 lib: Check cURL redirects for blocked URLs before following 2021-07-06 23:43:06 +02:00
Eloy Lafuente (stronk7) 09c13ae3b7 Merge branch 'MDL-70638-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-07-06 20:21:34 +02:00
Eloy Lafuente (stronk7) a7f7dfa156 Merge branch 'MDL-70335-310' of https://github.com/juancs/moodle into MOODLE_310_STABLE 2021-07-06 20:18:40 +02:00
Eloy Lafuente (stronk7) 98b86f78f6 Merge branch 'MDL-71537-310' of https://github.com/NashTechOpenUniversity/moodle into MOODLE_310_STABLE 2021-07-06 20:16:37 +02:00
Paul Holden 175389ba3f MDL-70638 user: correct access checks when serving profile files.
Requests for files from a users profile file area should follow
the same access checks as for the profile itself.
2021-07-06 10:28:19 +01:00
cescobedo 5cf7b4bd09 MDL-71917 core_message: Use $USER in WS delete_message_for_all_users 2021-07-06 13:33:02 +08:00
Thach Le Huy adedf35e4c MDL-71537 User tours: Minor display errors on mobile 2021-07-06 09:36:28 +07:00
Paul Holden 2725f7a7fe MDL-71981 user: escape identity fields if writer supports HTML. 2021-07-06 09:28:46 +08:00
Paul Holden 61b4283c22 MDL-71981 dataformat: indicate HTML support in writer callback. 2021-07-06 09:28:46 +08:00
Eloy Lafuente (stronk7) 2feb383659 Merge branch 'MDL-72063-310-en_fix' of git://github.com/mudrd8mz/moodle into MOODLE_310_STABLE 2021-07-04 11:02:46 +02:00
Juan Segarra Montesinos 3de775ae41 MDL-70335 mod_forum: Subscribe users from Forced to Auto mode
When a teacher changes the subscription mode from forced
subscription to auto subscription using the "cog" icon in the
forum page, users are not seen in the Show/edit current
subscribers" page.

This does not happens when done from the Edit settings page.
2021-07-03 09:54:19 +02:00
Eloy Lafuente (stronk7) 6ff56f63f1 MDL-70594 environment: Apply agreed changes
- PostgreSQL 10 required.
- Exif PHP extension recommended.
2021-07-01 22:41:57 +02:00
Eloy Lafuente (stronk7) a0beffc03f MDL-70594 environment: 4.0 base information
This is a direct copy of the 3.11 branch to have
the changes under control in next commits.
2021-07-01 22:41:56 +02:00
David Mudrák 242bda330f MDL-72063 lang: Use fixed strings in tests, too 2021-07-01 19:32:13 +02:00
Helen Foster da5fce12a1 MDL-72063 lang: Import fixed English strings (en_fix) 2021-07-01 19:31:33 +02:00
Ilya Tregubov 773984295b weekly release 3.10.4+ 2021-07-01 16:42:05 +02:00
Bas Brands b2e353c169 MDL-71366 core_question: prevent question options overflow 2021-07-01 11:56:59 +08:00
Bas Brands 2e7109d7ae MDL-71366 core_question: prevent shrinking of input radio 2021-07-01 11:56:49 +08:00
Andrew Nicols 11831dd9f3 Merge branch 'MDL-72010_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE 2021-07-01 11:11:21 +08:00
Paul Holden 5e12c0a717 MDL-71314 course: add category record snapshot to deletion event. 2021-07-01 10:32:23 +08:00
Andrew Nicols 55877ad94e Merge branch 'MDL-68003_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE 2021-07-01 09:54:11 +08:00
Sara Arjona 83046e5063 Merge branch 'MDL-67208-310' of git://github.com/lameze/moodle into MOODLE_310_STABLE 2021-06-30 16:55:45 +02:00
Simey Lameze bb5253b923 MDL-71789 calendar: fix subscription url validation 2021-06-30 16:30:15 +02:00
Sara Arjona c645a1b933 Merge branch 'MDL-71971-310' of git://github.com/lucaboesch/moodle into MOODLE_310_STABLE 2021-06-30 16:16:20 +02:00
Sara Arjona 4dfbcd7954 Merge branch 'MDL-71991_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE 2021-06-30 16:09:44 +02:00
Eloy Lafuente (stronk7) 1eee862487 Merge branch 'MDL-71947-310' of https://github.com/bmbrands/moodle into MOODLE_310_STABLE 2021-06-29 18:30:44 +02:00
Tim Hunt ce80aa2a90 MDL-68003 session timeout warning: don't show in iframes 2021-06-29 17:00:12 +01:00
Sara Arjona b304fa4a85 Merge branch 'MDL-71777-310' of https://github.com/appalachianstate/moodle into MOODLE_310_STABLE 2021-06-28 11:33:32 +02:00
Fred Woolard 99eae85be4 MDL-71777 antivirus: Use hash_from_path (sha1_file) 2021-06-25 09:52:14 -04:00
Luca Bösch bd041244f4 MDL-71971 mod_quiz: separate "Repaginate" and "Select multiple items" 2021-06-25 00:03:27 +02:00
Eloy Lafuente (stronk7) 017dce9cc3 weekly release 3.10.4+ 2021-06-24 23:03:17 +02:00
Eloy Lafuente (stronk7) 40b13110aa NOBUG: Fixed SVG browser compatibility 2021-06-24 23:03:17 +02:00
Eloy Lafuente (stronk7) 81e044debf Merge branch 'install_310_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_310_STABLE 2021-06-24 23:03:16 +02:00
Tim Hunt dedfc451f3 MDL-72010 quiz: prevent session timeouts during attempts 2021-06-24 12:25:36 +01:00
Bas Brands 4ef81f5510 MDL-71947 core_quiz: vertical forms for access rule popups 2021-06-24 12:32:12 +02:00
Bas Brands c5381e8756 MDL-71947 theme_boost: fix styles for vertical forms 2021-06-24 12:32:12 +02:00
Simey Lameze 09902461b6 MDL-67208 calendar: fix manage subscription redirection
This patch fix the subcription page only adding the course parameter
only when viewing the calendar on course context. It also passes the
url to the form instance, so we have the course parameter on the
form action attribute.
2021-06-24 17:00:20 +08:00
Tony Butler 8cbd95be5b MDL-71694 assignfeedback_comments: Behat test for feedback preservation
Including efficiency improvements from https://github.com/davosmith
2021-06-24 12:03:02 +08:00
Tony Butler 0474ebc970 MDL-71694 assignfeedback_comments: Fill latest submitted comment data
Otherwise if grading validation fails, any new/updated comments are
lost and replaced with previously saved data (or an empty editor).
2021-06-24 12:03:02 +08:00
Andrew Nicols 3cb27b509e Merge branch 'MDL-71837-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-06-24 11:00:45 +08:00
Andrew Nicols b9080a4a47 Merge branch 'MDL-55243-310' of git://github.com/HuongNV13/moodle into MOODLE_310_STABLE 2021-06-24 10:56:49 +08:00
Huong Nguyen a9ad30810f MDL-55243 files: Make is_valid_image support SVG files 2021-06-24 09:03:37 +07:00
Andrew Nicols e978c39359 MDL-71669 editor_atto: Rebuild editor_atto/events 2021-06-23 14:48:16 +08:00
Andrew Nicols ed3413ec91 Merge branch 'MDL-71669-310' of git://github.com/junpataleta/moodle into MOODLE_310_STABLE 2021-06-23 14:08:12 +08:00
Jun Pataleta a26f14d314 MDL-71669 atto_table: Set appropriate ARIA roles for table button
The table button can become a menu button when the cursor's position
in the editor is within a table. So we'd need to update the button with
ARIA attributes appropriate for a menu button.
This is best done when the button's highlight gets toggled, so we're
adding an event listener for when this happens and add/remove the ARIA
attributes accordingly.
2021-06-23 13:13:08 +08:00
Jun Pataleta 17d75afab7 MDL-71669 editor_atto: Fire custom event when toggling button highlight 2021-06-23 13:13:07 +08:00
Jun Pataleta d402b62a06 MDL-71669 editor_atto: Create an events module for the atto editor 2021-06-23 13:13:07 +08:00
Jun Pataleta a42008f2ae MDL-71669 editor_atto: Set proper roles to toolbar menus
* Menu button fix
  - Added aria-haspopup, aria-controls, and aria-expanded attributes.
* Menu fixes
  - Added aria-labelledby that points to the menu button label.
  - Removed the dialog role in the menu's container.
  - The ul tag needs the "menu" role.
  - The li tag needs the role "none" instead of the "presentation" role

Reference:
https://www.w3.org/TR/wai-aria-practices-1.1/#menubutton
2021-06-23 13:13:07 +08:00
AMOS bot 85f55e8931 Automatically generated installer lang files 2021-06-23 00:07:28 +00:00
Tim Hunt 898e36baf6 MDL-71991 files: check return value of rename when writing files 2021-06-22 19:37:08 +01:00
Sara Arjona c356cbfc23 Merge branch 'MDL-70750-310' of git://github.com/ilyatregubov/moodle into MOODLE_310_STABLE 2021-06-22 10:21:13 +02:00
Andrew Nicols 5343c8a720 Merge branch 'MDL-70233-alternative-disabled-cache-310' of https://github.com/Peterburnett/moodle into MOODLE_310_STABLE 2021-06-22 15:47:54 +08:00
Ilya Tregubov d4ba29cac0 MDL-70750 mod_survey: Fix warning for undefined offset. 2021-06-21 08:42:38 +02:00
Eloy Lafuente (stronk7) 84733bcf4f Merge branch 'MDL-71113-310' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2021-06-19 18:05:41 +02:00
AMOS bot 52898c2980 Automatically generated installer lang files 2021-06-19 00:07:30 +00:00
Andrew Nicols 9df1e30267 MDL-71113 javascript: Improve basic JS Documentation 2021-06-18 09:38:05 +08:00
Andrew Nicols e5454f31ab MDL-71113 js: Fix all jsdoc warnings 2021-06-18 09:38:05 +08:00
Andrew Nicols 4c826a2d4c MDL-71113 js: Bare minimum fixes to build jsdoc 2021-06-18 09:38:04 +08:00
Andrew Nicols c57cf0d660 MDL-71113 js: Add jsdoc configuration and Grunt 2021-06-18 09:38:04 +08:00
AMOS bot ac94b4d787 Automatically generated installer lang files 2021-06-18 00:07:27 +00:00
Víctor Déniz 10daae7ab7 weekly release 3.10.4+ 2021-06-17 14:55:00 +01:00
Andrew Nicols 98b1fd1dfc Merge branch 'MDL-71813-310' of https://github.com/NashTechOpenUniversity/moodle into MOODLE_310_STABLE 2021-06-17 11:28:54 +08:00
Eloy Lafuente (stronk7) 7c5cde9a01 Merge branch 'MDL-71896-310' of git://github.com/merrill-oakland/moodle into MOODLE_310_STABLE 2021-06-17 00:11:49 +02:00
Eloy Lafuente (stronk7) e62b152f53 Merge branch 'MDL-71888-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-06-17 00:08:20 +02:00
Eloy Lafuente (stronk7) 1cc8179bba Merge branch 'MDL-71736-310' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2021-06-17 00:01:59 +02:00
Andrew Nicols 042963a6d9 Merge branch 'MDL-71804_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2021-06-15 11:27:48 +08:00
Eloy Lafuente (stronk7) 02aa7d8974 MDL-71804 travis: Bump to bionic 2021-06-13 22:53:41 +02:00
abgreeve dbf0d0bfae weekly release 3.10.4+ 2021-06-11 13:52:15 +08:00
abgreeve b5908813d3 Merge branch 'install_310_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_310_STABLE 2021-06-11 13:52:15 +08:00
Eric Merrill 9cc18365e0 MDL-71896 dml: Add auroramysql to config-dist 2021-06-10 15:30:37 -04:00
Sujith Haridasan 593b55fa7d MDL-68915 core_form: Fix the behat test failure
Fix the behat test failure for the forum when
grades exist.

Signed-off-by: Sujith Haridasan <sujith@moodle.com>
2021-06-10 15:01:46 +08:00
Adrian Greeve 79bd8050be Merge branch 'MDL-71369-310' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2021-06-10 11:49:27 +08:00
Andrew Nicols 4d592de0f7 Merge branch 'MDL-71838_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE 2021-06-10 11:43:06 +08:00
Adrian Greeve e3b6806a51 Merge branch 'MDL-68915-310' of https://github.com/sharidas/moodle into MOODLE_310_STABLE 2021-06-10 11:36:57 +08:00
Adrian Greeve 0aef9ee01b Merge branch 'MDL-64236-310' of git://github.com/mihailges/moodle into MOODLE_310_STABLE 2021-06-10 11:28:04 +08:00
Sujith Haridasan f3b98362da MDL-68915 lesson: Do not allow maxgrade change
Do not allow maxgrade change when some of the
users are already graded. As of now this is applicable
to the following activities:
1. Forum
2. Database
3. Lesson
4. Glossary

Signed-off-by: Sujith Haridasan <sujith@moodle.com>
2021-06-10 08:33:37 +05:30
Andrew Nicols bc1d555be5 Merge branch 'MDL-71876_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2021-06-10 08:51:19 +08:00
AMOS bot d899937724 Automatically generated installer lang files 2021-06-10 00:07:23 +00:00
Paul Holden 9d02f9212e MDL-71888 admin: define clitablesexist string used by CLI installer. 2021-06-09 22:06:17 +01:00
Andrew Nicols 9d95615ae2 MDL-71736 javascript: Run the ignorefiles command more liberally 2021-06-09 19:08:53 +08:00
abgreeve f91cedfb08 Merge branch 'MDL-67975-310' of https://github.com/sharidas/moodle into MOODLE_310_STABLE 2021-06-09 16:10:53 +08:00
Sujith Haridasan 2dbd9a9554 MDL-67975 nextcloud: Add support for Link to file
This change set would bring the following new additions
to the nextcloud repo:
1. Create a new radio button in filepicker: "Link to file"
2. When user clicks this radio button a warning message
   would be created, saying this file would become public.
   Meaning a public link is created in the nextcloud server.
3. Created a sync_reference method to sync the files downloaded
   from nextcloud server. The sync/refresh time given is 1 day/24 hours.
4. Made sure that when the file is downloaded, we use the file
   from moodledata file pool.

Signed-off-by: Sujith Haridasan <sujith@moodle.com>
2021-06-09 13:38:38 +05:30
Andrew Nicols f8b76db001 Merge branch 'MDL-65637-310' of git://github.com/peterRd/moodle into MOODLE_310_STABLE 2021-06-09 13:35:33 +08:00
Jun Pataleta 3688154f92 MDL-71876 mod_h5pactivity: Increase window size during test
The addition of the activity information moves the h5p content down
out of the window view on Firefox which causes the Check button to be
unclickable. This patch increases the window size to ensure that the
check button is visible and clickable.

Credits to Eloy <stronk7@moodle.org> for the thorough investigation
of the root cause of this issue :)

This is a backport of MDL-71337
2021-06-09 00:53:03 +02:00
Eloy Lafuente (stronk7) 03dea98563 Merge branch 'MOODLE_310_MDL-71471_v2' of https://github.com/golenkovm/moodle into MOODLE_310_STABLE 2021-06-07 20:15:15 +02:00
Mikhail Golenkov db6764cf87 MDL-71471 assign: Remove submission from queue when converted in web 2021-06-04 15:28:30 +10:00
Eloy Lafuente (stronk7) 2d7386420c weekly release 3.10.4+ 2021-06-03 23:56:14 +02:00
Eloy Lafuente (stronk7) f7b500148d Merge branch 'install_310_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_310_STABLE 2021-06-03 23:56:13 +02:00
hiendinh 8b70552460 MDL-71813 filepicker: view file not available using keyboard (Enter) 2021-06-03 14:16:58 +07:00
Andrew Nicols 4b279c7ab5 Merge branch 'MDL-71741-310' of git://github.com/HuongNV13/moodle into MOODLE_310_STABLE 2021-06-03 11:51:57 +08:00
Huong Nguyen 8a125028fb MDL-71741 portfolio: Reset header information between requests
The reset process also removes the CURLFile option in the HTTP object,
which will avoid the serialisation issue on PHP7.4 and upward
2021-06-03 10:51:24 +07:00
Huong Nguyen db1a7003e6 MDL-71741 portfolio: Use the correct configurations 2021-06-03 10:51:24 +07:00
abgreeve 1402a4acfc Merge branch 'MDL-71284-310' of git://github.com/lucaboesch/moodle into MOODLE_310_STABLE 2021-06-03 11:42:05 +08:00
Andrew Nicols 4da9df136f Merge branch 'MDL-71668-310' of git://github.com/rezaies/moodle into MOODLE_310_STABLE 2021-06-03 11:34:34 +08:00
Andrew Nicols 75780c347b Merge branch 'MDL-71737-310' of git://github.com/HuongNV13/moodle into MOODLE_310_STABLE 2021-06-03 11:10:23 +08:00
abgreeve 266b8e2901 Merge branch 'MDL-71693-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-06-03 10:19:17 +08:00
abgreeve 8d79b80f47 Merge branch 'MDL-71644-310' of https://github.com/NashTechOpenUniversity/moodle into MOODLE_310_STABLE 2021-06-03 09:21:39 +08:00
Eloy Lafuente (stronk7) ac452323f0 Merge branch 'MOODLE_310_MDL-71438_v2' of https://github.com/golenkovm/moodle into MOODLE_310_STABLE 2021-06-02 23:52:51 +02:00
Paul Holden 43c60cbb8a MDL-71837 calendar: turn off export form double submit protection. 2021-06-02 19:53:08 +01:00
Tim Hunt 1e36bf1e39 MDL-71838 quiz reports: average rows calc can run out of memory
Should not use get_records when you mean record_exists.
2021-06-02 16:49:09 +01:00
Mikhail Golenkov 55fa7c84ec MDL-71438 blocks: Add index on mdl_user_preferences.name 2021-06-02 22:13:58 +10:00
Shamim Rezaie 8864520742 MDL-71668 editor_atto: Accissibility focus styling for Atto buttons
Make all Atto buttons consistent in the way they show the focus outline
2021-06-02 17:11:59 +10:00
Peter Dias e0fdddf5e9 MDL-65637 core_oauth2: Introduce a new custom linkedin oauth2 client 2021-06-02 10:24:43 +08:00
Peter Dias d1c0acdd55 MDL-65637 core_oauth2: Create new oauth2 mapping function
Separated userinfo mapping into a function and new unit test
2021-06-02 08:08:59 +08:00
Andrew Nicols d4b3f6cd30 Merge branch 'MDL-71731_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2021-06-01 12:48:04 +08:00
AMOS bot 6b0b076f34 Automatically generated installer lang files 2021-05-29 00:07:23 +00:00
Huong Nguyen bbe22a4f2f MDL-71737 portfolio: Make is_valid_image become internal function 2021-05-28 15:07:29 +07:00
Luca Bösch 82b3ed3939 MDL-71284 assign: prevent double escaping assignment name. 2021-05-27 20:29:48 +02:00
Eloy Lafuente (stronk7) deae0eb7e4 MDL-71731 phpunit: isolate tests requiring lots of peak mem
It's mostly addDocuments(), used by test_add_document_batch_large()
with 100 big documents what requires a lot of ram
although apparently, it's freed (partially) once ended.
Just the peak usage remains high. In any case, isolating that
test to avoid the non-freed side of it to consume too
much memory for the rest. (We allow "only" 2GB).

Still, I think that there is a good work about to detect which
tests are leaking / consuming too much, I'd bet there are
a bunch running completely out of control.
2021-05-27 19:42:31 +02:00
Sara Arjona 232d668264 weekly release 3.10.4+ 2021-05-27 17:45:12 +02:00
Sara Arjona 992cbc3c8f Merge branch 'install_310_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_310_STABLE 2021-05-27 17:45:12 +02:00
Sara Arjona 8f1eda6b69 Merge branch 'MDL-69703-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-05-27 12:25:07 +02:00
Paul Holden 6479736323 MDL-69703 theme_boost: ensure multi-select options take all space. 2021-05-27 10:45:55 +01:00
Sara Arjona 809a73137f Merge branch 'MDL-71145-310' of git://github.com/HuongNV13/moodle into MOODLE_310_STABLE 2021-05-27 11:37:16 +02:00
Huong Nguyen 897ebd28df MDL-71145 qtype_ddmarker: Fix Behat failure 2021-05-27 15:29:35 +07:00
Andrew Nicols f62ba9c05e Merge branch 'MDL-69703-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-05-27 12:06:36 +08:00
Andrew Nicols 950871f25a Merge branch 'MDL-71637-310' of git://github.com/peterRd/moodle into MOODLE_310_STABLE 2021-05-27 11:53:47 +08:00
Andrew Nicols 86e10b6960 Merge branch 'MDL-71047-3.10' of https://github.com/NashTechOpenUniversity/moodle into MOODLE_310_STABLE 2021-05-27 11:20:14 +08:00
Andrew Nicols ada3626996 Merge branch 'MDL-71462-MOODLE_310_STABLE' of https://github.com/SysBind/moodle into MOODLE_310_STABLE 2021-05-27 09:54:22 +08:00
Andrew Nicols 20f8c8579d Merge branch 'MDL-67771-310' of git://github.com/peterRd/moodle into MOODLE_310_STABLE 2021-05-27 09:45:27 +08:00
Andrew Nicols 2679fa4597 Merge branch 'MDL-71145-310' of git://github.com/HuongNV13/moodle into MOODLE_310_STABLE 2021-05-27 09:40:52 +08:00
AMOS bot 1168bf97e3 Automatically generated installer lang files 2021-05-27 00:07:24 +00:00
Eloy Lafuente (stronk7) 161c0985a9 Merge branch 'MDL-71159-310' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2021-05-26 18:48:05 +02:00
Peter Dias 0685644add MDL-71637 core: Set default for mb_substitute_character 2021-05-26 14:20:09 +08:00
Mihail Geshoski ac70df2f3c MDL-64236 gradereport_grader: Add padding to content in grader report
In certain operative systems the browser's scrollbar may partly cover
the content in the student header and user cells when horizontally
scrolling through the table contents. This is most noticeable when in
RTL mode. Adding slight padding on the left (or right in RTL mode) to
the content in these cells would fix this UI issue.
2021-05-26 13:47:48 +08:00
Sara Arjona 1a6d336a33 Merge branch 'MDL-68925_310' of git://github.com/mdjnelson/moodle into MOODLE_310_STABLE 2021-05-25 15:34:40 +02:00
Paul Holden 09abf0ed7d MDL-69703 theme_boost: remove right padding for multi-selects.
This removes the whitespace obscuring longer option elements when
selected, particularly on narrow screens.
2021-05-24 15:56:40 +01:00
avi 9ead5f3307 MDL-71462 core: Add phpstorm metadata file to gitignore 2021-05-24 15:52:37 +03:00
AMOS bot 84c98d3f7f Automatically generated installer lang files 2021-05-24 00:07:22 +00:00
AMOS bot 02a705975d Automatically generated installer lang files 2021-05-23 00:07:20 +00:00
Andrew Nicols cfad9c36f7 MDL-71369 admin: Apply form change checker to admin/category view 2021-05-21 09:58:25 +08:00
Huong Nguyen 47e6948847 MDL-71145 qtype_ddmarker: Incorrect marker positions in responsive mode 2021-05-21 08:47:51 +07:00
Jun Pataleta 00738cf40f Merge branch 'MDL-60431_310' of https://github.com/jonof/moodle into MOODLE_310_STABLE 2021-05-21 08:57:33 +08:00
Jonathon Fowler 56a1e134f2 MDL-60431 qtype_calculated: handle NAN and INF calculation outcomes
With significant-digits presentation mode, NAN would be formatted as
'NAN' followed by zeroes, which looks silly, and +INF would cause an
execution timeout as Moodle tries to divide +∞ by 10 until it becomes
less than 1, which can happen in a divide-by-zero situation.

Note that the user can't answer NAN or INF to any question, but at this
at least now looks consistent and also doesn't break Moodle in the case
of +INF.
2021-05-21 09:35:24 +10:00
Paul Holden f7a4eefd9b MDL-71693 admin: set default for debugdisplay to off.
The previous default value for this config was based on the
PHP ini file `display_error` property (6349a3ba). However we
override this propertly during page setup (25338300) according
to the value of the configuration itself.

This had the effect of always setting the default value for
this config to it's current value.
2021-05-20 21:39:41 +01:00
Sara Arjona a3b8da0903 weekly release 3.10.4+ 2021-05-20 11:09:07 +02:00
Sara Arjona aa6662b806 Merge branch 'install_310_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_310_STABLE 2021-05-20 11:09:06 +02:00
Peter Dias dd4d3bdb98 MDL-67771 theme: Add side-post to incourse views 2021-05-20 15:15:22 +08:00
Mark Nelson c5e6f13143 MDL-68925 assignfeedback_editpdf: avoid hiding comments with a menu open
Co-authored by: Jonathon Fowler <fowlerj@usq.edu.au>
2021-05-20 13:16:16 +08:00
Jun Pataleta f5fb4467ab Merge branch 'MDL-71157-310' of git://github.com/sarjona/moodle into MOODLE_310_STABLE 2021-05-20 12:29:44 +08:00
abgreeve 0653fc49d4 Merge branch 'MDL-65203-310' of https://github.com/dcai/moodle into MOODLE_310_STABLE 2021-05-20 11:02:04 +08:00
Thong Bui f8ce721ac4 MDL-71644 Quiz: The issues outstanding from MDL-70947.
Issue 1: While essay question's uploading progress, we need to disable submit
buttons to prevent submit form event.

Issue 2: Enable buttons after pressing cancel button on the popup
confirming overwrite file existed.
2021-05-20 08:34:01 +07:00
Andrew Nicols 1df8590b76 Merge branch 'MDL-71626-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-05-20 09:32:37 +08:00
Eloy Lafuente (stronk7) 450b231952 Merge branch 'MDL-71126-310' of git://github.com/HuongNV13/moodle into MOODLE_310_STABLE 2021-05-19 23:03:26 +02:00
Eloy Lafuente (stronk7) 987f0de317 Merge branch 'MDL-67935-310' of git://github.com/sarjona/moodle into MOODLE_310_STABLE 2021-05-19 22:50:30 +02:00
Eloy Lafuente (stronk7) 7a1f813852 Merge branch 'MDL-71373-310' of git://github.com/lucaboesch/moodle into MOODLE_310_STABLE 2021-05-19 19:41:06 +02:00
Sara Arjona 7efc2aeaba MDL-71157 block_myoverview: remove wait from behat
The step "And I wait until ".block_myoverview
[data-control='next']" "css_element" exists" is not correct
because this [data-control='next'] element exists before and
after the step so, in some cases, it might cause the following
step will start earlier than expected.
As pending JS has been added, this wait steps are not required
any more.
2021-05-19 12:37:09 +02:00
Andrew Nicols 63b5b5be49 MDL-71157 core: Pending JS in paged content bars 2021-05-19 12:37:09 +02:00
Luca Bösch 8d8c21f99e MDL-71373 tool_usertours: localize "previous"/"next" in user tours.
AMOS BEGIN
        CPY [previous,core],[previousstep,tool_usertours]
        CPY [next,core],[nextstep,tool_usertours]
       AMOS END
2021-05-19 09:56:01 +02:00
Luca Bösch 5abddbe868 MDL-71373 core_enrol: localize "close" in role manager. 2021-05-19 09:56:01 +02:00
Luca Bösch b773189d3b MDL-71373 tool_usertours: localize "previous"/"next" in user tours. 2021-05-19 09:56:01 +02:00
Luca Bösch 8ce33c5431 MDL-71373 core_table: localize "previous"/"next" in pagination. 2021-05-19 09:56:01 +02:00
Eloy Lafuente (stronk7) 3c4c7d39ad Merge branch 'MDL-71619-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-05-18 22:59:36 +02:00
Eloy Lafuente (stronk7) 6d1e2c4411 Merge branch 'MDL-71373-310' of git://github.com/lucaboesch/moodle into MOODLE_310_STABLE 2021-05-18 22:54:37 +02:00
Dongsheng Cai 960050454d MDL-65203 template: tab should be quoted to produce valid json 2021-05-18 20:41:57 +10:00
Nhan Vo 16fe2bdc5e MDL-71047 HTML Editor (Atto): Cursor position is not correct when paste 2021-05-18 10:05:48 +07:00
AMOS bot 6c7f328f20 Automatically generated installer lang files 2021-05-18 00:07:32 +00:00
Luca Bösch 4db2773881 MDL-71373 core_enrol: localize "close" in role manager. 2021-05-14 14:16:37 +02:00
Luca Bösch d0562bd5c5 MDL-71373 tool_usertours: localize "previous"/"next" in user tours. 2021-05-14 14:16:37 +02:00
Luca Bösch ea7c3d6b8f MDL-71373 core_table: localize "previous"/"next" in pagination. 2021-05-14 14:16:37 +02:00
Huong Nguyen 03aa22e05c MDL-71126 Quiz: Manual grading page size preference can get stuck at 0
Including in this change:
 - New positiveint regex rule to check if the value is a positive integer
2021-05-14 17:02:35 +07:00
Sara Arjona 486ba9af35 weekly release 3.10.4+ 2021-05-14 11:06:23 +02:00
Sara Arjona c638f70bf8 Merge branch 'install_310_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_310_STABLE 2021-05-14 11:06:22 +02:00
Sara Arjona feede81204 MDL-67935 tool_lp: fix random errors with login/logout 2021-05-14 10:53:19 +02:00
AMOS bot 89fb13c3f1 Automatically generated installer lang files 2021-05-14 00:07:30 +00:00
Paul Holden da35a2374b MDL-71626 admin: filter site fullname in CLI maintenance script. 2021-05-13 20:28:14 +01:00
Paul Holden e7d1363565 MDL-71619 privacy: extend correct class in provider testcases.
Extending the privacy provider testcase means that it's tearDown
method will reset the request writer.
2021-05-13 20:25:10 +01:00
Eloy Lafuente (stronk7) 954c20c521 Merge branch 'MDL-71580-310-enfix' of git://github.com/mudrd8mz/moodle into MOODLE_310_STABLE 2021-05-12 23:00:14 +02:00
Helen Foster d13badc089 MDL-71580 lang: Import fixed English strings (en_fix) 2021-05-12 11:08:09 +02:00
Sara Arjona 183348c219 weekly release 3.10.4+ 2021-05-11 12:42:34 +02:00
Sara Arjona c394fc970d Merge branch 'install_310_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_310_STABLE 2021-05-11 12:42:34 +02:00
AMOS bot 158054b3bd Automatically generated installer lang files 2021-05-11 00:07:30 +00:00
Víctor Déniz 595b858da0 Merge branch 'MDL-71060-310' of https://github.com/NashTechOpenUniversity/moodle into MOODLE_310_STABLE 2021-05-10 23:42:52 +01:00
Thong Bui dcd5dfd22c MDL-71060 Questions: Duplicates 'Current category' text. 2021-05-10 00:24:28 +07:00
Eloy Lafuente (stronk7) 237f4ccada Moodle release 3.10.4 2021-05-08 16:40:42 +02:00
Eloy Lafuente (stronk7) f674b77d34 weekly release 3.10.3+ 2021-05-07 16:54:50 +02:00
Eloy Lafuente (stronk7) 9215f9d294 NOBUG: Fixed SVG browser compatibility 2021-05-07 16:54:50 +02:00
Eloy Lafuente (stronk7) b72be5f142 Merge branch 'install_310_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_310_STABLE 2021-05-07 16:54:49 +02:00
abgreeve 5ed11926a6 Merge branch 'MDL-68747-310' of https://github.com/dcai/moodle into MOODLE_310_STABLE 2021-05-07 11:45:45 +08:00
Mathew May e4274d80a4 MDL-70622 mod_lti: Tighten redirect param typing 2021-05-07 11:45:45 +08:00
Adam Olley 87883bb43c MDL-70622 mod_lti: Prevent xss on lti 1.3 authentication script
Without this, people can craft URLs that other users might use not realising
what they do - and as a XSS vulnerability, it could do any number of things the
clicking-user has access to do on the site.

Change-Id: I82adc71e8706d8929011b4b24523d5b62b8ccea1
2021-05-07 11:45:34 +08:00
Jun Pataleta cd83b3732e Merge branch 'MDL-71395-310-2' of git://github.com/marinaglancy/moodle into MOODLE_310_STABLE 2021-05-07 10:30:39 +08:00
abgreeve c6ec73b12e Merge branch 'MDL-70181_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2021-05-07 10:22:28 +08:00
Víctor Déniz 3c23c78500 Merge branch 'MDL-71303-310' of https://github.com/StudiUM/moodle into MOODLE_310_STABLE 2021-05-06 23:34:33 +01:00
Eloy Lafuente (stronk7) 1b22f24666 Merge branch 'MDL-70049-310_count_submissions' of https://github.com/agrowe/moodle into MOODLE_310_STABLE 2021-05-06 23:27:20 +02:00
Eloy Lafuente (stronk7) 0656fb0d19 Merge branch 'MDL-70772-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-05-06 23:20:13 +02:00
Eloy Lafuente (stronk7) d13532e364 Merge branch 'MDL-71313_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE 2021-05-06 23:15:06 +02:00
Eloy Lafuente (stronk7) 0e077d9b68 Merge branch 'MDL-71343-m310' of https://github.com/rjnl/moodle into MOODLE_310_STABLE 2021-05-06 23:07:46 +02:00
Sara Arjona 35fbf2b4af MDL-70110 mod_assign: make phpunit test DB order agnostic 2021-05-06 19:38:45 +02:00
Sara Arjona 3938b91363 Merge branch 'MDL-71491-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-05-06 18:42:32 +02:00
Marina Glancy d87d0973f5 MDL-71395 core: fix bug in google lib wrapper
because of changes in PHP8 the '' == 0 is no longer true and the error in the google api wrapper was discovered
2021-05-06 18:39:10 +02:00
Sara Arjona c5298a3d9a Merge branch 'MDL-71420_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2021-05-06 17:58:29 +02:00
Marina Glancy 83dda7ae04 MDL-71395 block_tag_youtube: sometimes exception may have empty message 2021-05-06 17:49:14 +02:00
Víctor Déniz 2561b61d81 Merge branch 'MDL-71402-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-05-06 16:47:02 +01:00
Paul Holden 119c201a10 MDL-71491 repository_flickr: return more file data.
See also 643b0cca.
2021-05-06 16:36:35 +01:00
Sara Arjona 3cdb182a70 Merge branch 'MDL-71268-310' of git://github.com/lucaboesch/moodle into MOODLE_310_STABLE 2021-05-06 17:11:31 +02:00
Paul Holden 5e6e118a2e MDL-71402 availability: fix group restriction button in mod form.
* The button to "Add group/grouping access restriction" under
   common module settings should only be present if corresponding
   availability plugins are enabled; and
 * Prevent the same button behaving as a submit button, which
   intercepted the user hitting return in the form and added a
   restriction without deliberate action taken by the user.
2021-05-06 14:20:32 +01:00
Sara Arjona cd0b5a63fa Merge branch 'MDL-70110-310' of https://github.com/septatrix/moodle into MOODLE_310_STABLE 2021-05-06 13:16:13 +02:00
Víctor Déniz afc3b1dd3d Merge branch 'MDL-71434-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-05-06 11:15:18 +01:00
Sara Arjona d1983c3ce1 Merge branch 'MDL-71390-310' of git://github.com/marinaglancy/moodle into MOODLE_310_STABLE 2021-05-06 08:07:40 +02:00
Adrian Greeve 0094d8e66e Merge branch 'MDL-70786-310' of git://github.com/lucaboesch/moodle into MOODLE_310_STABLE 2021-05-06 10:05:02 +08:00
AMOS bot b34246ca19 Automatically generated installer lang files 2021-05-06 00:07:32 +00:00
Juan Leyva 5e29bd67e6 MDL-71513 mobile: Fix last access visibility 2021-05-05 22:49:07 +01:00
Eloy Lafuente (stronk7) ad7c296dc9 MDL-71420 environment: Lower sodium requirement to recommended 2021-05-05 23:06:18 +02:00
Sara Arjona 9aad1581bc Merge branch 'MDL-71517-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-05-05 12:17:43 +02:00
Sara Arjona 56882a76d1 Merge branch 'MDL-71187-310' of git://github.com/lucaboesch/moodle into MOODLE_310_STABLE 2021-05-05 12:14:13 +02:00
Víctor Déniz 14c8b8bd56 Merge branch 'MDL-71460-310' of git://github.com/peterRd/moodle into MOODLE_310_STABLE 2021-05-05 10:43:08 +01:00
Luca Bösch e66bf8a5c1 MDL-71187 quizaccess_seb: Change "Launch Safe Exam Browser" to a href.
In order to allow for correct seb:// or sebs:// calls without browser
warnings of insecure links, it is not possible to send a get request
with an attached cmid parameter to the unknown seb:// or sebs://
URL via a form button.
We've got to use a <a href> link outside a form to circumvent
browsers warning of an insecure link and call Safe Exam Browser
correctly.
2021-05-05 10:54:34 +02:00
Leon Stringer 01aee79df0 MDL-70181 database: Quote database object names
Table names and database name now enclosed in backticks.
admin/cli/mysql_collation.php failed if $CFG->prefix was blank with
MySQL 8.0 because table 'groups' conflicted with a new reserved word.

Note that this quotes both mysql_collation.php and mysql_compressed_rows.php
but only the former was mal-functioning.

The case of mysql_compressed_rows.php is a little bit special because
not all tables are processed, only those having big rows. And the groups
table is not one of them. In any case, better add the quotes there for
any future case.

Also, when testing this patch https://tracker.moodle.org/browse/MDL-71512
was discovered and will need to be fixed to make core 100% compliant
with MySQL 8.0 and MariaDB 10.6 and up.
2021-05-05 10:16:54 +02:00
Peter Dias e3b4f6d3fd MDL-71460 hub: Use checkboxes instead of dropdowns
Change the yes/no dropdowns to a checkbox. Defaults to unchecked.
2021-05-05 10:27:28 +08:00
Víctor Déniz 73d36ebafa Merge branch 'MDL-70864-310-zip_packer_windows' of git://github.com/mudrd8mz/moodle into MOODLE_310_STABLE 2021-05-05 00:03:40 +01:00
Eloy Lafuente (stronk7) d73d9dd99f Merge branch 'MDL-71425-310-enfix' of git://github.com/mudrd8mz/moodle into MOODLE_310_STABLE 2021-05-04 23:39:50 +02:00
Paul Holden 301f78c282 MDL-71359 mod_forum: empty forums shouldn't export anything. 2021-05-04 17:22:47 +02:00
Sara Arjona 373c263482 MDL-71408 h5plib_v124: Add required changes after lib upgrade
- The mbstring extension is required since Moodle 3.9 onwards so
the upgrading steps have been removed because they are not
required any more.
- The pull-request for fixing some minor PHP7.4 problems has been
integrated so this patch is not required.
2021-05-04 17:22:47 +02:00
Sara Arjona ac7cd6c603 MDL-71408 h5plib_v124: Upgrade H5P core library to 1.24.02 2021-05-04 17:22:47 +02:00
Huong Nguyen 62b4ebab51 MDL-70720 Quiz: Improve capability checks when fetching users' best grades 2021-05-04 17:22:47 +02:00
Shamim Rezaie abbda5d025 MDL-69028 repository: Put a rate limit on draft file uploads 2021-05-04 17:22:47 +02:00
Paul Holden 0debb3cac0 MDL-71130 quiz_grading: escape user idnumber on display. 2021-05-04 17:22:47 +02:00
David Mudrák 9f4404e80d MDL-70804 mnet: Use proper DML method to get records from the table
This improves the code and avoids the risk of SQL injection through the
malicious XML-RPC request from the MNet peer.
2021-05-04 17:22:47 +02:00
Sara Arjona d9af87d70a Merge branch 'MDL-71274-310' of git://github.com/aanabit/moodle into MOODLE_310_STABLE 2021-05-04 17:10:48 +02:00
David Mudrák 804f1f5ac7 MDL-71425 lang: Fix reworded strings in tests 2021-05-04 16:56:09 +02:00
Helen Foster 23f0d09ec7 MDL-71425 lang: Import fixed English strings (en_fix) 2021-05-04 16:48:21 +02:00
Paul Holden 641b678d4b MDL-71517 mod_data: remove invalid form custom data access.
On PHP7.4, trying to access array offsets of NULL triggers a notice.
2021-05-04 15:35:46 +01:00
Luca Bösch 5183181f94 MDL-70786 report_loglive: respect fullname setting. 2021-05-04 14:19:17 +02:00
Luca Bösch b74abdbea1 MDL-70786 report_log: respect fullname setting. 2021-05-04 14:19:17 +02:00
Luca Bösch a11c2cb391 MDL-70786 report_completion: respect fullname setting. 2021-05-04 14:19:17 +02:00
Luca Bösch 204748856a MDL-70786 report_competency: respect fullname setting. 2021-05-04 14:19:17 +02:00
Luca Bösch 8962bd76c3 MDL-70786 report_progress: respect fullname setting. 2021-05-04 14:19:17 +02:00
Luca Bösch 8a07e2f53d MDL-71268 graphics: Use new Moodle logo for RSS feeds by Moodle 2021-05-04 14:15:29 +02:00
Sara Arjona 3de329785d weekly release 3.10.3+ 2021-05-04 13:27:55 +02:00
Sara Arjona 63a4a88dd1 Merge branch 'install_310_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_310_STABLE 2021-05-04 13:27:55 +02:00
Adrian Greeve 4f46b8449b Merge branch 'MDL-66673-MOODLE_310_STABLE' of https://github.com/ScottVerbeek/moodle into MOODLE_310_STABLE 2021-05-04 15:47:33 +08:00
AMOS bot 72c300facf Automatically generated installer lang files 2021-05-04 00:07:31 +00:00
Eloy Lafuente (stronk7) c96074aafd Merge branch 'MDL-71463-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-05-03 19:01:01 +02:00
David Mudrák 7f507d94d9 MDL-70864 files: Fix zip_packer extracting files with trailing dots
File and folder names cannot end with dots on Windows. So replace the
trailing dots with underscore consistently with how some other zip tools
(such as 7-zip) handle this case.
2021-05-03 18:14:17 +02:00
Marina Glancy 6211bc0be5 MDL-71390 core: raise max_input_vars requirement for Moodle 3.11 2021-05-03 13:25:36 +02:00
Adrian Greeve 6dc0b43072 Merge branch 'MDL-71440-310' of git://github.com/mihailges/moodle into MOODLE_310_STABLE 2021-05-03 16:04:36 +08:00
Mihail Geshoski 502076cde6 MDL-71440 mod_assign: New capability for viewing the submission summary
Creates a new capability mod/assign:viewownsubmissionsummary which will
be required in order to display the submission summary to the user in
the assignment page.
2021-05-03 15:32:21 +08:00
Jake Dallimore 79368aaa6a Merge branch 'MDL-52724-310' of git://github.com/merrill-oakland/moodle into MOODLE_310_STABLE 2021-05-03 13:25:36 +08:00
Víctor Déniz 5431063238 Merge branch 'MDL-69956-310' of https://github.com/dcai/moodle into MOODLE_310_STABLE 2021-05-01 13:43:19 +01:00
Víctor Déniz 36764c36c0 weekly release 3.10.3+ 2021-04-30 12:54:29 +01:00
Rajneel Totaram f902e75bae MDL-71343 core_h5p: Convert all line-endings to UNIX format 2021-04-30 23:45:21 +12:00
Andrew Nicols 8fd5eb7be5 MDL-71343 core_h5p: Add unit test for helper::parse_js_array
Signed-off-by: Rajneel Totaram <rjnlfj@yahoo.com>
2021-04-30 23:40:49 +12:00
Dongsheng Cai 8399b45fd0 MDL-69956 forum: throw exception when advanced grading is not ready 2021-04-30 14:59:36 +10:00
Adrian Greeve dc783d3d5e Merge branch 'MDL-71481-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-04-30 11:19:46 +08:00
Jun Pataleta aaaf3abc4d Merge branch 'MDL-70947-310' of git://github.com/HuongNV13/moodle into MOODLE_310_STABLE 2021-04-30 10:34:24 +08:00
Sara Arjona 9a36fe6886 Merge branch 'MDL-60331-310_take3' of git://github.com/lucaboesch/moodle into MOODLE_310_STABLE 2021-04-29 17:49:55 +02:00
Paul Holden 1b8ccba1f2 MDL-71463 dml: escape square brackets for SQL Server LIKE operator. 2021-04-29 13:49:28 +01:00
Amaia Anabitarte 723ffea626 MDL-71274 analytics: Don't generate insight for hidden courses
Hidden courses can be used for training
but we do not want to generate insights for them
because students do not have access to hidden courses.
This was fixed in MDL-66806 for "Students at risk" model.
Fixed for "Students who have not accessed the course recently" in this issue.
2021-04-29 11:13:02 +02:00
Paul Holden 0c57ffc2b5 MDL-71481 repository_flickr_public: return more file data.
A HTTP HEAD request is required to get the image filesize.
The remaining data can be obtained from existing calls to
the Flickr API.
2021-04-29 09:49:16 +01:00
Huong Nguyen f3ae9f9d45 MDL-70947 File upload: Upload protection
Interacts badly with double-submit protection, and not all uploads protected
2021-04-29 15:32:12 +07:00
Sara Arjona 3bffbfabb5 Merge branch 'MDL-71016-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-04-29 09:21:52 +02:00
Jun Pataleta 3afeaed3ff Merge branch 'MDL-70863-310' of git://github.com/jleyva/moodle into MOODLE_310_STABLE 2021-04-29 15:05:15 +08:00
Andrew Nicols c05862dc9a Merge branch 'MDL-56609_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2021-04-29 09:41:59 +08:00
Víctor Déniz 9cd78a8b4f Merge branch 'MDL-71200-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-04-28 20:53:49 +01:00
Paul Holden 8f630db213 MDL-71016 gradeexport_xml: ensure user/grade idnumbers are encoded. 2021-04-28 19:03:56 +01:00
Luca Bösch 689d10b02b MDL-60331 questions: prevent double escaping question categories. 2021-04-28 17:32:27 +02:00
Sara Arjona 71f40d0018 Merge branch 'MDL-70979-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-04-28 13:06:18 +02:00
Sara Arjona b9f9758f5e Merge branch 'MDL-71127-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-04-28 12:58:28 +02:00
Sara Arjona 9e19f3c1f5 Merge branch 'MDL-70763-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-04-28 12:36:36 +02:00
Septatrix 8f0daf43b7 MDL-70110 assign: add group submission attemptnumber test 2021-04-28 11:50:24 +02:00
Sara Arjona fa72038987 Merge branch 'MDL-71244-310' of git://github.com/lucaboesch/moodle into MOODLE_310_STABLE 2021-04-28 09:17:39 +02:00
Andrew Nicols 6679c41c89 Merge branch 'MDL-71168-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-04-28 10:50:19 +08:00
Andrew Nicols 1ed97439dd MDL-70909 mod_h5pactivity: Whitespace fix 2021-04-28 10:33:29 +08:00
Andrew Nicols 17625bd5b2 Merge branch 'MDL-70909-310' of git://github.com/ferranrecio/moodle into MOODLE_310_STABLE 2021-04-28 10:26:41 +08:00
Andrew Nicols 475ea093b4 Merge branch 'MDL-71386-310' of git://github.com/NoelDeMartin/moodle into MOODLE_310_STABLE 2021-04-28 10:15:54 +08:00
Eloy Lafuente (stronk7) 40d45ede41 MDL-56609 phpunit: Fix bogus expectation on DST changes day
Current test works ok every day of the year but the day of
DST begin changes (last Sunday of March currently).

That day, 01:00 Europe/London simply doesn't exist, because
the time is moved forward by 60 minutes.

Hence the expectation for the next cron execution is not 1 "normal"
day (24h) but 1 less hour.

Note this only happens for the current test on DST begins, the
opposite change (DST ends), happening the last Sunday of October
is not affected, because, at all effects, 01:00 is a perfectly normal
and existing hour.
2021-04-27 18:31:01 +02:00
Luca Bösch 6651b3f940 MDL-71244 enrol_manual: Add bootstrap classes to buttons 2021-04-27 17:26:24 +02:00
Ferran Recio e1ac84a458 MDL-70909 mod_h5pactivity: fix reports on freeze context 2021-04-27 15:35:39 +02:00
Sara Arjona ff833a08de weekly release 3.10.3+ 2021-04-27 15:14:58 +02:00
Adrian Greeve d426ee3ccc Merge branch 'MDL-71329-310' of https://github.com/Chocolate-lightning/moodle into MOODLE_310_STABLE 2021-04-27 09:35:52 +08:00
Víctor Déniz 813338182c Merge branch 'MDL-65687-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-04-27 01:13:18 +01:00
Víctor Déniz 5e7f937481 Merge branch 'MDL-71003-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-04-27 00:37:00 +01:00
Sara Arjona 1bbfbd7444 Merge branch 'MDL-70917-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-04-26 15:18:12 +02:00
Sara Arjona 0f308b0df1 Merge branch 'MDL-71416-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-04-26 12:35:50 +02:00
Eloy Lafuente (stronk7) fea40706b1 Merge branch 'MDL-70446-m310' of https://github.com/sammarshallou/moodle into MOODLE_310_STABLE 2021-04-26 10:45:16 +02:00
Paul Holden eb60ece090 MDL-71434 mod_data: add form control class to template textarea. 2021-04-25 18:35:04 +01:00
Tim Schroeder 062dc30ffd MDL-70110 assign: fixed ws get_submissions for groups 2021-04-24 12:11:15 +02:00
Paul Holden a834862ce4 MDL-71416 report_log: user context header should show users name.
Co-Authored-By: Luca Bösch <luca.boesch@bfh.ch>
2021-04-23 20:24:34 +01:00
Sara Arjona e148629f48 weekly release 3.10.3+ 2021-04-23 10:47:03 +02:00
Mathew May 8e750158a0 MDL-71329 tool_moodlenet: Check to see if we get errors before curl 2021-04-23 15:49:55 +08:00
Jun Pataleta 78ea26ad7b Merge branch 'MDL-71171_310' of git://github.com/mdjnelson/moodle into MOODLE_310_STABLE 2021-04-23 12:40:47 +08:00
Mark Nelson b58a1b9e34 MDL-71171 customfield_text: ensure we set defaults properly 2021-04-23 12:37:38 +08:00
Andrew Nicols 298a70eba1 Merge branch 'MOODLE_310_STABLE-MDL-71376' of https://github.com/rjnl/moodle into MOODLE_310_STABLE 2021-04-23 11:53:24 +08:00
Andrew Nicols 0e301e88a5 Merge branch 'MDL-70970-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-04-23 11:39:04 +08:00
ScottVerbeek 4b9b0839b6 MDL-66673 groups: Stop notice when messaging system is disabled 2021-04-23 08:54:38 +10:00
Ferran Recio d7d94cf30f MDL-70909 behat: context freeze and not freeze steps 2021-04-22 15:51:36 +02:00
Sara Arjona 72b6d0be84 Merge branch 'MDL-71136_310' of https://github.com/TomoTsuyuki/moodle into MOODLE_310_STABLE 2021-04-22 13:56:49 +02:00
Sara Arjona fa2d1ab5d3 Merge branch 'MDL-71400-310' of git://github.com/mihailges/moodle into MOODLE_310_STABLE 2021-04-22 13:16:38 +02:00
Ferran Recio 78aabd1e28 MDL-70909 core: add cannotmatchanyrows to capabilities join 2021-04-22 13:10:37 +02:00
Jun Pataleta 72e7b87b92 Merge branch 'MDL-71170_310' of git://github.com/mdjnelson/moodle into MOODLE_310_STABLE 2021-04-22 18:55:12 +08:00
Noel De Martin 3a83f57043 MDL-71386 behat: Support for 3.9.5+ mobile app 2021-04-22 12:16:01 +02:00
Paul Holden 2a706c3e5c MDL-71200 mod_folder: ensure "Download folder" option is backed up. 2021-04-22 10:29:12 +01:00
Paul Holden faaa25b5cc MDL-70979 search: validate external user search parameters.
Clean return value in unit test for same.
2021-04-22 10:22:57 +01:00
Mihail Geshoski 6b5a1b02fe MDL-71400 assignfeedback_offline: Fix message after worksheet upload 2021-04-22 13:08:52 +08:00
Jun Pataleta 96ddfecda3 Merge branch 'MDL-71156-310' of git://github.com/lameze/moodle into MOODLE_310_STABLE 2021-04-22 11:53:39 +08:00
Simey Lameze 94259f8a7d MDL-71156 core: machinery to recover orphaned calendar events
The machinery to fix orphaned calendar events that were broken by MDL-67494.

The solution consists of:

1) Upgrade step that checks if this site has executed the problematic upgrade steps and
   if positive, it will schedule a new run for calendar_fix_orphaned_events adhoc task.

2) Adhoc task that will self-spawn calling the recovery machinery, running until
   all the orphaned calendar events are fixed. It also sets the maximum runtime of
   60 seconds. It is also possible to override that number by specifing the desired
   number setting the ->calendareventsmaxseconds in your config.php

3) CLI script that will look for all the calendar events which userids
   where broken by a wrong upgrade step, affecting to Moodle 3.9.5
   and up.

   It performs checks to both:
     a) Detect if the site was affected (ran the wrong upgrade step).
     b) Look for orphaned calendar events, categorising them as:
       - standard: site / category / course / group / user events
       - subscription: events created via subscriptions.
       - action: normal action events, created to show common important dates.
       - override: user and group override events, particular, that some activities support.
       - custom: other events, not being any of the above, common or particular.

   By specifying it (--fix) try to recover as many broken events (missing userid) as
   possible. Standard, subscription, action, override events in core are fully supported but
   override or custom events should be fixed by each plugin as far as there isn't any standard
   API (plugin-wise) to launch a rebuild of the calendar events.

4) Unit tests and helper functions to generate calendar events. We have decided to
   keep the tests simple, testing only true and false and not using data generators because
   the code is purely to recover the calendar events and won't turn into an API or something
   and also due to the urgency of this issue.
   The helpers have been created in calendar/tests/helpers.php since there are no data generators
   for calendar.
2021-04-22 10:43:37 +08:00
Andrew Nicols 855e7e9ede Merge branch 'MDL-70412-310' of git://github.com/aanabit/moodle into MOODLE_310_STABLE 2021-04-22 10:07:57 +08:00
Neill Magill e6725b8cbb MDL-64336 assign: Add missing PHP doc 2021-04-21 17:21:19 +02:00
Neill Magill bd80f68c11 MDL-64336 assign: Teachers should be able to see all submissions
Before this change a teacher would be able to see users listed if:

* They have an active enrolment and can submit
* They have an an inactive enrolment for a role that can submit

After this change they will additonally be able to see users listed:

* That have an active enrolment and have submitted
* That have an inactive enrolment and have submitted

This means that if an assignment has it's context frozen all users
that have made some form of submission will still be listed.

It will also apply if the submission capability is removed from a
user.

If a user's enrolment is deleted they will not be listed.

The submission and grading counts have also been updated so
they will reflect the new rules.
2021-04-21 17:15:54 +02:00
Neill Magill dbcfda9641 MDL-64336 assign: Submissions should be visible while frozen
Before this change if a student visited an assignment that is
frozen they would only see the title and description even if
they had made a submission to it.

After the change they will be able to see the status of their
submission and any feedback and grades they have recived.

It will also make the Moodle app recognise that submission
should not happen because the assignment is frozen.

Tests based on ones created by Andrew Nicols
2021-04-21 17:15:45 +02:00
Sara Arjona b62526d0ad Merge branch 'MDL-62244_310_label_view' of https://github.com/sheesania/moodle into MOODLE_310_STABLE 2021-04-20 17:45:06 +02:00
Sara Arjona d9293c77bc weekly release 3.10.3+ 2021-04-20 15:51:19 +02:00
Sara Arjona 6f9415fea0 Merge branch 'install_310_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_310_STABLE 2021-04-20 15:51:18 +02:00
Paul Holden 647020f584 MDL-70970 quizaccess_seb: consistent property array sorting by key.
In PHP8.0 using `ksort` was producing incorrect results by sorting
keys differing only in case in the wrong order. This change makes
sorting consistent between PHP versions.

Co-Authored-By: Tim Hunt <T.J.Hunt@open.ac.uk>
2021-04-20 14:36:19 +01:00
Rajneel Totaram afc20e7caa MDL-71376 mod_quiz: fix undefined object reference 2021-04-20 20:13:40 +12:00
Jun Pataleta 6d82a01438 Merge branch 'MDL-71364_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2021-04-20 09:23:43 +08:00
AMOS bot 3e47cdda94 Automatically generated installer lang files 2021-04-20 00:07:27 +00:00
Víctor Déniz 7ccaf08d5a Merge branch 'MDL-71087-310' of https://github.com/NashTechOpenUniversity/moodle into MOODLE_310_STABLE 2021-04-19 23:45:02 +01:00
Eloy Lafuente (stronk7) 5d309ef2a8 Merge branch 'MDL-69256-310' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2021-04-20 00:05:05 +02:00
Víctor Déniz ce023afec9 Merge branch 'MOODLE_310_STABLE_fix_gradeimport_csv' of https://github.com/intrajp/moodle into MOODLE_310_STABLE 2021-04-19 22:49:09 +01:00
Dongsheng Cai fdb9a664f6 MDL-68747 mod_quiz: force LTR for quiz grading overview chart 2021-04-19 21:06:37 +10:00
Sara Arjona 79d705df64 Merge branch 'MDL-71365_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2021-04-19 10:18:39 +02:00
Paul Holden 73e9259c10 MDL-71127 mod_quiz: fix thrown exception for invalid question columns. 2021-04-19 09:07:13 +01:00
Paul Holden 785cf4fb22 MDL-71168 report_participation: fix select all users checkbox. 2021-04-19 09:05:13 +01:00
Sara Arjona c30923d77d Merge branch 'MDL-66475-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-04-19 09:49:23 +02:00
Sara Arjona ea388d74ab Merge branch 'MDL-65553-310' of git://github.com/aanabit/moodle into MOODLE_310_STABLE 2021-04-19 08:53:45 +02:00
AMOS bot 61d1af0818 Automatically generated installer lang files 2021-04-18 00:07:25 +00:00
Eloy Lafuente (stronk7) 93960101e9 MDL-71365 grunt: fix ignores missing LF @ EOF 2021-04-18 00:44:06 +02:00
Eloy Lafuente (stronk7) 26e8b4a0fa MDL-71364 behat: fix randomness causes by "now" advancing
Some recent tests do set a date time element
to ##now## or tomorrow and, immediately after that
the look if, effectively, ##now## and #tomorrow#
have been set (with minutes resolution).

Problem is that, between the field is set and the field
is verified, it can happen that the time advances to
next minute (from H:M:59 to H:M+1:00) and then the
assertion fails.

To avoid this, we could have lowered the resolution to be
hours... but that doesn't solve the problem just makes it
to happen less often.

So, instead of that... we are setting the 2 now and tomorrow
cases to be "today noon" and "tomorrow noon" (12:00:00) so
we ensure they won't be ever in the risk of jumping of minute.
2021-04-17 12:33:32 +02:00
Eloy Lafuente (stronk7) a1523774bc Merge branch 'MDL-70099-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-04-17 09:40:37 +02:00
Sara Arjona 7c1feb97b2 weekly release 3.10.3+ 2021-04-16 17:03:33 +02:00
Sara Arjona 26e00f4640 Merge branch 'install_310_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_310_STABLE 2021-04-16 17:03:32 +02:00
Andrew Nicols bf4038a971 Merge branch 'MOODLE_310_MDL-71233' of https://github.com/golenkovm/moodle into MOODLE_310_STABLE 2021-04-16 12:08:51 +08:00
Andrew Nicols 10c4a67760 Merge branch 'MDL-60490-missing_close_div-310' of https://github.com/leonstr/moodle into MOODLE_310_STABLE 2021-04-16 11:54:13 +08:00
Andrew Nicols def3f4a074 Merge branch 'MDL-69415-310' of git://github.com/sarjona/moodle into MOODLE_310_STABLE 2021-04-16 11:27:06 +08:00
Amaia Anabitarte 71613b1055 MDL-70412 groups: Improving create_group data generator
Increasing the size of the name for generated groups
to ensure we don't have problems with ordering.
2021-04-15 16:57:23 +02:00
Amaia Anabitarte db374d6a80 MDL-65553 core_analytics: Don't allow to flag predictions several times
Even if a prediction is hidden from the report once is flagged,
it can be flagged several times if the user visits detailed view via URL.
We remove the checkbox to select a prediction and flag it
once it has already been flagged.
2021-04-15 16:39:09 +02:00
Jake Dallimore 6958a078a6 Merge branch 'MDL-71338-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-04-15 14:42:44 +08:00
Jake Dallimore 5566bfe436 Merge branch 'MDL-71119-310' of git://github.com/sarjona/moodle into MOODLE_310_STABLE 2021-04-15 08:32:29 +08:00
AMOS bot 40cdfc58fc Automatically generated installer lang files 2021-04-15 00:07:34 +00:00
Paul Holden 416b25fc77 MDL-71338 tool_usertours: correct Content-Type on tour export.
Replace existing code with standard file serving mechanism, in
turn correcting the previously incorrect Content-Type header.
2021-04-14 21:12:02 +01:00
Eloy Lafuente (stronk7) ae88411798 Merge branch 'MDL-70616-310-fixed' of https://github.com/izendegi/moodle into MOODLE_310_STABLE 2021-04-14 12:45:23 +02:00
Iñigo Zendegi 909c977e00 MDL-70616 gradingform_rubric: Filters not applied to rubric name 2021-04-14 11:51:11 +02:00
Sara Arjona 3306411314 MDL-71119 core_badges: Add more information to errors
Some errors raised when calling external services were ignored.
Displaying this information helps to debug and find the real reasons
why some action, like connecting to an external backpack, can't be
done.
2021-04-14 11:04:06 +02:00
Sara Arjona 4203a0389e MDL-71119 core_badges: Use basicauth and remove urlencode
Basic authorization header is required to get token. Besides, client
id and secret shouldn't call urlencode.
2021-04-14 11:01:27 +02:00
Sara Arjona 2d308243f4 MDL-71119 core_badges: Initialise scopes param in backpack-connect.php
The scopes parameter should be passed when creating the OAuth2 badges
client. As it is an optional parameter, when it's empty, it will
be initilised with the supported scopes for the backpack issuer.

It will happen, for instance, when a call is done to oauth2callback.php
because, as defined in RFC6749, OAuth2 authorization response only
supports code and state.
2021-04-14 11:01:27 +02:00
Paul Holden 6a7baaced0 MDL-70772 mod_forum: check for valid usernode before making active. 2021-04-14 09:20:20 +01:00
Andrew Nicols 0c611e0a13 Merge branch 'MDL-71154_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2021-04-14 12:11:21 +08:00
AMOS bot 905511e816 Automatically generated installer lang files 2021-04-14 00:07:28 +00:00
Eloy Lafuente (stronk7) d883536e6f MDL-71154 ci: Prevent upstream branches and tags to be built
Both for travis and GHA:

- master and MOODLE_XXX_STABLE branches
- any vX.Y.Z tag

won't lead to a build anymore.
2021-04-13 16:55:50 +02:00
Eloy Lafuente (stronk7) 653d6f0229 weekly release 3.10.3+ 2021-04-13 10:26:39 +02:00
Eloy Lafuente (stronk7) 4ab41d6090 Merge branch 'install_310_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_310_STABLE 2021-04-13 10:26:38 +02:00
Eloy Lafuente (stronk7) c50d68cfd9 Merge branch 'MDL-71059-310' of git://github.com/abias/moodle into MOODLE_310_STABLE 2021-04-13 00:42:34 +02:00
Tim Hunt 33d6929e1f MDL-71313 repositories: warn if get_instances context is wrong type 2021-04-12 20:35:02 +01:00
Sara Arjona f4a604e4e2 Merge branch 'MDL-68716-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-04-12 17:24:46 +02:00
Sara Arjona 0ecc30eb85 Merge branch 'MDL-71264_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2021-04-12 16:40:16 +02:00
Sara Arjona 4de37cf603 Merge branch 'MDL-70595-310' of git://github.com/mickhawkins/moodle into MOODLE_310_STABLE 2021-04-12 16:01:40 +02:00
Sara Arjona dda7890857 Merge branch 'MDL-71107-10' of git://github.com/aanabit/moodle into MOODLE_310_STABLE 2021-04-12 12:41:16 +02:00
Eloy Lafuente (stronk7) b470f7b246 Merge branch 'MDL-69102-310' of https://github.com/martygilbert/moodle into MOODLE_310_STABLE 2021-04-12 00:02:05 +02:00
Eloy Lafuente (stronk7) f5087ef548 MDL-69102 phpunit: Add test to cover ALL cohort criteria
That way we can check that the expectations are
working ok for every database. Previously only the
ANY case was being tested.

Also, convert them to course badges and check, via
review_all_criteria() that the SQL structures returned
by award_criteria_cohort->get_completed_criteria_sql()
doesn't fail and return the expected counters.
2021-04-10 12:38:46 -04:00
Issam Taboubi 7e146f752a MDL-71303 core: HTML not escaped in block skip link 2021-04-09 17:31:27 -04:00
AMOS bot ece30526dd Automatically generated installer lang files 2021-04-09 00:07:31 +00:00
Eric Merrill a3fa31fa21 MDL-52724 editor_atto: Scrub atto html for invalid ol, ul, and li tags
Try to correct broken ul/ol/li tags, as they have an outsized impact
on course layout. Uses basic regex and loops to track open and closed
tags.

Also adds a deep clean option to the HTML cleaner, that runs less
frequent, more intensive cleanings. This is because normally _cleanHTML
gets called after each keystroke, which could cause problems with
large content on weak systems.

Behat changes are a fix for setting multiline strings in Atto, and
creating a multiline match step.
2021-04-08 15:30:50 -04:00
Eloy Lafuente (stronk7) 06b3ac6ca1 Merge branch 'MDL-70802-310' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2021-04-08 18:37:39 +02:00
Víctor Déniz 4c8c9a4c4b Merge branch 'MDL-71116-310' of git://github.com/sarjona/moodle into MOODLE_310_STABLE 2021-04-08 01:05:55 +01:00
Amaia Anabitarte 538c8eddb5 MDL-71107 core_contentbank: Behat test. Authoring when copying a course 2021-04-07 10:03:37 +02:00
Amaia Anabitarte fafed9dc90 MDL-71107 core_contentbank: Fill content author when copying a course
'usercreated' and 'usermodified' fields can not be always mapped.
We are filling those fields with 'old' users when working on the same
site, or with current user when working on a different instance.
2021-04-07 10:03:37 +02:00
Peter Burnett c2661e3ffc MDL-70233 cache: Disabled factory now gets writer from parent 2021-04-07 15:32:44 +10:00
Alex Rowe 1611b30b1c MDL-70049 assign: count_submissions_need_grading call when can't grade 2021-04-07 08:57:05 +10:00
Eloy Lafuente (stronk7) 69455d835c Merge branch 'MDL-70959-310' of git://github.com/junpataleta/moodle into MOODLE_310_STABLE 2021-04-06 22:29:07 +02:00
Eloy Lafuente (stronk7) c33060d008 Merge branch 'MDL-68635-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-04-06 22:23:42 +02:00
Víctor Déniz 10f934e300 Merge branch 'MDL-71128-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-04-06 19:51:02 +01:00
Michael Hawkins 9d63efed82 MDL-70595 core: Updated security.txt expiry 2021-04-06 13:13:45 +08:00
AMOS bot da5111e321 Automatically generated installer lang files 2021-04-06 00:07:37 +00:00
Paul Holden ebfe1d5945 MDL-70099 enrol: increase accuracy of current enrolments by date.
By rounding the current time it was possible that the most recently
created user enrolments (e.g. self enrolments) were being excluded.

This would manifest itself in a user being enrolled on a course,
but it not appearing under "My courses" navigation or on their own
Dashboard until the rounded time had caught up with the current
time.
2021-04-05 19:32:15 +01:00
Paul Holden 359cc7e787 MDL-71003 user: fix alignment of autocomplete participant filters. 2021-04-04 23:21:25 +01:00
Paul Holden 981784000d MDL-70917 tool_behat: fix profile/replace option comparison.
The `isset` call always returned true for the 'replace' option,
because even if not specified it receives a non-null value. The
`strpos` call now does a strict equality check rather than
greater-than-or-equal (which always returns true).
2021-04-04 23:18:37 +01:00
Paul Holden 542a7490f2 MDL-70763 core: export preferences for correct user.
Ensure we are using the ID of the given user rather than falling
back to that of the current user during privacy export.
2021-04-04 23:15:43 +01:00
Paul Holden e44ae4df58 MDL-70763 quiz_overview: export preferences for correct user. 2021-04-04 23:15:43 +01:00
Paul Holden e89432fb19 MDL-70763 gradereport_grader: export preferences for correct user. 2021-04-04 23:15:43 +01:00
Paul Holden 3e30dffa31 MDL-66475 task: fix random timing failures in logger cleanup test. 2021-04-04 23:12:38 +01:00
AMOS bot e084f4c0b4 Automatically generated installer lang files 2021-04-04 00:07:33 +00:00
Eloy Lafuente (stronk7) 215851c4c0 MDL-71264 behat: Change date(time) element update order
This includes 2 change to the order date(time) elements are filled,
each one addressing one type of problem, where current order is
problematic and can lead to unexpected dates.

1) Changing date, when current month only has X days and target
   month has more than X days. Example, being 1 April, change
   the date to 31 May.
     This is solved by changing the order of introduction
     from current D => M => Y to Y => M => D.
2) Changing date, when target month only has X days and current
   month has more that X days. Example, being 31 March, change
   the date to 28 Feb.
     This is solved by always setting the D to 1, before the
     Y => M => D sequence commented @ 1) begins.
2021-04-03 18:10:04 +02:00
Eloy Lafuente (stronk7) f751383a15 MDL-71264 behat: New feature covering all day/month/year date changes
Because of the order that dates and datetimes are filled by behat
sometimes there are some intermediate results that are impossible
and then the form (javascript) automatically reacts and fixes the
date, ultimate leading to a different date that the one we wanted
to set with Behat.

This is noticeable when switching between months (with some day
being the last day of the month) and the 2 months have a different
number of days. For example April date => March date (or the opposite).

This test covers all the critical changes (day, month and year),
back and forth. All times are Perth/Australia.
2021-04-03 10:59:45 +02:00
AMOS bot ab1207e8eb Automatically generated installer lang files 2021-04-02 00:07:25 +00:00
Marty Gilbert 5ef3241ae3 MDL-69102 badge: Fixes broken WHERE clause
When buildilng the 'WHERE' clause, the SQL generated
a query that selected any user who was a member of the
**last** group, not all of the groups.

I believe the query has to be re-worked so that it only
returns users who are in ALL of the groups. This can
be done by a GROUP BY and HAVING.
2021-04-01 14:51:21 -04:00
Alison Blomenberg eebc6ba6a8 MDL-62244 Resource: label view redirects to label, not course 2021-04-01 11:54:48 -06:00
Leon Stringer 6cd746cb4d MDL-60490 tool_lp: Missing div close
Mustache template had opening <div> with missing </div>.
2021-04-01 12:18:13 +01:00
sam marshall 6877043d8c MDL-70446 search_solr: File indexing can fail due to multipart upload
Due to Solr bug SOLR-15039, uploading files for indexing can fail if
it uses multipart upload. This changes it to use direct binary upload.

Unfortunately, the direct binary version in PHP curl only supports a
string, so we have to load the file into memory. I added extra code to
restrict the size of files indexed to (memory limit - 100MB), which is
usually 284MB unless configured differently because cron runs under
MEMORY_EXTRA.
2021-04-01 11:40:36 +01:00
AMOS bot 2c249dbee1 Automatically generated installer lang files 2021-04-01 00:07:27 +00:00
Juan Leyva 6c14348b41 MDL-70863 mod_forum: Allow NULL in timecreated 2021-03-31 17:49:58 +02:00
Víctor Déniz c7b4cf91f8 weekly release 3.10.3+ 2021-03-30 15:37:42 +01:00
Víctor Déniz 3bc49b14bf Merge branch 'install_310_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_310_STABLE 2021-03-30 15:37:41 +01:00
Paul Holden f4e28ca6c2 MDL-65687 message: increase confirmation dialog zindex.
Make sure that confirmation dialogs (such as block/unblock user,
delete conversation) are shown with prominence in the messaging
drawer.
2021-03-30 10:50:48 +01:00
Tomo Tsuyuki ed1ce9cf9b MDL-71136 backup: Fix moodle_exception path. 2021-03-30 10:56:09 +11:00
Mikhail Golenkov 31530a2730 MDL-71233 backup: Fix Moodle version for MDL-69418 2021-03-30 10:45:14 +11:00
Paul Holden 82babe08ea MDL-68635 tool_cohortroles: observe user initial table filter. 2021-03-29 14:12:17 +01:00
Paul Holden 76e39a9c2a MDL-68716 mod_forum: extra column sorting options in privacy export.
Accounts for extra sort options that were added in bc23cbaf.
2021-03-29 14:05:37 +01:00
Eloy Lafuente (stronk7) f41360dd50 Merge branch 'MDL-70963-310' of git://github.com/sarjona/moodle into MOODLE_310_STABLE 2021-03-29 12:39:56 +02:00
Andrew Nicols 838190a43a Merge branch 'MDL-71004_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2021-03-29 11:54:27 +08:00
AMOS bot e2b34c37bd Automatically generated installer lang files 2021-03-29 00:07:26 +00:00
AMOS bot 250afa688f Automatically generated installer lang files 2021-03-28 00:07:23 +00:00
Víctor Déniz 325915ef34 Merge branch 'MDL-70537-m310' of https://github.com/sammarshallou/moodle into MOODLE_310_STABLE 2021-03-26 20:15:29 +00:00
Sara Arjona fec16e68c9 MDL-70963 core_badges: Use expected JSON format for OBv2.1
This patch adds some changes to guarantee that OpenBadges 2.1 (OBv2.1)
will return always the same JSON format that OBv2.0 (because the only
difference between both versions it's the BadgeConnect API).
2021-03-26 09:02:18 +01:00
Shintaro Fujiwara c906a33e1e MDL-69304 gradeimport_csv: Validate if the user id is numerical. 2021-03-26 10:31:40 +09:00
Víctor Déniz e8a5efe835 Merge branch 'MDL-71194-310' of git://github.com/NoelDeMartin/moodle into MOODLE_310_STABLE 2021-03-25 15:15:09 +00:00
Noel De Martin aa07315267 MDL-71194 behat: Fix app tests 2021-03-25 13:51:01 +01:00
Andrew Nicols d4de6e594d Merge branch 'MDL-70980-310' of git://github.com/ferranrecio/moodle into MOODLE_310_STABLE 2021-03-25 08:07:41 +08:00
AMOS bot 14138237ee Automatically generated installer lang files 2021-03-25 00:07:27 +00:00
Eloy Lafuente (stronk7) ef7fcf4261 Moodle release 3.10.3 2021-03-24 20:13:09 +01:00
Eloy Lafuente (stronk7) 0e74a6c0c5 MDL-71004 git: Ignore moodle-plugin-ci.phar in any directory 2021-03-24 20:10:34 +01:00
Víctor Déniz fa85c3b806 weekly release 3.10.2+ 2021-03-24 14:21:00 +00:00
Eloy Lafuente (stronk7) 8518f6307f Merge branch 'MDL-71182-310-2' of git://github.com/lameze/moodle into MOODLE_310_STABLE 2021-03-24 10:50:23 +01:00
Simey Lameze 0c799ad2e1 MDL-71182 calendar: add logic for category events in get_context
This commit adds the missing logic for category events in
get_context() method. Without this fix, users will get errors
if they have category events with userid set to 0.
2021-03-24 17:34:31 +08:00
Andrew Nicols 06c9de6b05 MDL-70802 javascript: Normalise component consistently in templates 2021-03-24 11:18:33 +08:00
Simey Lameze 7a09d64104 MDL-71182 calendar: Revert "Merge branch 'MDL-67494-310' of git://github.com/lameze/moodle into MOODLE_310_STABLE"
This reverts commit 5a407772c7, reversing
changes made to 82f2fe02e6.
2021-03-24 09:22:04 +08:00
Víctor Déniz 5f7136f17c Merge branch 'MDL-71022-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-03-23 23:01:31 +00:00
Víctor Déniz 3278f5ca50 Merge branch 'MDL-70727-310' of https://github.com/NashTechOpenUniversity/moodle into MOODLE_310_STABLE 2021-03-23 18:24:19 +00:00
Andrew Nicols 43520e3eaa Merge branch 'MDL-71039-310' of git://github.com/marinaglancy/moodle into MOODLE_310_STABLE 2021-03-23 11:18:39 +08:00
Andrew Nicols 107244cf20 Merge branch 'MDL-69036-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-03-23 09:54:42 +08:00
Andrew Nicols 7cb384756e Merge branch 'MDL-67870-310' of git://github.com/mihailges/moodle into MOODLE_310_STABLE 2021-03-23 09:24:54 +08:00
Andrew Nicols a8d18f88a1 MDL-69256 tests: Fix random slow test failures in completion cron 2021-03-23 08:08:29 +08:00
Mark Nelson a87f5b6e8c MDL-71170 customfield_text: use correct error string 2021-03-22 21:56:48 +08:00
Sara Arjona 9e52a6a0e1 MDL-69415 core_h5p: prepend H5P libraries in autoloader
Core and mod_hvp are using the same namespace for some H5P
libraries. This is causing some random errors.
In order to get the expected behaviour in Moodle core, this patch
prepends H5P libraries in order to guarantee they are loaded first.
Plugins using same libraries will need to use a different namespace
if they overlap and a different version of these libraries should
be used.
2021-03-22 12:41:02 +01:00
Ferran Recio e21872130d MDL-70980 mod_h5pactivity: fix review mode 2021-03-22 10:58:00 +01:00
Mihail Geshoski 65aceea7ed MDL-67870 backup: Skip value change if setting is locked by hierarchy
The given condition in the if statement did not take into account cases
when the setting is locked by hierarchy. Settings which are locked by
hierarchy should should keep their current values which were inherited
from the parent.
2021-03-22 15:33:47 +08:00
Thinh Pham 3567998cfd MDL-71087 File picker: Focus lost after 'Create folder' 2021-03-22 14:30:43 +07:00
Andrew Nicols 76c6d2f225 MDL-71159 output: Do not run content prefetch during install 2021-03-22 13:15:17 +08:00
Chris Brown 61d4fcc812 MDL-71139 trademark: Improve the trademark messaging 2021-03-22 12:00:28 +08:00
Sara Arjona 0820e24c18 MDL-71116 core_badges: Backpack URLs with more than 50 chars
Backpack URLs (web and API) can have up to 255. However, the form
for creating/editing them, doesn't allow URLs with more than 50
characters. This patch align limitation to DB value (255).
2021-03-19 15:09:07 +01:00
Eloy Lafuente (stronk7) 2b260526fc weekly release 3.10.2+ 2021-03-19 14:06:33 +01:00
Eloy Lafuente (stronk7) 1d38f7c3eb Merge branch 'install_310_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_310_STABLE 2021-03-19 14:06:31 +01:00
Jun Pataleta 35f368a1b4 MDL-70959 completion: Fix completion_info::get_data() unit tests
* Fixed inverted $sameuser test data.
* Fixed caching expectation check. Caching only relies on whether the
user accessing the completion data is the same user or not.
* Fixed checking for the caching of other modules. Should have been
checking cm ID and not instance ID.
* Additional test case when whole course parameter is passed as
true, but the requesting user is different from the target user.
2021-03-19 11:50:14 +08:00
sam marshall 31aedd4c1c MDL-70537 Availability: Avoid recursive calls to $cm->name
These recursive calls didn't work in PHP 7.3 and below, but in PHP
7.4 they also cause a fatal error which means if you have invalid
availability data, the whole page might die.
2021-03-18 15:56:28 +00:00
Jun Pataleta 348d2c66df Merge branch 'MDL-70992-310' of https://github.com/NashTechOpenUniversity/moodle into MOODLE_310_STABLE 2021-03-18 12:23:27 +08:00
Adrian Greeve cdc875c25c Merge branch 'MDL-70924-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-03-18 11:51:59 +08:00
Adrian Greeve a3c38be96b Merge branch 'MDL-71048-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-03-18 11:10:13 +08:00
Adrian Greeve 2f1b88412d Merge branch 'MDL-70977-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-03-18 10:27:24 +08:00
Adrian Greeve a688fc9d6c Merge branch 'MDL-71068-protectusername-confirmed-MOODLE_310_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_310_STABLE 2021-03-18 09:46:21 +08:00
AMOS bot 401c241450 Automatically generated installer lang files 2021-03-18 00:07:25 +00:00
Brendan Heywood 6b7850290b MDL-71068 login: Fix edge cases with $CFG->protectusernames 2021-03-17 17:39:43 +11:00
sangnguyen ba0a487685 MDL-70992 Folder: Unnecessary tab stops to the left of files 2021-03-17 09:37:21 +07:00
Paul Holden 147a25d87f MDL-71128 mod_quiz: escape question idnumber on display. 2021-03-16 20:28:48 +00:00
Sara Arjona 0e462101e0 Merge branch 'MDL-44613-integration-310' of git://github.com/mihailges/moodle into MOODLE_310_STABLE 2021-03-16 08:27:03 +01:00
Mihail Geshoski fae4570571 MDL-44613 mod_assign: Fix behat failure in classic
The link to the calendar page is missing in the navigation block in
classic which causes a behat failure in the 'Set availibility dates
for an assignment' feature. The fix includes adding the calendar block
to the Course page which can be used to navigate to the calendar page.
2021-03-16 11:32:36 +08:00
Adrian Greeve 096b28dee9 Merge branch 'MDL-70780-310' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2021-03-16 11:24:29 +08:00
Sara Arjona 4a4912ecbf Merge branch 'MDL-44613-310-1' of git://github.com/mihailges/moodle into MOODLE_310_STABLE 2021-03-15 15:53:58 +01:00
Paul Holden 8c276d003c MDL-70977 mod_forum: fix empty equality check updating post content.
Using the external method for updating posts, the check for empty
subject/message content wasn't correct (disallowed the string '0'),
in addition to being impossible to set a posts message format
property to FORMAT_MOODLE (integer 0).
2021-03-15 12:49:06 +00:00
Paul Holden 23fd19658d MDL-70924 course: ensure required fields present when getting courses. 2021-03-15 12:46:49 +00:00
Mihail Geshoski 2551709dbd MDL-44613 mod_assign: Automate testing of the assignment availability 2021-03-15 20:01:36 +08:00
Mihail Geshoski 9d2f8acfb4 MDL-44613 tool_behat: Update datetime format usages to strftime
Updates all existing datetime format usages to strftime in the
'time to timestamp' transformation in tool_behat behat tests.
2021-03-15 20:01:36 +08:00
Mihail Geshoski 6484e5ae81 MDL-44613 core_message: Update datetime format usages to strftime
Updates all existing datetime format usages to strftime in the
'time to timestamp' transformation in core_message behat tests.
2021-03-15 20:01:36 +08:00
Mihail Geshoski 7726160ef3 MDL-44613 behat: strftime format in time to timestamp transformation
Modifies the 'string time to timestamp' behat trasformation to use
userdate() instead of date(). The userdate() method is generally used
throught Moodle for constructing formatted date strings and this change
will provide more consistency and prevent any potential behat failures.
Therefore, if the date format is defined in the given trasformation, it
has to be strftime compatible. Example:
'I should see "##tomorrow noon##%A, %d %B %Y, %I:%M %p##"'
2021-03-15 20:01:36 +08:00
Adrian Greeve 936f22755c Merge branch 'MDL-70306-310' of git://github.com/peterRd/moodle into MOODLE_310_STABLE 2021-03-15 11:14:51 +08:00
Peter Dias d199b23598 MDL-70306 auth: Update the thirdpartylib.xml 2021-03-15 11:10:23 +08:00
AMOS bot f2ff9d8256 Automatically generated installer lang files 2021-03-13 00:07:27 +00:00
Jun Pataleta 7eb9ddc5ae MDL-70959 completion: Fix unit tests for get_data()
The unit tests for completion_info::get_data() does not make a lot of
sense with mocking being incorrectly used and the actual functionality
is not being properly tested. I have rewritten the test to use actual
cm_info instances and data providers for better coverage.
2021-03-12 13:34:58 +08:00
Jun Pataleta 3afc0edaf9 MDL-70959 completion: Documentation improvements
* Fix typo in $cm parameter's type in PHPDoc
* Improve the comment to better explain the logic why fetching the
completion data for the whole course can only be done when caching is
used.
Even if $wholecourse is set to true, there's no point in fetching the
completion data for all the course modules unless we're caching the
results.
2021-03-12 13:34:55 +08:00
Sara Arjona 6b804f9e1f weekly release 3.10.2+ 2021-03-11 17:18:50 +01:00
Sara Arjona 201734b465 Merge branch 'install_310_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_310_STABLE 2021-03-11 17:18:49 +01:00
Adrian Greeve cb8a282e05 Merge branch 'MDL-66025-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-03-11 11:40:39 +08:00
Adrian Greeve 3f1a70c171 Merge branch 'MDL-71026-310' of git://github.com/ilyatregubov/moodle into MOODLE_310_STABLE 2021-03-11 11:02:44 +08:00
Eloy Lafuente (stronk7) dc9f2d2509 Merge branch 'MDL-70726-3.10' of https://github.com/NashTechOpenUniversity/moodle into MOODLE_310_STABLE 2021-03-11 00:11:52 +01:00
Eloy Lafuente (stronk7) acd3b26df0 Merge branch 'MDL-70789-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-03-10 23:52:54 +01:00
Eloy Lafuente (stronk7) d5e880ca73 Merge branch 'MDL-70967-310' of git://github.com/marinaglancy/moodle into MOODLE_310_STABLE 2021-03-10 23:35:08 +01:00
AMOS bot f1e7a22672 Automatically generated installer lang files 2021-03-10 00:07:21 +00:00
Paul Holden 2730c1a987 MDL-69036 theme_boost: consistent table row hovering for links.
When hovering over table rows with the `dimmed_text` class we
should consistently set the text/link colour.

Co-Authored-By: Mikel Martín <mikel@moodle.com>
2021-03-09 16:22:42 +00:00
Andrew Nicols 3f87850bc2 MDL-70780 customfield: Address random behat fails
A number of behat fails have been creeping in with the customfield code
as behat is moving onto the next step before the current step finishes.

This change introduces some additional pending JS tracking to prevent
this.
2021-03-09 07:52:24 +08:00
AMOS bot a7e720be5f Automatically generated installer lang files 2021-03-07 00:07:20 +00:00
Eloy Lafuente (stronk7) 15f3dddd04 Moodle release 3.10.2 2021-03-06 18:03:57 +01:00
AMOS bot b0aa3ba6af Automatically generated installer lang files 2021-03-06 00:07:19 +00:00
Sara Arjona c6f3ecb4f0 weekly release 3.10.1+ 2021-03-05 16:01:41 +01:00
Sara Arjona 573158a4f3 Merge branch 'install_310_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_310_STABLE 2021-03-05 16:01:40 +01:00
Alexander Bias e1fcbc9d3d MDL-71059 repository_contentbank: set default returntype
The content bank was designed for making easier to reuse content.
So "Link to the file" should be the default option when using the
contentbank repository, in order to let teachers modify their
content in the content bank and update automatically it everywhere
is used.
2021-03-05 11:34:38 +01:00
Amaia Anabitarte f8b584f09a MDL-70726 behat: Fixing existing fail tests
Some of the current behat tests were wrong but not failing because of the bug in 'should not exist' step.
Once the bug is fixed, we must fix also wrong behats.
2021-03-05 14:08:55 +07:00
Ilya Tregubov b33790d932 MDL-69680 lib: Fix behat test backup_and_restore.feature 2021-03-04 22:51:28 +01:00
Paul Holden 627fcc0ebc MDL-71048 lang: fix null equality check of lang string args. 2021-03-04 19:43:55 +00:00
Marina Glancy 37ff88f18d MDL-71039 core_form: support valuehtmlcallback in autocomplete inline 2021-03-04 13:39:51 +01:00
Thinh Pham bbdd616d5c MDL-70727 Behat: function scrollIntoView not working in the app 2021-03-04 13:37:13 +07:00
Ilya Tregubov 0e0b494d4a MDL-69680 lib: Replace deprecated jQuery functions 2021-03-04 12:47:56 +08:00
Ilya Tregubov b61c7fe0f9 MDL-69680 lib: Update jQuery version in Moodle files 2021-03-04 12:47:56 +08:00
Ilya Tregubov 044754dddb MDL-69680 lib: Upgrade jQuery lib to 3.5.1 2021-03-04 12:47:56 +08:00
Eloy Lafuente (stronk7) c25ae6986c Merge branch 'MDL-70424-auth-avoid-changes-MOODLE_310_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_310_STABLE 2021-03-04 00:29:21 +01:00
Brendan Heywood f5e822222d MDL-70424 auth: Avoid random changes to $CFG->auth 2021-03-04 09:30:17 +11:00
Ilya Tregubov 67aa4abd73 MDL-70767 feedback: Prevent xss in feedback answer text. 2021-03-03 23:09:09 +01:00
Sara Arjona f3e6ed90d0 Merge branch 'MDL-68721-310' of git://github.com/ferranrecio/moodle into MOODLE_310_STABLE 2021-03-03 17:51:31 +01:00
Ferran Recio cfd58aae3e MDL-68721 mod_h5pactivity: report acceptance tests 2021-03-03 17:23:24 +01:00
Paul Holden 822eea5638 MDL-65552 block_activity_results: correct Behat tests for idnumbers.
Teachers can see user idnumber fields only when they are configured
identity fields. Students cannot.
2021-03-03 23:14:47 +08:00
Marina Glancy 9c29fcaae0 MDL-65552 user: escape idnumber and email in table_sql 2021-03-03 23:14:47 +08:00
Paul Holden bee5d9d27e MDL-65552 user: escape idnumber field on output.
This commit also corrects parameter definition of the field to
match core_user.
2021-03-03 23:14:47 +08:00
Sara Arjona 695e05f1e8 Merge branch 'MDL-70125_310-3' of git://github.com/mdjnelson/moodle into MOODLE_310_STABLE 2021-03-03 15:47:37 +01:00
Sara Arjona 5a407772c7 Merge branch 'MDL-67494-310' of git://github.com/lameze/moodle into MOODLE_310_STABLE 2021-03-03 11:49:20 +01:00
Sara Arjona 82f2fe02e6 Merge branch 'MDL-67119-310' of git://github.com/aanabit/moodle into MOODLE_310_STABLE 2021-03-03 11:11:41 +01:00
Ilya Tregubov f81bc6488d MDL-71026 user: Fix incorrect get_string call. 2021-03-03 11:44:23 +02:00
Jun Pataleta b9a6effccb Merge branch 'MDL-70987-310' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2021-03-03 16:42:03 +08:00
Simey Lameze 7108bf827d MDL-67494 calendar: user_delete_user should delete all user events 2021-03-03 16:31:24 +08:00
Simey Lameze e5ce3297ba MDL-67494 calendar: privacy provider should not delete shared events 2021-03-03 16:31:24 +08:00
Simey Lameze 0f7ba5c1d2 MDL-67494 calendar: shared subscriptions should not set userid to 0 2021-03-03 16:31:24 +08:00
Simey Lameze 45266a3611 MDL-67494 calendar: only user overrides should retain userid 2021-03-03 16:31:24 +08:00
Simey Lameze bc6fa0ad98 MDL-67494 calendar: set userid to zero for shared events 2021-03-03 16:31:24 +08:00
Simey Lameze b528e38d53 MDL-67494 calendar: step to set userid 0 to all shared events 2021-03-03 16:31:22 +08:00
Simey Lameze d6d923a26a MDL-67494 calendar: add logic for category events in get_context 2021-03-03 16:27:05 +08:00
Jun Pataleta 970fc5dfd5 Merge branch 'MDL-71009_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE 2021-03-03 16:22:37 +08:00
Sara Arjona d7136fa135 Merge branch 'MDL-69097_310' of https://github.com/inigozendegi/moodle into MOODLE_310_STABLE 2021-03-03 09:06:58 +01:00
Jun Pataleta 14f98eefcf Merge branch 'MDL-70995-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-03-03 15:05:15 +08:00
Jun Pataleta 15f6a8977a Merge branch 'MDL-69883-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-03-03 14:34:44 +08:00
Andrew Nicols cd10e95fd9 Merge branch 'MDL-70268-310-2' of git://github.com/peterRd/moodle into MOODLE_310_STABLE 2021-03-03 12:22:34 +08:00
Peter Dias f50885a3a4 MDL-70268 core: Update the oauthlib to exclude scope if none provided 2021-03-03 12:06:24 +08:00
AMOS bot 17f6e10e4e Automatically generated installer lang files 2021-03-03 00:07:21 +00:00
Paul Holden 69dc0ef1cf MDL-70822 enrol: respect capability to view other users profile.
When retrieving courses of another user via web services, we should
respect the capability to view that users profile in a given course.
2021-03-02 23:44:24 +01:00
Sander Wind 3f9d4a08a5 MDL-70668 auth: Fix secret validation during user confirmation
Co-authored-by: Michael Hawkins <michaelh@moodle.com>
2021-03-02 23:44:24 +01:00
Eloy Lafuente (stronk7) 5d6e97dabb Merge branch 'MDL-70340-310' of git://github.com/jleyva/moodle into MOODLE_310_STABLE 2021-03-02 23:33:08 +01:00
Víctor Déniz 45a7f417ce Merge branch 'MDL-70676-310' of git://github.com/ilyatregubov/moodle into MOODLE_310_STABLE
Fixed mod/workshop/db/upgrade.php: \xmldb_field::getNotNull()
does not verify if the column is nullable in the database.
2021-03-02 22:10:14 +00:00
Peter Dias 62d098d787 MDL-59293 block_onlineusers: Update behat tests 2021-03-02 16:09:07 +00:00
Peter Dias 6cc044522a MDL-59293 block_onlineusers: Check whether current user can view online users
- Removed block from site admin.
- Blocked guest from viewuserlist cap
2021-03-02 16:09:07 +00:00
Ilya Tregubov ff09683e6c MDL-70676 workshop: Allow empty grades. 2021-03-02 13:44:54 +02:00
Sara Arjona d65a32ba29 Merge branch 'MDL-67515-310' of git://github.com/vmdef/moodle into MOODLE_310_STABLE 2021-03-02 11:21:33 +01:00
Jun Pataleta 4ddc2a627c Merge branch 'MDL-70457_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2021-03-02 17:39:20 +08:00
Víctor Déniz aa0d546355 Merge branch 'MDL-70172-310' of git://github.com/rezaies/moodle into MOODLE_310_STABLE 2021-03-02 09:17:10 +00:00
Paul Holden 7bbab5d400 MDL-71022 gradereport_history: prevent double escaping of users.
The user identity fields are already escaped by the AJAX endpoint
that returns them, we don't need to do it again at the client.
2021-03-02 09:14:40 +00:00
Víctor Déniz ae9785389a MDL-67515 tool_customlang: Ignore invalid component strings
After uninstalling a plugin, the translated strings remain in
tool_customlang table, throwing an exception when trying to localise
any strings. Currently there is no mechanism to
clean up customlang tables and files during the uninstall process,
so with this patch the invalid components will be ignored.
2021-03-02 09:09:16 +00:00
AMOS bot 5f4af646ee Automatically generated installer lang files 2021-03-02 00:07:19 +00:00
Eloy Lafuente (stronk7) c228509061 Merge branch 'MDL-67974-310' of git://github.com/sarjona/moodle into MOODLE_310_STABLE 2021-03-01 22:33:39 +01:00
Shamim Rezaie 8ec7ddb92b MDL-70172 output: pages with main logo should have a first-level header 2021-03-02 05:41:50 +11:00
Shamim Rezaie af390c4495 MDL-70172 output: Fix empty links
The approach taken is inline with font-awesome documentation:
https://fontawesome.com/how-to-use/on-the-web/other-topics/accessibility
2021-03-02 05:39:49 +11:00
Eloy Lafuente (stronk7) ded345c09a Merge branch 'MDL-70912-310' of git://github.com/sarjona/moodle into MOODLE_310_STABLE 2021-03-01 16:47:47 +01:00
Sara Arjona 5ecae0a17e Merge branch 'MDL-68735_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2021-03-01 16:17:40 +01:00
Eloy Lafuente (stronk7) 16deaaf095 Merge branch 'MDL-70913-310' of git://github.com/sarjona/moodle into MOODLE_310_STABLE 2021-03-01 14:22:23 +01:00
Sara Arjona 91d3150e6a MDL-70913 core_badges: Use and update properly sortorder
Sortorder field in badge_external_backpack was updated with a wrong
value. This patch fixes this behaviour and adds sortorder as
sorting criteria for displaying the list of site backpacks.

In the phpunit method reviewed for covering this, a couple of
assertEquals() calls have been changed too to put the expected value
first.
2021-03-01 13:10:37 +01:00
Thong Bui 1de403d9b7 MDL-70726 behat: should_not_exist function does not work correctly 2021-03-01 17:50:36 +07:00
Eloy Lafuente (stronk7) 930c1a303f Merge branch 'MDL-70931-310-xmldbeol' of git://github.com/mudrd8mz/moodle into MOODLE_310_STABLE 2021-03-01 10:01:14 +01:00
Eloy Lafuente (stronk7) aacb7a3cda Merge branch 'MDL-70941-310' of git://github.com/dravek/moodle into MOODLE_310_STABLE 2021-03-01 09:54:18 +01:00
Eloy Lafuente (stronk7) 6e43990254 Merge branch 'MDL-70910-310' of git://github.com/dravek/moodle into MOODLE_310_STABLE 2021-03-01 09:50:16 +01:00
Eloy Lafuente (stronk7) 7556d45c17 Merge branch 'MDL-70964-310-enfix' of git://github.com/mudrd8mz/moodle into MOODLE_310_STABLE 2021-03-01 09:34:09 +01:00
AMOS bot d19433e901 Automatically generated installer lang files 2021-03-01 00:07:22 +00:00
AMOS bot 08dae87267 Automatically generated installer lang files 2021-02-28 00:07:20 +00:00
AMOS bot 565a9c2af5 Automatically generated installer lang files 2021-02-27 00:07:24 +00:00
David Matamoros fefdb9ad68 MDL-70941 contentbank: fix empty equality check when renaming content 2021-02-26 14:34:42 +01:00
Tim Hunt 5f0e09f367 MDL-71009 question bank: escape idnumbers when displayed 2021-02-26 12:48:11 +00:00
Eloy Lafuente (stronk7) 5bb3ac5c9a MDL-68735 env: Moodle 3.8.x, 3.9.x and 3.10.x do not support PHP 8.0 2021-02-26 13:08:07 +01:00
David Matamoros 384e6b03b1 MDL-70910 contentbank: fix for using contentid not validated 2021-02-26 12:02:25 +01:00
Eloy Lafuente (stronk7) d921a644ba MDL-70457 forms: php74 fix for the (not used in core) date element
Curly brackets to access by index to strings or arrays is
deprecated since php74.
2021-02-26 11:55:32 +01:00
Amaia Anabitarte 60fcd69368 MDL-67119 core_analytics: Analyse users once per course
User's activity in a course should be analysed only once
no matter the number of enrolments the user has in that course.
2021-02-26 11:48:09 +01:00
Jun Pataleta 3799c7f535 weekly release 3.10.1+ 2021-02-26 13:42:53 +08:00
Jun Pataleta e8425ed3af Merge branch 'install_310_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_310_STABLE 2021-02-26 13:42:52 +08:00
David Mudrák 4fc700ec96 MDL-70964 lang: Use the fixed strings in tests 2021-02-25 16:35:58 +01:00
Helen Foster c9ee7a2092 MDL-70964 lang: Import fixed English strings (en_fix) 2021-02-25 16:35:34 +01:00
Jun Pataleta 54a1d40758 Merge branch 'MDL-70169-310' of git://github.com/lameze/moodle into MOODLE_310_STABLE 2021-02-25 12:29:30 +08:00
AMOS bot 92a8afc1e4 Automatically generated installer lang files 2021-02-25 00:07:24 +00:00
Paul Holden 46a52c6ad2 MDL-69883 message: fix lazy loading of conversations.
Set max-height on each container section rather than the container
itself, so that each can respond to the scrollBottom event within
the lazy loading module (which handles the overflow itself).
2021-02-24 22:01:37 +00:00
Paul Holden ab5e184301 MDL-70995 user: format group names in course participants filter. 2021-02-24 19:26:10 +00:00
Iñigo Zendegi 8b8c96ff3c MDL-69097 mod_forum: Apply filters to whole forum grading 2021-02-24 17:12:02 +01:00
Víctor Déniz ae9cf72fb6 Merge branch 'MDL-51111-muc-reset-MOODLE_310_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_310_STABLE 2021-02-24 14:08:25 +00:00
Brendan Heywood 42ddf9c0da MDL-51111 cache: Don't lock and write the config file if unchanged 2021-02-24 12:44:38 +11:00
Andrew Nicols 00f23b218a MDL-70987 core_form: Use correct id for elementid during validation
The id of the formid was being passed instead of the elementid.
2021-02-24 09:06:37 +08:00
Sara Arjona 07685e8116 MDL-67974 core_badges: Recovered expired stamp
Expired stamp icon displayed over the badge images has been added
again to CSS (it was lost at any point).
2021-02-23 15:32:57 +01:00
Sara Arjona 729b244321 MDL-67974 core_badges: Badge expiry date when hover
Text displayed for expired badges when the user hovers over the
warning (!) icon has been fixed in the "Issued badge information"
page.
2021-02-23 15:32:57 +01:00
Eloy Lafuente (stronk7) 147cd2557c Merge branch 'MDL-43697-310' of https://github.com/praxisdigital/moodle into MOODLE_310_STABLE 2021-02-22 23:10:12 +01:00
Marina Glancy 6578994426 MDL-70967 enrol_meta: fix error in unittest 2021-02-22 18:06:43 +01:00
Mark Nelson fbef841ee3 MDL-70125 core_grade: do not change overridden status during regrading 2021-02-22 17:35:38 +08:00
AMOS bot 6a4f5a7d80 Automatically generated installer lang files 2021-02-22 00:07:22 +00:00
Andrew Nicols 4e25ca4aad Merge branch 'MDL-70879_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2021-02-22 07:51:00 +08:00
Daniel Kristian Steffensen 8fd59d9009 MDL-43697 backup: Archived badges are restored during course restore 2021-02-19 15:50:13 +01:00
Eloy Lafuente (stronk7) eda36d1eab MDL-70879 behat: Bump to Behat 3.8.x 2021-02-19 14:49:19 +01:00
Víctor Déniz 9b2400e94e weekly release 3.10.1+ 2021-02-19 12:39:15 +00:00
Víctor Déniz 051b9b8317 Merge branch 'install_310_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_310_STABLE 2021-02-19 12:39:14 +00:00
AMOS bot 1f27baf216 Automatically generated installer lang files 2021-02-19 00:07:32 +00:00
Jun Pataleta 28d5ee7876 Merge branch 'MDL-47410-310' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2021-02-18 11:24:07 +08:00
Andrew Nicols 6aadb04fe1 MDL-47410 behat: Perform exact match for date_time selectors 2021-02-18 09:35:23 +08:00
David Mudrák fe6470b852 MDL-70931 xmldb: Generate install.xml files with EOL and EOF
As discussed in MDLSITE-6397, all Moodle code files should end with
single Unix-style end of line character. Files created and edited
through the XMLDB editor should follow this rule, too.
2021-02-17 21:06:00 +01:00
Víctor Déniz 858078a374 Merge branch 'MOODLE_310_MDL-70752' of https://github.com/golenkovm/moodle into MOODLE_310_STABLE 2021-02-17 16:57:36 +00:00
Eloy Lafuente (stronk7) 317af7632a Merge branch 'MDL-70552-310' of git://github.com/ilyatregubov/moodle into MOODLE_310_STABLE 2021-02-17 10:26:48 +01:00
Ilya Tregubov 53fcd633e5 MDL-70552 core_message: Show popup for teachers when anonymous
user completed feedback.
2021-02-17 08:43:28 +02:00
Andrew Nicols 40e11ee44a Merge branch 'MDL-47410-310' of git://github.com/mihailges/moodle into MOODLE_310_STABLE 2021-02-17 09:41:40 +08:00
AMOS bot 875ee2f1d2 Automatically generated installer lang files 2021-02-17 00:07:28 +00:00
Andrew Nicols 3b9d4c2cc8 Merge branch 'MDL-70264-310' of git://github.com/sarjona/moodle into MOODLE_310_STABLE 2021-02-17 07:26:56 +08:00
Eloy Lafuente (stronk7) 296e9ed320 Merge branch 'MDL-69562_310' of https://github.com/dvdcastro/moodle into MOODLE_310_STABLE 2021-02-16 22:39:36 +01:00
Eloy Lafuente (stronk7) be526048f6 Merge branch 'MDL-70525_310' of https://github.com/TomoTsuyuki/moodle into MOODLE_310_STABLE 2021-02-16 19:56:30 +01:00
Sara Arjona 9f2a875b0f MDL-70912 mod_data: Add filepicker to the H5P Atto button
The filepicker wasn't displayed fot the H5P Atto button when a text
area database field was created because some options were missing
in the textarea field class.
2021-02-16 18:17:26 +01:00
AMOS bot 8f86550c41 Automatically generated installer lang files 2021-02-16 00:07:25 +00:00
Paul Holden 7b4f2014c3 MDL-66025 user: require message content in bulk action.
Also import missing 'core/notification' dependency.
2021-02-14 20:10:35 +00:00
AMOS bot 579a25273d Automatically generated installer lang files 2021-02-13 00:07:29 +00:00
Simey Lameze 9ff0798864 MDL-70169 login: fix accessibility issues 2021-02-12 12:12:58 +08:00
Paul Holden fd80c7a6b7 MDL-70789 theme_boost: fix double click on drawer hiding content.
If the drawer toggle button was clicked in quick succession to close
and then re-open, then the delayed Aria.hide method would be called
which hid the drawer content when it finished opening.
2021-02-11 21:45:51 +00:00
Sara Arjona dcee7949db MDL-70264 badges: remove badges/oauth2callback.php
File badges/oauth2callback.php has been removed and now badges
API will use admin/oauth2callback.php because it makes no sense having
it twice.

Credits go to Andrew Nicols for raising it!
2021-02-11 16:58:48 +01:00
Sara Arjona 2e96a6508e weekly release 3.10.1+ 2021-02-11 14:54:47 +01:00
Sara Arjona 81e59a9ae7 Merge branch 'install_310_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_310_STABLE 2021-02-11 14:54:45 +01:00
Mihail Geshoski 880224da1b MDL-47410 mod_assign: Update mod_assign behat tests
Updates the mod_assign behat tests to utilize the ability to
conviniently populate the datetime selector fields.
2021-02-11 12:13:04 +08:00
Mihail Geshoski 07d73cc416 MDL-47410 behat: Support selection from the datetime selector element
Adds behat support for selecting date and time from a datetime selector
element. The passed values should represent a textual date and time
description wrapped in '##' (e.g. '##first day of January 2020 08:00##',
'##1 Jan 2020 10:30##'). Also, the value 'disabled' is valid and can be
used to disable the datetime selector element.
2021-02-11 12:13:04 +08:00
Mihail Geshoski c68967af02 MDL-47410 tool_licensemanager: Update tool_licensemanager behat tests
Updates the tool_licensemanager behat tests to utilize the ability to
conviniently populate the date selector fields.
2021-02-11 12:13:04 +08:00
Mihail Geshoski 7a868e586f MDL-47410 behat: Support date selection from the date selector element
Adds behat support for selecting a date from the date selector element.
The passed values should represent a textual date description wrapped
in '##' (e.g. '##first day of January 2020##', '##1 Jan 2020##'). Also,
the value 'disabled' is valid and can be used to disable the date
selector element.
2021-02-11 12:13:02 +08:00
Mihail Geshoski c9ecca60c1 MDL-47410 behat: Create custom selector for the date and datetime fields
Creates a custom field selector to locate the requested date or datetime
form fields.
2021-02-11 12:11:15 +08:00
Mihail Geshoski 8031c68d12 MDL-47410 behat: Move logic from guess_type() to a separate method
Moves the logic from guess_type() to a separate protected method
get_field_instance_for_element(). This would be quite useful for
form field classes as they can now use this method when there is
a need to determine the type of a given node element.
2021-02-11 12:11:15 +08:00
Mihail Geshoski 41d8472136 MDL-47410 behat: Use data-fieldtype attribute to guess the field type
The data-fieldtype attribute (if present) should be also utilized in
guess_field_type() and match the behavior in get_field_node_type().
2021-02-11 12:11:15 +08:00
Mihail Geshoski d2304bfbe5 MDL-47410 form: Add data-fieldtype attribute to checkbox inline element
Includes the data-fieldtype attribute to the checkbox inline form
element. This element does not extend the parent inline element
template due to its specific nature and therefore this attribute was
missing.
2021-02-11 12:11:15 +08:00
Adrian Greeve 26ec6b3f69 Merge branch 'MDL-70513_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE 2021-02-11 10:05:51 +08:00
Adrian Greeve a057e10630 Merge branch 'MDL-69867-310_display_grade_with_scale' of git://github.com/moffe42/moodle into MOODLE_310_STABLE 2021-02-11 09:24:38 +08:00
AMOS bot 47373b3d37 Automatically generated installer lang files 2021-02-11 00:07:24 +00:00
Sara Arjona b21bbfbb53 Merge branch 'MDL-70732-310' of git://github.com/aanabit/moodle into MOODLE_310_STABLE 2021-02-10 17:20:36 +01:00
Sara Arjona 9dd33a7e4a Merge branch 'MDL-70796_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE 2021-02-10 16:50:15 +01:00
Sara Arjona 4205f0d819 Merge branch 'MDL-69101_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE 2021-02-10 15:12:05 +01:00
Sara Arjona eb7c0f7d12 Merge branch 'MDL-70631-310-unzip' of git://github.com/mudrd8mz/moodle into MOODLE_310_STABLE 2021-02-10 12:38:18 +01:00
Sara Arjona 064c3f2b4b Merge branch 'MDL-70736_MOODLE_310_STABLE' of https://github.com/TomoTsuyuki/moodle into MOODLE_310_STABLE 2021-02-10 08:28:26 +01:00
Jacob Christiansen 17d2e4a79d MDL-69867 mod_assign: Display current grade with scale value
When using workflow we show the current grade with its scale value
instead of the internal index
2021-02-10 08:08:58 +01:00
John Yao c6df8dc20b MDL-65390 accessibility: correct focus after "Show more" clicked 2021-02-09 15:11:12 +01:00
Sara Arjona 8f66f8807d Merge branch 'MDL-70173-310' of git://github.com/rezaies/moodle into MOODLE_310_STABLE 2021-02-09 08:29:26 +01:00
Sara Arjona 94fa7da52a Merge branch 'MDL-70377_310' of https://github.com/mkassaei/moodle into MOODLE_310_STABLE 2021-02-09 08:23:36 +01:00
Shamim Rezaie c61b50e6a0 MDL-70173 core: Use a meaningful first level header 2021-02-09 16:32:45 +11:00
Shamim Rezaie 950e44c82f MDL-70173 theme_boost: Fix empty link issue on the "Go to top" button
On behat, we have to use a more specific test step if we are looking
for a "Go" button on a modal. The reason is that the html of the modal
content is put after the html of the "Go to top" button, so behat
may find the "Go to top" button if we just look for "Go".
2021-02-09 16:32:45 +11:00
Shamim Rezaie 71b49a5b87 MDL-70173 theme_boost: Increase the size of notification counter
WAVE considers any text with the size of 10px or below really small.
Increasing the font size of the navbar counter by 1px should not make a
big negative impact on the design, but improves accessibility.
2021-02-09 16:32:45 +11:00
Shamim Rezaie e7b0985d5e MDL-70173 output: All pages should have a heading
In MDL-63040, it was decided that the page header for the dashboad page
should be removed.
However, Based on Success Criteria 1.3.1 and 2.4.6 from the WebAIM's
WCAG 2 Checklist, all pages should have an <h1> element.
So I put an sr-only heading on the dashboard and all other pages, where
no page header is shown.
2021-02-09 16:32:45 +11:00
Shamim Rezaie ac4b7f1193 MDL-70173 dashboard: ARIA role presentation conflicted the empty alt
The markup <img role="presentation" alt="alt text"> is contradictory.

According to https://www.w3.org/TR/2017/WD-wai-aria-practices-1.1-20170628/examples/presentation/PresentationRoleExamples.html
 It is recommended that authors instead use empty alt text (alt="")
 where they use role="presentation".
2021-02-09 16:32:45 +11:00
Shamim Rezaie 30354e039a MDL-70173 message: Fix empty link 2021-02-09 16:32:40 +11:00
Shamim Rezaie a9c9d74fa0 MDL-70173 output: use an empty alt to hide user pic from screen readers
There is no need to use WAI-ARIA to hide images from screen readers.
See https://www.w3.org/WAI/tutorials/images/decorative/
2021-02-09 16:15:57 +11:00
Tomo Tsuyuki 0570323dab MDL-70525 tool_profiling: Cannot import profiling file
Change type from int to integer to be able to have big numbers
2021-02-09 10:15:48 +11:00
Mahmoud Kassaei fc538e946a MDL-70377 qtype_essay: When reviewing an attempt as a teacher
In the Response history table, Action Saved: does not display the value
of $a in the language string.
2021-02-08 16:52:48 +00:00
Andrew Nicols 17c85b704c Merge branch 'MDL-70614-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-02-08 10:36:15 +08:00
Andrew Nicols 340bd2726a Merge branch 'MDL-70725-310' of git://github.com/sarjona/moodle into MOODLE_310_STABLE 2021-02-08 10:30:28 +08:00
AMOS bot 0ad3e036d2 Automatically generated installer lang files 2021-02-06 00:07:24 +00:00
Tim Hunt cfcfaba862 MDL-70796 count_words: match the count from LibraOffice & MS Word 2021-02-05 15:28:34 +00:00
Amaia Anabitarte 582f636756 MDL-70732 behat: Adding second parameter to ExpectationException() 2021-02-05 11:01:38 +01:00
Sara Arjona 726d5dfc65 weekly release 3.10.1+ 2021-02-04 14:56:20 +01:00
Sara Arjona de8df592c9 Merge branch 'install_310_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_310_STABLE 2021-02-04 14:56:18 +01:00
Mikhail Golenkov 30646de80a MDL-70752 restore: Fix remote file recovery 2021-02-04 19:21:45 +11:00
Tomo Tsuyuki bf7f52d775 MDL-70736 gradingform_guide: Fix loading marking guide template issue
Do not check grade item name if it is from shared template.
2021-02-04 16:15:44 +11:00
Andrew Nicols b1cf84453d Merge branch 'MDL-69748-310' of git://github.com/rezaies/moodle into MOODLE_310_STABLE 2021-02-04 11:52:21 +08:00
Shamim Rezaie e0f895ea8e MDL-69748 core: Fix hideif issue with array elements
Changed the element selector to get all array elements,
whether named or unnamed. The previus selector was only
working for elements that thir names were like name="something[]".
It was not working for name="something[a]" elements.
2021-02-04 14:38:53 +11:00
Andrew Nicols 975c9f7a82 Merge branch 'MDL-70579-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-02-04 09:30:20 +08:00
AMOS bot 32e56d6e65 Automatically generated installer lang files 2021-02-04 00:07:29 +00:00
Eloy Lafuente (stronk7) adc56c3df0 MDL-70741 capability overview: missing whitespace after placeholder 2021-02-04 00:01:12 +01:00
Tim Hunt 546ca90251 MDL-70513 quiz manual grading: use formchangechecker to avoid dataloss 2021-02-03 16:10:30 +00:00
David Mudrák 1d32d1d64f MDL-70631 files: Replace hard-coded value with FL_ENC_RAW constant
This is not related to the issue but I noticed it while trying to debug
it.

Back when this line was introduced in 9c140a681e, the ZipArchive had
not yet exposed this flag as a constant. It was added later with PHP
7.0.8 and we can switch to using it now.
2021-02-03 16:10:28 +01:00
David Mudrák 31f71d93b9 MDL-70631 files: Fix performance of zip_packer::extract_to_pathname()
The original implementation was based on ZipArchive::getStream() which
turns out to be very slow and if the archive contains many files, the
unzipping performance is very slow.

The patch changes the implementation to use ZipArchive::extractTo()
unless the extracted entry path contains a folder name ending with dot
(such as some/path./to/file.txt). There is a known upstream bug in the
PHP ZIP extension #77214 (also #74619 and #69477) so that we fall back
to keep using the stream in those cases.
2021-02-03 16:10:28 +01:00
Sara Arjona eb8938e15b Merge branch 'MDL-70705-310' of git://github.com/lucaboesch/moodle into MOODLE_310_STABLE 2021-02-03 15:33:19 +01:00
Luca Bösch d49c11e4ec MDL-70705 block_blog_recent: support multilang blog entry titles 2021-02-03 15:15:25 +01:00
Sara Arjona a0183a8251 Merge branch 'MDL-70741_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE 2021-02-03 14:49:51 +01:00
David Castro 6c4989dca7 MDL-69562 admin: Allow getting IP from all sources. 2021-02-03 07:22:48 -05:00
Eloy Lafuente (stronk7) 656fc5e11b Merge branch 'MDL-70711-M310' of git://github.com/kordan/moodle into MOODLE_310_STABLE 2021-02-03 13:04:11 +01:00
Sara Arjona fec01c3415 Merge branch 'MDL-70163-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-02-03 12:25:41 +01:00
Sara Arjona 27bdf9b710 Merge branch 'MDL-70535-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-02-03 11:19:35 +01:00
Sara Arjona e6803f9345 Merge branch 'MDL-67959-310-2' of git://github.com/junpataleta/moodle into MOODLE_310_STABLE 2021-02-03 10:50:47 +01:00
Tim Hunt 7015334d6d MDL-69101 Essay/Moodle XML: recent new settings not imported/exported 2021-02-03 08:14:00 +00:00
Sara Arjona b6f7ebe5e6 Merge branch 'MDL-70621-310' of git://github.com/lucaboesch/moodle into MOODLE_310_STABLE 2021-02-03 09:02:59 +01:00
Sara Arjona 5f2879986a Merge branch 'MDL-68970_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE 2021-02-03 08:51:23 +01:00
Luca Bösch b53915eabb MDL-70621 mod_glossary: use glossary rsstype string. 2021-02-03 08:34:46 +01:00
Luca Bösch a4cc053dd1 MDL-70621 mod_forum: use forum rsstype string. 2021-02-03 08:34:46 +01:00
Andrew Nicols 101667dc59 Merge branch 'MDL-56772-310' of git://github.com/peterRd/moodle into MOODLE_310_STABLE 2021-02-03 10:57:51 +08:00
Andrew Nicols c25da3ed87 Merge branch 'MDL-66932_M310' of https://github.com/nadavkav/moodle into MOODLE_310_STABLE 2021-02-03 10:23:58 +08:00
Andrew Nicols 82e32d8012 Merge branch 'MDL-68893-310' of git://github.com/lucaboesch/moodle into MOODLE_310_STABLE 2021-02-03 09:41:09 +08:00
Andrew Nicols 73822e2790 Merge branch 'MDL-68958-310' of git://github.com/peterRd/moodle into MOODLE_310_STABLE 2021-02-03 09:37:49 +08:00
Andrew Nicols a6f3c28afd Merge branch 'MDL-70339-310' of git://github.com/peterRd/moodle into MOODLE_310_STABLE 2021-02-03 09:09:22 +08:00
Víctor Déniz ed48cfd287 Merge branch 'MDL-59782-310' of git://github.com/bmbrands/moodle into MOODLE_310_STABLE 2021-02-02 09:35:40 +00:00
Sara Arjona a9d19d3f20 Merge branch 'MDL-70574_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE 2021-02-02 08:20:34 +01:00
Sara Arjona 4a1748a0d8 Merge branch 'MDL-70288-310-2' of git://github.com/junpataleta/moodle into MOODLE_310_STABLE 2021-02-02 07:59:42 +01:00
Jun Pataleta 399ed2ef31 MDL-70288 qtype: Remove unnecessary empty label string
* When a label is passed to an (advanced) checkbox and no text
  was provided, the label will be displayed on the right of the the
  checkbox element. So there's no point in passing an empty string for
  the label just to render the text to the right of the checkbox.
2021-02-02 14:21:57 +08:00
Jun Pataleta 14710e4652 MDL-70288 mod_lti: Remove unnecessary empty label string
* When a label is passed to an (advanced) checkbox and no text
  was provided, the label will be displayed on the right of the the
  checkbox element. So there's no point in passing an empty string for
  the label just to render the text to the right of the checkbox.
2021-02-02 14:21:57 +08:00
Jun Pataleta 72c7ab1fcd MDL-70288 core: Remove duplicate labels for checkbox elements
* If there's a label, the text will serve as the description of  the
element.
2021-02-02 14:21:57 +08:00
Jun Pataleta 1feb3e130d MDL-70288 theme_boost: Manage aria-describedby on form validation
* The aria-describedby attribute can be a list of element IDs that
describe the element. On form validation, the ID of the error message
container is added to this attribute which may already be containing
another ID. So we need to properly add/remove the error message ID
so that we don't delete any existing ID(s) in the aria-describedby
attribute during form validation.
2021-02-02 14:21:57 +08:00
Eloy Lafuente (stronk7) 120ab864a1 Merge branch 'MDL-46256_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE 2021-02-01 23:20:23 +01:00
Eloy Lafuente (stronk7) 4be8f22e59 Merge branch 'MDL-70648-310' of git://github.com/lameze/moodle into MOODLE_310_STABLE 2021-02-01 19:19:46 +01:00
Sara Arjona 63c16676ff Merge branch 'MDL-70625-310' of git://github.com/rezaies/moodle into MOODLE_310_STABLE 2021-02-01 15:37:09 +01:00
Sara Arjona 66de72d17f Merge branch 'MDL-70734-310' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2021-02-01 12:30:21 +01:00
Sara Arjona fc6d356416 Merge branch 'MDL-70740-310' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2021-02-01 11:25:22 +01:00
Paul Holden e2d9c997d5 MDL-70614 user: consistent roles spacing in course profile. 2021-02-01 07:54:21 +00:00
Andrew Nicols a7d8af4a9e MDL-70734 behat: Increase the WebDriver Curl timeout 2021-02-01 09:50:08 +08:00
AMOS bot 901e09e890 Automatically generated installer lang files 2021-02-01 00:07:28 +00:00
Andrew Nicols 1cb8980be0 MDL-70740 behat: Composer bump for new version of Mink Driver 2021-01-31 20:26:35 +08:00
AMOS bot 57efb76aba Automatically generated installer lang files 2021-01-31 00:07:24 +00:00
Luca Bösch 3394914940 MDL-68893 mod_data: use own RSS feed string.
AMOS BEGIN
 CPY [rsstype,core],[rsstype,mod_data]
AMOS END
2021-01-29 23:19:57 +01:00
Tim Hunt 78bcf502a3 MDL-70741 capability overview: avoid errors from orphan contexts 2021-01-29 20:50:41 +00:00
Víctor Déniz cd2e91aa18 weekly release 3.10.1+ 2021-01-29 17:13:20 +00:00
Víctor Déniz f72bb528e8 Merge branch 'install_310_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_310_STABLE 2021-01-29 17:13:14 +00:00
Jake Dallimore 629905943f Merge branch 'MDL-66979-310-7' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2021-01-29 15:44:01 +08:00
Andrew Nicols 1f4b80c9f1 MDL-66979 behat: Mark some tests as being slow
Uses of the httpsreplace and customlang tools are known to be extremely
slow.

In our CI infrastructure on slwoer DBs, the customlang tool can take
over 90 seconds to load the page, whilst the httpsreplace tool can take
up to about 60 seconds.

These changes set appropriate timeout factors to increase the timeout
accordingly.
2021-01-29 14:18:54 +08:00
Andrew Nicols 9cb46e24f2 MDL-66979 behat: Add a step to set a timeout factor for a test 2021-01-29 14:18:54 +08:00
Eloy Lafuente (stronk7) 0db430c5a7 MDL-66979 behat: Goutte driver doesn't implement setTimeouts()
Also, change:

get_real_timeout(30000)

to:

get_real_timeout(30) * 1000

because the original functions are defined to use seconds, and
having the 1000 around will help us detecting cases in the case
of a hypothetical review of uses.
2021-01-29 14:18:46 +08:00
Jun Pataleta b8a0eb2472 MDL-67959 mod_forum: Display group pictures in forum only if available
Displaying a default group picture in forum posts leads to confusion,
so better to not display a default group picture when the group
picture is not set for the group.
2021-01-29 12:30:19 +08:00
AMOS bot 45978714d4 Automatically generated installer lang files 2021-01-29 00:07:27 +00:00
Eloy Lafuente (stronk7) 219694730c MDL-66979 behat: Goutte driver doesn't implement setTimeouts()
Also, change:

get_real_timeout(30000)

to:

get_real_timeout(30) * 1000

because the original functions are defined to use seconds, and
having the 1000 around will help us detecting cases in the case
of a hypothetical review of uses.
2021-01-28 17:12:15 +01:00
Bas Brands b36bc055d4 MDL-59782 core_question: improve questionbank highlighting 2021-01-28 11:08:05 +01:00
Eloy Lafuente (stronk7) d2a001ed67 Merge branch 'MDL-66979-310-7' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2021-01-28 09:09:01 +01:00
Kordan 1f6f68ad16 MDL-70711 form: deleted useless if block
get_magic_quotes_gpc() always return false since PHP 5.3 so (1 == get_magic_quotes_gpc()) is never verified.
This allows me to safetly delete what I dropped out.
2021-01-28 08:45:36 +01:00
Andrew Nicols 3a0d042395 MDL-66979 behat: Set script timeout with timeout factor 2021-01-28 15:27:49 +08:00
Andrew Nicols 889c9ca8d6 MDL-66979 behat: Correct selenium2 reference in config-dist 2021-01-28 15:08:10 +08:00
Andrew Nicols ebd36d2ac2 MDL-66979 behat: Handle driver stop failure properly
An case was found where the webdriver stop() call could fail in an
AfterScenario hook, leading to a complete rerun if no other errors were
experienced.
2021-01-28 15:07:52 +08:00
Andrew Nicols 46e121473f Merge branch 'MDL-70048-310' of git://github.com/peterRd/moodle into MOODLE_310_STABLE 2021-01-28 08:04:51 +08:00
Peter Dias c1f73e72b4 MDL-70048 dropbox: Augmented unit tests to account for additional params 2021-01-28 07:32:35 +08:00
Peter Dias 276e963f29 MDL-70048 dropbox: Update the dropbox search URL.
- Update fetch_dropbox_data to allow different result nodes and version
- Update search to the new URL with new params
- Update the get entities function to account for the change in structure.
2021-01-28 07:32:35 +08:00
Sara Arjona c856a7f9bb MDL-70725 oauth2: move expectException to separate method 2021-01-27 17:54:17 +01:00
Víctor Déniz b6aed6feaa Merge branch 'MDL-70585-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-01-27 10:52:31 +00:00
AMOS bot 7a3233a7ca Automatically generated installer lang files 2021-01-27 00:07:27 +00:00
Eloy Lafuente (stronk7) cf7eab3db1 Merge branch 'MDL-66979-310-7' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2021-01-26 22:45:23 +01:00
Víctor Déniz 75b7539e32 Merge branch 'MDL-70528-310' of git://github.com/ilyatregubov/moodle into MOODLE_310_STABLE 2021-01-26 14:05:10 +00:00
Ilya Tregubov 90d42dfc84 MDL-70528 h5pactivity: Fix block can't be added to h5pactivity page. 2021-01-26 15:45:55 +02:00
Paul Holden 92d60b64a8 MDL-70163 core: fix attachment validation when localrequestdir absent.
Switch the order of operations performed when collating list of paths
from which a user can include attachments.

First collect all normalised/absolute paths then filter empty entries,
which fixes an issue where $CFG->localrequestdir could be defined but
not exist. This would lead to an empty string being passed to strpos
which triggered a PHP warning.

Co-authored-by: Peter Burnett <peterburnett@catalyst-au.net>
2021-01-25 19:53:53 +00:00
Tim Hunt dce2e6c03a MDL-68970 quiz: prevent page caching during attempts
This ensures that the page reloads if the student uses
the Back or Forwards buttons within an attempt. This
avoids questions being in a stale state, or
the timer showing the wrong time.

Thanks to Jake Dallimore and Russell Boyatt for suggestions
which lead to this fix.
2021-01-25 18:35:22 +00:00
Peter Dias 6c364c0011 MDL-70339 mod_lti: Use the convenience function to get the right img 2021-01-25 13:39:14 +08:00
Peter Dias b6c5df8181 MDL-68958 mod_imscp: Return manifestfilename as default response. 2021-01-25 13:23:26 +08:00
Peter Dias 120c2ee7a6 MDL-56772 core: Update the picker styles for rtl langs 2021-01-25 11:36:45 +08:00
Andrew Nicols 058394a412 MDL-66979 behat: Warn about old behat.yml file location 2021-01-23 20:44:53 +08:00
AMOS bot 2acb070a39 Automatically generated installer lang files 2021-01-23 00:07:23 +00:00
Paul Holden 52bc8499aa MDL-70585 course: deeper clean of path names in course export.
This fixes an issue on those systems that don't fully support unicode
characters within zip structures, which subsequently led to broken
links when browsing downloaded course content.
2021-01-22 08:15:32 +00:00
Andrew Nicols ef4a652abe MDL-66979 behat: Rename and warn on old config 2021-01-22 14:52:14 +08:00
Andrew Nicols 5282a67615 MDL-66979 behat: Uncomment step disabled for old firefox 2021-01-22 14:52:14 +08:00
Andrew Nicols d44fdcf54c MDL-66979 behat: Pad messaging drawer
This works around an issue highlighted by MDL-70411 whereby some of the
messaging links are covered by the scrollbar in Firefox on MacOS.
2021-01-22 14:52:14 +08:00
Andrew Nicols 30e2579222 MDL-66979 behat: Work around weird gradebook focus behaviour
I can't expand this one in a sane fashion but the older JS is doing some
weird and wonderful things with focus.

The only way I could get this to behave correctly was to move away from
the field, move back to it, and then move away again. Other combinations
failed in different browsers for different reasons.
2021-01-22 14:52:14 +08:00
Andrew Nicols ce30baea59 MDL-66979 behat: availability field extends textarea
The availability behat field extends the textarea type, and therefore
needs to include this type.
2021-01-22 14:52:13 +08:00
Andrew Nicols c56395fba6 MDL-66979 behat: Improve chromeOptions configuration
Simplify the chromeOptions configuration to improve readability.
2021-01-22 14:52:13 +08:00
Andrew Nicols dabca5c457 MDL-66979 question: Improve behat test reliability
Expand all fieldsets rather than individual fieldsets.

This can fail in some situations where the page moves as the first
fieldset opens and HTML transitions take effect. This causes subsequent
fieldsets to move after WebDriver has calculated the click target.
2021-01-22 14:52:13 +08:00
Andrew Nicols 5e077b8a2b MDL-66979 mod_assign: Stop clicking the user filters
Remove the documented hack which was re-opening a popup because it
"closes for some reason". It no longer randomly closes.
2021-01-22 14:52:13 +08:00
Andrew Nicols 7984048d45 MDL-66979 behat: Switch to generators
These steps were creating content manually in an unnecessary fashion. I
had to debug some issues with features in these areas so took the time
to update them to make use of data generators, which are significantly
faster.
2021-01-22 14:52:13 +08:00
Andrew Nicols 767c5f4512 MDL-66979 behat: Remove unused var 2021-01-22 14:52:13 +08:00
Andrew Nicols 73e428979d MDL-66979 behat: Whitespace fix 2021-01-22 14:52:13 +08:00
Andrew Nicols cbb2547c32 MDL-66979 behat: Remove manually triggered events
Behat should not trigger Synthetic browser events. It is incorrect to do
so as the UI should be used to trigger events correctly.

The W3C WebDriver specification explicitly states when and where these
events will be triggered from (the browser) and therefore there is no
ambiguity and no need to synthetically trigger them from Behat.
2021-01-22 14:52:13 +08:00
Andrew Nicols 2b0b259d09 MDL-66979 group: Replace direct element interaction with steps
The W3C WebDriver leads to faster operation of individual steps which
highlights where WebDriver is moving to a new step faster than the
browser can process it.

The solution here is to use the `execute` function to interact with the
browsers as this makes use of the various wait and check steps.
2021-01-22 14:52:13 +08:00
Andrew Nicols 084973f8a2 MDL-66979 behat: Remove unnecessary steps which fail
These steps were completely pointless and were failing with the W3C
Webdriver becuase focus was never on the Update Profile button in the
first place.

At a minimum we should remove the Focus change step as it not valid, but
the following step is also pointless.
2021-01-22 14:52:13 +08:00
Andrew Nicols ac0f7dd2ab MDL-66979 scorm: Increase behat window size
On Firefox there can be some issues with ensuring that all nodes are
visible in order to click them.

This is likely an upstream geckodriver bug and not one that can be
easily addressed across all of Moodle.

In this instance the "Next" button is just outside the Visible Window,
but it is in an iFrame which is fully visible. In this situation
Firefox is unable to click the button but does not error.
2021-01-22 14:52:13 +08:00
Andrew Nicols 035d4eb72a MDL-66979 behat: Scroll nodes into view before hover
The W3C Specification does not require that a NodeElement be in the
current viewport before triggering a mouseOver. As a result the
mouseOver will generate an Exception because the element is not in the
viewport, and the X/Y co-ordinates are invalid.

To handle this the node is scrolled into view.
2021-01-22 14:52:13 +08:00
Andrew Nicols eec766f375 MDL-66979 behat: Fix window switching
Normalise switching of window contexts by setting the main window name
to a null.

Where the window has no name (null/empty), then the root context is
selected.
2021-01-22 14:52:13 +08:00
Andrew Nicols 5212bfc961 MDL-66979 behat: Use tab to blur current focus
The focus should be on something, rather than removed.

The way in which focus removal works can lead to side effects.
2021-01-22 14:52:13 +08:00
Andrew Nicols d1e52f7086 MDL-66979 behat: Update passwordunmask form field control
Update the passwordunmask form field type for behat to interact with the
form element as a human would rather than via synthetic event triggers.
2021-01-22 14:52:13 +08:00
Andrew Nicols 330b665f82 MDL-66979 behat: iFrames must have a name for switchTo
The W3C WebDriver protocol supports switching of contexts using a named
context, and not the class asscoiated with that context.
2021-01-22 14:52:13 +08:00
Andrew Nicols e89be896df MDL-66979 mod_data: Improve behat chart data step
Charts data visibility is more reliable when checked via the
aria-expanded attribute.

The isVisible attribute can cause some failures under Firefox.
2021-01-22 14:52:13 +08:00
Andrew Nicols ca2acd10c9 MDL-66979 behat: Handle JS on elements better
This change introduces a new function to execute Javascript directly on
a node.

This should not, ordinarily, be used directly by steps, but may be
required in other parts of the Behat interaction.
2021-01-22 14:52:13 +08:00
Andrew Nicols 863d68a344 MDL-66979 behat: Rename selenium config to webdriver
The PHP WebDriver Mink Driver does not necessarily require Selenium. It
supports Selenium 3 upwards, and can be used directly with ChromeDriver,
EdgeDriver, SafariDriver, GeckoDriver, and others.

It therefore uses a slightly different configuraitno path.
2021-01-22 14:52:13 +08:00
Andrew Nicols c816ca79fa MDL-66979 behat: Core updates for W3C WebDriver
This commit updates core Behat features to make use of the
php-webdriver/webdriver library instead of the legacy Instaclick
library.

Most of these changes relate to use of features of WebDriver which we
are required to use directly rather than through the Mink Driver.
2021-01-22 14:52:13 +08:00
Andrew Nicols fc021f968a MDL-66979 behat: Switch to new W3C Behat driver
This commit updates the composer dependencies to make use of the updated
version of moodlehq/moodle-behat-extension which depends upon the
php-webdriver/webdriver and relevant Mink WebDriver.
2021-01-22 14:52:13 +08:00
Jake Dallimore 2477b04d12 weekly release 3.10.1+ 2021-01-22 11:30:57 +08:00
Jake Dallimore a6af5fd054 Merge branch 'install_310_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_310_STABLE 2021-01-22 11:30:54 +08:00
Tim Hunt 8321e49c8a MDL-46256 count_words: fix handling of paragraphs 2021-01-21 09:54:36 +00:00
Tim Hunt 509eef8fcf MDL-46256 count_letters: an unit tests and fix HTML editity handling 2021-01-21 09:54:36 +00:00
Tim Hunt cb9c2320b6 MDL-46256 word count: Convert existing tests to a data provider 2021-01-21 09:54:36 +00:00
Adrian Greeve b11792ac11 Merge branch 'MDL-57020-310-allow_delete_unused_scale' of https://github.com/sharidas/moodle into MOODLE_310_STABLE 2021-01-21 12:02:49 +08:00
Nadav Kavalerchik dc8a751815 MDL-66932 theme/boost: Use LTR directionality to display user % grades 2021-01-20 09:31:12 +02:00
Simey Lameze 8e6cbc6e18 MDL-70648 calendar: upgrade step to delete wrong cat events 2021-01-20 09:28:54 +08:00
Simey Lameze 33a8c2d06a MDL-70648 calendar: add form validation for category events 2021-01-20 09:26:48 +08:00
AMOS bot 9c4379153f Automatically generated installer lang files 2021-01-17 00:07:26 +00:00
Eloy Lafuente (stronk7) 00821c744c Moodle release 3.10.1 2021-01-16 16:58:29 +01:00
Paul Holden 390326fd17 MDL-70535 media_videojs: fallback to English language video player.
When current language doesn't have accompanying videojs language file
we should fallback to displaying the player in English, otherwise the
web service returns empty and a Javascript exception is triggered.
2021-01-15 13:50:47 +00:00
Sujith Haridasan cbc2b593e7 MDL-57020 scales: Allow deletion of unused scales in forum
Allow deletion of unused scales used in a
forum for the course.

Signed-off-by: Sujith Haridasan <sujith@moodle.com>
2021-01-15 15:06:19 +05:30
Sara Arjona f420af1016 weekly release 3.10+ 2021-01-15 08:25:49 +01:00
Sara Arjona 67150560b2 Merge branch 'install_310_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_310_STABLE 2021-01-15 08:25:47 +01:00
Sara Arjona 9fac7a8d59 Merge branch 'MDL-69308_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2021-01-14 12:03:52 +01:00
Jake Dallimore e1ca7e93d9 Merge branch 'MDL-69877-310' of git://github.com/mickhawkins/moodle into MOODLE_310_STABLE 2021-01-14 14:52:18 +08:00
Michael Hawkins 8bd6cfb4c4 MDL-69877 core: Added security.txt 2021-01-14 14:30:50 +08:00
AMOS bot a3afe546fd Automatically generated installer lang files 2021-01-14 00:07:23 +00:00
Eloy Lafuente (stronk7) db30a623bf MDL-69308 environment: Apply agreed changes
- PHP 7.3 required.
- Moodle 3.6 required.
- SQL*Server 2017 (aka, 14.0) required.
- Sodium PHP extension required.
2021-01-13 19:29:44 +01:00
Eloy Lafuente (stronk7) 3afcb70b3d MDL-69308 environment: 3.11 base information
This is a direct copy of the 3.10 branch to have
the changes under control in next commits.
2021-01-13 19:29:39 +01:00
Shamim Rezaie f9b58dd719 MDL-70625 core_calendar: Fix whitespace appearance in the id attribute 2021-01-14 01:59:08 +11:00
Sara Arjona 9ca6f8199e Merge branch 'MDL-70394-310' of git://github.com/rezaies/moodle into MOODLE_310_STABLE 2021-01-13 15:31:26 +01:00
Mihail Geshoski 4fec7a276d MDL-68486 auth_shibboleth: Reset convert_data if it uses dataroot file
Upgrade step that resets the 'Data modification API' (convert_data)
setting to its default value if this setting is currently configured
to use a file located within the $CFG->dataroot directory.
2021-01-13 12:35:00 +08:00
Mihail Geshoski b70a1c71e1 MDL-68486 auth_shibboleth: Prevent using dataroot files in convert_data
Prevents configuring the 'Data modification API' (convert_data) setting
to use files located within the $CFG->dataroot directory as it exposes
the site to security risks.
2021-01-13 12:35:00 +08:00
Jun Pataleta 90c450839d Merge branch 'MDL-70580-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-01-13 10:19:51 +08:00
AMOS bot b7a62b4286 Automatically generated installer lang files 2021-01-13 00:07:25 +00:00
Paul Holden 33427c7c5d MDL-70580 core: retrieve closest tree node in click handler. 2021-01-12 20:17:32 +00:00
Michael Hawkins 8fa9d159bc MDL-69911 core: Clean content passed through TeX filter 2021-01-12 10:24:26 +01:00
Ferran Recio f8f154236d MDL-67782 message: fix messages max length 2021-01-12 10:24:26 +01:00
Juan Segarra Montesinos d54cc8fbd7 MDL-69797 core_grades: Implement authorization into fetch method 2021-01-12 10:24:26 +01:00
Juan Segarra Montesinos 7e6fc779c7 MDL-69797 core_grades: Implement authorization into fetch method 2021-01-12 10:24:26 +01:00
Juan Segarra Montesinos 3467d87c80 MDL-69797 gradingform_rubric: Implement authorization into fetch method 2021-01-12 10:24:26 +01:00
Juan Segarra Montesinos 855957180a MDL-69797 gradingform_guide: Implement authorization into fetch method 2021-01-12 10:24:26 +01:00
Sara Arjona 8862b80c56 Merge branch 'MDL-70009-310' of git://github.com/ilyatregubov/moodle into MOODLE_310_STABLE 2021-01-12 10:21:09 +01:00
Jake Dallimore 8b8142d8d9 Merge branch 'MDL-69431_Moodle_310_Validate_section_arg_modedit' of git://github.com/watson8/moodle into MOODLE_310_STABLE 2021-01-12 17:09:01 +08:00
Ilya Tregubov f0260219fa MDL-70009 h5pactivity: Split get_pluginfile_hash in two methods. 2021-01-12 09:10:57 +02:00
Jun Pataleta be36ead8b0 Merge branch 'MDL-70580-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-01-12 13:15:43 +08:00
AMOS bot f270bd8c8e Automatically generated installer lang files 2021-01-12 00:07:34 +00:00
Andrew Nicols 357909b23b MDL-70580 core: Tree nodes should check if they were clicked directly 2021-01-11 23:43:28 +00:00
Tim Hunt 84302e4a76 MDL-70574 qtype_multianswer: fractional scores should be possible 2021-01-11 17:37:25 +00:00
Michael Hawkins 2c45443ad7 MDL-70571 lib: Added additional escaping to search_input template 2021-01-11 16:20:32 +01:00
Sara Arjona 77d7480096 Merge branch 'MDL-70034_310' of git://github.com/mdjnelson/moodle into MOODLE_310_STABLE 2021-01-11 15:19:32 +01:00
Sara Arjona b57b9b41cd Merge branch 'MDL-70567-MOODLE_310_STABLE' of https://github.com/dmitriim/moodle into MOODLE_310_STABLE 2021-01-11 13:09:49 +01:00
Sara Arjona cfa2b28de6 Merge branch 'MDL-70578-310' of git://github.com/lucaboesch/moodle into MOODLE_310_STABLE 2021-01-11 12:58:20 +01:00
Sara Arjona e22723680d Merge branch 'MDL-70352-MOODLE_310_STABLE' of https://github.com/dmitriim/moodle into MOODLE_310_STABLE 2021-01-11 12:24:05 +01:00
AMOS bot db2a9784ef Automatically generated installer lang files 2021-01-11 00:08:40 +00:00
David Watson 06d7da192b MDL-69431 course: validate section url param against maxsections 2021-01-10 17:14:58 +00:00
Eloy Lafuente (stronk7) 586a6da356 Merge branch 'MDL-70550-310-enfix' of git://github.com/mudrd8mz/moodle into MOODLE_310_STABLE 2021-01-09 13:17:50 +01:00
Mark Nelson 2ab950039c MDL-70034 gradingform_guide: use new API to retrieve grade item name 2021-01-09 14:31:09 +08:00
AMOS bot 3b3c246aaa Automatically generated installer lang files 2021-01-09 00:07:26 +00:00
Sara Arjona b3b476ce3c Merge branch 'MDL-70558-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2021-01-08 17:07:23 +01:00
Sara Arjona 682ee99293 Merge branch 'MDL-70102-m310' of https://github.com/sammarshallou/moodle into MOODLE_310_STABLE 2021-01-08 15:51:05 +01:00
David Mudrák b8069c3372 MDL-70550 lang: Use the fixed strings in Behat tests, too 2021-01-08 09:11:38 +01:00
Helen Foster 992d1b29b4 MDL-70550 lang: Import fixed English strings (en_fix) 2021-01-08 09:11:38 +01:00
Jun Pataleta ceab4136aa Merge branch 'MDL-70310-310' of git://github.com/ilyatregubov/moodle into MOODLE_310_STABLE 2021-01-08 14:47:14 +08:00
Luca Bösch 8241aa75d5 MDL-70578 cohorts: Add bootstrap classes to buttons 2021-01-08 07:28:15 +01:00
Jun Pataleta f186074a54 weekly release 3.10+ 2021-01-08 12:14:56 +08:00
Jun Pataleta 8585fe1404 Merge branch 'install_310_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_310_STABLE 2021-01-08 12:14:55 +08:00
AMOS bot d4dff59b82 Automatically generated installer lang files 2021-01-08 00:07:23 +00:00
Eloy Lafuente (stronk7) af4b97f57a Merge branch 'MDL-70245-MOODLE_310_STABLE' of https://github.com/TomoTsuyuki/moodle into MOODLE_310_STABLE 2021-01-07 23:49:47 +01:00
Eloy Lafuente (stronk7) c3341dea30 Merge branch 'MDL-70584-310' of git://github.com/marinaglancy/moodle into MOODLE_310_STABLE 2021-01-07 23:31:24 +01:00
sam marshall 2b0b250162 MDL-70102 PHPunit: Core test fails with weird added modules
Specifically it fails if the modules have unusual default capabilities
so that editingteacher doesn't have addinstance.
2021-01-07 16:11:55 +00:00
Marina Glancy dd17f6b1bf MDL-70584 core_iplookup: increase tolerance in test 2021-01-07 14:17:19 +01:00
Ilya Tregubov 4e1786f27f MDL-70310 user: Remove yahoo icon since domain no longer exists. 2021-01-07 09:15:28 +02:00
Jun Pataleta 247437ce25 Merge branch 'MDL-70374_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE 2021-01-07 12:24:18 +08:00
Eloy Lafuente (stronk7) 8d306e640f Merge branch 'MDL-70476_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE 2021-01-07 00:28:08 +01:00
Eloy Lafuente (stronk7) 17d296f1ea Merge branch 'MOODLE_310_MDL-70520' of https://github.com/golenkovm/moodle into MOODLE_310_STABLE 2021-01-07 00:19:12 +01:00
Paul Holden b8948751f9 MDL-70579 course: filter site fullname when exporting course content. 2021-01-06 21:30:33 +00:00
Dmitrii Metelkin c9dfaec749 MDL-70567 task: fix broken result filter on logs page 2021-01-06 14:29:17 +11:00
Adrian Greeve 304aaf2b7b Merge branch 'MDL-70482_310_STABLE' of https://github.com/sebmehr/moodle into MOODLE_310_STABLE 2021-01-06 11:23:47 +08:00
Dmitrii Metelkin 34153bcc77 MDL-70352 core: attach modal to a specific element 2021-01-06 11:19:57 +11:00
Paul Holden 65ef2f90bf MDL-70558 tool_langimport: sort available language packs. 2021-01-04 23:56:03 +00:00
AMOS bot b12ab80cf5 Automatically generated installer lang files 2020-12-27 00:07:25 +00:00
Sébastien Mehr 9ee975f3a9 MDL-70482 template: add missing closing bracket 2020-12-24 14:04:54 +01:00
AMOS bot fb02551622 Automatically generated installer lang files 2020-12-24 00:07:25 +00:00
Eloy Lafuente (stronk7) 64db9dc75a weekly release 3.10+ 2020-12-23 20:24:53 +01:00
Eloy Lafuente (stronk7) 9d5931b6e2 Merge branch 'install_310_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_310_STABLE 2020-12-23 20:24:51 +01:00
Eloy Lafuente (stronk7) 0369198637 Merge branch 'MDL-56119-310' of https://github.com/inigozendegi/moodle into MOODLE_310_STABLE 2020-12-23 01:27:07 +01:00
Eloy Lafuente (stronk7) 62b9a44045 Merge branch 'MDL-70279-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-12-23 00:47:00 +01:00
Eloy Lafuente (stronk7) 1251f26d67 Merge branch 'MDL-70436-310' of git://github.com/bmbrands/moodle into MOODLE_310_STABLE 2020-12-22 18:29:55 +01:00
Eloy Lafuente (stronk7) 77a6c383bf Merge branch 'MDL-70386-310' of git://github.com/bmbrands/moodle into MOODLE_310_STABLE 2020-12-22 18:22:00 +01:00
Jake Dallimore 53e81c00fa Merge branch 'MDL-70459-310' of git://github.com/rezaies/moodle into MOODLE_310_STABLE 2020-12-22 16:51:36 +08:00
Jake Dallimore 9480706466 Merge branch 'MDL-69422-310-2' of git://github.com/junpataleta/moodle into MOODLE_310_STABLE 2020-12-22 16:03:17 +08:00
Jake Dallimore bb48ca47ef Merge branch 'MDL-70426-310' of https://github.com/HuongNV13/moodle into MOODLE_310_STABLE 2020-12-22 15:16:41 +08:00
Mikhail Golenkov 93b2fe7d38 MDL-70520 mod_assign: Use task API to get scheduled task lastruntime 2020-12-22 15:30:50 +11:00
Mikhail Golenkov 6ba4712549 MDL-70520 tasks: Keep lastruntime when a scheduled task is reset 2020-12-22 15:30:45 +11:00
AMOS bot b192dc7c64 Automatically generated installer lang files 2020-12-22 00:07:24 +00:00
Víctor Déniz 2d9922f388 Merge branch 'MDL-70355-310' of git://github.com/lucaboesch/moodle into MOODLE_310_STABLE 2020-12-21 23:19:20 +00:00
Eloy Lafuente (stronk7) 639f6143e7 Merge branch 'MDL-70430-310-oauth2refreshtoken' of git://github.com/mudrd8mz/moodle into MOODLE_310_STABLE 2020-12-22 00:07:00 +01:00
Víctor Déniz 0a27966b67 Merge branch 'MDL-70284-dynreg-bug-310' of https://github.com/cengage/moodle into MOODLE_310_STABLE 2020-12-21 16:33:17 +00:00
Sara Arjona 79b89c2d42 Merge branch 'MDL-69107-310-2' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2020-12-18 15:22:24 +01:00
Tim Hunt 591107c208 MDL-70374 qtype_multichoice: improve alignment of choices 2020-12-18 13:10:13 +00:00
Tim Hunt ccfc9f7bc9 MDL-70476 permission overrides: role names double-escaped in tool tip 2020-12-18 13:04:16 +00:00
Luca Bösch 06bf0c89d6 MDL-70355 calendar: Filter popuptext for calendar entries. 2020-12-17 17:44:04 +01:00
Sara Arjona c25f0087f7 weekly release 3.10+ 2020-12-17 15:52:52 +01:00
Sara Arjona 12830e4214 Merge branch 'install_310_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_310_STABLE 2020-12-17 15:52:50 +01:00
Shamim Rezaie 2e1b2cf30e MDL-70394 paygw_paypal: Fix the incorrect foreign key 2020-12-17 00:26:48 +11:00
Víctor Déniz 0bfb0a58a0 Merge branch 'MDL-70261-310' of git://github.com/ilya-catalyst/moodle into MOODLE_310_STABLE 2020-12-16 12:34:29 +00:00
Sara Arjona 50ba1375e8 Merge branch 'MDL-70373_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE 2020-12-16 12:40:52 +01:00
Shamim Rezaie 5f57b10712 MDL-70459 enrol_fee: Sort the list of currencies when displaying 2020-12-16 22:30:52 +11:00
Shamim Rezaie ec6720a836 MDL-70459 core_payment: use array_merge to merge currencies 2020-12-16 22:30:52 +11:00
Sara Arjona e00b006d51 Merge branch 'MDL-70322-310' of git://github.com/roland04/moodle into MOODLE_310_STABLE 2020-12-16 12:04:22 +01:00
Jun Pataleta 7ce3918e83 Merge branch 'MDL-54907_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE 2020-12-16 10:26:58 +08:00
Andrew Nicols aa1c7e0a64 MDL-69107 user: Fix autocomplete usages 2020-12-16 07:50:56 +08:00
Sara Arjona cc87756c10 Merge branch 'MDL-70422-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-12-15 16:43:02 +01:00
Sara Arjona e7a53e9410 Merge branch 'MDL-70409-310' of git://github.com/merrill-oakland/moodle into MOODLE_310_STABLE 2020-12-15 16:15:50 +01:00
Sara Arjona a050d3f41b Merge branch 'MDL-70342-310' of git://github.com/abias/moodle into MOODLE_310_STABLE 2020-12-15 15:29:18 +01:00
Sara Arjona bc103afb53 Merge branch 'MDL-70357-310-cronlibthrowables' of git://github.com/mudrd8mz/moodle into MOODLE_310_STABLE 2020-12-15 14:56:04 +01:00
Ilya Tregubov 50d1003bb7 MDL-70261 course: Allow update locked course custom fields
on course upload.
2020-12-15 14:43:11 +02:00
Jake Dallimore 5c899c722c Merge branch 'MDL-67623-310_blocks_myoverview_pagination_regression' of https://github.com/tomdickman/moodle into MOODLE_310_STABLE 2020-12-15 18:22:11 +08:00
Jun Pataleta 73ad678e73 Merge branch 'MDL-70361-dlrlid-310' of https://github.com/cengage/moodle into MOODLE_310_STABLE 2020-12-15 11:17:25 +08:00
Andrew Nicols 22a5445346 MDL-69107 form_autocomplete: Rewrite item selection
The form_autocomplete is essentially a custom element. Unfortunately the
`setValue()` function in Mink has undesired actions so it is necessary
to write our own handling for it.

The standard Mink `setValue()` function focuses the element, sets a
value, and then blurs the element. In the case of the autocomplete this
can cause the autocomplete suggestions list to be closed in some
situations. Instead of using the setValue we click, and type the value,
but do not immediately blur.
2020-12-15 09:08:05 +08:00
AMOS bot 3ca8535203 Automatically generated installer lang files 2020-12-15 00:07:24 +00:00
Sara Arjona 7697ac6538 Merge branch 'MDL-70397-310' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2020-12-14 17:12:05 +01:00
Jake Dallimore c97eb87506 Merge branch 'MDL-70324-3.10' of https://github.com/JBThong/moodle into MOODLE_310_STABLE 2020-12-14 11:30:16 +08:00
Tom Dickman 66b3c79275 MDL-67623 block overview: fix pagination regression
Fixed a regression caused by MDL-64194 resulting in Dashboard - Course
overview pagination not working from second page of courses onwards.

Course overview block should now do the following:
- Display no pagination controls when user has no courses
- Display no pagination controls when less than 12 courses to display
- Only display pagination controls up to the number of courses user is
enrolled in
- Work correctly when on a page greater than the second page.
2020-12-14 13:28:11 +11:00
AMOS bot 773db77081 Automatically generated installer lang files 2020-12-13 00:07:25 +00:00
AMOS bot a07acd9464 Automatically generated installer lang files 2020-12-12 00:07:28 +00:00
AMOS bot 12b20cbf3b Merge branch 'MOODLE_310_STABLE' into install_310_STABLE 2020-12-12 00:07:27 +00:00
Mikel Martín fa31950c6a MDL-70322 core_search: consistent search icon 2020-12-11 15:40:45 +01:00
AMOS bot 6ef5f4ced0 Automatically generated installer lang files 2020-12-11 00:07:31 +00:00
Víctor Déniz c537ed7fed weekly release 3.10+ 2020-12-10 21:10:47 +00:00
Víctor Déniz f3b2f604e2 Merge branch 'install_310_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_310_STABLE 2020-12-10 21:10:40 +00:00
Huong Nguyen f987001a61 MDL-70426 qtype_ddmarker: infinite markers keep duplicating 2020-12-10 15:52:46 +07:00
Shamim Rezaie f1ec340cca MDL-69301 theme_boost: Remove the special handling of Escape key 2020-12-10 14:59:55 +08:00
Tomo Tsuyuki 6998cbfad4 MDL-70245 core_grade: Fix grade_get_setting unit test failures
To fix the phpunit issue, change from static variable to use cache
2020-12-10 16:47:51 +11:00
Jake Dallimore 655f4d4f3f Merge branch 'MDL-70320-310' of https://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2020-12-10 12:01:48 +08:00
Andrew Nicols d9e22f40b4 MDL-70320 behat: User full path to page admin node 2020-12-10 07:55:50 +08:00
Bas Brands df8a5aeab5 MDL-70386 theme_boost: quizes correctness badges 2020-12-09 18:07:29 +01:00
Bas Brands 17cc12c381 MDL-70436 theme_boost: closebutton styles in moodle-dialog-fullscreen 2020-12-09 14:59:44 +01:00
Víctor Déniz e76c5c764b Merge branch 'MDL-63683-310' of https://github.com/dravek/moodle into MOODLE_310_STABLE 2020-12-09 12:47:52 +00:00
Jake Dallimore be45f4c47f Merge branch 'MDL-70151-310' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2020-12-09 14:46:14 +08:00
Shamim Rezaie fa7e218546 MDL-69301 behat: comment a test out
The e.key is not filled correctly by Geckodriver on the verssion of
Firefox that we use.
2020-12-09 13:40:04 +08:00
Andrew Nicols 5c0a5a531d Merge branch 'MDL-70320_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE 2020-12-09 12:06:22 +08:00
Andrew Nicols 200ec6b6ac Merge branch 'MDL-62707-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-12-09 08:53:27 +08:00
David Mudrák 0e7dc879de MDL-70430 oauth2: Fix storing of the new refresh token
There was a typo - missing underscore. As a result, the new refresh
token was never updated in the database. Depending on the issuer and
whether or when theyu invalidate issued refresh tokens, this might or
might not make the token refresh stop working.
2020-12-08 11:24:27 +01:00
Jake Dallimore 70fe644191 Merge branch 'MDL-70285_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE 2020-12-08 16:33:43 +08:00
AMOS bot 5178b349e8 Automatically generated installer lang files 2020-12-08 00:07:22 +00:00
Paul Holden c8e335fbe3 MDL-70422 restore: fix for undefined question answer ordering in test. 2020-12-07 10:15:53 +00:00
Adrian Greeve 567e587dbb Merge branch 'MDL-69301-310' of git://github.com/rezaies/moodle into MOODLE_310_STABLE 2020-12-07 09:29:24 +08:00
AMOS bot 37348f1c2e Automatically generated installer lang files 2020-12-06 00:07:27 +00:00
Eric Merrill e2feddadd9 MDL-70409 chat: Use require_once to import lib.php 2020-12-04 10:45:59 -05:00
Paul Holden 0a62138795 MDL-70279 tool_templatelibrary: preserve component search field value. 2020-12-04 14:55:32 +00:00
Paul Holden c24a16a819 MDL-62707 search: account for no matching courses when listing areas.
When limiting the list of courses during retrieval of the search areas
the user can access, make sure we have some contexts before looking
for blocks.
2020-12-04 09:43:17 +00:00
inigozendegi 8091ab8078 MDL-56119 gradingform_rubric: Rubric display layout issue 2020-12-04 09:41:42 +01:00
David Matamoros 12b9c6051e MDL-63683 enrol: Fix plugin settings when no role has student archetype 2020-12-04 09:25:54 +01:00
Andrew Nicols 92e6eb437c MDL-70397 behat: Prevent browser restarting after initial start 2020-12-04 12:07:20 +08:00
Jake Dallimore 32866a1758 weekly release 3.10+ 2020-12-04 08:42:48 +08:00
Jake Dallimore 9ce415b207 Merge branch 'install_310_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_310_STABLE 2020-12-04 08:42:45 +08:00
Jake Dallimore ec69ae5929 Merge branch 'MDL-70326-MOODLE_310_STABLE' of https://github.com/durzo/moodle into MOODLE_310_STABLE 2020-12-03 11:54:18 +08:00
Andrew Nicols f5545b5c0e Merge branch 'MDL-70327-310' of git://github.com/cescobedo/moodle into MOODLE_310_STABLE 2020-12-03 11:51:59 +08:00
Andrew Nicols 7c22b71916 Merge branch 'MDL-70321_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE 2020-12-03 11:39:54 +08:00
Jake Dallimore b5414af214 Merge branch 'MDL-69411-310' of git://github.com/dravek/moodle into MOODLE_310_STABLE 2020-12-03 11:37:00 +08:00
Jake Dallimore 686b5beb23 Merge branch 'MDL-67460-310_profile_secure' of https://github.com/beenet-dev/moodle into MOODLE_310_STABLE 2020-12-03 11:16:31 +08:00
Adrian Greeve af87a57052 Merge branch 'wip_MDL-70267_m310' of git://github.com/gjb2048/moodle into MOODLE_310_STABLE 2020-12-03 10:56:37 +08:00
Adrian Greeve dec6e261e2 Merge branch 'MDL-70167-310' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2020-12-03 09:57:42 +08:00
AMOS bot 24058ace40 Automatically generated installer lang files 2020-12-03 00:07:26 +00:00
Andrew Nicols d552427f61 Merge branch 'MDL-69868-310' of git://github.com/ilya-catalyst/moodle into MOODLE_310_STABLE 2020-12-03 07:47:48 +08:00
Tim Hunt 0eeb391472 MDL-70373 qtype_essay: missing border on atto input 2020-12-02 20:09:57 +00:00
Shamim Rezaie 433556de1f MDL-69301 theme_boost: Use event.key in aria.js
Both event.which and event.keyCode are deprecated. So
We switched to using event.key. We can only do so now
because IE is no longer supported.
2020-12-03 04:22:09 +11:00
Shamim Rezaie b24f13eca2 MDL-69301 course: Remove custom keyboard navigation code 2020-12-03 04:22:09 +11:00
Shamim Rezaie 65a9b26791 MDL-69301 core: Enhanced WAI-ARIA support for tab elements 2020-12-03 04:22:09 +11:00
Shamim Rezaie 2cc04e2b29 MDL-69301 theme_boost: convert aria.js to es6 module 2020-12-03 04:22:09 +11:00
Jake Dallimore 6be44e7d06 Merge branch 'MDL-67514-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-12-02 16:23:54 +08:00
AMOS bot 93b3efa5a7 Automatically generated installer lang files 2020-12-02 00:07:23 +00:00
Thong Bui 2908ed5405 MDL-70324 Question: get_all_response_file_areas() not work correctly 2020-12-01 16:11:21 +07:00
AMOS bot 966c8a37cb Automatically generated installer lang files 2020-12-01 00:07:30 +00:00
Claude Vervoort c8637d645e MDL-70361 mod_lti: deeplinking multiple preserve resourceid and tag 2020-11-30 14:59:54 -05:00
David Mudrák b427f21cca MDL-70357 cron: Catch Throwables not just Exceptions when running tasks
Starting from PHP 7, most language errors throw Error exceptions. We
want to deal with those equally as with any other exception so we need
to catch all Throwables here.
2020-11-30 17:37:25 +01:00
Alexander Bias 25a0001b9f MDL-70342 block_timeline: Get rid of double quotes
This commit gets rid of double quotes around the activity name and course name
which have sneaked into block_timeline's view in MDL-65183.
2020-11-30 13:20:05 +01:00
Gareth Barnard 843cc0ee8d MDL-70267 ux, theme: Course user profile inconsistent page layout. 2020-11-29 23:51:01 +00:00
AMOS bot 0172d13163 Automatically generated installer lang files 2020-11-29 00:07:31 +00:00
Tim Hunt 78bddace2c MDL-54907 quiz unit tests: clean up code style in attempts_test.php 2020-11-27 18:30:43 +00:00
Tim Hunt 779c1687a4 MDL-54907 quiz: better timefinish for attempts finished asynchronously
There are serveral ways a quiz attempt can be submitted:

1. The student click the Submit and finish button. In this case,
   no problem. We record the current time as the finish time
   for the quiz attempt.

2. The student is activly working away at the quiz, and the
   count-down timer reachers zero. In this case, we also record
   the current time. Note that, if the server is under high load,
   then this could well end up being a few seconds after the
   theoretical end time, so you could have a quiz with a 30 minute
   time limit, with an attempt that lasted 30:07. However, this
   is just an accurate reflection of what happened, so should
   be recorded like this.

3. If the student is offline when the time expires, then
   (depending on the quiz settings) the attempt may be
   automatically submitted by cron, but this will happen with
   at least some delay (to prevent race conditions between cron
   and a student working online) and if cron is running slow
   on the server, it could be a lot later. Previously, this led
   to, say, a 30 minute quiz where an attempt seemed to have
   lasted 67 minutes, which confused people.

   Now, in this situation, the finsh time for the quiz attempt is
   recorded as the time when the time limit ran out. This is not
   just less confusing for teachers looking at the quiz report,
   it is also more accurate. That is the latest time at which
   students could have made any changes to their responses.
2020-11-27 18:30:43 +00:00
Tim Hunt c99a83bc5c MDL-54907 quiz generator: defaults should match a new Moodle install 2020-11-27 18:30:43 +00:00
Tim Hunt 0b523e6031 MDL-54907 dml: Correct incorrect PHPdoc 2020-11-27 18:30:42 +00:00
Juan Leyva 4e5dee71b4 MDL-70340 mod_workshop: Do not apply format to peer comments
This text is not directly output to final users, it is used just in the textarea in both the site and the app.
Applying format, case issues like adding glossary links etc...
2020-11-27 18:16:39 +01:00
Jun Pataleta 8cd8daa285 MDL-69422 mod_data: Export form accessibility fixes
* Set appropriate heading element IDs
* Replace usages of deprecated HTML tag acronym with abbr instead.
* Add a label for the export fields fieldset.
* Move the CSV delimiter list outside the radio group.
* Fix div under a label element and duplicate labels
for the checkboxes of the fields to be exported by showing the field
name and type together.
* Group the fields to be exported as a fieldset.
* Move unsupported fields into a separate list.
* Move export options into its own section and group the options as a
fieldset.
2020-11-27 23:24:13 +08:00
Jun Pataleta 1bd007e815 MDL-69422 core: Convert required and help button container to div
* A span element cannot have a div as a child.
2020-11-27 23:24:13 +08:00
Sara Arjona 9c35064345 weekly release 3.10+ 2020-11-27 07:50:48 +01:00
Sara Arjona 5945a1a926 Merge branch 'install_310_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_310_STABLE 2020-11-27 07:50:45 +01:00
AMOS bot fac91d11d8 Automatically generated installer lang files 2020-11-27 06:21:03 +00:00
Sara Arjona 9fcd6522ce Merge branch 'MDL-70276_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2020-11-26 15:04:30 +01:00
Andrew Nicols 85673c859e MDL-70153 qtype_essay: Whitespace/behat fixes 2020-11-26 12:54:26 +01:00
Andrew Nicols 4dba8e8359 Merge branch 'MDL-70153-310' of git://github.com/dpalou/moodle into MOODLE_310_STABLE 2020-11-26 12:54:26 +01:00
Andrew Nicols f03c875cf3 Merge branch 'MDL-70237-310' of git://github.com/rezaies/moodle into MOODLE_310_STABLE 2020-11-26 12:54:26 +01:00
Andrew Nicols 9fcb5ece12 Merge branch 'MDL-70242-310' of git://github.com/marinaglancy/moodle into MOODLE_310_STABLE 2020-11-26 12:54:26 +01:00
Andrew Nicols b07833ddf4 Merge branch 'MDL-65852-310' of git://github.com/ilya-catalyst/moodle into MOODLE_310_STABLE 2020-11-26 12:54:26 +01:00
Sara Arjona 333f6cb753 Merge branch 'MDL-70248-310' of https://github.com/HuongNV13/moodle into MOODLE_310_STABLE 2020-11-26 12:54:25 +01:00
Sara Arjona 1c594e729b Merge branch 'MDL-70265_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2020-11-26 12:54:25 +01:00
Ilya Tregubov d8c8f544b3 MDL-69868 h5pactivity: Prevent breaking $USER when seeing
attempt report.
2020-11-26 12:40:28 +02:00
Eloy Lafuente (stronk7) a284ced9a1 MDL-70276 github actions: First cut, phpunit and grunt checks
First working version, supports phpunit (using build matrix):

- php72 (lowest), running mysql.
- php74 (highest), running postgres.

Also verifies that the branch has been "gruntified" and there
isn't any missing change (build js/css files).

TODO: Verify the remaining checks currently in .travis.yml, namely:
 - CITEST
 - Add caching
 - Better health-check for DB images.
 - Support from the tracker (satus badges and enable check).
 - Support from CiBoT (status and enable check).
 - Consider moving both the common setup (git, composer...)
   and the database (mysql, postgres) to own actions for
   easier tweaking.
2020-11-26 00:23:22 +01:00
Tim Hunt cb82824f6a MDL-70320 permission overrides: role names were double-escaped 2020-11-25 21:21:28 +00:00
Claude Vervoort 613c37d54b MDL-70284 mod_lti: dynreg fix response claims 2020-11-25 10:51:08 -05:00
cescobedo 53f9417795 MDL-70327 core_h5p: Add preventredirect to the player 2020-11-25 16:30:46 +01:00
Jordan Tomkinson 407807df6b MDL-70326 antivirus: fixing regression in MDL-66222 2020-11-25 11:28:56 +01:00
Ilya Tregubov 7c80e15392 MDL-65852 user: Fix permission check to download course participants. 2020-11-25 11:27:36 +02:00
Tim Hunt e95c0a90ac MDL-70321 question backup: fix MDL-47178 unit tests
They were failing if you had CodeRunner installed
2020-11-24 15:29:41 +00:00
Simon Mok 48905f6b75 MDL-67460 profile: User profile link to use HTTPS 2020-11-24 20:48:52 +08:00
Tim Hunt b5b562b7ee MDL-70285 completion upgrade: fix performance of the MDL-69687 code 2020-11-23 20:59:08 +00:00
David Matamoros 4a82e72b00 MDL-69411 core_message: Fix return structure for empty result set
Passing a timefrom higher than last message timecreated needs to
return a formatted response so it does not break ws.
2020-11-23 19:25:43 +01:00
Eloy Lafuente (stronk7) ef95f5262f MDL-70265 travis: Completely remove the UPGRADE check
It was broken since ages ago, see MDL-64874, so no sense
to keep it eating minutes for nothing.
2020-11-23 14:28:33 +01:00
Adrian Greeve e2d911c07b Merge branch 'MDL-67668-310-2' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2020-11-23 15:37:44 +08:00
Jake Dallimore 71bae0da0f Merge branch 'MDL-70160-function-cache-310' of https://github.com/Peterburnett/moodle into MOODLE_310_STABLE 2020-11-23 15:22:49 +08:00
Andrew Nicols e7bfbaf7b2 MDL-70151 assign: Fix bulk change for behat
Behat does not play well with confirmation dialogues and in some
situations it does not wait for the page to reload before starting the
next step.

This change adds a pending_js call which is only resolved if the cancel
button was pressed, otherwise it remains in-progress until the page
reloads resetting the entire state of it.
2020-11-23 11:12:03 +08:00
Andrew Nicols 6882d7399b MDL-70167 behat: Rewrite attribute check steps
This commit updates the following steps to use the
`the_attribute_of_should_be_set` step under the hood:
- the [element] [type] should be disabled
- the [element] [type] should be enabled
- the [element] [type] should be readonly
- the [element] [type] should not be readonly

This reduces unnecssary code duplication.
2020-11-23 11:03:28 +08:00
Andrew Nicols 80bf03d583 MDL-70167 behat: Boolean attributes should either exist or not 2020-11-23 11:03:28 +08:00
Andrew Nicols 1039537d83 MDL-67668 behat: Update tests for inplace editable field type 2020-11-23 09:00:46 +08:00
Andrew Nicols 0214c50b18 MDL-67668 behat: Add inplace editable field type
This commit promotes the Inplace Editable field to a first-class form
element by introducing a new partial selector for inplace editable
fields, and teaching the field manager how to recognise these, then
introducing a new field type which can handle setting values for this
field.
2020-11-23 09:00:46 +08:00
Andrew Nicols e29e8373e6 MDL-67668 behat: Share behat_behat functionality with forms
Behat form fields are implemented in a way completely isolated from the
rest of the Behat Context system. Whereas regular step definitions have
access to execute steps, to call `find`, check for JS running, and other
related functionality, the Moodle implementation of a field type does
not have any access to this.

By moving the core functionality of behat_base to a new trait, and the
constants to a new interface, the functionality can also be used in
behat form fields in the same way as elsewhere.
2020-11-23 09:00:46 +08:00
Andrew Nicols 9e11009eb1 MDL-67668 behat: Correct js pending check
Pending checks should only run when JS is running, but some uses were
not apply this check.
2020-11-23 09:00:46 +08:00
Andrew Nicols a01ca7a600 MDL-67668 behat: Support NodeElement when fetching node in container
This is similar to change made in MDL-69136 to allow an already-fetched
NodeElement to be provided to the get_node_in_container() function and
makes it easier to be deterministic when writing steps.
2020-11-23 09:00:46 +08:00
Eloy Lafuente (stronk7) 6a662825f7 MDL-70265 travis: Only run highest phpunit if configured via env
By default only lowest php version will be executed, and only pgsql.

This default behavior can be changed with a new variable:

MOODLE_PHP = [all]
MOODLE_DATABASE = [pgsql | mysqli | all]
2020-11-21 11:28:31 +01:00
Eloy Lafuente (stronk7) 03e3219884 weekly release 3.10+ 2020-11-20 23:17:06 +01:00
Huong Nguyen 681b7f4e78 MDL-70248 qtype_ddimageortext: Drop zones have UI issue in Editing form 2020-11-19 17:03:49 +07:00
Adrian Greeve f098f28d01 Merge branch 'MOODLE_310_STABLE-MDL-67636' of https://github.com/yao9394/moodle into MOODLE_310_STABLE 2020-11-19 11:57:33 +08:00
John Yao bf17d50cf6 MDL-67636 gradebook: Prevent exposing hidden grade in locked category 2020-11-19 14:33:26 +11:00
Adrian Greeve 8e0f036b29 Merge branch 'MDL-56653-310' of git://github.com/lameze/moodle into MOODLE_310_STABLE 2020-11-19 11:10:48 +08:00
Andrew Nicols 51c6924206 Merge branch 'MDL-69809-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-11-19 10:47:46 +08:00
Jun Pataleta f589a25459 Merge branch 'MDL-70094-310' of https://github.com/SangNguyen2601/moodle into MOODLE_310_STABLE 2020-11-19 09:36:53 +08:00
Eloy Lafuente (stronk7) dee389dff6 Merge branch 'MDL-69201-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-11-18 23:00:18 +01:00
Shamim Rezaie a9b83b3c01 MDL-70237 payment: Allow html tags in gateway description 2020-11-18 23:25:06 +11:00
sangnguyen2601 0ab0a293a8 MDL-70094 Question: Technical info section expands if click help icon 2020-11-18 17:32:40 +07:00
Dani Palou b76093e90c MDL-70153 qtype_essay: Add behat test for attachments max size 2020-11-18 10:48:17 +01:00
Dani Palou 8f0d40a39c MDL-70153 qtype_essay: Fix max size displayed for attachments 2020-11-18 10:48:17 +01:00
Vitaly 3a2d8a175e MDL-56653 enrol_meta: a single DB query in edit_instance_validation
The 'edit_instance_validation()' method checks for existing meta enrolment instances.
The fix replaces DB queries in a loop for each course with a single query for all courses.
Also, a new testing method 'test_edit_instance_validation_with_existing_courses()'
was added to /enrol/meta/tests/plugin_test.php to test if the new implementation
returns an error in case of trying to save the already linked courses in the 'customint1' field.
2020-11-18 15:05:42 +08:00
Andrew Nicols ff72ca7340 Merge branch '310_MDL-68896' of git://github.com/danmarsden/moodle into MOODLE_310_STABLE 2020-11-18 09:33:06 +08:00
Eloy Lafuente (stronk7) 4e346470a5 Merge branch 'MDL-70148-310' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2020-11-17 23:13:17 +01:00
Paul Holden 13c76cc295 MDL-67514 customfield: correct external usescategories return type. 2020-11-17 22:13:16 +00:00
Marina Glancy 2c4426bb10 MDL-70242 auth_oauth2: set page context and url 2020-11-17 16:47:59 +01:00
Andrew Nicols d3a9e2935d MDL-70148 gradereport_grader: Improve reliability of keyboard usage
In some browsers the ajax grade select does not properly update the
grade after setting values. The previous solution was to press the
[enter] key, but doing this with the new key type step opens the select
box again. This is what happens when a real user presses enter on the
select.

This is the last possible field in the report, so pressing the tab key
to move to the next gradable element does not work.

The solution uses a shift-tab to move the focus away to the previous
gradale element. In this case it must also be moved to an earlier step
because the previously selected value must be checked in the Then
section of the test and if it is selected then its value cannot be
checked.
2020-11-17 15:14:43 +08:00
Andrew Nicols 2adc010b85 MDL-70148 qtype: Update qtype steps to new key interaction
Note: The ddmarker question type was previously getting the number of
keypresses wrong. This was because it was using both keyDown/keyUp, and
also keyPress. As a result each keypress was essentially happening two
times.
2020-11-17 15:14:43 +08:00
Andrew Nicols c330c9276c MDL-70148 behat: Update steps for keyboard 2020-11-17 15:14:43 +08:00
Andrew Nicols e9b443b3a1 MDL-70148 behat: Add steps to send keys without an element 2020-11-17 15:14:43 +08:00
Andrew Nicols 7bb692666b Merge branch 'MDL-69526-310' of git://github.com/lucaboesch/moodle into MOODLE_310_STABLE 2020-11-17 14:55:10 +08:00
Adrian Greeve 5e924f295a Merge branch 'MDL-50955-310' of git://github.com/peterRd/moodle into MOODLE_310_STABLE 2020-11-17 13:08:48 +08:00
Andrew Nicols 739cbcf7e9 Merge branch 'MDL-69964-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-11-17 10:22:38 +08:00
Paul Holden 22df02089a MDL-69964 course: toggle participant checkboxes in root element.
For a given toggleGroup, the relevant action elements are not
necessarily descendants of the same tableRoot element, on the
course participants page.
2020-11-16 17:44:23 +00:00
Andrew Nicols be2afb52c1 MDL-67513 core: Only move modal to body if currently attached
A previous change as part of this commitset was intended to move the
modal to the document.body, but where the modal had been destroyed it
was instead added back to the body.
2020-11-16 09:37:48 +01:00
Peter Dias 09520f8e0d MDL-50955 core: Reset lessons completion criteria if grade type is none 2020-11-16 16:35:33 +08:00
Andrew Nicols d661fbfbc1 Merge branch 'MDL-67513-m310' of https://github.com/NeillM/moodle into MOODLE_310_STABLE 2020-11-16 08:27:35 +08:00
Luca Bösch e29069d45b MDL-69526 block_myoverview: custom course fields natural sorting 2020-11-13 00:57:42 +01:00
Eloy Lafuente (stronk7) f86b5e3545 weekly release 3.10+ 2020-11-12 22:11:40 +01:00
Neill Magill a2dcfd5bf6 MDL-67513 forum: View conversations while fullscreen grading
Before this change when a modal was shown and an element on the page
was fullscreen the modal would be created behind it.

This change ensures that the modal will be inside an element that is
fullscreen so that it will be correctly displayed.
2020-11-12 08:30:54 +00:00
Adrian Greeve dd74c34e36 Merge branch 'MDL-69453-310' of git://github.com/bmbrands/moodle into MOODLE_310_STABLE 2020-11-12 11:56:29 +08:00
Andrew Nicols 5f3b5fdadf Merge branch 'MDL-70067-310_theme_classic' of https://github.com/alexmorrisnz/moodle into MOODLE_310_STABLE 2020-11-12 10:27:27 +08:00
Adrian Greeve 029f061e60 Merge branch 'MOODLE_310_MDL-70117' of https://github.com/golenkovm/moodle into MOODLE_310_STABLE 2020-11-12 09:27:08 +08:00
Eloy Lafuente (stronk7) 14ea8ed50a Merge branch 'MDL-65941-310' of https://github.com/snake/moodle into MOODLE_310_STABLE 2020-11-12 00:18:39 +01:00
Eloy Lafuente (stronk7) 28b14d17c2 Merge branch 'MDL-70023-310' of git://github.com/marinaglancy/moodle into MOODLE_310_STABLE 2020-11-11 23:57:25 +01:00
Alex Morris ce69ce2db5 MDL-70067 report_insights: Replace BS3 column naming
Bootstrap 4 removed col-xs- and replaced it with col-
2020-11-12 08:57:02 +13:00
Sara Arjona 7ca7076c1b Merge branch 'MDL-70063-310-1' of git://github.com/mihailges/moodle into MOODLE_310_STABLE 2020-11-11 16:30:21 +01:00
Jun Pataleta 4c1fbc320f Merge branch 'MDL-70072-310' of git://github.com/rezaies/moodle into MOODLE_310_STABLE 2020-11-11 22:09:07 +08:00
Mihail Geshoski 7b5a1a1967 MDL-70063 block_tag_youtube: Add behat tests 2020-11-11 21:45:09 +08:00
Mihail Geshoski 2a5d1ba26e MDL-70063 block_tag_youtube: Fix category config in existing instances
Upgrade step that fixes the category configuration of existing
tag_youtube block instances.
2020-11-11 21:45:09 +08:00
Mihail Geshoski 6e4c5bf0a2 MDL-70063 block_tag_youtube: Update category config to use category ID
In YouTube Data API v3, the API call to fetch the videos related to a
certain category expects the category ID to be passed to the
videoCategoryId parameter, instead of the category name. Therefore, the
category config should store the category ID.
2020-11-11 21:45:09 +08:00
Bas Brands e6ebfa4baa MDL-69453 core_form: improve form UI icons and alignment 2020-11-11 14:04:54 +01:00
Sara Arjona 5a29867e2d Merge branch 'MDL-70141-m310' of https://github.com/sammarshallou/moodle into MOODLE_310_STABLE 2020-11-11 08:39:23 +01:00
Michael Aherne bbb83614d2 MDL-65941 cache: Prevent cache config failure on redis problems. 2020-11-11 14:49:15 +08:00
Sara Arjona 0ab938d309 Merge branch 'MDL-69823-310' of git://github.com/jleyva/moodle into MOODLE_310_STABLE 2020-11-11 07:41:31 +01:00
Andrew Nicols 6882790684 Merge branch 'MDL-70126-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-11-11 10:25:04 +08:00
Andrew Nicols e78929087e Merge branch 'MDL-70065_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE 2020-11-11 10:10:24 +08:00
Mikhail Golenkov 10a0ea20ac MDL-70117 dataformat_pdf: Fix content overflow when headers are involved 2020-11-11 10:52:01 +11:00
Juan Leyva d0b4b6fa2f MDL-69823 qtype: Support core question types 2020-11-10 19:21:32 +01:00
Juan Leyva a5dcaee31c MDL-69823 mod_quiz: Return question options via WS 2020-11-10 19:21:32 +01:00
Sara Arjona 05ef5c3c48 Merge branch 'MDL-70106-icon-cache-310' of https://github.com/Peterburnett/moodle into MOODLE_310_STABLE 2020-11-10 16:53:37 +01:00
Jun Pataleta e803a24401 Merge branch 'MDL-69930-310' of https://github.com/HuongNV13/moodle into MOODLE_310_STABLE
# Conflicts:
#	question/type/ddimageortext/amd/build/question.min.js
#	question/type/ddimageortext/amd/build/question.min.js.map
#	question/type/ddimageortext/amd/src/question.js
2020-11-10 14:08:57 +08:00
Peter Burnett ebe19aa434 MDL-70160 cache: plugin_functions checks for function_exists() 2020-11-10 16:03:53 +10:00
Jun Pataleta 4b0988f014 Merge branch 'MDL-68349-310' of git://github.com/marinaglancy/moodle into MOODLE_310_STABLE 2020-11-10 10:14:37 +08:00
Jake Dallimore 56ec88ca1c Merge branch 'MDL-69841-310' of https://github.com/HuongNV13/moodle into MOODLE_310_STABLE 2020-11-10 09:33:06 +08:00
Víctor Déniz 849c7704f7 Merge branch 'MDL-69955-310' of https://github.com/HuongNV13/moodle into MOODLE_310_STABLE 2020-11-09 21:47:22 +00:00
Paul Holden 898dd7bf5b MDL-69201 core: consistent table primary sort column/order. 2020-11-09 19:45:41 +00:00
Paul Holden f5e374c278 MDL-70126 tag: correct thrown exception class name. 2020-11-09 19:43:38 +00:00
Neill Magill 4423581f8d MDL-67513 forum: Test that discussions can be viewed while grading 2020-11-09 14:24:56 +00:00
Andrew Nicols d0295d8ff2 Merge branch 'MDL-70146_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2020-11-09 10:01:19 +08:00
Eloy Lafuente (stronk7) 4aa83d92bf MDL-70146 upgrade: add 3.10.0 separation line to all upgrade scripts 2020-11-07 23:26:09 +01:00
Eloy Lafuente (stronk7) ec58cefefb Moodle release 3.10 2020-11-07 17:24:12 +01:00
Eloy Lafuente (stronk7) e4cda88e76 Moodle release 3.10rc2 2020-11-06 22:56:08 +01:00
Víctor Déniz 8752df87ed Merge branch 'MDL-70137-310-2' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2020-11-06 19:16:52 +00:00
Andrew Nicols 511dab1cd3 MDL-70137 cache: Write config to temp file and move into place 2020-11-06 19:16:51 +00:00
Andrew Nicols b26a5e5e08 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:16:44 +00:00
Eloy Lafuente (stronk7) fcb699808c Merge branch 'MDL-70143-310' of git://github.com/marinaglancy/moodle into MOODLE_310_STABLE 2020-11-06 19:51:54 +01:00
Eloy Lafuente (stronk7) f9dc16ca05 Merge branch 'MDL-70139-310' of git://github.com/sarjona/moodle into MOODLE_310_STABLE 2020-11-06 18:56:00 +01:00
sam marshall 72ad8e6919 MDL-70141 core_block: Web service set $PAGE url to avoid warnings 2020-11-06 17:39:06 +00:00
Marina Glancy a350376b65 MDL-70143 tool_uploaduser: fix wrong cache reference 2020-11-06 18:07:24 +01:00
Sara Arjona 29f7a9a210 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:36:52 +01:00
Shamim Rezaie f6b7ed422a MDL-70072 core: Fix always displaying date in Gregorian 2020-11-06 19:23:11 +11:00
Jun Pataleta 022a019637 Merge branch 'MDL-70130-310' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2020-11-06 11:27:54 +08:00
Andrew Nicols 50f5563c1f MDL-70130 core: Compare realpaths for file attachment checks
Rather than using the provided path, the `realpath` must be used to
ensure that the use of symlinks in paths is normalised.
2020-11-06 11:00:30 +08:00
Andrew Nicols 1c0b8f8c50 MDL-70130 core: Simplify attachment handling in email_to_suer 2020-11-06 11:00:29 +08:00
Marina Glancy c879cb24df MDL-70130 core: allow to attach files from localrequestdir to emails
Co-authored-by: Paul Holden <paulh@moodle.com>
2020-11-06 11:00:29 +08:00
Andrew Nicols 6890ad18e3 Merge branch 'MDL-70131-310' of git://github.com/marinaglancy/moodle into MOODLE_310_STABLE 2020-11-06 09:27:33 +08:00
Andrew Nicols b88679e3a1 Merge branch 'MDL-70120-assign-stamp-expires-MOODLE_310_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_310_STABLE 2020-11-06 09:26:01 +08:00
Marina Glancy 8c1917588d MDL-70131 cli: only allow to negate existing keys 2020-11-05 18:10:13 +01:00
Eloy Lafuente (stronk7) c50c904c9e Moodle release 3.10rc1 2020-11-05 12:16:53 +01:00
Marina Glancy 65d419b204 MDL-70023 core_course: improve performance of recently accessed courses 2020-11-05 09:55:15 +01:00
Jun Pataleta 9023021ae0 Merge branch 'MDL-70075-310-2' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2020-11-05 12:51:23 +08:00
Andrew Nicols 919ead58fe Merge branch 'MDL-70066-310' of git://github.com/lameze/moodle into MOODLE_310_STABLE 2020-11-05 10:01:18 +08:00
Andrew Nicols 27de77007b MDL-70075 core: Autocomplete selection should always have an active item
Ensure that there is always one active element in the list of selected
autocomplete elements.

Without this we have issues beacuse clicking on the link makes the first
one active if one is not already active, and this turns a click event
into a drag event, which means that it is not deleted.
2020-11-05 09:05:38 +08:00
Andrew Nicols 34d1c23668 MDL-70075 core: Do not return a value in an event handler
Returning a value of `false` in an event handler has the effect of
calling event.preventDefault() and event.stopPropagation().

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

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

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

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

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

There should be no functional change with this patch, except to support
Firefox fully.
2020-11-05 09:05:38 +08:00
Eloy Lafuente (stronk7) e92c6b19b8 Merge branch 'MDL-70100-310' of git://github.com/bmbrands/moodle into MOODLE_310_STABLE 2020-11-04 22:40:54 +01:00
Víctor Déniz fa79a1876c Merge branch 'MDL-70112_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE 2020-11-04 19:17:34 +00:00
Sara Arjona c9ab02b0cc Merge branch 'MDL-70114-310' of git://github.com/bmbrands/moodle into MOODLE_310_STABLE 2020-11-04 20:15:04 +01:00
Víctor Déniz 9c2241dee4 Merge branch 'MDL-68749-310-2' of git://github.com/mickhawkins/moodle into MOODLE_310_STABLE 2020-11-04 15:24:08 +00:00
Sara Arjona 8028bf10dc Merge branch 'MDL-70119-310' of git://github.com/ferranrecio/moodle into MOODLE_310_STABLE 2020-11-04 15:19:44 +01:00
Bas Brands 04704c2108 MDL-70114 mod_data: add border for to textarea 2020-11-04 13:30:11 +00:00
Brendan Heywood fbe13d55f3 MDL-70120 assignfeedback_editpdf: Stamp files should be cached 2020-11-04 23:06:02 +11:00
Ferran Recio 75d6582fef MDL-70119 core_badges: fix tab names 2020-11-04 12:57:30 +01:00
Simey Lameze 7ca4fd97d9 MDL-70066 badges: change usages of array_key_exists to isset 2020-11-04 16:05:45 +08:00
Jun Pataleta 940ed72017 Merge branch 'MDL-70089_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2020-11-04 13:05:47 +08:00
Peter Burnett 3885c566aa MDL-70106 cache: Set icon localstorage cache to use theme localisation 2020-11-04 13:33:23 +10:00
Huong Nguyen ab542b6e98 MDL-69955 qtype_ddimageortext: drop zone disappear in special case 2020-11-04 09:52:31 +07:00
Jake Dallimore 477cd8b5fe Merge branch 'MOODLE_310_MDL-70093' of https://github.com/golenkovm/moodle into MOODLE_310_STABLE 2020-11-04 09:00:26 +08:00
Tim Hunt a8efb07714 MDL-70112 drag-drop qtypes: fix form preview 2020-11-03 21:36:00 +00:00
Eloy Lafuente (stronk7) 51c9ea5194 MDL-70089 versions: main version bump 2020-11-03 19:38:27 +01:00
Eloy Lafuente (stronk7) b0a1b4ce8b MDL-70089 versions: bump all versions and requires near release
version = 2020110900 release version
requires= 2020110300 current beta+ (week6roll1) version

Note that, because we are under parallel development period,
this is being done in the branch that is going to be released
(MOODLE_310_STABLE already existing) for Moodle 3.10.0 and
not in master, that is the one getting the bump under normal
(non-parallel) periods.
2020-11-03 19:34:52 +01:00
Mihail Geshoski 3d9175f6f1 MDL-67837 backup: Add unit tests 2020-11-03 12:34:28 +01:00
Mihail Geshoski fd2427746f MDL-67837 backup: Verify caps before unenrolling users on course restore 2020-11-03 12:34:28 +01:00
andreasschenkel 49afa008f4 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:34:28 +01:00
Juan Leyva 551892e2a7 MDL-67015 mod_data: Prevent users adding entries to other groups 2020-11-03 12:34:28 +01:00
Amaia Anabitarte 45c339ef09 MDL-69046 core_contentbank: Escape quotes when showing name 2020-11-03 12:34:28 +01:00
Ferran Recio e9fe9f4ae3 MDL-69378 tool_uploadcourse: fix enrolment methods uploads 2020-11-03 12:34:28 +01:00
Peter Dias 1d1b148ca9 MDL-56310 restore: Confirm user has permission to change capabilities 2020-11-03 12:34:28 +01:00
Eloy Lafuente (stronk7) 15b4174a9f on-demand release 3.10beta+ 2020-11-03 12:23:48 +01:00
Bas Brands 99ab172211 MDL-70100 theme_boost: quiztimer zindex fix 2020-11-03 10:36:11 +01:00
Michael Hawkins 5cc9f3448c MDL-68749 theme: Fix bootstrap toggle switches in RTL layout
Co-authored-by: Bas Brands <bas@moodle.com>
2020-11-03 14:47:58 +08:00
Andrew Nicols 4dd870de20 Merge branch 'MDL-70059-310' of git://github.com/sarjona/moodle into MOODLE_310_STABLE 2020-11-03 12:05:19 +08:00
Jun Pataleta c353963ef8 Merge branch 'MDL-70033-310-2' of git://github.com/mickhawkins/moodle into MOODLE_310_STABLE 2020-11-03 12:01:33 +08:00
Michael Hawkins 60585523ad MDL-70033 course: Update download content event handling for Classic 2020-11-03 11:54:56 +08:00
Michael Hawkins eeaf19eb5c MDL-70033 core: Update tree.js event handlers to replace stopPropagation
Also added support to allow links to override action keys (enter/space)

Co-authored-by: Andrew Nicols <andrew@nicols.co.uk>
2020-11-03 11:54:56 +08:00
Juan Leyva 63da614e4f MDL-70081 airnotifier: Add missing device type in token registration 2020-11-03 01:25:57 +01:00
Jun Pataleta 73372330a9 Merge branch 'MDL-69975_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2020-11-03 00:00:25 +08:00
Sara Arjona 5f3de24306 Merge branch 'MDL-69973_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2020-11-02 15:44:54 +01:00
Mikhail Golenkov c15eac212b MDL-70093 dataformat_pdf: Fix row height calculation with high cells 2020-11-02 22:25:24 +11:00
Sara Arjona 01c8c8828b MDL-70059 core_badges: avoid duplicate key error
When 2 or more backpack were created without credentials,
a "Duplicate key value violates unique constraint" error
was raised because externalbackpackid was not taking the
correct value.
Other improvements have been done to the code too in order
to make it more readable.
2020-11-02 10:48:06 +01:00
Jake Dallimore 2dbe5f54f1 Merge branch 'MDL-70073-310' of git://github.com/peterRd/moodle into MOODLE_310_STABLE 2020-11-02 13:57:35 +08:00
Jun Pataleta bcf59d235b Merge branch 'MDL-70074-add-authendpoint-310' of https://github.com/cengage/moodle into MOODLE_310_STABLE 2020-11-02 10:04:31 +08:00
Alexander 62530e097b MDL-70067 theme_classic: Use col-12 as col-xs-12 was removed in BS4 2020-11-02 09:08:07 +13:00
Peter Dias 32574e9cae MDL-70073 badges: Fix the backpack-add to match current master 2020-11-01 22:33:28 +08:00
Brendan Heywood 256f8a261c MDL-69975 core: Fix paths longer than 260 chars on windows
Also, ensure that remove_dir() only processes directories,
because sometimes it was being called by shutdown managers
with files, leading to PHP warnings.

Co-authored-by: Eloy Lafuente (stronk7) <stronk7@moodle.org>
Co-authored-by: Jun Pataleta <jun@moodle.com>
2020-11-01 11:09:39 +01:00
Claude Vervoort 60232d2b9b MDL-70074 mod_lti: add authorization_endpoint 2020-10-30 18:08:18 -04:00
Eloy Lafuente (stronk7) 864ddb77c5 MDL-69973 xmldb: Ensure all reports use fresh metadata (not cached) 2020-10-30 19:27:14 +01:00
Eloy Lafuente (stronk7) 462fe3e925 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:14 +01:00
Marina Glancy 937c7eeef1 MDL-68349 auth_db: user_created event should be triggered later 2020-10-30 14:21:06 +01:00
Eloy Lafuente (stronk7) 6bb7478e8d on-demand release 3.10beta+ 2020-10-30 13:49:20 +01:00
Jun Pataleta 03960b96cb Merge branch 'MDL-68167-310' of git://github.com/rezaies/moodle into MOODLE_310_STABLE 2020-10-30 13:16:55 +08:00
Shamim Rezaie 4d00ebae7a MDL-68167 lib: autocomplete focos should not be removed on blur
See https://www.w3.org/TR/wai-aria-practices-1.1/examples/listbox/listbox-rearrangeable.html
2020-10-30 16:08:56 +11:00
Shamim Rezaie 352e2f7787 MDL-68167 lib: Do not set aria-expanded if it should not be set 2020-10-30 16:08:56 +11:00
Shamim Rezaie 2d2b8d9170 MDL-68167 user: Fix missing label for participants filter input fields 2020-10-30 16:08:56 +11:00
Shamim Rezaie 53f2acb263 MDL-68167 lib: Clear single-select autocomplete elements with keyboard
Following MDL-57680, it should be possible to clear the selected option
using keyboard as well.
2020-10-30 16:08:56 +11:00
Shamim Rezaie 3ea25c3b77 MDL-68167 user: Fix a hardcoded string to be read from lang pack 2020-10-30 16:08:55 +11:00
Shamim Rezaie 7931148cbb MDL-68167 lib: Fix label for autocomplete selection/suggestion box
The content of the autocomplete selection div is purged by javascript
so we have to move its label outside of it. aria-labeledby is the way
to go.

Each time the suggestion box is expanded, autocomplete js renders the
autocomplete suggestions template. So the label cannot be outside the
suggestions ul.
2020-10-30 16:08:40 +11:00
Shamim Rezaie 1031836d89 MDL-68167 user: filter elements should listen to accessibleChange event 2020-10-30 15:01:39 +11:00
Shamim Rezaie ec1e1fd01a MDL-68167 lib: The accessibleChange custom event now supports bubbling
The change event bubbles so the accessibleChange shoud bubble as well.
2020-10-30 15:01:39 +11:00
Shamim Rezaie b5a04a9fe2 MDL-68167 theme_boost: make focus outline accessible for autocompletes 2020-10-30 15:01:39 +11:00
Shamim Rezaie be7b73a24b MDL-68167 lib: Autocomplete selection to use listbox aria role
The aria-selected state cannot be used for the listitem role. The
autocomplete widget highly uses the aria-selected state internally.
2020-10-30 14:59:50 +11:00
Shamim Rezaie 0c438b4d3e MDL-68167 user: Improve keyboard navigation on autocomplete fields 2020-10-30 14:59:50 +11:00
Shamim Rezaie 3f0373cb7e Merge branch 'MDL-69390-310' of git://github.com/bmbrands/moodle into MDL-69390-310-test 2020-10-30 14:59:34 +11:00
Andrew Nicols 6a64b9c5b7 Merge branch 'MDL-69156_310' of https://github.com/ffhs/moodle into MOODLE_310_STABLE 2020-10-30 11:52:07 +08:00
Huong Nguyen 7e47aca045 MDL-69841 Quiz: Review options 'Help' icons do not work correctly 2020-10-30 10:25:43 +07:00
Víctor Déniz 04569f819f Merge branch 'MDL-70032-310-2' of git://github.com/junpataleta/moodle into MOODLE_310_STABLE 2020-10-29 22:26:35 +00:00
Tim Hunt c611f94e04 MDL-70065 quiz: fix paging when adding questions from the bank 2020-10-29 20:29:26 +00:00
Paul Holden a850fa5de8 MDL-69156 backup: correct behaviour of course copy idnumber field.
When a given user doesn't have the capability to change the idnumber
field during course copy, freeze the field value.
2020-10-29 14:15:04 +01:00
Adrian Perez 8d0d0b1f59 MDL-69156 course_copy: set defaults for idnumber when not permitted 2020-10-29 14:15:00 +01:00
Jun Pataleta 8ea746fa79 MDL-70032 qtype_multichoice: Use custom partial named selector
* With the removal of the label element, Behat now has to click on the
answer text. In order to achieve this, the custom partial named selector
"qtype_multichoice > Answer" was now added and have replaced the
instances where the label of the answer's checkbox/radio button is
being clicked.
2020-10-29 16:21:53 +08:00
Jun Pataleta 5d7bd0208a MDL-70032 qtype_multichoice: Fix answer labelling
* Discard the use of the label element in order to be able to render
multiple choice answers as they are and have these act as the radio
button/checkbox' label through the aria-labelledby attribute.
* New JS module qtype_multichoice/answers that listens for click events
on the answer text container and selects the appropriate answer radio
button/checkbox.
2020-10-29 16:21:53 +08:00
Andrew Nicols 52ad601de1 Merge branch 'MDL-68722-310' of https://github.com/matt-catalyst/moodle into MOODLE_310_STABLE 2020-10-29 14:03:15 +08:00
Jake Dallimore 2e02b4d678 Merge branch 'MDL-69716-310' of git://github.com/aanabit/moodle into MOODLE_310_STABLE 2020-10-29 12:40:06 +08:00
Jake Dallimore 859578b0d5 Merge branch 'MDL-70041-310' of git://github.com/mihailges/moodle into MOODLE_310_STABLE 2020-10-29 11:49:20 +08:00
Adrian Greeve 761b8a95f9 Merge branch 'm310_MDL-70042_Progress_Bar_Upgrade_Message_Popup' of https://github.com/scara/moodle into MOODLE_310_STABLE 2020-10-29 08:33:33 +08:00
Matteo Scaramuccia 4ca3d0a0ae MDL-70042 message_popup: Trivial savepoint comment cleanup 2020-10-28 23:00:48 +01:00
Matteo Scaramuccia 75c793f830 MDL-70042 message_popup: progress bar on upgrade only when necessary 2020-10-28 23:00:32 +01:00
Jun Pataleta d546f308d2 Merge branch 'MDL-69390-310' of git://github.com/bmbrands/moodle into MOODLE_310_STABLE 2020-10-28 22:44:08 +08:00
Bas Brands 74f37f98ad MDL-69390 theme_boost: dropdown menu accessibility
- display a dot before the active element
- use the active colour for the hover colour
2020-10-28 14:03:06 +01:00
Jun Pataleta aead807ce6 Merge branch 'MDL-69815-310' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2020-10-28 14:19:23 +08:00
Andrew Nicols f7ad3eaca3 Merge branch 'MDL-70004-310' of git://github.com/junpataleta/moodle into MOODLE_310_STABLE 2020-10-28 13:14:12 +08:00
Jake Dallimore da4fc1e256 Merge branch 'MDL-64723-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-10-28 12:10:47 +08:00
Mihail Geshoski 35364e22fc MDL-70041 filepicker: Make sure the user has a recently used license 2020-10-28 12:06:34 +08:00
Jake Dallimore b1ef67ba62 Merge branch 'MDL-65792-310' of git://github.com/bmbrands/moodle into MOODLE_310_STABLE 2020-10-28 12:00:16 +08:00
Jake Dallimore 461bf54590 Merge branch 'MDL-70010_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2020-10-28 11:07:52 +08:00
Andrew Nicols 6ba76c0097 MDL-69815 core: Bump Node to v14.15.0 (LTS/Fermium) 2020-10-28 09:34:31 +08:00
Eloy Lafuente (stronk7) 323ea697c3 Merge branch 'MDL-69998-310-enfix' of git://github.com/mudrd8mz/moodle into MOODLE_310_STABLE 2020-10-28 00:42:05 +01:00
Eloy Lafuente (stronk7) 46f6bae002 Moodle release 3.10beta 2020-10-27 23:48:46 +01:00
Eloy Lafuente (stronk7) 8aacc3fa2b NOBUG: Fixed file access permissions 2020-10-27 23:48:45 +01:00
Eloy Lafuente (stronk7) 0715960dd8 NOBUG: Fixed SVG browser compatibility 2020-10-27 23:48:43 +01:00
Sara Arjona 65084e7371 MDL-69166 enrol_fee: fix behat string from fee to enrolment by payment 2020-10-27 15:01:47 +01:00
Sara Arjona da4b94e012 MDL-69166 enrol_fee: define default value to currency setting 2020-10-27 15:01:47 +01:00
David Mudrák 05679468c5 MDL-69998 lang: Fix reworded strings in Behat test scenarios 2020-10-27 11:20:03 +01:00
Helen Foster 0a64b2ed99 MDL-69998 lang: Import fixed English strings (en_fix) 2020-10-27 11:20:03 +01:00
Andrew Nicols e243810142 Merge branch 'MDL-69166-310-4' of git://github.com/rezaies/moodle into MOODLE_310_STABLE 2020-10-27 16:35:58 +08:00
Bas Brands a5fa563757 MDL-65792 mod_forum: show release time on timed posts 2020-10-27 08:41:28 +01:00
Shamim Rezaie f018e92334 MDL-69166 core: Fix missing lang strings 2020-10-27 18:15:09 +11:00
Andrew Nicols 46e3cfa354 Merge branch 'MDL-69166-310-4' of git://github.com/rezaies/moodle into MOODLE_310_STABLE 2020-10-27 12:59:25 +08:00
Shamim Rezaie 25cf4fa5ca MDL-69166 core_payment: Add privacy implementation 2020-10-27 15:45:25 +11:00
Shamim Rezaie 0fb7847e09 MDL-69166 core_payment: Use promises instead of callbacks 2020-10-27 15:45:25 +11:00
Shamim Rezaie b63f17b5f1 MDL-69166 core_payment: Addressing various integration points
- Add help for 'payment account' field in the enrol instance form
- Remove MOODLE_INTERNALs when not necessary
- Add $userid to deliver_order
- Check if provider classes implement the provider interface
- Rename get_cost to get_payable
- get_payable returns payable object
- Improve registerEventListeners and added init
- Rename payment\provider to payment\service_provider
2020-10-27 15:45:25 +11:00
Shamim Rezaie 52305c9a2e MDL-69166 core_payment: Rename componentid to itemid 2020-10-27 15:45:25 +11:00
Shamim Rezaie 6b3d163a56 MDL-69166 core_payment: Renamed plugintype name from pg to paygw 2020-10-27 15:45:23 +11:00
Marina Glancy efc576fc5c MDL-69166 core_payment: addressing integration review 2020-10-27 15:45:00 +11:00
Marina Glancy 90fbc58de6 MDL-69166 core_payment: rename some functions 2020-10-27 15:45:00 +11:00
Shamim Rezaie 087845bb30 MDL-69166 Replace all upgrade steps with just "create_table" steps 2020-10-27 15:45:00 +11:00
Shamim Rezaie 7d10f35278 MDL-69166 core_payment: Add paymentarea to the payment subsystem 2020-10-27 15:45:00 +11:00
Marina Glancy 9476b48942 MDL-69166 core_payment: archiving accounts, triggering events, tests 2020-10-27 15:45:00 +11:00
Shamim Rezaie 7e11261633 MDL-69166 core_payment: Show cost on the modal when no gateway is chosen 2020-10-27 15:45:00 +11:00
Marina Glancy 15a4e4c87c MDL-69166 core_payment: improvements to api, small fixes 2020-10-27 15:45:00 +11:00
Marina Glancy 895f38cc76 MDL-69166 core_payment: add payment accounts 2020-10-27 15:45:00 +11:00
Shamim Rezaie acd1c82403 MDL-69166 enrol_fee: Show a warning when no currency is supported 2020-10-27 15:44:59 +11:00
Shamim Rezaie c9271eba7c MDL-69166 enrol_fee: Prevent adding instance if no currency is supported 2020-10-27 15:44:59 +11:00
Shamim Rezaie 0cf4bb2afc MDL-69166 pg_paypal: only prevent closing during autorisation 2020-10-27 15:44:59 +11:00
Shamim Rezaie 58a89a46e4 MDL-69166 core-payment: Autoselect gateway when there is only one 2020-10-27 15:44:59 +11:00
Shamim Rezaie 1882bb4792 MDL-69166 core_payment: payment gateways can have a surcharge 2020-10-27 15:44:59 +11:00
Shamim Rezaie bb7d679395 MDL-69166 core_payment: show cost on the modal 2020-10-27 15:44:59 +11:00
Shamim Rezaie 048a652106 MDL-69166 pg_paypal: capture payment directly 2020-10-27 15:44:59 +11:00
Shamim Rezaie 23e24a504e MDL-69166 pg_paypal: New helper to get order details from PayPal 2020-10-27 15:44:59 +11:00
Marina Glancy 761898c876 MDL-69166 core_form: allow modals to prevent closing on accidental click 2020-10-27 15:44:59 +11:00
Shamim Rezaie dc976fba1e MDL-69166 core_payment: ES6-ifying modal_gateways 2020-10-27 15:44:59 +11:00
Shamim Rezaie e2faf67247 MDL-69166 core_payment: Use a custom modal type for gateway selector 2020-10-27 15:44:59 +11:00
Shamim Rezaie b97899634c MDL-69166 pg_paypal: Support multiple currencies on the same page 2020-10-27 15:44:59 +11:00
Shamim Rezaie 2427b92114 MDL-69166 enrol_fee: use template for payment btn & properly format cost 2020-10-27 15:44:59 +11:00
Shamim Rezaie 34770016ee MDL-69166 core_payment: es6-ify 2020-10-27 15:44:59 +11:00
Shamim Rezaie d00c00dd4f MDL-69166 core_payment: add a callback for when payment is done 2020-10-27 15:44:59 +11:00
Shamim Rezaie ed1cc02522 MDL-69166 pg_paypal: Display PayPal buttons in a modal 2020-10-27 15:44:59 +11:00
Shamim Rezaie e1151bf6f5 MDL-69166 pg_paypal: handle paypal checkout callbacks 2020-10-27 15:44:59 +11:00
Shamim Rezaie bbb887f6ae MDL-69166 pg_paypal: Ability to connect to sandbox or live environment 2020-10-27 15:44:59 +11:00
Shamim Rezaie 4403b8f60d MDL-69166 pg_paypal: Process after payment 2020-10-27 15:44:59 +11:00
Shamim Rezaie 3c3b43a58c MDL-69166 core_payment: Save general payment information 2020-10-27 15:44:59 +11:00
Shamim Rezaie 04e2dc7c3b MDL-69166 pg_paypal: paypal helper class to work with API 2020-10-27 15:44:59 +11:00
Shamim Rezaie 05574af1a6 MDL-69166 enrol_fee: Implement callback functions for payment subsystem 2020-10-27 15:44:59 +11:00
Shamim Rezaie 5337ca485c MDL-69166 core_payment: helper methods to get cost and to deliver order
Also create the infrastructure to let components know when they have to
deliver what they sold. We are going to use namespace functions instead
of traditional callbacks.
2020-10-27 15:44:59 +11:00
Shamim Rezaie 3b0034cc91 MDL-69166 enrol_fee: set a description for enrolment 2020-10-27 15:44:59 +11:00
Shamim Rezaie ab6ca27571 MDL-69166 core_payment: send a purchase description to payment gateways
We truncate description to 127 chars as per PayPal requirement
2020-10-27 15:44:59 +11:00
Shamim Rezaie 149e530cc1 MDL-69166 pg_paypal: render PayPal buttons and set up transaction
We truncate brand_name to 127 chars as per PayPal requirement.
2020-10-27 15:44:59 +11:00
Shamim Rezaie 9a7aed4a25 MDL-69166 pg_paypal: WS and AMD to return some settings to be used in js 2020-10-27 15:44:59 +11:00
Shamim Rezaie ed04c3824c MDL-69166 core_payment: post to process payment 2020-10-27 15:44:59 +11:00
Shamim Rezaie 97e8cb0de4 MDL-69166 core_payment: display an image for each gateway 2020-10-27 15:44:59 +11:00
Shamim Rezaie a435c63e16 MDL-69166 core_payment: some basic styling 2020-10-27 15:44:59 +11:00
Shamim Rezaie c2321a263b MDL-69166 core_payment: display the gateways modal 2020-10-27 15:44:58 +11:00
Shamim Rezaie f3d7526419 MDL-69166 core_payment: WS to get list of gateways supporting a currency 2020-10-27 15:44:58 +11:00
Shamim Rezaie d3432a883c MDL-69166 enrol_fee: An enrolment plugin that supports payments 2020-10-27 15:44:58 +11:00
Shamim Rezaie e1cab8e18e MDL-69166 pg_paypal: A new payment gateway is born 2020-10-27 15:44:56 +11:00
Shamim Rezaie bc28c05995 MDL-69166 core: list settings page in the admin tree 2020-10-27 15:05:23 +11:00
Shamim Rezaie 4865d2a0ae MDL-69166 core_payment: basic gateway skeleton 2020-10-27 15:05:23 +11:00
Shamim Rezaie 8317134779 MDL-69166 core: define payment as a subsystem and pg as a plugin type 2020-10-27 15:05:23 +11:00
Michael Hawkins fbac2e9296 MDL-69559 course: Fix course download cap checks when creating courses 2020-10-27 12:01:09 +08:00
Jun Pataleta c978fa26e2 MDL-70004 qtype_multichoice: Set appropriate clear my choice role 2020-10-27 09:57:32 +08:00
Michael Hawkins 599eed0f95 MDL-69559 core: Removed stopPropagation from tree click handling
It was preventing JS click event handlers being reached on some
elements, such as course admin items in Classic
(eg download course content for teachers).
2020-10-27 08:02:20 +08:00
Michael Hawkins 7d52d5def6 MDL-69559 course: Fixed behat navigation in download course content 2020-10-27 08:01:48 +08:00
Paul Holden 8813318d61 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:04:43 +00:00
Sara Arjona 0459910b53 MDL-65959 core_badges: fix unique index in upgrade.php
There was an error when creating the unique index. Apart from that,
the code has been reorganised to copy data in the new structure only
if password field hasn't been removed.
2020-10-26 23:56:46 +01:00
Matt Clarkson adeaafd59d 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-27 11:10:58 +13:00
Sara Arjona 0dd7bb8374 Merge branch 'MDL-65959-310' of git://github.com/peterRd/moodle into MOODLE_310_STABLE 2020-10-26 22:44:05 +01:00
Peter Dias bcba1347f8 MDL-65959 badges: Allow cross domain/protocol functionality - obv2 2020-10-26 18:36:26 +08:00
Peter Dias b0e1edd427 MDL-65959 badge: Enable OB2.1 *connection* with cross domain ability 2020-10-26 18:36:26 +08:00
Peter Dias b0007a154c MDL-65959 badge: Reset external_identifiers if backpack details modified 2020-10-26 18:36:26 +08:00
Peter Dias 8c9d3695e3 MDL-65959 badge: Confirm assertion data is updated before awarding 2020-10-26 18:36:26 +08:00
Peter Dias 184944ce6a MDL-65959 badges: Unit and Behat tests 2020-10-26 18:36:26 +08:00
Peter Dias ad9f9e54a3 MDL-65959 badges: Do not use badge user preference after verification 2020-10-26 18:36:26 +08:00
Peter Dias 943b261760 MDL-65959 badges: Update the implementation to use admin set backpack 2020-10-26 18:36:25 +08:00
Peter 8dbc7c6532 MDL-65959 core_badges: Allow ability to upload badges cross domain. 2020-10-26 18:35:36 +08:00
Peter 6f7fe5df9c MDL-65959 core_badges: Unrestricted user's badger account
* Restructure the email to be backpack specific
* Amended table defintion and functions
2020-10-26 18:35:35 +08:00
Eloy Lafuente (stronk7) 7e5f0e1fe6 MDL-70010 core: reconcile MOODLE_310_STABLE and master
There are some unexpected differences between 310 and master,
better reconcile them now. Note this is not 100% critical but,
as far as nothing exclusively for 4.0 has landed to master yet
only branch/version differences should exist.
2020-10-26 11:03:40 +01:00
Eloy Lafuente (stronk7) 11b6df58db Merge branch 'MDL-69993-310' of git://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-10-26 10:42:51 +01:00
Andrew Nicols 36beec930e Merge branch 'MDL-69995-310' of git://github.com/lucaboesch/moodle into MOODLE_310_STABLE 2020-10-26 16:00:38 +08:00
Adrian Greeve 750fe24949 MDL-69559 core_course: Fix to bad behat test formatting. 2020-10-26 13:28:10 +08:00
Adrian Greeve cc718b59d0 Merge branch 'MDL-69559-310-7' of git://github.com/mickhawkins/moodle into MOODLE_310_STABLE 2020-10-26 13:05:33 +08:00
Jun Pataleta 4dcc2d37c6 Merge branch 'MDL-67301-dynreg-squashed-310' of https://github.com/cengage/moodle into MOODLE_310_STABLE 2020-10-26 12:40:23 +08:00
Michael Hawkins d358b91e2b MDL-69559 course: Add course setting and cap to control course downloads 2020-10-26 10:25:37 +08:00
Michael Hawkins c053b93f0c MDL-69559 course: Add course content download UI and execution page 2020-10-26 10:19:39 +08:00
Michael Hawkins cdf91cc236 MDL-69559 course: Add capability and access checks for course download 2020-10-26 10:19:33 +08:00
Michael Hawkins fab34222ca MDL-69559 admin: Add course download admin settings and lang strings 2020-10-26 10:19:27 +08:00
Huong Nguyen ef6f42a825 MDL-69930 qtype_ddimageortext: Duplication items in drag-onto-image question 2020-10-25 20:14:43 +07:00
Luca Bösch a9f5f8094c MDL-69995 backup: padding before activity icons. 2020-10-25 02:07:26 +02:00
Claude Vervoort 10e16c69c8 MDL-67301 mod_lti: dynamic registration 2020-10-24 09:28:32 -04:00
Amaia Anabitarte e66e3740a7 MDL-69716 mod_quiz: No timestamp for in progress attempts 2020-10-23 16:02:25 +02:00
Eloy Lafuente (stronk7) 6594c54b2e on-demand release 3.10dev+ 2020-10-23 14:41:20 +02:00
Paul Holden 6dc336a5d4 MDL-69993 output: correct navigation node type for user reports. 2020-10-23 08:25:40 +01:00
Adrian Greeve 39128991d7 Merge branch 'MDL-67650-forced-checkbox-textarea-MOODLE_310_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_310_STABLE 2020-10-23 09:01:59 +08:00
Víctor Déniz e1990f2f33 Merge branch 'MDL-68664-310' of git://github.com/lameze/moodle into MOODLE_310_STABLE 2020-10-22 12:25:51 +01:00
Sara Arjona 1ce223c7e1 Merge branch 'MDL-69553-m310' of https://github.com/NeillM/moodle into MOODLE_310_STABLE 2020-10-22 08:56:05 +02:00
Brendan Heywood 6694715840 MDL-67650 admin: Consistently show forced config settings 2020-10-22 13:17:49 +11:00
Jake Dallimore 0a43a459ba Merge branch 'MDL-68438_310' of https://github.com/t-schroeder/moodle into MOODLE_310_STABLE 2020-10-22 09:30:48 +08:00
Adrian Greeve 7e0bcbfb19 Merge branch 'MDL-69788-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-10-22 09:07:54 +08:00
Eloy Lafuente (stronk7) eaf89f7754 Merge branch 'MDL-66392-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-10-21 19:45:26 +02:00
Paul Holden 5bbfcc25c0 MDL-66392 analytics: make model output directory default to empty.
Falling back to path within $CFG->dataroot/models.
2020-10-21 18:04:20 +01:00
Sara Arjona 4a495d66b8 Merge branch 'm310_MDL-68536_Notice_Undefined_Property_CFG_branch' of https://github.com/scara/moodle into MOODLE_310_STABLE 2020-10-21 18:32:47 +02:00
Sara Arjona b13ec3c353 Merge branch 'MDL-67673_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2020-10-21 17:38:16 +02:00
Víctor Déniz 5903054142 Merge branch 'MDL-69392-310' of git://github.com/junpataleta/moodle into MOODLE_310_STABLE 2020-10-21 16:26:44 +01:00
Víctor Déniz 2dd9b53fd6 Merge branch 'MDL-69513-dkim-settings-MOODLE_310_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_310_STABLE 2020-10-21 11:56:54 +01:00
Eloy Lafuente (stronk7) 7f20e2071c MDL-67673 phpunit: Document all the changes in upgrade.txt
This includes:

- Breaking changes (return void + PHP 7.1 min requirement).
- Deprecations and removals.
- Specifically DbUnit and its replacement.
- Printer showing how to rerun tests removed.
2020-10-21 12:46:05 +02:00
Eloy Lafuente (stronk7) 0ab106f41c MDL-67673 phpunit: Remove the rerun hint on failed test cases
That custom printer was using some hacks to be able to intercept
configuration switches, reflection and other tricks to be able to
print the:

To re-run:
 vendor/bin/phpunit --verbose "core_setuplib_testcase" lib/tests/setuplib_test.php

line on every failed/exceptional/skipped test. After some internal
discussion it was agreed that the normal phpunit output:

1) core_setuplib_testcase::test_localcachedir
Time is lower that allowed start value
Failed asserting that 1601976686 is equal to 1601976687 or is greater than 1601976687.

/var/www/html/lib/phpunit/classes/advanced_testcase.php:446
/var/www/html/lib/tests/setuplib_test.php:170
/var/www/html/lib/phpunit/classes/advanced_testcase.php:80

has already all the information at hand about how to rerun a test:

- vendor/bin/phpunit lib/tests/setuplib_test.php
- vendor/bin/phpunit --filter core_setuplib_testcase::test_localcachedir
- vendor/bin/phpunit --filter ::test_localcachedir
- vendor/bin/phpunit --testsuite componentname_testsuite
- vendor/bin/phpunit --config <<compoenent directory>>
- use --cache-result to get failed tests rerun with ease.
- ...

So better, let's use standard phpunit output and done. Also, note that,
with the upgrade to phpunit 8.5, the printer was not working correctly
any more, causing some switches, like --verbose ... to be ignored. Sure
it could have been fixed but, as commented above, no real need for all
that "parapheranlia" to print the rerun information.
2020-10-21 12:46:05 +02:00
Eloy Lafuente (stronk7) 9f82c9aece MDL-67673 phpunit: deprecate old phpunit/dbunit stuff
Apply the standard deprecation procedure to the old APIs, to
be removed in Moodle 4.2 (MDL-69882). Existing unit tests
cover the deprecation debugging.

Originally MDL-64600
2020-10-21 12:46:05 +02:00
Eloy Lafuente (stronk7) 1f13dff1a7 MDL-67673 phpunit: Move tests to use new phpunit_dataset
- Make advanced_testcase old methods to use new ones internally.
- Fix advanced_testcase, statslib, mod/quiz and mod/data tests.

Originally MDL-64600
2020-10-21 12:46:05 +02:00
Eloy Lafuente (stronk7) be396eddf0 MDL-67673 phpunit: Introduce a new, lightweight phpunit_dataset
In charge of taking over the, now removed/archived, phpunit/dbunit
package. It supports loading of CSV/XML files and strings and
PHP arrays, allowing to send the loaded information to database.

Perform some basic controls about the consistency of information,
surely not super-exhaustive but fair enough.

100% covered with unit test.

Planned like an "interim" replacement for phpunit/dbunit uses in
core that, ideally, should be moved to generators stuff at some
point.

Note, expect a few tests in core to fail with this commit, I've
changed some fixtures around. Next commit will fix existing uses.

Originally MDL-64600
2020-10-21 12:46:05 +02:00
Eloy Lafuente (stronk7) 4af4d709a4 MDL-67673 phpunit: Disable phpunit results cache by default
It can be enabled if desired from CLI using the --cache-result
option (or modifying the phpunit.xml cacheResult to true).

That will create the .phpunit.result.cache files that,
later, can be used to easily repeat failed (defects) tests or
run the slow ones first and more. See the --order-by option
to know more about all the available criteria. For example:

./vendor/bin/phpunit --order-by=defects --stop-on-defect

(will run all the failed ones first, stopping on problem, useful
for TDD and other scenarios, not so much for complete runs or CI).

Also, added to .gitignore so they won't be committed ever.
2020-10-21 12:46:05 +02:00
Eloy Lafuente (stronk7) 46606b3ddd MDL-67673 phpunit: Remove deprecated assertEquals() params
The optional parameters of assertEquals() and assertNotEquals()
are deprecated in PHPUnit 8 (to be removed in PHPUnit 9):

- delta => use assertEqualsWithDelta()
- canonicalize => use assertEqualsCanonicalizing()
- ignoreCase => use assertEqualsIgnoringCase
- maxDepth => removed without replacement.

More info @ https://github.com/sebastianbergmann/phpunit/issues/3341

Initial search done with:

ag 'assert(Not)?Equals\(.*,.*,' --php

Then, running tests and fixing remaining cases.
2020-10-21 12:46:05 +02:00
Eloy Lafuente (stronk7) 35bc26b516 MDL-67673 phpunit: Remove deprecated assertContains() uses on strings
Both assertContains() and assertNotContains() are deprecated in PHPUnit 8
for operations on strings. Also the optional case parameter is. All uses
must be changed to one of:

- assertStringContainsString()
- assertStringContainsStringIgnoringCase()
- assertStringNotContainsString()
- assertStringNotContainsStringIgnoringCase()

More info: https://github.com/sebastianbergmann/phpunit/issues/3422

Regexp to find all uses:

ag 'assert(Not)?Contains\('
2020-10-21 12:46:05 +02:00
Eloy Lafuente (stronk7) 106c64ac24 MDL-67673 phpunit: Remove deprecated non-public attribute assertions
With PHPUnit 8 a good number of assertions, all them related with
operations on non-public attributes have been deprecated. And will
be removed with PHPUnit 9.

The main point is that unit tests shouldn't be testing non-public
APIs (good practice) and those assertions were an error originally.

See https://github.com/sebastianbergmann/phpunit/issues/3338 for
the complete list and other details.

When possible (the attributes being checked are public), the change
is simple, just switching to normal assertions.

When the attributes are not public we need to find a workaround
to be able to test the same using public APIs, or use Reflection,
or remove the tests.

For the records, this is the regexp used to find all the cases:

ag '>(assertAttribute|attribute\(|readAttributte|getStaticAttribute| \
    getObjectAttribute)' -G "test.php"
2020-10-21 12:46:05 +02:00
Eloy Lafuente (stronk7) ddf72dd60d MDL-67673 phpunit: Remove expectedException annotations
While this is not strictly required, because removal will
happen in PHPUnit 9.0, we are already getting rid of all
uses in core.

From release notes:https://phpunit.de/announcements/phpunit-8.html

The annotations `@expectedException`, `@expectedExceptionCode`,
`@expectedExceptionMessage`, and `@expectedExceptionMessageRegExp`
are now deprecated.
Using these annotations will trigger a deprecation warning
in PHPUnit 8 and in PHPUnit 9 these annotations will be removed.

Also, all uses of expectExceptionMessageRegExp() has been moved
to expectExceptionMessageMatches(). See https://github.com/sebastianbergmann/phpunit/issues/3957

TODO: Various weirdness found while doing the changes with these tests:
- vendor/bin/phpunit lib/tests/exporter_test.php (created MDL-69700)
- vendor/bin/phpunit competency/tests/external_test.php (same issue than prev one)
- vendor/bin/phpunit question/engine/tests/questionengine_test.php (created MDL-69624)
- vendor/bin/phpunit lib/tests/event_test.php (created MDL-69688)
2020-10-21 12:46:05 +02:00
Eloy Lafuente (stronk7) 0ae27225f5 MDL-67673 phpunit: Remove deprecated assertArraySubset()
While this is not strictly required, because removal will
happen in PHPUnit 9.0, we are already getting rid of all
uses in core.

From release notes:https://phpunit.de/announcements/phpunit-8.html

assertArraySubset() is deprecated and will be removed in PHPUnit 9.
2020-10-21 12:46:05 +02:00
Eloy Lafuente (stronk7) a6674bf8a4 MDL-67673 phpunit: Remove deprecated assertInternalType()
While this is not strictly required, because removal will
happen in PHPUnit 9.0, we are already getting rid of all
uses in core.

From release notes:https://phpunit.de/announcements/phpunit-8.html

assertInternalType() is deprecated and will be removed in
PHPUnit 9. Refactor your test to use assertIsArray(), assertIsBool(),
assertIsFloat(), assertIsInt(), assertIsNumeric(), assertIsObject(),
assertIsResource(), assertIsString(), assertIsScalar(),
assertIsCallable(), or assertIsIterable() instead.
2020-10-21 12:46:05 +02:00
Eloy Lafuente (stronk7) dc87fd4b3f MDL-67673 phpunit: phpunit_constraint_object_is_equal_with_exceptions
Constraints are now declared final, so we cannot extend them anymore.

Hence, instead of extending PHPUnit\Framework\Constraint\IsEqual we
are just wrapping it into our constraint.
2020-10-21 12:46:04 +02:00
Eloy Lafuente (stronk7) d81a94807b MDL-67673 phpunit: Fix the return type of template methods
All the setup/teardown/pre/post/conditions template methods
now are required to return void. This was warned with phpunit 7
and now is enforced.

At the same time, fix a few wrong function names,
provider data and param types, return statements...
2020-10-21 12:46:04 +02:00
Eloy Lafuente (stronk7) c611109ed7 MDL-67673 phpunit: Bump to PHPUnit 8.5 and remove DBunit
This makes everything to break, but it's what we'll be fixing
in the next commits, heh. :-)

Generated with php72 (min version supported), following the
instructions @ https://docs.moodle.org/dev/Composer
2020-10-21 12:46:04 +02:00
Paul Holden 74ef7dc5b1 MDL-69788 admin: validate language menu configuration. 2020-10-21 11:24:22 +01:00
Jun Pataleta 8996ed98c7 Merge branch 'MDL-37226-310' of git://github.com/lucaboesch/moodle into MOODLE_310_STABLE 2020-10-21 17:46:48 +08:00
Tim Schroeder 3fcba4be5e MDL-68438 message: fixed email format change with messaging disabled 2020-10-21 11:29:15 +02:00
Neill Magill 55d463b9f2 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:06:26 +01:00
Neill Magill bbb58b10ad MDL-69553 output: Unit tests for loading multiline string defines 2020-10-21 10:06:25 +01:00
Jun Pataleta f266c852c3 Merge branch 'MDL-69945-310' of git://github.com/lucaboesch/moodle into MOODLE_310_STABLE 2020-10-21 16:03:14 +08:00
Jun Pataleta b14daeaa9a MDL-69392 mod_forum: Colour contrast check for locked discussions 2020-10-21 14:54:25 +08:00
Jun Pataleta 8e083da3d5 MDL-69392 block_myoverview: Basic contrast check for the dashboard 2020-10-21 14:54:25 +08:00
Jun Pataleta 8312eeacb0 MDL-69392 question: Fix Try again button styling 2020-10-21 14:54:24 +08:00
Jun Pataleta 0ce40927cf 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:54:05 +08:00
Jun Pataleta 0cdfaccd4e 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:54:03 +08:00
Jun Pataleta d386d21360 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:53:44 +08:00
Adrian Greeve 5429ece3f8 Merge branch 'MDL-69807-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-10-21 14:18:02 +08:00
Adrian Greeve 32f99bc4d1 Merge branch 'MDL-68766-M310' of https://github.com/michael-milette/moodle into MOODLE_310_STABLE 2020-10-21 12:54:02 +08:00
Jake Dallimore df0df3110d Merge branch 'MDL-68983-recent-session-lock-ro-MOODLE_310_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_310_STABLE 2020-10-21 12:45:55 +08:00
Jake Dallimore 2ced8c6674 Merge branch 'MDL-69902-310' of https://github.com/marinaglancy/moodle into MOODLE_310_STABLE 2020-10-21 10:57:35 +08:00
Jake Dallimore 17056bf206 Merge branch 'MDL-69751-310' of git://github.com/mihailges/moodle into MOODLE_310_STABLE 2020-10-21 10:02:47 +08:00
Eloy Lafuente (stronk7) 27b09acf75 on-demand release 3.10dev+ 2020-10-21 00:51:10 +02:00
Luca Bösch d159c32b84 MDL-65448 block_site_main_menu: Restyle moving. 2020-10-20 17:26:14 +02:00
Jake Dallimore 221f0e16d0 Merge branch 'MDL-67695-MOODLE_310_STABLE_get_lti_proxies' of https://github.com/andrewmadden/moodle into MOODLE_310_STABLE 2020-10-20 11:08:46 +08:00
Adrian Greeve 55189def65 Merge branch 'MOODLE_310_STABLE-MDL-68284' of https://github.com/yao9394/moodle into MOODLE_310_STABLE 2020-10-20 08:49:06 +08:00
Mihail Geshoski 086a2adc35 MDL-69751 core: Restore deleted guest user and add missing context
This upgrade step fixes the cases where the current guest user is
labelled as 'deleted' and the related user context is missing.
2020-10-20 08:41:35 +08:00
Mihail Geshoski 3c315a874a MDL-69751 course: Handle missing guest user context
Makes sure the guest user context exists when fetching
the recommended modules. If the context does not exist
an exception is being thrown describing the problem.
2020-10-20 08:39:17 +08:00
Simey Lameze b4a8a99898 MDL-68664 theme: remove right margin from form-inline class 2020-10-20 08:32:45 +08:00
Katie Ransom 08e8205d6f MDL-69962 tool_usertours: Fix increase in included files 2020-10-20 01:29:47 +01:00
Andrew Nicols 0a54a501eb Merge branch 'MDL-69687-m310' of https://github.com/sammarshallou/moodle into MOODLE_310_STABLE 2020-10-20 08:02:22 +08:00
Jenkins Automation 213ea00afe MDL-69726 calendar: fix raw event fetcher under postgres
Without this, there's a code path that under the right circumstances is hit and
results in a query with `FROM (mdl_event) ev` in it - which is not valid syntax
under postgres.
2020-10-20 07:46:00 +08:00
Paul Holden 9428e33d55 MDL-69807 blocks: remove redundant sesskey loading edit/delete page. 2020-10-19 22:40:45 +01:00
Eloy Lafuente (stronk7) 31a98b3fb2 Merge branch 'MDL-69906-310-searchsimpledb' of git://github.com/mudrd8mz/moodle into MOODLE_310_STABLE 2020-10-19 22:56:31 +02:00
Eloy Lafuente (stronk7) ae6da7d6a0 Merge branch 'MDL-57756-text-customparams-310' of https://github.com/cengage/moodle into MOODLE_310_STABLE 2020-10-19 22:32:02 +02:00
Andrew Madden 4d5bc273ce MDL-67695 mod_lti: Use correct return structure for get_tool_proxies.
* Deprecated serialise_tool_proxy() as no longer used.
* Use tool_proxy_return_structure for each proxy.
* Added tests for getting all proxies and orphaned proxies.
2020-10-20 04:09:44 +11:00
Sara Arjona 33c7881448 Merge branch 'MDL-69897-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-10-19 18:14:54 +02:00
Sara Arjona b7146b655a Merge branch 'MDL-69900-310' of git://github.com/mihailges/moodle into MOODLE_310_STABLE 2020-10-19 13:41:59 +02:00
sam marshall 178d5a0e23 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:24:44 +01:00
Sara Arjona f576390bd2 Merge branch 'MOODLE_310_MDL-69791' of https://github.com/golenkovm/moodle into MOODLE_310_STABLE 2020-10-19 10:07:21 +02:00
Andrew Nicols 7ed7afad98 Merge branch 'MDL-65448-310' of git://github.com/lucaboesch/moodle into MOODLE_310_STABLE 2020-10-19 15:54:36 +08:00
Luca Bösch a7e12a77b1 MDL-65448 block_social_activities: Restyle moving. 2020-10-19 09:50:20 +02:00
Luca Bösch 09e02634d4 MDL-65448 core_course: Restyle non-JS activity moving. 2020-10-19 09:50:20 +02:00
Luca Bösch be019636d1 MDL-65448 gradebook: Remove erraneous dev .movehere class left over. 2020-10-19 09:50:19 +02:00
Luca Bösch 7789be4030 MDL-65448 core_course: Restyle non-JS activity moving. 2020-10-19 09:50:19 +02:00
Luca Bösch 91c9ca0f49 MDL-65448 block_site_main_menu: Restyle moving. 2020-10-19 09:50:18 +02:00
Luca Bösch 7c0923a3e4 MDL-65448 block_social_activities: Restyle moving. 2020-10-19 09:50:18 +02:00
Luca Bösch 83cba7b9b0 MDL-65448 gradebook: Restyle moving. 2020-10-19 09:50:18 +02:00
Sara Arjona cb4418bc5b Merge branch 'MDL-69736-310' of git://github.com/ferranrecio/moodle into MOODLE_310_STABLE 2020-10-19 09:03:51 +02:00
Brendan Heywood 4db3403481 MDL-69513 email: Add support for email DKIM signatures 2020-10-19 16:20:42 +11:00
Andrew Nicols 9296086653 Merge branch 'MDL-69687-m310' of https://github.com/sammarshallou/moodle into MOODLE_310_STABLE 2020-10-19 13:19:28 +08:00
Andrew Nicols 38d4a1b75f Merge branch 'MDL-65448-310' of git://github.com/lucaboesch/moodle into MOODLE_310_STABLE 2020-10-19 10:07:45 +08:00
Michael Milette 1b4ef7cd88 MDL-68766 auth: Login form: 'Log in using...' should be h3, not h6 2020-10-17 03:59:35 -04:00
sam marshall 3576eb4835 MDL-69687 Course: Improve removal of completion data on MySQL 2020-10-16 18:22:51 +01:00
sam marshall 39eb58c754 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:22:51 +01:00
Luca Bösch c6731f8045 MDL-37226 assign: align select all header checkbox 2020-10-16 16:08:58 +02:00
Paul Holden 252f95e1b7 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-16 14:38:03 +01:00
Luca Bösch c24c9e174b MDL-65448 block_site_main_menu: Restyle moving. 2020-10-16 14:50:11 +02:00
Luca Bösch 199333208d MDL-65448 block_social_activities: Restyle moving. 2020-10-16 14:50:10 +02:00
Luca Bösch 91557080d7 MDL-65448 core_course: Restyle non-JS activity moving. 2020-10-16 14:50:10 +02:00
Luca Bösch 3370b20e3c MDL-65448 gradebook: Restyle moving. 2020-10-16 14:50:10 +02:00
Luca Bösch 2c98bfc4f4 MDL-69945 core_calendar: let circles appear as circles 2020-10-16 14:22:47 +02:00
Sara Arjona 36f0c3d531 on-demand release 3.10dev+ 2020-10-16 13:18:54 +02:00
Sagar Ghimire 1ebbd18b82 MDL-68284 gradebook: Prevent exposing hidden quiz grade item 2020-10-16 15:06:34 +11:00
Jake Dallimore 04a02b5bd9 Merge branch 'MOODLE_310_MDL-47178' of https://github.com/golenkovm/moodle into MOODLE_310_STABLE 2020-10-16 11:52:29 +08:00
Jun Pataleta 506df9bdbd Merge branch 'MDL-69266-310' of https://github.com/HuongNV13/moodle into MOODLE_310_STABLE 2020-10-16 10:09:40 +08:00
Huong Nguyen 873b4847f5 MDL-69266 qtype_ddwtos: 'unlimited' options fail in 3.9 2020-10-15 20:05:52 +07:00
Adrian Greeve a2aa548af7 Merge branch 'MDL-69549-310-7' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2020-10-15 15:11:29 +08:00
Jun Pataleta d0c89df9ee Merge branch 'MDL-69583-310' of git://github.com/ferranrecio/moodle into MOODLE_310_STABLE 2020-10-15 13:56:58 +08:00
Jun Pataleta 30eccfabaa Merge branch 'MDL-69520-310' of git://github.com/sarjona/moodle into MOODLE_310_STABLE 2020-10-15 13:53:36 +08:00
Simey Lameze 63e2c543ae MDL-69549 mod_resource: content export implementation 2020-10-15 13:46:25 +08:00
Andrew Nicols a69b38d604 MDL-69549 mod_page: Content export implementation 2020-10-15 13:46:25 +08:00
Andrew Nicols 0ea391d1eb MDL-69549 mod_folder: Content export implementation 2020-10-15 13:46:25 +08:00
Andrew Nicols 17d4bc49f6 MDL-69549 core: Add context export API 2020-10-15 13:46:25 +08:00
Katie Ransom 57a13a5971 MDL-69739 tool_usertours: Add tour-level CSS selector 2020-10-15 13:35:32 +08:00
Eloy Lafuente (stronk7) 12fce2a4bd Merge branch 'MDL-69813-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-10-14 22:47:12 +02:00
Eloy Lafuente (stronk7) b68dd3a121 Merge branch 'MDL-63805-310' of git://github.com/jleyva/moodle into MOODLE_310_STABLE 2020-10-14 21:22:08 +02:00
Eloy Lafuente (stronk7) eb4c7963c0 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:57:29 +02:00
Sara Arjona dde0818f6c MDL-69520 core_h5p: unit tests for covering example and tutorial 2020-10-14 18:35:52 +02:00
Sara Arjona ad28920d0b MDL-69520 core_h5p: add example and tutorial links 2020-10-14 18:35:50 +02:00
Eloy Lafuente (stronk7) a5cde22a26 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:54:26 +02:00
Víctor Déniz 44719d2ad9 Merge branch 'MDL-68900-m310' of https://github.com/sumitnegi933/moodle into MOODLE_310_STABLE 2020-10-14 12:22:22 +01:00
Juan Leyva 784c09c834 MDL-63805 glossary: New WS mod_glossary_prepare_entry_for_edition 2020-10-14 12:57:33 +02:00
Juan Leyva 004be78003 MDL-63805 glossary: New WS mod_glossary_update_entry 2020-10-14 12:56:52 +02:00
Juan Leyva 7fae5f61ef MDL-63805 glossary: Glossary API refactor 2020-10-14 12:56:43 +02:00
Ferran Recio d7cadcc244 MDL-69583 tool_customlang: add CLI import 2020-10-14 11:59:33 +02:00
Jake Dallimore 2cb45addb1 Merge branch 'MOODLE_310_MDL-69848' of https://github.com/golenkovm/moodle into MOODLE_310_STABLE 2020-10-14 09:42:43 +08:00
Víctor Déniz 5ea92799c4 Merge branch 'MDL-69779-better-x-redirect-by-MOODLE_310_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_310_STABLE 2020-10-13 23:41:59 +01:00
Víctor Déniz 55c9482171 Merge branch 'MDL-68440-310' of https://github.com/Peterburnett/moodle into MOODLE_310_STABLE 2020-10-13 23:15:48 +01:00
Simon Mok 1a7928173b MDL-68070 messaging: Fix error when personal notification is disabled 2020-10-13 23:40:46 +02:00
Eloy Lafuente (stronk7) c3299761f7 Merge branch 'MDL-63806-310' of git://github.com/jleyva/moodle into MOODLE_310_STABLE 2020-10-13 22:26:35 +02:00
Sara Arjona 9aeb59af73 on-demand release 3.10dev+ 2020-10-13 13:25:30 +02:00
Ferran Recio 3759daa952 MDL-69583 tool_customlang: add customization import 2020-10-13 12:33:13 +02:00
Brendan Heywood 15044cea7f MDL-68983 cache: Fix bug with readonly session combined with lock debug 2020-10-13 14:53:26 +11:00
Andrew Nicols 1170a8b694 Merge branch 'MDL-66928-request-dir-purge-bug-MOODLE_310_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_310_STABLE 2020-10-13 11:49:10 +08:00
Brendan Heywood 69959c371f MDL-66928 core: Move request dirs to system tmp instead of localcache 2020-10-13 14:29:30 +11:00
Andrew Nicols ec46b18e13 Merge branch 'MDL-67654-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-10-13 07:58:20 +08:00
Paul Holden f1acce7bef MDL-67654 mod_forum: formchangechecker for discussion inline replies. 2020-10-12 23:32:44 +01:00
Paul Holden 9597baa6e8 MDL-69809 mod_folder: include forcedownload setting in WS responses. 2020-10-12 12:28:26 +01:00
Adrian Greeve 1c6e578db4 Merge branch 'MOODLE_310_MDL-69818' of https://github.com/golenkovm/moodle into MOODLE_310_STABLE 2020-10-12 14:48:48 +08:00
Jake Dallimore a7ea95030c Merge branch 'MDL-68292-admin-sesskey-MOODLE_310_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_310_STABLE 2020-10-12 14:37:07 +08:00
Brendan Heywood 3f04dbee09 MDL-68292 core: Remove sesskey leakage on module pages 2020-10-12 17:11:59 +11:00
Adrian Greeve 6a91117d4a Merge branch 'MDL-65743-310' of git://github.com/lameze/moodle into MOODLE_310_STABLE 2020-10-12 13:41:44 +08:00
Simey Lameze cfe9f53e91 MDL-65743 lib: update moodle library docs 2020-10-12 13:10:12 +08:00
Simey Lameze decd480c42 MDL-65743 lib: add XMPPHP namespace and update calls 2020-10-12 13:10:12 +08:00
Simey Lameze d947f53d4c MDL-65743 lib: upgrade XMPPHP library to v2.2 2020-10-12 13:10:12 +08:00
Andrew Nicols 00877bf283 Merge branch 'MDL-69776-310' of git://github.com/jleyva/moodle into MOODLE_310_STABLE 2020-10-12 12:33:51 +08:00
Adrian Greeve 6f86e933ed Merge branch 'MDL-69649-310' of git://github.com/rezaies/moodle into MOODLE_310_STABLE 2020-10-12 10:15:41 +08:00
Jake Dallimore 6d7b36da59 Merge branch 'MDL-69910-calendar-protectusername-MOODLE_310_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_310_STABLE 2020-10-12 10:05:43 +08:00
Jake Dallimore 7924191691 Merge branch 'MDL-69707-redis-avoid-write-MOODLE_310_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_310_STABLE 2020-10-12 09:57:46 +08:00
Peter Burnett 0628d11380 MDL-68440 cache: Added counting of default mappings 2020-10-12 11:57:17 +10:00
Jake Dallimore 151a63b4cc Merge branch 'MDL-68406-310' of git://github.com/jleyva/moodle into MOODLE_310_STABLE 2020-10-12 09:51:51 +08:00
Adrian Greeve 4ebfbfe88c Merge branch 'MDL-69825-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-10-12 08:09:47 +08:00
Brendan Heywood 93a60507fc MDL-69779 core: Improved the X-Redirect-By header when debugging is on 2020-10-11 09:50:21 +11:00
Brendan Heywood 0a8371c690 MDL-69910 calendar: Fix export exception when both params are sent 2020-10-10 19:28:45 +11:00
Paul Holden 604f19afd6 MDL-69825 admin: externalpage class using a callback for access check.
Co-Authored-By: Marina Glancy <marina@moodle.com>
2020-10-09 15:09:05 +01:00
David Mudrák bda1473afa 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:29 +02:00
Sara Arjona d70cfda576 on-demand release 3.10dev+ 2020-10-09 11:12:48 +02:00
Juan Leyva 3dc820a057 MDL-68406 tool_mobile: Allow users to log-out from the app
In this commit, we also reorganised how the Mobile box is displayed in the user profile.
We are allowing now site admins to see the user last access time.
2020-10-09 09:59:43 +02:00
Juan Leyva 4b64516b0e MDL-63806 glossary: New WS mod_glossary_delete_entry 2020-10-09 09:50:38 +02:00
Juan Leyva e8496407e9 MDL-63806 glossary: Return user permissions for entries in WS 2020-10-09 09:49:59 +02:00
Juan Leyva 0ab3fd7958 MDL-63806 glossary: Move delete code to API function 2020-10-09 09:49:59 +02:00
Marina Glancy d103bdba3d MDL-69902 core_search: fix error in the custom fields indexing 2020-10-09 08:52:47 +02:00
Adrian Greeve cf1d32e9c5 Merge branch 'MDL-68384-fix-spec-violations-310' of https://github.com/cengage/moodle into MOODLE_310_STABLE 2020-10-09 12:05:34 +08:00
Jun Pataleta b5fe033b18 Merge branch 'MDL-69740_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE 2020-10-09 11:56:44 +08:00
Jun Pataleta 05a3e35677 Merge branch 'MDL-69257-310' of git://github.com/mihailges/moodle into MOODLE_310_STABLE 2020-10-09 11:12:16 +08:00
Mihail Geshoski 03058394f2 MDL-69257 core_h5p: Move $maxsize outside the foreach loop
There is no reason to repeatedly obtain the maximum size for uploading
files as a part of foreach loop.
2020-10-09 10:36:01 +08:00
Martin Gauk 1a80427018 MDL-69257 H5P: Check size of uploaded files and virus scan 2020-10-09 10:36:01 +08:00
Stephen Bourget a2b727d7bc MDL-69900 core_backup: Allow IMSCC v1.0 restore to finish 2020-10-09 09:06:26 +08:00
Eloy Lafuente (stronk7) b2a382016f Merge branch 'MDL-69582-310' of git://github.com/ferranrecio/moodle into MOODLE_310_STABLE 2020-10-08 22:44:29 +02:00
Paul Holden 31efbf2e0e MDL-69897 repository: add heading to delete file modal. 2020-10-08 20:29:48 +01:00
Thomas Wedekind 3540343ceb MDL-69582 tool_customlang: export cli script 2020-10-08 19:30:26 +02:00
Thomas Wedekind 78076a621f MDL-69582 tool_customlang: add export langstring feature 2020-10-08 19:30:26 +02:00
Eloy Lafuente (stronk7) ca80e9a68d Merge branch 'MDL-69810-310' of git://github.com/jleyva/moodle into MOODLE_310_STABLE 2020-10-08 16:58:34 +02:00
Eloy Lafuente (stronk7) 9b9b38f44e Merge branch 'MDL-69712-310' of git://github.com/aanabit/moodle into MOODLE_310_STABLE 2020-10-08 16:25:35 +02:00
Sara Arjona 8e5b007c3e Merge branch 'MDL-64657-310' of git://github.com/jleyva/moodle into MOODLE_310_STABLE 2020-10-08 14:15:38 +02:00
Sara Arjona d487ee2240 Merge branch 'MDL-69146_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2020-10-08 12:43:29 +02:00
Sumit Negi 300e4aef4c 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:46:17 +05:30
Adrian Greeve eefa5c928f Merge branch 'MDL-69805-310' of https://github.com/dravek/moodle into MOODLE_310_STABLE 2020-10-08 15:00:29 +08:00
Adrian Greeve 407dcd4922 Merge branch 'MDL-69798_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE 2020-10-08 13:34:30 +08:00
Jake Dallimore 8d9a36fb8a Merge branch 'MDL-69192-310-behat' of https://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2020-10-08 09:22:40 +08:00
Andrew Nicols b2d43a7db1 MDL-68665 assignfeedback_editpdf: Coding style fixes 2020-10-08 08:24:07 +08:00
Andrew Nicols 876a5c143b Merge branch 'MDL-68665-310-assign-stamp-cache' of https://github.com/jamie-catalyst/moodle into MOODLE_310_STABLE 2020-10-08 08:23:36 +08:00
Andrew Nicols c562848596 MDL-69192 mod_assign: Stop clicking OK on non-existent modal 2020-10-08 08:04:43 +08:00
Eloy Lafuente (stronk7) 74efdb135d Merge branch 'MDL-69760-MOODLE_310_STABLE' of https://github.com/inkjet2000/moodle into MOODLE_310_STABLE 2020-10-08 00:25:14 +02:00
Víctor Déniz 46d1546c6e Merge branch 'MDL-69759-m310' of https://github.com/sammarshallou/moodle into MOODLE_310_STABLE 2020-10-07 22:24:58 +01:00
Jamie Stamp c2ba78902c MDL-68665 assignfeedback_editpdf: Fix systemsstamp URLs 2020-10-07 16:23:18 +01:00
Jamie Stamp 12fb5964f2 MDL-68665 assignfeedback_editpdf: Add filearea to persist stamps 2020-10-07 16:21:18 +01:00
Justin Merrill 52a84caaaa MDL-69760 core: add mdl_event index for assign adhoc tasks 2020-10-07 09:18:24 -04:00
Sara Arjona 524f6a656b Merge branch 'MDL-65451-310' of https://github.com/marinaglancy/moodle into MOODLE_310_STABLE 2020-10-07 09:39:58 +02:00
Andrew Nicols 86e69ea7b2 Merge branch 'MDL-69192-310' of https://github.com/willob99/moodle into MOODLE_310_STABLE 2020-10-07 13:18:41 +08:00
Andrew Nicols 12820e3a56 Merge branch 'MDL-67275-310-post_noun_verb' of git://github.com/mudrd8mz/moodle into MOODLE_310_STABLE 2020-10-07 12:38:02 +08:00
Victor Deniz Falcon 36905f42b8 MDL-52407 travis: use Travis default notifications(email) 2020-10-07 10:45:54 +08:00
Adrian Greeve fd532533dd Merge branch 'MDL-59510-310' of https://github.com/snake/moodle into MOODLE_310_STABLE 2020-10-07 09:58:52 +08:00
Víctor Déniz d6806beb3e Merge branch 'MDL-62678-core-fetch-notifications-MOODLE_310_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_310_STABLE 2020-10-06 22:58:45 +01:00
Eloy Lafuente (stronk7) 9ab387d707 Merge branch 'MDL-69746-MOODLE_310_STABLE' of https://github.com/tuanngocnguyen/moodle into MOODLE_310_STABLE 2020-10-06 23:53:22 +02:00
Marina Glancy 2a4d1c64bf MDL-65451 tool_uploaduser: move code away from index.php, add CLI script 2020-10-06 15:53:13 +02:00
Ferran Recio a0999ab66f MDL-69736 core_h5p: enable player reporting 2020-10-06 13:05:33 +02:00
Paul Holden 7e3f7e3d7c MDL-69813 h5p: fix undefined addon ordering in framework test. 2020-10-06 10:48:06 +01:00
Eloy Lafuente (stronk7) 823bc36276 on-demand release 3.10dev+ 2020-10-06 10:21:14 +02:00
Mikhail Golenkov 1f3aacf8fc MDL-47178 question: Retain question authors when restoring backups. 2020-10-06 09:33:56 +11:00
Eloy Lafuente (stronk7) 38bcf316ee Merge branch 'MDL-69772-310-allcountrycodes' of git://github.com/mudrd8mz/moodle into MOODLE_310_STABLE 2020-10-06 00:04:05 +02:00
Eloy Lafuente (stronk7) f993881244 Merge branch 'MDL-65074-310' of https://github.com/hitteshahuja/moodle into MOODLE_310_STABLE 2020-10-05 23:12:25 +02:00
Víctor Déniz 3277fc9db6 Merge branch 'MDL-69625-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-10-05 19:21:12 +01:00
Sara Arjona ef3720efbd Merge branch 'MDL-69355-310-filebuffer' of git://github.com/mudrd8mz/moodle into MOODLE_310_STABLE 2020-10-05 18:33:45 +02:00
Jun Pataleta 41bc6b9400 Merge branch 'MDL-69704-310' of git://github.com/sarjona/moodle into MOODLE_310_STABLE 2020-10-05 23:12:57 +08:00
Paul Holden b9f8e3e114 MDL-69625 course: return raw custom field value in external method.
For clients that wish to consume the original value of the custom
field (e.g. timestamps for date fields), rather than the formatted
version, add a new "valueraw" property to the returned data.
2020-10-05 10:40:33 +01:00
Eloy Lafuente (stronk7) 355d07e0b4 Merge branch 'MOODLE_310-MDL-69752' of https://github.com/golenkovm/moodle into MOODLE_310_STABLE 2020-10-05 10:54:56 +02:00
Amaia Anabitarte 5af206ad2a MDL-69712 core_h5p: Remove 'whitelist' key uses 2020-10-05 10:28:07 +02:00
Jun Pataleta 5ec265b48d Merge branch 'MOODLE_310_MDL-53966' of https://github.com/golenkovm/moodle into MOODLE_310_STABLE 2020-10-05 13:24:04 +08:00
Mikhail Golenkov 35b29ce7d9 MDL-69791 gradereport: Fix error message when invalid grade is entered 2020-10-05 14:59:41 +11:00
Mikhail Golenkov bec49592ce MDL-69848 upgrade: Delete notifications in chunks 2020-10-05 13:13:51 +11:00
Jake Dallimore 57bb99edd4 MDL-59510 core_oauth2: autorefresh google drive, nextcloud and onedrive
Request additional offline access, allowing the repository to sign in
automatically each time, including across different user sessions, until
either the refresh token is invalidated or the user logs out of the
repository.
2020-10-05 09:17:14 +08:00
Jake Dallimore eb6b828b81 MDL-59510 core: report oauth2_refresh_token table in core provider 2020-10-05 09:17:14 +08:00
Jake Dallimore 8b09853319 MDL-59510 core_oauth2: add autorefresh mode to oauth2\client
Changes:
- The client can now be instantiated with the new mode enabled.
- A user refresh token will be stored if returned as part of the
authorization_code grant but only if the user is authenticated and only
if the mode is enabled.
- If the mode permits it, attempt to exchange a stored refresh token for
a new access token during login checks, allowing access to continue
across sessions without the need to re-grant consent every time.
- Purge all refresh tokens for a given user, issuer and scope on client
log out. This makes sure logout persists across logins.
2020-10-05 09:17:14 +08:00
Jake Dallimore fe1031244b MDL-59510 core_oauth2: add oauth2_refresh_token table 2020-10-05 09:17:14 +08:00
Mikhail Golenkov 03de8ed6d9 MDL-69818 mod_feedback: Fix item dependency during activity restoration 2020-10-04 18:27:32 +11:00
Mikhail Golenkov 6fae5e65e9 MDL-69752 mod_data: Format module intro on Database activities page 2020-10-04 13:46:32 +11:00
Mikhail Golenkov d7157063c3 MDL-53966 lesson: Allow maximum number of attempts to be unlimited 2020-10-04 13:18:45 +11:00
Tim Hunt 477fb6c9d6 MDL-69740 Behat init: more progress info at the end of the install 2020-10-02 23:16:23 +01:00
Juan Leyva c50b024463 MDL-69810 tool_mobile: Return support contact information via WS 2020-10-02 21:02:37 +02:00
Eloy Lafuente (stronk7) fadd2915eb MDL-69146 composer: bump to moodle-behat-extension 3.310.0
Generated following the instructions @:

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

(using php72)

Note that here we are jumping to 3-digit branches (for all branches > 39),
exactly how we have done for moodle.git branches (310, 311, 400, 401...)
2020-10-02 15:07:01 +02:00
Sara Arjona c71355941b on-demand release 3.10dev+ 2020-10-02 13:44:05 +02:00
Nathan Nguyen 18871c74e2 MDL-69746 tool_replace: additional skip tables 2020-10-02 15:00:18 +10:00
Víctor Déniz 5cffc7f78b Merge branch 'MDL-69087-310' of git://github.com/sarjona/moodle into MOODLE_310_STABLE 2020-10-01 23:42:20 +01:00
Nathan Nguyen 946159a554 MDL-69572 mod_book : add bookid index to book_chapters 2020-10-01 23:28:21 +01:00
Eloy Lafuente (stronk7) 8d371859dc Merge branch 'MDL-69758-m310' of https://github.com/sammarshallou/moodle into MOODLE_310_STABLE 2020-10-01 23:44:15 +02:00
Claude Vervoort aad6afe979 MDL-57756 mod_lti: params change to text type 2020-10-01 17:32:44 -04:00
Sara Arjona d12c1406df MDL-69704 course: catch exception when calling get_course_content_items
When plugins are removed from disk, an exception is thrown when
calling component_callback_exists.
This exception should be catched here in order to load properly
the activity chooser (otherwise, the exception will be displayed
and no activity will appear).
2020-10-01 19:56:34 +02:00
Víctor Déniz 5130127a3e Merge branch 'MDL-69613-MOODLE_310_STABLE' of https://github.com/tuanngocnguyen/moodle into MOODLE_310_STABLE 2020-10-01 17:39:51 +01:00
Tim Hunt 651dbb729c MDL-69798 XML question export: excape special chars in idnumbers 2020-10-01 17:10:28 +01:00
Jamie Stamp 2c8db06e7a MDL-68665 assignfeedback_editpdf: Improve caching on stamps 2020-10-01 16:52:48 +01:00
Eloy Lafuente (stronk7) e98d18241f Merge branch 'MDL-69672-310' of git://github.com/aanabit/moodle into MOODLE_310_STABLE 2020-10-01 17:49:15 +02:00
Eloy Lafuente (stronk7) 3e460f45ac Merge branch 'MDL-69586-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-10-01 17:12:43 +02:00
Sara Arjona d5e30e0108 Merge branch 'MDL-69638_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2020-10-01 15:01:56 +02:00
Sara Arjona 7db1a61a72 Merge branch 'MDL-69050-310-allowlist' of git://github.com/mudrd8mz/moodle into MOODLE_310_STABLE 2020-10-01 14:51:12 +02:00
David Mudrák d335530a28 MDL-69772 admin: Better validation for the allcountrycodes setting
The patch introduces a new admin_setting fiela 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:38:48 +02:00
Sara Arjona 6fe5bb1b96 MDL-69050 lang: Fix few remaining places spotted during integration 2020-10-01 13:01:58 +02:00
Sara Arjona e2a73965ca Merge branch 'MDL-68098-310' of git://github.com/dpalou/moodle into MOODLE_310_STABLE 2020-10-01 12:56:23 +02:00
Ferran Recio ccd0b96591 MDL-69582 tool_customlang: fix options layout 2020-10-01 11:04:10 +02:00
Ferran Recio 851f0d3354 MDL-69582 tool_customlang: add label to textarea 2020-10-01 11:04:10 +02:00
Sara Arjona 5576a97713 Merge branch 'MDL-67473-multipledeeplinking-squashed-310' of https://github.com/cengage/moodle into MOODLE_310_STABLE 2020-10-01 10:28:12 +02:00
Jake Dallimore b235c3a5a7 Merge branch 'MDL-69573-MOODLE_310_STABLE' of https://github.com/tuanngocnguyen/moodle into MOODLE_310_STABLE 2020-10-01 12:20:29 +08:00
Adrian Greeve c00b8b7cab Merge branch 'MDL-54956-310' of git://github.com/jleyva/moodle into MOODLE_310_STABLE 2020-10-01 11:17:44 +08:00
willob99 b19f178e0d MDL-69192 mod_assign: replace grading confirmation popup 2020-09-30 11:08:11 -07:00
David Matamoros 56b28e8e0b MDL-69805 mod_data: Freeze comment field if comments disabled 2020-09-30 15:51:02 +02:00
Matteo Scaramuccia 6658d9fba1 MDL-68536 core: Fix notice about undefined prop 'branch' in $CFG 2020-09-30 14:43:42 +02:00
Claude Vervoort 09dabe003a MDL-67473 mod_lti: deeplinking multiple support
AMOS BEGIN
 CPY [contentitem_help,mod_lti],[contentitem_deeplinking_help,mod_lti]
AMOS END
2020-09-30 08:04:53 -04:00
Nathan Nguyen 85f136094b MDL-69573 core_course: Make MAX_COURSES_IN_CATEGORY configurable 2020-09-30 16:04:55 +10:00
Adrian Greeve 1c55d84794 Merge branch 'MDL-37802-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-09-30 13:51:31 +08:00
Brendan Heywood 3ac504fd3d MDL-62678 core: Improve efficiency of notifications and avoid ajax call 2020-09-30 13:56:29 +10:00
Jake Dallimore 1f25df48b1 Merge branch 'MDL-68845-310' of git://github.com/jleyva/moodle into MOODLE_310_STABLE 2020-09-30 11:45:43 +08:00
Adrian Greeve 64ba1753a8 Merge branch 'MDL-68562_310' of https://github.com/mkassaei/moodle into MOODLE_310_STABLE 2020-09-30 11:12:34 +08:00
Eloy Lafuente (stronk7) 0e8d14f4e9 MDL-69638 install: update the list of stale files for 3.10 2020-09-29 22:37:56 +02:00
Víctor Déniz 9c28e07d31 Merge branch 'MDL-67841-310' of git://github.com/jleyva/moodle into MOODLE_310_STABLE 2020-09-29 18:33:48 +01:00
Sara Arjona 4ea44f96e5 Merge branch 'MDL-69342-310_profile_picture_deletion' of https://github.com/vtos/moodle into MOODLE_310_STABLE 2020-09-29 19:01:05 +02:00
Amaia Anabitarte c5c1b8b121 MDL-69672 core_contentbank: is_context_allowed unit tests 2020-09-29 17:47:37 +02:00
Amaia Anabitarte 3490f29ad9 MDL-69672 core_contentbank: Check used context level 2020-09-29 17:47:36 +02:00
Jun Pataleta 3b03a3da47 Merge branch 'MDL-69600-divertemails-MOODLE_310_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_310_STABLE 2020-09-29 20:27:36 +08:00
Sara Arjona a6aefe15f0 Merge branch 'MDL-65976-310' of git://github.com/jleyva/moodle into MOODLE_310_STABLE 2020-09-29 14:09:26 +02:00
Juan Leyva b294665c21 MDL-65976 completion: New course completion message provider 2020-09-29 13:41:49 +02:00
Brendan Heywood 2b50abffa2 MDL-69707 session: Avoid redis writes if the session is unchanged 2020-09-29 20:46:25 +10:00
Brendan Heywood acb848cdce MDL-69600 core: Expose divertallemails config in UI 2020-09-29 20:30:09 +10:00
Jun Pataleta 7cd362b873 Merge branch 'MDL-41492-310' of https://github.com/peterburnett/moodle into MOODLE_310_STABLE 2020-09-29 18:07:18 +08:00
Juan Leyva cc16de4ccc MDL-68845 calendar: New WS get_calendar_export_token 2020-09-29 10:56:29 +02:00
Juan Leyva c0af823086 MDL-68845 calendar: Move duplicated code to function 2020-09-29 10:54:05 +02:00
Eloy Lafuente (stronk7) 8b026809c5 on-demand release 3.10dev+ 2020-09-29 10:48:59 +02:00
Jun Pataleta 2dbc9a5005 Merge branch 'MDL-69283-310' of git://github.com/jleyva/moodle into MOODLE_310_STABLE 2020-09-29 13:53:53 +08:00
Claude Vervoort d224506353 MDL-68384 mod_lti: fix spec violations bo claim name and dl value type 2020-09-28 17:02:40 -04:00
Juan Leyva 0d1187b052 MDL-67841 tool_mobile: Inform about last access with the app 2020-09-28 21:40:54 +02:00
Víctor Déniz a2e3aa6806 Merge branch 'MDL-69644-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-09-28 20:34:01 +01:00
Shamim Rezaie adac2a9e55 MDL-69649 form: Fix labels for defaultcustom form elements 2020-09-28 23:43:01 +10:00
Shamim Rezaie 2fca843e49 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:43:01 +10:00
Sara Arjona 157a497a3e Merge branch 'MDL-69695-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-09-28 13:03:21 +02:00
sam marshall 4f0fc4f45b MDL-69759 Web services: app checks to token.php cause log errors 2020-09-28 11:55:14 +01:00
Sara Arjona 27b1425eb2 Merge branch 'MDL-68935-310' of git://github.com/jleyva/moodle into MOODLE_310_STABLE 2020-09-28 11:41:01 +02:00
Peter Burnett 40e41c1997 MDL-41492 cache: Added ability for alternate cache config 2020-09-28 15:14:30 +10:00
Nathan Nguyen 89ce0b387e MDL-69613 gradereport: confirm message if override none is selected 2020-09-28 10:40:06 +10:00
Juan Leyva 9b64c178dd MDL-69283 webservice: New external setting for forcing timezone 2020-09-25 19:09:50 +02:00
Hittesh Ahuja 69cc1d1dd5 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:14:06 +01:00
Juan Leyva 39c8e99e67 MDL-69776 files: New WS core_files_delete_draft_files 2020-09-25 10:38:25 +02:00
Paul Holden 833ab0ea9f 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:33:54 +01:00
Paul Holden 2b87250347 MDL-69586 tool_usertours: use specified user in privacy prefs export. 2020-09-25 09:13:28 +01:00
Mahmoud Kassaei 95d1f1f18d MDL-68562 Qtype_essay: Adding file-size limit to the attachment files 2020-09-25 08:52:59 +01:00
Sara Arjona d23f05828f MDL-69087 core_h5p: add renderer to let personalize styles
Existing mod_hvp pluging has a renderer to let Moodle instances
alter styles, Javascript, semantics (fields in the editor) and
content: https://github.com/h5p/moodle-mod_hvp/blob/stable/renderer.php

The approach for core_h5p is exactly the same, to let people
to reuse their existing code.
2020-09-24 19:56:42 +02:00
David Mudrák 972340b678 MDL-69050 lang: Stop using the term blacklist in mustache output engine 2020-09-24 19:39:36 +02:00
David Mudrák 3971892bd3 MDL-69050 lang: Fix the variable name in the admin/cli/svgtool.php 2020-09-24 19:33:36 +02:00
David Mudrák b18b714165 MDL-69050 lang: Fix variable name and comment in core-notification YUI 2020-09-24 19:33:36 +02:00
David Mudrák 781545d34d MDL-69050 lang: Rename and deprecate filetypes_util methods 2020-09-24 19:33:32 +02:00
David Mudrák 19fe7f27a8 MDL-69050 lang: Improve the wording of the comments
Stop using the terms whitelist/blacklist when used to allow/deny things.
2020-09-24 19:32:40 +02:00
David Mudrák bd686af064 MDL-69050 lang: Fix the variable name in the Essay question type 2020-09-24 19:32:40 +02:00
David Mudrák fd18dc14ff MDL-69050 lang: Rename the filetypesnotwhitelisted string
Rename the string identifier to filetypesnotallowed, copy all the
existing translations in AMOS and deprecate the original string to be
eventually removed.

AMOS BEGIN
 CPY [filetypesnotwhitelisted,core_form],[filetypesnotallowed,core_form]
AMOS END
2020-09-24 19:32:40 +02:00
David Mudrák e840b14f4c MDL-69050 lang: Fix the variable name in the TeX filter library 2020-09-24 19:32:39 +02:00
David Mudrák 730aa1dcb0 MDL-69050 lang: Rename the whitelist variable in the Workshop locallib 2020-09-24 19:32:39 +02:00
David Mudrák 9ef6492e5d MDL-69050 lang: Fix variables and methods names in curl_security_helper
The code has been using terms that were found exclusive and potentially
derogatory. Fixing the terms and making the variables and methods
consistent with the related admin settings.
2020-09-24 19:32:39 +02:00
David Mudrák 41ad54e182 MDL-69050 lang: Fix placeholder in the err_wrongfileextension string
The name of the placeholder has been found exclusive and potentially
derogatory. Also the name of variable that was used to populate the
placeholder value. That was not the intention.
2020-09-24 19:32:39 +02:00
David Mudrák 2a1fb5b5e7 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 18:14:29 +02:00
David Mudrák 56adf1f3d8 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 18:14:29 +02:00
Víctor Déniz a36870c175 weekly release 3.10dev 2020-09-24 16:27:15 +01:00
Eloy Lafuente (stronk7) a0f377cf2b Merge branch 'MDL-69698-310-licensecache' of git://github.com/mudrd8mz/moodle into MOODLE_310_STABLE 2020-09-24 16:50:39 +02:00
Eloy Lafuente (stronk7) 7905d70497 Merge branch 'MDL-69718-display-size-MOODLE_310_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_310_STABLE 2020-09-24 16:39:26 +02:00
Paul Holden d0a55062f9 MDL-69644 tool_dataprivacy: fix focus outline of contact DPO link.
The link class attribute is a leftover from 7258bf0b, which was mostly
removed in 3b2f691f. It no longer serves a purpose and interferes with
the element focus outline.
2020-09-24 11:53:29 +01:00
Vitaly 7f177d440c 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:29:31 +03:00
Bas Brands 8730ffcbe1 MDL-66587 mod_quiz: visible quiz timer 2020-09-24 11:32:18 +08:00
Bas Brands 486aa319c2 MDL-69454 core_search: consistent backup search 2020-09-23 17:36:15 +02:00
Bas Brands 6fa8e1c86f MDL-69454 core_search: consistent cohort search 2020-09-23 17:36:15 +02:00
Bas Brands dcfb713ca6 MDL-69454 core_search: consistent content bank search 2020-09-23 17:36:15 +02:00
Bas Brands 9d82cdb62e MDL-69454 core_search: consistent activity chooser search 2020-09-23 17:36:15 +02:00
Bas Brands a88f50d1b2 MDL-69454 core_search: consistent template library search 2020-09-23 17:36:15 +02:00
Bas Brands 94adb3429b MDL-69454 core_search: consistent capability search 2020-09-23 17:36:15 +02:00
Bas Brands bd516bf05c MDL-69454 core_search: consistent tag search 2020-09-23 17:36:15 +02:00
Bas Brands 02829c03c1 MDL-69454 core_search: message search 2020-09-23 17:36:14 +02:00
Bas Brands e9435e8f6d MDL-69454 core_search: consistent mod searches 2020-09-23 17:36:14 +02:00
Bas Brands 6a750d283d MDL-69454 core_search: consistent block searches 2020-09-23 17:36:14 +02:00
Bas Brands b5e39191fc MDL-69454 core_search: consistent course management search 2020-09-23 17:36:14 +02:00
Bas Brands 42c1cf3b03 MDL-69454 core_search: consistent frontpage course search 2020-09-23 17:36:14 +02:00
Bas Brands a5cd815635 MDL-69454 core_search: consistent admin search 2020-09-23 17:36:14 +02:00
Bas Brands 1fdb4fda4a MDL-69454 core_search: consistent navbar search 2020-09-23 17:36:14 +02:00
Juan Leyva 61772eb89b MDL-54956 quiz: Fix WS to support files submission 2020-09-23 12:52:45 +02:00
Juan Leyva e49ccc92c4 MDL-54956 quiz: Return response files in attempts 2020-09-23 12:52:45 +02:00
Dani Palou f9f289f69d MDL-68098 tests: Reset FILTERLIB_PRIVATE after tests 2020-09-23 12:09:08 +02:00
Dani Palou e16b858ff9 MDL-68098 ws: Add unit tests to test mathjax in WS 2020-09-23 12:08:52 +02:00
Dani Palou f4bdb898c7 MDL-68098 ws: Fix WebServices broken by filters HTML 2020-09-23 12:08:40 +02:00
Eloy Lafuente (stronk7) 2d502fd749 Merge branch 'MDL-68229-310' of git://github.com/jleyva/moodle into MOODLE_310_STABLE 2020-09-23 11:51:16 +02:00
Eloy Lafuente (stronk7) b552d604ff Merge branch 'MDL-69014-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-09-22 23:04:57 +02:00
Eloy Lafuente (stronk7) 6d73afb2bf Merge branch 'MDL-66934-coursehistory-310' of https://github.com/cengage/moodle into MOODLE_310_STABLE 2020-09-22 14:40:12 +02:00
Juan Leyva 0ad2d843d7 MDL-64657 course: Return hidden section names when configured 2020-09-22 11:53:04 +02:00
Eloy Lafuente (stronk7) 82a1e8fae7 Merge branch 'MDL-66648-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-09-21 23:36:22 +02:00
Eloy Lafuente (stronk7) a2c1a20055 Merge branch 'MDL-69667-MOODLE_310_STABLE' of https://github.com/comete-upn/moodle into MOODLE_310_STABLE 2020-09-21 23:20:05 +02:00
David Mudrák 76c3dc5f6b 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:50:43 +02:00
sam marshall 62ea8b1cae 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:28:11 +01:00
Brendan Heywood c36d5093e3 MDL-69718 core: Added support for TB and PT to display_size 2020-09-21 12:55:44 +10:00
Claude Vervoort fae57261e7 MDL-66934 mod_lti: support context history param 2020-09-18 14:06:58 -04:00
Juan Leyva 11a49b08e7 MDL-68229 tool_mobile: Add missing option to disable tags in the app 2020-09-18 15:31:03 +02:00
Sara Arjona a730c334c7 MDL-69548 grunt: build ignorefiles 2020-09-18 09:56:22 +02:00
Sara Arjona fb5e3957be Merge branch 'MDL-69548-310' of git://github.com/mickhawkins/moodle into MOODLE_310_STABLE 2020-09-18 09:41:10 +02:00
Michael Hawkins 54524f1ff0 MDL-69548 core: Adding the http-message library
This is a dependency of ZipStream
2020-09-18 10:03:22 +08:00
Michael Hawkins bbfbe8e260 MDL-69548 core: Adding the php-enum library
This is a dependency of ZipStream
2020-09-18 10:03:22 +08:00
Michael Hawkins cfe02e4d3e MDL-69548 core: Adding the ZipStream library
This allows downloading of zip files as a stream, and will be used by
the Download course content project (MDL-69540).
2020-09-18 10:03:22 +08:00
Eloy Lafuente (stronk7) 611399214b weekly release 3.10dev 2020-09-17 19:04:13 +02:00
David Mudrák 321de29e93 MDL-69355 file: Do not attempt to set headers after output started
It was found out that in certain situations there may be some content
in to output handlers buffers. Let's allow that to happen given that:

* default handler's buffer is not sent as a part of the file and an
  error is reported into the server log.
* other handlers' buffer is sent with the assumption that it is required
  for the correct serving of the file.
2020-09-17 17:37:28 +02:00
Eloy Lafuente (stronk7) f200ba55f8 Merge branch 'MDL-69395_310' of github.com:stronk7/moodle into MOODLE_310_STABLE 2020-09-17 17:02:08 +02:00
Eloy Lafuente (stronk7) 8d791e12ba MDL-69395 theme_classic: remove superfluous selector already in boost 2020-09-17 13:05:40 +02:00
Jun Pataleta 8923308d47 Merge branch 'MDL-69630-310' of git://github.com/mihailges/moodle into MOODLE_310_STABLE 2020-09-17 09:17:23 +02:00
Eloy Lafuente (stronk7) 0e97e40e5a Merge branch 'MDL-62387-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-09-17 09:17:23 +02:00
Eloy Lafuente (stronk7) 7254648363 Merge branch 'MDL-68909-310' of git://github.com/sarjona/moodle into MOODLE_310_STABLE
Bump version to 2020091000.02 (01 was already current)
2020-09-17 09:17:20 +02:00
Eloy Lafuente (stronk7) c3176af430 Merge branch 'MDL-69664-310' of git://github.com/junpataleta/moodle into MOODLE_310_STABLE 2020-09-17 09:16:52 +02:00
Eloy Lafuente (stronk7) cb82c4d901 Merge branch 'MDL-69395-310' of git://github.com/bmbrands/moodle into MOODLE_310_STABLE 2020-09-17 09:16:52 +02:00
Sara Arjona bf127517b3 Merge branch 'MDL-68688-310' of git://github.com/aanabit/moodle into MOODLE_310_STABLE 2020-09-17 09:16:52 +02:00
Jun Pataleta 29e56fef72 Merge branch 'MDL-69663-m310' of https://github.com/sammarshallou/moodle into MOODLE_310_STABLE 2020-09-17 09:16:52 +02:00
Sara Arjona b249ab9df4 Merge branch 'MDL-68564_before_footer' of git://github.com/davosmith/moodle into MOODLE_310_STABLE 2020-09-17 09:16:52 +02:00
Sara Arjona 7805d0bb44 MDL-68909 h5p: move temporary editor files to draft area 2020-09-17 09:16:51 +02:00
Sara Arjona 6fcc509ed1 MDL-68909 h5p: upgrade step to remove files in editor filearea
As temporary editor files have been moved from core_h5p/editor to
user/draft, they can be removed (to clean unused DB entries).
2020-09-17 09:16:49 +02:00
Mihail Geshoski ebd136ca12 MDL-69630 format_social: Fix behat tests 2020-09-17 12:24:39 +08:00
Stephen Bourget c96a155937 MDL-69630 format_social: Add ajax support 2020-09-17 12:24:39 +08:00
Juan Leyva fdb7f85140 MDL-68935 course: Return context data in get_content WS 2020-09-16 12:43:53 +02:00
David Mudrák fbae45d7c9 MDL-69698 licenses: Improve the performance of the licenses cache
The cache uses a single simple key and there is no need to hash it.
2020-09-15 10:35:34 +02:00
David Mudrák a398a60092 MDL-69698 licenses: Do not cache the localised licenses fullnames
The localisation must happen only after loading the list of licenses
from cache so that the name is displayed in the current user's preferred
language, not in the language of the user who initiated the cache
rebuild.
2020-09-15 10:35:34 +02:00
Paul Holden de0e594a10 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:08:11 +01:00
comete-upn 93097192e6 MDL-69667 competencies: fix competencies count always 0 in frameworks. 2020-09-15 08:37:53 +02:00
Jun Pataleta 1427573cde Merge branch 'MDL-68702-MOODLE_310_STABLE' of https://github.com/tuanngocnguyen/moodle into MOODLE_310_STABLE 2020-09-15 11:56:28 +08:00
Jun Pataleta 28790a42ad Merge branch 'MDL-42012-310-alt' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2020-09-15 11:52:56 +08:00
Andrew Nicols e5f0085cdb MDL-42012 cache: Fix missing return value 2020-09-15 11:46:31 +08:00
Eloy Lafuente (stronk7) 682593054d Merge branch 'MDL-42012-310-alt' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2020-09-14 23:28:54 +02:00
Eloy Lafuente (stronk7) 8fba6189fe Merge branch 'MDL-69658-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-09-14 22:56:42 +02:00
Paul Holden 31188e93d6 MDL-69695 mod_folder: use forcedownload setting during inline display. 2020-09-14 21:40:38 +01:00
Paul Holden 9bc368f71c MDL-69014 tool_usertours: clean up user preferences of deleted tours. 2020-09-14 20:36:28 +01:00
Paul Holden 1aa7c68c6f 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:22:05 +01:00
Davo Smith 23efc7337a MDL-68564 outputrenderers: extend before_footer hook to allow output 2020-09-14 11:00:36 +01:00
Nathan Nguyen cf4b6c8c94 MDL-68702 core_backup: exclude legacy course files 2020-09-11 10:59:28 +10:00
Amaia Anabitarte abb2037b0f MDL-68688 core_contentbank: Empty content bank notification 2020-09-10 11:58:53 +02:00
sam marshall c94b6b2ab7 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:50:50 +01:00
Sara Arjona ab5d361c80 weekly release 3.10dev 2020-09-10 08:52:01 +02:00
Jun Pataleta 334333b6c7 MDL-69664 mod_lti: Apply correct badge class to tool card 2020-09-09 23:34:39 +08:00
Bas Brands 3d08cd2272 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-09 13:41:32 +02:00
Sara Arjona 83a5ed90ce Merge branch 'MDL-69466-3.10' of https://github.com/JBThong/moodle into MOODLE_310_STABLE 2020-09-09 11:39:16 +02:00
Sara Arjona d945333b47 Merge branch 'MDL-69645-310' of git://github.com/lucaboesch/moodle into MOODLE_310_STABLE 2020-09-09 11:00:49 +02:00
Jun Pataleta da84b731c7 Merge branch 'MDL-57682-310-fix' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2020-09-09 16:06:02 +08:00
Andrew Nicols 36f3b1e418 MDL-57682 mediaplayer_videojs: Improve in-page caching of lang strings 2020-09-09 15:37:54 +08:00
Andrew Nicols a3cc6898e9 MDL-57682 mediaplayer_videojs: Login not required for lang fetch 2020-09-09 15:37:52 +08:00
Thong Bui fcbca18c7b MDL-69466 Autocomplete widget: Improve keyboard accessibility 2020-09-09 13:44:23 +07:00
Tien Nguyen c0280f4405 MDL-68797 Administration: Add auto complete setting 2020-09-09 14:37:34 +08:00
Sara Arjona c83543095a Merge branch 'MDL-69521_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2020-09-09 08:08:29 +02:00
Andrew Nicols 13e34fb428 MDL-42012 cache: Valid definitions are required even when disabled 2020-09-09 14:05:03 +08:00
Andrew Nicols c705434a62 MDL-42012 cache: Fully disable cache for disabled cache factory 2020-09-09 14:05:03 +08:00
Andrew Nicols cfe1a9a8d8 MDL-42012 cache: Allow data sources to work when caching is disabled 2020-09-09 14:05:03 +08:00
Andrew Nicols 94d05a5bfb MDL-68797 tool_mobile: Version bump 2020-09-09 12:43:55 +08:00
Tien Nguyen 2562b9f3a3 MDL-68797 Administration: Setting for mobile file type exclusion list 2020-09-09 12:29:06 +08:00
Andrew Nicols e8b05c6cb4 Merge branch 'MDL-57682-310' of git://github.com/rezaies/moodle into MOODLE_310_STABLE 2020-09-09 12:23:33 +08:00
Eloy Lafuente (stronk7) 8f0297915c Merge branch 'MDL-69116-310' of git://github.com/rezaies/moodle into MOODLE_310_STABLE 2020-09-08 23:16:24 +02:00
Paul Holden b25763e875 MDL-69658 quizaccess_seb: progress bar on install only when necessary. 2020-09-08 19:32:24 +01:00
Eloy Lafuente (stronk7) 84bcfbb0d5 MDL-69521 core: Move all comments in code from 4.4 to 4.2 2020-09-08 19:01:42 +02:00
Eloy Lafuente (stronk7) e419e7acba MDL-69521 core: Move all comments in code from 4.3 to 4.1 2020-09-08 19:01:41 +02:00
Eloy Lafuente (stronk7) 309aad5a82 MDL-69521 core: Move all comments in code from 4.2 to 4.0 2020-09-08 19:01:41 +02:00
Eloy Lafuente (stronk7) 8452418666 MDL-69521 core: Move all comments in code from 4.1 to 3.11 2020-09-08 19:01:36 +02:00
Eloy Lafuente (stronk7) 5ba67416e6 Merge branch 'MDL-69510-310' of https://github.com/snake/moodle into MOODLE_310_STABLE 2020-09-08 15:28:33 +02:00
Sara Arjona bd0de2d965 Merge branch 'MDL-69525-310-1' of git://github.com/mihailges/moodle into MOODLE_310_STABLE 2020-09-08 14:21:46 +02:00
Sara Arjona db54910ce2 Merge branch 'MDL-28501-310' of https://github.com/mackensen/moodle into MOODLE_310_STABLE 2020-09-08 13:28:51 +02:00
Michael Hawkins 9d356676c3 MDL-69340 tag: Correct the filter input HTML in the tag manager 2020-09-08 08:54:33 +02:00
Mihail Geshoski a9d3f4b96c MDL-69048 book: Sanitize previous chapter value in add new chapter page 2020-09-08 08:54:33 +02:00
Andrew Nicols ca6cf0bd21 MDL-68974 calendar: Use page context for block check 2020-09-08 08:54:33 +02:00
Andrew Nicols 7d990ee185 MDL-68974 blocks: Check permission before generating content 2020-09-08 08:54:33 +02:00
Mihail Geshoski e2a11dc2aa MDL-65115 repository: Prevent unzipping if it will exceed allowed quota 2020-09-08 08:54:33 +02:00
Mihail Geshoski a2a6303397 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:54:33 +02:00
Andrew Nicols 6c4cdd6d96 MDL-68974 admin: Unit tests for context parent/child test 2020-09-08 08:54:33 +02:00
Andrew Nicols 4bb41b4e5a MDL-68974 admin: Unit tests for loginas 2020-09-08 08:54:33 +02:00
Andrew Nicols a937d4d807 MDL-68974 admin: Prevent login as outside of the desired context 2020-09-08 08:54:33 +02:00
Thong Bui 2301f9bfaa MDL-68344 filepicker: File Picker focus lost on upload 2020-09-08 08:45:09 +02:00
Jun Pataleta 0e9c755896 Merge branch 'MDL-69492-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-09-08 12:56:38 +08:00
Eloy Lafuente (stronk7) 3452156e6e Merge branch 'MDL-69262-310-2' of git://github.com/junpataleta/moodle into MOODLE_310_STABLE 2020-09-07 23:42:53 +02:00
Eloy Lafuente (stronk7) 6ef1780225 Merge branch 'MDL-69448-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-09-07 23:26:08 +02:00
Eloy Lafuente (stronk7) a8c60a4c31 Merge branch 'MDL-69577-310' of git://github.com/crazyserver/moodle into MOODLE_310_STABLE 2020-09-07 23:09:37 +02:00
Luca Bösch b2995f7a29 MDL-69645 quizaccess: Set allowPreferencesWindow to false in manual conf
Signed-off-by: Luca Bösch <luca.boesch@bfh.ch>
2020-09-07 22:40:58 +02:00
Charles Fulton 51201bc672 MDL-28501 mod_folder: make force downloading behavior configuable 2020-09-07 14:40:40 -04:00
Mathew May aa13890df0 MDL-69240 tool_moodlenet: Clean MoodleNet profile field
Amended by: Eloy Lafuente (stronk7) <stronk7@moodle.org>
- adjust versions for every branch.
- modify verify_webfinger->profileurl external to PARAM_NOTAGS.
2020-09-07 17:36:22 +02:00
Sara Arjona 644b80410d Merge branch 'MDL-69632-310-adminserversettings' of git://github.com/mudrd8mz/moodle into MOODLE_310_STABLE 2020-09-07 13:44:03 +02:00
Sara Arjona b36a28b37a Merge branch 'MDL-67468-MOODLE_310_STABLE' of https://github.com/tuanngocnguyen/moodle into MOODLE_310_STABLE 2020-09-07 13:19:56 +02:00
Mathew May 386223bd86 MDL-62609 lang: Final removal of deprecated strings 2020-09-07 08:06:32 +02:00
Sara Arjona 95359bf9e7 Merge branch 'MDL-63261-310' of https://github.com/Chocolate-lightning/moodle into MOODLE_310_STABLE 2020-09-07 07:30:17 +02:00
Mathew May 1bc2a3b345 MDL-63261 messaging: Final 3.6 deprecations 2020-09-07 09:09:07 +08:00
Eloy Lafuente (stronk7) 709b46dbfd MDL-69521 core: Move all comments in code from 4.0 to 3.10 2020-09-06 17:23:58 +02:00
Shamim Rezaie 94c19e0fea MDL-57682 media_videojs: Cache videojs languages in the localstorage 2020-09-04 18:55:16 +10:00
Shamim Rezaie 4a60349a8a MDL-57682 media_videojs: webservice to get the language pack of videojs 2020-09-04 18:51:37 +10:00
Shamim Rezaie 2189db9c86 MDL-57682 media_videojs: convert videojs loader to es6 2020-09-04 18:51:37 +10:00
David Mudrák f54cb0c257 MDL-69632 admin: Fix the legacy coding style at the server section
No actual changes to the file made, only reformatted and cleaned up to
follow the recent coding guidelines.
2020-09-04 10:23:06 +02:00
Paul Holden 95e0ff974c MDL-69492 auth_ldap: normalise member distinguished name config. 2020-09-04 08:25:58 +01:00
Paul Holden db361e09e7 MDL-69492 auth_cas: normalise member distinguished name config. 2020-09-04 08:25:58 +01:00
Paul Holden f2b1242364 MDL-69448 backup: fix capability checks when unable to copy user data.
When a given user doesn't have the capability to "Include user data"
during course copying, freeze the form element rather than not adding
it at all.

This caused problems as the element was required before preceding with
the course copy.
2020-09-04 08:20:04 +01:00
Nathan Nguyen d0fd7bc58c MDL-67468 filter_activitynames: use MUC 2020-09-04 15:41:52 +10:00
Sara Arjona 916809d995 weekly release 3.10dev 2020-09-03 17:09:17 +02:00
Sara Arjona e22ac10067 NOBUG: Fixed SVG browser compatibility 2020-09-03 17:09:12 +02:00
Andrew Nicols f558127d0e MDL-69391 behat: Grammar correction in feature 2020-09-03 11:35:08 +08:00
Andrew Nicols fc1d22ea70 Merge branch 'MDL-69391-310' of git://github.com/junpataleta/moodle into MOODLE_310_STABLE 2020-09-03 11:35:04 +08:00
Jun Pataleta 5d1979c911 MDL-69391 calendar: Accessibility tests for calendar 2020-09-03 11:11:29 +08:00
Jun Pataleta fe346f0afb MDL-69391 auth: Colour contrast accessibility test for login page 2020-09-03 11:11:29 +08:00
Jun Pataleta 8d5470145d 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-09-03 11:11:29 +08:00
Jun Pataleta 61d32ad081 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-09-03 11:11:29 +08:00
Dmitrii Metelkin 558ef4f778 MDL-69418 backup: attach data to grade items 2020-09-03 11:08:00 +08:00
Andrew Nicols c8221dedcd Merge branch 'MDL-69360-310' of git://github.com/NoelDeMartin/moodle into MOODLE_310_STABLE 2020-09-03 10:52:02 +08:00
Andrew Nicols 5265491a8f Merge branch 'MDL-69246_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE 2020-09-03 10:39:58 +08:00
Jake Dallimore b96e85feac MDL-69510 admin: make ldap configuration warnings clear 2020-09-03 10:26:00 +08:00
Andrew Nicols 817d6dcdbb Merge branch 'MDL-55340-310' of git://github.com/sarjona/moodle into MOODLE_310_STABLE 2020-09-03 10:13:49 +08:00
Andrew Nicols de1a942280 Merge branch 'MDL-69069-310' of git://github.com/bmbrands/moodle into MOODLE_310_STABLE 2020-09-03 09:33:05 +08:00
Andrew Nicols 3e1c856bd9 MDL-69117 output: Correct remove_dir usage 2020-09-03 09:01:43 +08:00
Bas Brands cce23499e6 MDL-69117 theme_boost: themedesigner source maps 2020-09-03 08:40:41 +08:00
Bas Brands 74160de2cb MDL-69117 theme_boost: deprecate the autoprefixer 2020-09-03 08:40:41 +08:00
Eloy Lafuente (stronk7) 4ca7232b1f Merge branch 'MDL-55971-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-09-03 00:51:33 +02:00
Peter Burnett ded581156a MDL-67306 webservices: Added webservice for Grade category creation 2020-09-03 00:21:44 +02:00
Marina Glancy 4cfc74d176 MDL-69608 core_form: frozen forms do not have form tag 2020-09-02 23:48:39 +02:00
Sara Arjona 893cf77d33 Merge branch '67278-moodle-310-categories-selector' of https://github.com/DSI-Universite-Rennes2/moodle into MOODLE_310_STABLE 2020-09-02 17:37:24 +02:00
Sara Arjona e66f450c8f Merge branch 'MDL-68680-MOODLE_310_STABLE' of https://github.com/tuanngocnguyen/moodle into MOODLE_310_STABLE 2020-09-02 17:16:01 +02:00
Julien Boulen f9f41f5061 MDL-67278 course: Use autocomplete widget for course category selector 2020-09-02 16:00:20 +02:00
Eloy Lafuente (stronk7) 76e2d15794 Merge branch 'MDL-69174-310' of git://github.com/sarjona/moodle into MOODLE_310_STABLE 2020-09-02 13:14:34 +02:00
Sara Arjona 31d3fd27fc MDL-69174 mod_h5pactivity: component passed always
The $component = 'mod_h5pactivity' will be passed always to the H5P
player because it's required for being able to call these activities
from outside using embed code. The xAPI implementation checks whether
the information should be tracked or not.
2020-09-02 12:12:25 +02:00
Sara Arjona 2874c6d5a1 MDL-69174 h5p: add component to the embed H5P code
When the Moodle component is passed to the player, xAPI tracking
is enabled so, if the component implements required xAPI API methods
(for instance, mod_h5pactivity does), grades and responses are sent.
Adding this component to the embed code will help to add
the embed code from a mod_h5pactivity to any other place (such as label,
page or book), and being able to track the responses to the original
mod_h5pactivity.
2020-09-02 12:12:25 +02:00
Noel De Martin d8892dcca3 MDL-69360 behat: Fix js ready checks for non-moodle sites 2020-09-02 10:20:28 +02:00
Andrew Nicols 85a1c2c99e Merge branch 'MDL-68892-310' of git://github.com/ferranrecio/moodle into MOODLE_310_STABLE 2020-09-02 09:48:59 +08:00
Dan Marsden 58bf730494 MDL-69190 grade: fix slow query. 2020-09-02 09:31:28 +08:00
Farhan Karmali d179137f1b MDL-67419 admin: New admin setting for lang during user creation 2020-09-02 08:54:47 +08:00
Eloy Lafuente (stronk7) 8eafd115cc Merge branch 'wip_MDL-69491_m310' of git://github.com/gjb2048/moodle into MOODLE_310_STABLE 2020-09-02 00:27:36 +02:00
Eloy Lafuente (stronk7) 3b111cf8a0 Merge branch 'MDL-69174-310' of git://github.com/sarjona/moodle into MOODLE_310_STABLE 2020-09-02 00:21:55 +02:00
Sara Arjona a244344e2e Merge branch 'MDL-63387-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-09-01 16:58:15 +02:00
Pau Ferrer Ocaña 23fed91412 MDL-69577 forum: Add courseid, forumid on get_discussion_posts response 2020-09-01 14:26:08 +02:00
Sara Arjona dee4097c9d Merge branch 'MDL-64525-m310' of https://github.com/NeillM/moodle into MOODLE_310_STABLE 2020-09-01 14:18:05 +02:00
Paul Holden 7665c701fd MDL-63387 course: use renamed role names, update Behat tests.
Specify that we want both role names (renamed course role plus
original).
2020-09-01 12:05:26 +01:00
Paul Holden 3827cbe523 MDL-63387 user: show both role names on course participants page. 2020-09-01 12:05:26 +01:00
Paul Holden f6a2d57b3e MDL-63387 enrol_cohort: show both roles names in instance config form. 2020-09-01 12:05:25 +01:00
Paul Holden 35a5c1adda MDL-63387 enrol_manual: show both role names in enrol users dialog. 2020-09-01 12:05:25 +01:00
Paul Holden e4d86a6ec4 MDL-63387 access: add parameter to define how role names are returned. 2020-09-01 12:04:47 +01:00
Sara Arjona 8d2229db48 Merge branch 'MDL-51709-310' of git://github.com/lucaboesch/moodle into MOODLE_310_STABLE 2020-09-01 09:04:13 +02:00
Mihail Geshoski 4d6b3406c5 MDL-69525 core: Publish a single event when toggling slave checkboxes 2020-09-01 14:53:54 +08:00
Sara Arjona 11a58dd4b0 Merge branch 'MDL-69394-310' of git://github.com/junpataleta/moodle into MOODLE_310_STABLE 2020-09-01 06:45:12 +02:00
Andrew Nicols 0713666486 Merge branch 'MDL-69507_310' of https://github.com/timhunt/moodle into MOODLE_310_STABLE 2020-09-01 11:15:55 +08:00
Andrew Nicols 260e9753d4 Merge branch 'MDL-69387-310-2' of git://github.com/junpataleta/moodle into MOODLE_310_STABLE 2020-09-01 10:59:37 +08:00
Sara Arjona e83fad7382 Merge branch 'MDL-38350-m310' of https://github.com/sammarshallou/moodle into MOODLE_310_STABLE 2020-09-01 07:28:40 +08:00
Andrew Nicols c7e5431086 Merge branch 'MDL-69505-310' of https://github.com/snake/moodle into MOODLE_310_STABLE 2020-09-01 07:28:27 +08:00
Andrew Nicols 10ba6d0aa1 Merge branch 'MDL-69270-310' of git://github.com/ferranrecio/moodle into MOODLE_310_STABLE 2020-09-01 07:28:27 +08:00
Andrew Nicols a4f4cbf095 MDL-69269 contentbank: Fix issues identified in integration 2020-09-01 07:28:27 +08:00
Andrew Nicols 66c757f689 Merge branch 'MDL-69269-310' of git://github.com/sarjona/moodle into MOODLE_310_STABLE 2020-09-01 07:28:27 +08:00
Andrew Nicols 2f7236aa3c Merge branch 'MDL-68569-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-09-01 07:28:26 +08:00
Andrew Nicols a704b87f8b Merge branch 'MDL-56595-310' of https://github.com/paulholden/moodle into MOODLE_310_STABLE 2020-09-01 07:28:26 +08:00
Luca Bösch 59f48908aa MDL-51709 gradebook: Name display in single view. 2020-08-31 17:58:53 +02:00
Shamim Rezaie e6f0b5a3a3 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-08-31 23:53:54 +10:00
Shamim Rezaie 7a85cc6d2e MDL-69116 qtype_mutichoice: Use label for the "clear my choice" link 2020-08-31 23:53:54 +10:00
Bas Brands 3d08c7d396 MDL-69069 theme_boost: color contrast for custom alerts 2020-08-31 08:21:27 +02:00
Nathan Nguyen f809bca508 MDL-33981 repository_equella: support internal copy 2020-08-31 10:39:49 +08:00
Jake Dallimore fbcc91236e 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 07:57:50 +08:00
Ferran Recio 2dab18e681 MDL-69270 contentbank: replace content with file 2020-08-28 17:59:18 +02:00
Ferran Recio 3565a77362 MDL-68892 mod_h5pactivity: add required to package 2020-08-28 17:50:40 +02:00
Gareth Barnard cbecc140f7 MDL-69491 themes: No 'fontsize' setting in Boost causes unit conflict. 2020-08-28 14:14:38 +01:00
Sara Arjona c3a4859c7d MDL-69269 contentbank: add support to download content 2020-08-28 12:29:03 +02:00
Sara Arjona 330ba8cb10 MDL-69174 h5p: add component to the embed H5P code
When the Moodle component is passed to the player, xAPI tracking
is enabled so, if the component implements required xAPI API methods
(for instance, mod_h5pactivity does), grades and responses are sent.
Adding this component to the embed code will help to add
the embed code from a mod_h5pactivity to any other place (such as label,
page or book), and being able to track the responses to the original
mod_h5pactivity.
2020-08-28 12:26:38 +02:00
Marina Glancy 4e32add0ac 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:09 +02:00
Eric Merrill e48fecc679 MDL-69112 assign: Improve parsing of uploaded feedback names 2020-08-28 13:29:20 +08:00
Nathan Nguyen d7113bee4e MDL-68680 core_grades: check grade item before trigger delete event 2020-08-28 11:40:31 +10:00
Paul Holden 61ce84f178 MDL-56595 tool_usertours: set page params when configuring tours/steps. 2020-08-27 23:08:15 +01:00
Tim Hunt e3bfcb1cde 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:39:15 +01:00
Sara Arjona 4a6a2636a0 weekly release 3.10dev 2020-08-27 17:36:21 +02:00
Jun Pataleta 09646d7b53 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:30:32 +08:00
Jun Pataleta 9211552660 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:30:32 +08:00
Andrew Nicols f51678c56a Merge branch 'MOODLE_310_MDL-67211_v6' of https://github.com/golenkovm/moodle into MOODLE_310_STABLE 2020-08-27 12:48:33 +08:00
Mihail Geshoski fa3b387185 MDL-69458 report_insights: Respect perpage value in pagination bar 2020-08-27 12:42:57 +08:00
Adrian Greeve dddff390da Merge branch 'MDL-69479-310' of git://github.com/mihailges/moodle into MOODLE_310_STABLE 2020-08-27 11:40:11 +08:00
Andrew Nicols 6bcc070827 Merge branch 'MDL-69501-310-enfix' of git://github.com/mudrd8mz/moodle into MOODLE_310_STABLE 2020-08-27 11:30:53 +08:00
eWallah e1e362b7ff MDL-67413 competencies: do nothing upon activity completion 2020-08-27 11:11:08 +08:00
Mikhail Golenkov ae12edc741 MDL-67211 phpunit: Do not test the order of the running adhoc tasks. 2020-08-27 13:03:49 +10:00
Mikhail Golenkov 5934444b27 MDL-69358 backup: Do not clean up records for incomplete adhoc tasks.
Co-authored-by: Heena Agheda <heenaagheda@catalyst-au.net>
2020-08-27 10:57:48 +08:00
Andrew Nicols c187594e5b Merge branch 'MDL-66810-310' of git://github.com/peterRd/moodle into MOODLE_310_STABLE 2020-08-27 10:23:25 +08:00
Justin Hunt f9f0f1cc26 MDL-66810 mod_lti: Reinstate deprecated default permissions on iframe
microphone, webcam, camera, midi, encrypted-media, geolocation
2020-08-27 09:44:47 +08:00
Andrew Nicols f0b7948c96 MDL-66222 report_antivirus: Correct version number 2020-08-27 09:44:24 +08:00
Andrew Nicols 3114d04721 Merge branch 'MDL-66222-antivirus-reporting' of https://github.com/Peterburnett/moodle into MOODLE_310_STABLE 2020-08-27 09:36:33 +08:00
Adrian Greeve e78b9f9574 Merge branch 'MDL-69419-310' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2020-08-27 08:08:07 +08:00
Sara Arjona b0d96c297b Merge branch 'MDL-69389-310' of git://github.com/junpataleta/moodle into MOODLE_310_STABLE 2020-08-26 18:02:55 +02:00
Bas Brands 54d32ce4a9 MDL-69114 theme_boost: improve the color contrast for .*-info classes 2020-08-26 16:28:34 +02:00
Andrew Nicols 71f44b0611 Merge branch 'MOODLE_310_MDL-69307_v4' of https://github.com/golenkovm/moodle into MOODLE_310_STABLE 2020-08-26 15:03:01 +08:00
Mikhail Golenkov b8a0258357 MDL-69307 restore: Add CLI script to restore a course.
Co-authored-by: Matt Porritt <mattp@catalyst-au.net>
2020-08-26 14:39:41 +10:00
Jun Pataleta db8fea04f5 MDL-69389 auth: Add wcag141 test for the login page accessibility test 2020-08-26 11:05:27 +08:00
Jun Pataleta 227281d355 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:05:27 +08:00
Jun Pataleta fb6460ca98 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:05:27 +08:00
Jun Pataleta 424c5df1eb 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:06 +08:00
Jun Pataleta 64c4074699 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:06 +08:00
Jun Pataleta b4ab127434 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:00:22 +08:00
Andrew Nicols 4d03cc37b2 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:22 +08:00
Andrew Nicols 195e7c9cf1 Merge branch 'MOODLE_310_MDL-67211_v6' of https://github.com/golenkovm/moodle into MOODLE_310_STABLE 2020-08-26 09:41:07 +08:00
Paul Holden 1ffb6b09ee MDL-55971 dataformat: method to write exports to file storage. 2020-08-25 17:30:51 +01:00
Paul Holden 06411e3689 MDL-68569 customfield_select: get field options via instance method.
Deprecate the previous static method, which was only called from
instantiated field classes.
2020-08-25 15:08:12 +01:00
Mikhail Golenkov e419e18f0d MDL-67211 Tasks: Add cron_enabled setting.
Co-authored-by: Sam Marshall <s.marshall@open.ac.uk>
2020-08-25 17:01:00 +10:00
Mikhail Golenkov 3263daba84 MDL-67211 Tasks: Front-end to display currently running tasks.
Co-authored-by: Sam Marshall <s.marshall@open.ac.uk>
2020-08-25 17:00:46 +10:00
Mikhail Golenkov 59a5923924 MDL-67211 Tasks: Record when a task is running.
Co-authored-by: Sam Marshall <s.marshall@open.ac.uk>
2020-08-25 16:59:47 +10:00
Andrew Nicols f2602288eb MDL-69464 core_output: Whitespace fix 2020-08-25 13:22:36 +08:00
Marina Glancy 4413ca209f MDL-69464 core_output: allow to avoid formatting in page->set_heading 2020-08-25 13:22:36 +08:00
Adrian Greeve 427f046cff Merge branch 'MDL-68921-310' of git://github.com/vmdef/moodle into MOODLE_310_STABLE 2020-08-25 09:43:31 +08:00
Victor Deniz Falcon e29edbe89e MDL-68921 core_h5p: Add H5P libraries metadata settings
An upgrade step updates installed H5P libraries
2020-08-25 00:30:02 +01:00
Helen Foster e9df0c43bc MDL-69501 lang: Import fixed English strings (en_fix) 2020-08-24 09:53:02 +02:00
Neill Magill d71659dd6d 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:00:10 +01:00
Neill Magill fb6c682850 MDL-64525 comments: Tests for deleting frozen comments 2020-08-24 08:00:10 +01:00
Mihail Geshoski 356a8ee948 MDL-69479 core: Change 4.0 to 3.10 in theme/upgrade.txt 2020-08-24 14:08:46 +08:00
Eloy Lafuente (stronk7) fe9ecef92b MDL-69479 upgrade: Change all 4.0 occurrences to 3.10
Under parallel development, when something is worth being commented
in upgrade.txt notes, it will be applied to all the development branches
using the "earliest" one to be released. So, if something changes
in 3.10 (and also is applied to master), the upgrade.txt notes will
show 3.10 in both branches.

Of course, if something only goes to one dev branch (say master), then the
master version will be used in the notes (4.0 in this case).
2020-08-24 14:08:46 +08:00
Paul Holden 9c1f7874d8 MDL-69493 cohort: remove escaping of return URL params. 2020-08-22 17:09:23 +02:00
Eloy Lafuente (stronk7) 96fac6d9ce weekly release 3.10dev 2020-08-21 20:42:59 +02:00
Adrian Greeve 4b327e1109 MDL-68683 competencies: Update previous bad bump update.
I made a mistake with the previous version bump and updated the
line below what I should have changed. This fixes it to the
intended version numbers.
2020-08-21 14:41:09 +08:00
Jun Pataleta f649cd722f Merge branch 'MDL-66818-310' of git://github.com/andrewnicols/moodle into MOODLE_310_STABLE 2020-08-21 11:32:21 +08:00
Peter Burnett 8e0e99e4fd MDL-66222 antivirus: Improved error email capture 2020-08-21 12:21:09 +10:00
Nathan Nguyen adbe92ce0a MDL-66222 antivirus: Added antivirus failure reporting 2020-08-21 11:43:56 +10:00
Andrew Nicols 03e84b68a1 MDL-66818 mod_forum: Use cap manager to check exportability 2020-08-21 08:17:01 +08:00
Andrew Nicols 51dc7d230f MDL-42434 chat: Disable stylelint important check 2020-08-21 07:39:24 +08:00
Sara Arjona 1044e94507 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:48 +01:00
Sara Arjona c4303bba51 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:47 +01:00
Andrew Nicols 9d32114bf6 MDL-68705 testing: New CLI args to disable composer features
This commit introduces the following new flags:

  --no-composer-self-update   Disable composer self-update of the
                              composer.phar utility

  --no-composer-upgrade       Disable upgrade of development
                              dependencies using Composer.

  --disable-composer          Disable both composer self-update and
                              composer upgrade
2020-08-20 20:14:54 +02:00
Andrew Nicols 8ddb17b641 MDL-68705 testing: Allow composer updates to be disabled 2020-08-20 20:14:50 +02:00
sam marshall 30990ac512 MDL-38350 Lib: Rename directory before removing it, to reduce races 2020-08-20 16:57:06 +01:00
Tim Hunt 0c6f661def MDL-69507 duration form field: should return an int number of seconds 2020-08-20 11:31:28 +01:00
Tim Hunt 24d0335a0a MDL-69507 duration form field: modernise coding style 2020-08-20 11:31:28 +01:00
Sara Arjona 52836faa5b MDL-69055 core_badges: display password/oauth fields properly 2020-08-20 12:01:49 +08:00
Peter Burnett 64f64e44d8 MDL-69486 webservices: Added user and grade idnumber to grade items 2020-08-20 11:59:41 +08:00
carlos a133b89976 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-20 11:50:54 +08:00
Ferran Recio 93fec2c58c MDL-68964 mod_chat: fix theme param 2020-08-20 11:41:10 +08:00
Sara Arjona 3db6d44feb 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-20 11:23:03 +08:00
Adrian Greeve 83aa08c7e1 MDL-68683 competencies: Fix bad version bump. 2020-08-20 11:01:31 +08:00
Simey Lameze 79082f8b6b MDL-68683 competencies: fix query to delete stale files 2020-08-20 10:21:00 +08:00
Paul Holden 544c7d68b6 MDL-69449 block_timeline: use dayslimit context data in template.
Ensures the correct value is used when initially rendering the
course timeline.
2020-08-20 09:24:46 +08:00
Bas Brands 699a82df1a MDL-68889 block_recentlyaccessedcourses: small viewport issues
- on small devices the recentlyaccessedcourses does not show any courses
2020-08-20 09:16:38 +08:00
Peter Burnett d369c098be MDL-69170 task: Added timecreated field to adhoc task table 2020-08-20 08:50:42 +08:00
Sara Arjona 191448afc5 MDL-68975 contentbank: add author field to file details view 2020-08-20 08:42:20 +08:00
Eloy Lafuente (stronk7) 606fbca6b4 MDL-67415 environment: change requirements
- mysql requirement up to 5.7
- postgres requirement up to 9.6
2020-08-20 08:29:43 +08:00
Eloy Lafuente (stronk7) 050eb97c33 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-20 08:29:43 +08:00
Simey Lameze f6f824597a MDL-66818 mod_forum: remove unnecessary behat steps 2020-08-20 08:16:49 +08:00
gthomas2 f2b4fba61e MDL-66818 mod_forum: hide portfolio export button based on caps 2020-08-20 08:16:49 +08:00
Paul Holden 3a394dd671 MDL-66900 course: don't clean category description when editing. 2020-08-20 07:54:13 +08:00
Sara Arjona 98480b3932 MDL-69473 contentbank: change incorrect ref to size in type column 2020-08-20 07:43:56 +08:00
Eloy Lafuente (stronk7) e010b2e75c 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-20 07:35:59 +08:00
Sara Arjona aa3a9c7895 MDL-69054 core_badges: allow editing OBv1.0 backpacks 2020-08-20 07:31:48 +08:00
Sara Arjona f075ec01ca 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-20 07:16:41 +08:00
Sara Arjona c4c770f48c 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-20 07:16:41 +08:00
Sara Arjona 24ce9b8a10 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-20 07:16:41 +08:00
Mihail Geshoski adebc5f811 MDL-69401 book: Limit character length in chapter title 2020-08-20 07:03:24 +08:00
Peter Dias afc19a201c 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 23:42:27 +01:00
Sam Hemelryk 04073c7e31 MDL-68896 mod_scorm: improved sendBeacon use when unloading 2020-08-19 20:30:17 +12:00
Peter Dias aa7707cd52 MDL-66665 assign: Check whether a modified user could actually grade 2020-08-19 14:27:59 +08:00
Simey Lameze 676c840c5c MDL-68683 competencies: step to delete orphaned evidence files 2020-08-19 12:55:53 +08:00
Simey Lameze 1222c2125e MDL-68683 core: fix DML exception on upgrade step 2020-08-19 12:55:35 +08:00
Simey Lameze 776b4a85d1 MDL-26401 group: add delimiter and encoding fields to import 2020-08-19 11:11:14 +08:00
Amaia Anabitarte 29fe254b17 MDL-69089 core_contentbank: Empty content names are not allowed 2020-08-19 10:51:58 +08:00
Adrian Greeve bf84a08900 Merge branch 'MDL-69475_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2020-08-19 10:42:51 +08:00
Simey Lameze 97043c76b7 MDL-26401 group: change import to use csv_import_reader class 2020-08-19 08:51:32 +08:00
Andrew Nicols c1813ed818 MDL-67735 theme_boost: Fix incorrect whitespace 2020-08-19 08:39:15 +08:00
Bas Brands 49f1803c9d MDL-67735 theme_boost: remove bs2 and bs4alpha compatibility css 2020-08-19 08:29:50 +08:00
Amaia Anabitarte 157f8a87b4 MDL-69089 core_contentbank: Tests for empty content names 2020-08-19 08:19:44 +08:00
Leon Stringer c66bf80bd8 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-19 00:36:21 +02:00
Juan Leyva ad25efc776 MDL-69095 tool_mobile: Display warning if not allowed to use qr login 2020-08-19 00:20:54 +02:00
Juan Leyva 1019a2b5ba MDL-69095 tool_mobile: Avoid non-https sites using qrlogin by default 2020-08-19 00:20:54 +02:00
Matt Davidson 7404858689 MDL-63375 workshop: fix rubric grid view 2020-08-19 00:13:54 +02:00
Shamim Rezaie 7b313f407a 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-08-18 19:13:37 +02:00
Shamim Rezaie 931fc89e13 MDL-68444 calendar: Improve how screenreaders read day titles
Screenreaders now know if each day has any event or not
2020-08-18 19:13:27 +02:00
Mathew May fbbfe9aa00 MDL-68928 core_course: Select activity chooser footer 2020-08-18 19:02:25 +02:00
Victor Deniz Falcon b81952a23d Merge branch 'MDL-69477_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2020-08-18 12:48:09 +01:00
Eloy Lafuente (stronk7) 12ffcc5097 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 12:49:20 +02:00
Andrew Nicols bd1eaea02b MDL-69273 travis: Use exttests for https too 2020-08-18 10:59:13 +02:00
Andrew Nicols 99a8358b85 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 10:59:13 +02:00
Eloy Lafuente (stronk7) 0a352c4790 MDL-69477 install: Ensure CFG variables are set before using them
On installation (or also phpunit/behat unit) some CFG variables
were being used (on setting validation) before being set.

So this commit just verifies they are set before using them. Note that,
strictly speaking, only one of them ($CFG->searchenginequeryonly)
required the extra check, but I think it's better to apply it to all
them, as a reference and in case validations are run in any other order.
2020-08-17 10:53:38 +02:00
Nadav Kavalerchik 67dfb55d49 MDL-69414 qtype/ddimageortext: Fix dropzones display in RTL mode 2020-08-17 14:53:20 +08:00
Mihail Geshoski 12bd4bc5ad MDL-67943 core: Update timezone list in core_date 2020-08-17 10:36:01 +08:00
Adrian Greeve 22ec6995ea Merge branch 'MDL-69475_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE 2020-08-17 09:49:54 +08:00
Eloy Lafuente (stronk7) ae3af1d860 MDL-69475 install: Version, env. and minimal changes before branching
- Also bump travis to get builds against 310_STABLE.
- And backup release to match 3.10

Note this doesn't aim to be a complete change-set, but just the
minimum to switch to 3-digit $branches and keep installation, checks
and tests running and passing.
2020-08-17 00:12:30 +02:00
Andrew Nicols a0fc902eb1 weekly release 4.0dev 2020-08-14 14:42:18 +08:00
Andrew Nicols d665dec78e NOBUG: Fixed SVG browser compatibility 2020-08-14 14:42:17 +08:00
Andrew Nicols a059ec19b9 Merge branch 'MDL-68666-master' of git://github.com/bmbrands/moodle 2020-08-13 15:20:03 +08:00
Bas Brands 9e8cfc0235 MDL-68666 core_pix: add missing fallback icons 2020-08-13 08:47:56 +02:00
Andrew Nicols e0f91914a7 Merge branch 'MDL-69253' of https://github.com/timhunt/moodle 2020-08-13 11:50:09 +08:00
Andrew Nicols 39229f3cbd Merge branch 'MDL-60492-tagcloud_html' of https://github.com/leonstr/moodle 2020-08-13 11:44:13 +08:00
Andrew Nicols 7213b650ee Merge branch 'MDL-69381' of https://github.com/marinaglancy/moodle 2020-08-13 11:28:09 +08:00
Adrian Greeve b713aa80b4 Merge branch 'MDL-68423-master' of git://github.com/ferranrecio/moodle 2020-08-13 11:02:04 +08:00
Andrew Nicols 8bec7c109d Merge branch 'MDL-68932-master' of git://github.com/rezaies/moodle 2020-08-13 10:51:59 +08:00
Andrew Nicols 1736d2e66f Merge branch 'MDL-69421-master' of git://github.com/noeldemartin/moodle 2020-08-13 09:35:37 +08:00
Andrew Nicols 5a3e92e76c Merge branch 'MDL-67991-master' of git://github.com/aanabit/moodle 2020-08-13 08:54:35 +08:00
Andrew Nicols dec6eebdaa Merge branch 'MDL-69241-master' of git://github.com/mickhawkins/moodle 2020-08-13 08:27:01 +08:00
Andrew Nicols 48e5fbe1f5 Merge branch 'MDL-67708-master' of git://github.com/vmdef/moodle 2020-08-13 08:11:09 +08:00
Andrew Nicols c59247e1e8 Merge branch 'MDL-60260' of https://github.com/paulholden/moodle 2020-08-13 07:54:26 +08:00
Andrew Nicols f27f995522 Merge branch 'MDL-69143-master' of git://github.com/ferranrecio/moodle 2020-08-13 07:45:16 +08:00
Andrew Nicols 78193d34b4 Merge branch 'MDL-69265-email-headers' of https://github.com/brendanheywood/moodle 2020-08-13 07:28:27 +08:00
Eloy Lafuente (stronk7) d337e7a546 Merge branch 'MDL-68860' of https://github.com/paulholden/moodle into master 2020-08-13 00:55:09 +02:00
Eloy Lafuente (stronk7) 8e29cce41c Merge branch 'MDL-68558-master-plugindepscheckdeadend' of git://github.com/mudrd8mz/moodle into master 2020-08-13 00:40:10 +02:00
Eloy Lafuente (stronk7) 5374c768f3 Merge branch 'MDL-67394' of https://github.com/paulholden/moodle into master 2020-08-13 00:28:51 +02:00
Eloy Lafuente (stronk7) d40cecdb8a Merge branch 'MDL-67002' of https://github.com/timhunt/moodle into master 2020-08-13 00:08:17 +02:00
Eloy Lafuente (stronk7) a470c9064a Merge branch 'master-MDL-66716' of https://github.com/golenkovm/moodle into master 2020-08-12 20:09:40 +02:00
Ferran Recio 5132309170 MDL-69143 contentbank: catching Exception on file upload 2020-08-12 16:57:17 +02:00
Brendan Heywood 0f89884980 MDL-69265 email: Add admin setting for email headers 2020-08-12 20:51:10 +10:00
Andrew Nicols 08b8b76655 Merge branch 'MDL-69356' of https://github.com/stronk7/moodle 2020-08-12 14:00:44 +08:00
Andrew Nicols 12403bc004 Merge branch 'MDL-68618' of https://github.com/paulholden/moodle 2020-08-12 13:39:20 +08:00
Andrew Nicols b7146cdff9 Merge branch 'MDL-69353' of https://github.com/paulholden/moodle 2020-08-12 11:21:48 +08:00
Andrew Nicols 452497da41 Merge branch 'MDL-68334-master' of git://github.com/lucaboesch/moodle 2020-08-12 11:05:54 +08:00
Andrew Nicols 6c772c3b60 Merge branch 'MDL-69296' of https://github.com/NeillM/moodle 2020-08-12 10:27:55 +08:00
Andrew Nicols d6c8f14ed9 Merge branch 'MDL-68731' of https://github.com/jonof/moodle 2020-08-12 08:32:00 +08:00
Eloy Lafuente (stronk7) 62a7d2b5de Merge branch 'MDL-68729-master' of https://github.com/sammarshallou/moodle into master 2020-08-12 01:28:51 +02:00
Andrew Nicols 2a247aab70 Merge branch 'MDL-69143-master' of git://github.com/ferranrecio/moodle 2020-08-11 14:33:44 +08:00
Andrew Nicols d689b2e029 Merge branch 'MDL-69168_recently-accessed-items-block-uses-stock-lti-icon__master' of https://github.com/stopfstedt/moodle 2020-08-11 12:59:49 +08:00
Adrian Greeve b4f6fe06fd Merge branch 'MDL-69204' of https://github.com/paulholden/moodle 2020-08-11 08:42:02 +08:00
Andrew Nicols 7a6ea323e4 Merge branch 'MDL-64818_master' of git://github.com/gjb2048/moodle 2020-08-10 18:54:30 +08:00
Paul Holden e9a5485f3e MDL-68618 mod_forum: stop reverting idnumber when updating instance. 2020-08-10 09:11:02 +01:00
Paul Holden 36a34b89f6 MDL-68860 mod_lti: Oracle support for retrieving shared secrets.
Thanks to Mark van Hoek!
2020-08-10 09:05:58 +01:00
Mikhail Golenkov 1c3cd955ea MDL-66716 block_timeline: Group events by usermidnight event property. 2020-08-10 11:36:29 +10:00
Mikhail Golenkov 364d4caeec MDL-66716 calendar: Add usermidnight property for events. 2020-08-10 11:36:29 +10:00
Adrian Greeve e9d5a2b0a8 Merge branch 'MDL-60493-grader_span_tag' of https://github.com/leonstr/moodle 2020-08-10 09:20:50 +08:00
Luca Bösch 4994817908 MDL-68334 user: Display name in footer as elsewhere. 2020-08-08 10:38:56 +02:00
Stefan Topfstedt 82e868fd38 MDL-69168 block_recentlyaccesseditems: apply custom icon
Overwrite the default mod icon with the configured icon url if
applicable.
2020-08-07 09:14:01 -07:00
Gareth Barnard da4ded8a16 MDL-64818 blocks: blocks_for_region() is inefficient. 2020-08-07 13:58:35 +01:00
Amaia Anabitarte e68850295f MDL-67991 availability: Fix access restrictions labels 2020-08-07 10:02:37 +02:00
Michael Hawkins bb32174261 MDL-69241 lib: Reset dynamic tables to page 1 when filtering or sorting
This ensures consistency and that the page will always exist, which may
not be true for later pages if applying filters returns fewer results.
2020-08-07 12:51:49 +08:00
Eloy Lafuente (stronk7) 27738e1c07 MDL-69356 unit tests: make some assertions dir separator agnostic 2020-08-07 02:09:15 +02:00
Eloy Lafuente (stronk7) a7d9b53e72 weekly release 4.0dev 2020-08-06 20:51:18 +02:00
sam marshall 679e8d8b66 MDL-68729 Search: Allow query on one server while indexing another
To support transitions from one search engine to a different one, or
to a different installation of the same kind, this feature allows for
queries to use a different search engine from indexing. So you can
reindex (and do all other search operation) on one server, while
user queries are unaffected on a different server.

This feature supports changing between search engine types, and also
between two Solr installations.
2020-08-06 12:12:01 +01:00
sam marshall b58009596f MDL-68729 Admin: Allow validation of admin_setting_configselect
The admin_setting_configselect admin setting did not support validation.
It was possible to validate only by using a subclass.

This change allows validation by a callback function. It also makes it
slightly easier to handle validation in a subclass if you want to do
that.

The main advantage is for cases where a setting is not generic but
is only ever going to be required in one place, and it creates
unnecessary clutter to make a new subclass.
2020-08-06 12:12:01 +01:00
Noel De Martin b421039a5c MDL-69421 behat: Revert app behat navigation to call session visit 2020-08-06 12:08:43 +02:00
sam marshall f87597aae3 MDL-68729 Admin: Allow lazy-load of admin_setting_configselect
The admin_setting_configselect admin setting already supported lazy
loading, but this was only available for subclasses. This change
means you can use it directly within the admin setting.

The main advantage is for cases where a setting is not generic but
is only ever going to be required in one place, and it creates
unnecessary clutter to make a new subclass.
2020-08-06 10:52:13 +01:00
Jun Pataleta 0a94e31cf9 Merge branch 'MDL-60501-h4_close_tag' of https://github.com/leonstr/moodle 2020-08-06 12:11:26 +08:00
Jun Pataleta 05cc2df693 Merge branch 'MDL-69111-master' of git://github.com/bmbrands/moodle 2020-08-06 11:37:12 +08:00
Adrian Greeve 61856e5ef5 Merge branch 'MDL-40227-master-1' of git://github.com/peterRd/moodle 2020-08-06 11:25:58 +08:00
Peter 407a666064 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:08 +08:00
Adrian Greeve 8a5f125ad7 Merge branch 'MDL-69311' of https://github.com/paulholden/moodle 2020-08-06 09:47:48 +08:00
Jordan Tomkinson ef8dff0565 MDL-69207 core_h5p: Add muc cache support for h5p library files 2020-08-06 02:40:24 +01:00
Adrian Greeve e77dc824f5 Merge branch 'master-MDL-66626' of https://github.com/golenkovm/moodle 2020-08-06 09:05:57 +08:00
Eloy Lafuente (stronk7) d55f2b787c Merge branch 'MDL-67687-master-2' of git://github.com/andrewnicols/moodle into master 2020-08-06 00:59:15 +02:00
Eloy Lafuente (stronk7) 4500d4bb3c Merge branch 'MDL-66670-master' of git://github.com/bmbrands/moodle into master 2020-08-06 00:58:20 +02:00
Victor Deniz Falcon 509bb3f351 MDL-67708 theme_boost: Remove tether.js orphaned references
Since version 4.3.1 Bootstrap is not dependent on the Tether library
and is no longer included, but it was still listed as a third party
library.
2020-08-05 13:43:52 +01:00
Leon Stringer fb4c20ee2c 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:52:09 +01:00
Shamim Rezaie 1e21a0b3d5 MDL-68932 core: showhidesettings to work with multiple hideIf()s 2020-08-05 19:06:08 +10:00
Adrian Greeve 71d61a7c8c Merge branch 'MDL-68647-master-forumprivacysql' of git://github.com/mudrd8mz/moodle 2020-08-05 14:18:24 +08:00
Adrian Greeve 8fcba35fd8 Merge branch 'MDL-60932-master' of git://github.com/aanabit/moodle 2020-08-05 10:07:24 +08:00
Andrew Nicols 39a736ef9a MDL-67687 behat: Login page accessibility ensurance 2020-08-05 07:41:45 +08:00
Eloy Lafuente (stronk7) ff7ec42832 Merge branch 'MDL-67831-master' of git://github.com/bmbrands/moodle into master 2020-08-05 00:45:20 +02:00
Tim Hunt 5516275fda MDL-69253 mod_quiz: unit test for the last commit 2020-08-04 14:37:25 +01:00
Josh Ebarvia 380534b0a1 MDL-69253 mod_quiz: Fix timecreated is 0 when creating a quiz activity 2020-08-04 13:43:45 +01:00
Jun Pataleta acf199345a Merge branch 'MDL-60574_master' of https://github.com/t-schroeder/moodle 2020-08-04 19:51:50 +08:00
Andrew Nicols 41eaa09bbe MDL-67687 behat: Make axe tests optional 2020-08-04 18:56:57 +08:00
Andrew Nicols 9d47a69094 MDL-67687 behat: Add axe web accessibility tool integration 2020-08-04 18:56:06 +08:00
Andrew Nicols 06d486d9a3 MDL-67687 behat: Add axe-core 3.5.5 2020-08-04 18:48:11 +08:00
Andrew Nicols b0e096d870 MDL-67687 cli: Make boolean CLI args negatable 2020-08-04 18:48:11 +08:00
Eloy Lafuente (stronk7) 30a82af15e Merge branch 'MDL-55299-master' of git://github.com/ferranrecio/moodle into master 2020-08-04 12:33:51 +02:00
Jun Pataleta 98579dd7b3 Merge branch 'MDL-69336-master' of git://github.com/mickhawkins/moodle 2020-08-04 16:54:34 +08:00
Tim Schroeder 95fc9d9399 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:24:15 +02:00
Michael Hawkins bd40419f2f MDL-69336 lib: Correctly return promises when table show/hide columns
Previously showColumn and HideColumn were returning nothing, so
attempts to catch exceptions were themselves throwing errors in the
browser console.
2020-08-04 15:18:39 +08:00
Michael Hawkins c2f188311e MDL-69336 lib: Reinstating tablelib column show/hide functionality
Also added behat testing for hide/show columns in participants table.
2020-08-04 15:18:39 +08:00
Eloy Lafuente (stronk7) c39b0d178c Merge branch 'MDL-69367' of https://github.com/paulholden/moodle into master 2020-08-03 16:26:59 +02:00
Eloy Lafuente (stronk7) 390512db4f Merge branch 'MDL-62980' of https://github.com/paulholden/moodle into master 2020-08-03 12:37:46 +02:00
Marina Glancy 6bc7645868 MDL-69381 core_backup: make progressbar selector more specific 2020-07-31 13:28:24 +02:00
Amaia Anabitarte becb9e8579 MDL-60932 core_user: Fix docs link for participants page
Co-authored by: David Mudrák <david@moodle.com>
2020-07-31 10:29:56 +02:00
Neill Magill e7008d4686 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:56:54 +01:00
Paul Holden 42fcf7d5da MDL-67394 dml: improve thrown exception when Oracle can't parse query. 2020-07-30 16:21:01 +01:00
Victor Deniz Falcon 07238ca511 weekly release 4.0dev 2020-07-30 12:53:40 +01:00
Victor Deniz Falcon f9c0d58da6 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-07-30 12:53:34 +01:00
Jun Pataleta 4a4905356c Merge branch 'MDL-68390-master' of git://github.com/andrewnicols/moodle 2020-07-30 11:42:53 +08:00
Andrew Nicols 7c56d5589d MDL-68390 tool_usertours: Update to use aria-hidden module 2020-07-30 11:36:23 +08:00
Jun Pataleta adcd69e11f Merge branch 'MDL-65923-40-core_grades_add_gradeitem_deleted_event' of https://github.com/tomdickman/moodle 2020-07-30 09:57:57 +08:00
Eloy Lafuente (stronk7) c39e659a33 Merge branch 'MDL-37745-master' of git://github.com/lucaboesch/moodle into master 2020-07-30 01:01:47 +02:00
Eloy Lafuente (stronk7) 8d1785fec5 Merge branch 'MDL-63252-master' of git://github.com/lameze/moodle into master 2020-07-30 00:47:40 +02:00
Tom Dickman 68049ac848 MDL-65923 core grades: Add a new event for when a grade item is deleted 2020-07-30 08:18:59 +10:00
Victor Deniz Falcon f8c999616a Merge branch 'MDL-66707-master' of git://github.com/rezaies/moodle 2020-07-29 22:36:49 +01:00
Victor Deniz Falcon 0bafd769ec Merge branch 'MDL-68968-master' of git://github.com/lameze/moodle 2020-07-29 22:01:06 +01:00
Paul Holden 9dbb05ffe0 MDL-60260 course: validate external fields on create/update course.
Ensure course fullname/shortname fields are not empty.
2020-07-29 19:57:16 +01:00
Victor Deniz Falcon fdf7db9502 Merge branch 'MDL-68706' of https://github.com/paulholden/moodle 2020-07-29 19:03:10 +01:00
Eloy Lafuente (stronk7) f8666013b3 Merge branch 'MDL-68390-master' of git://github.com/andrewnicols/moodle into master 2020-07-29 19:34:45 +02:00
Ferran Recio 910755acf5 MDL-69143 contentbank: fix tests when extra plugins installed 2020-07-29 17:49:50 +02:00
Ferran Recio 3dfbd5a16f MDL-69143 contentbank: add import file method to content 2020-07-29 17:49:50 +02:00
Victor Deniz Falcon 4d0e43ffc5 Merge branch 'MDL-69199-master' of git://github.com/aanabit/moodle 2020-07-29 11:43:32 +01:00
Jun Pataleta 6d685cef62 Merge branch 'MDL-69238-master' of git://github.com/mihailges/moodle 2020-07-29 17:44:12 +08:00
Jonathon Fowler 1ce5dbad41 MDL-68731 forum: fix digests not correctly updating post read statuses 2020-07-29 15:41:42 +10:00
Jun Pataleta 954de4f651 Merge branch 'MDL-69252-close_tag' of https://github.com/leonstr/moodle 2020-07-29 11:17:47 +08:00
Eloy Lafuente (stronk7) 8ab154a5c1 Merge branch 'MDL-69319-master' of https://github.com/snake/moodle 2020-07-29 00:16:09 +02:00
Paul Holden 279d691f58 MDL-69367 quizaccess_seb: correct foreign key table reference. 2020-07-28 13:27:45 +01:00
Leon Stringer fe2e2feef4 MDL-60493 mod_assign: Unused JS variables
Removed unused JavaScript variables fixing CI warning "ESLint error
[no-unused-vars]".
2020-07-28 12:01:26 +01:00
Leon Stringer 5a0fd52e3f 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 11:59:55 +01:00
Eloy Lafuente (stronk7) 24ccd6e908 Merge branch 'MDL-68107-master' of git://github.com/bmbrands/moodle 2020-07-28 12:40:04 +02:00
Jun Pataleta fcc5307e64 Merge branch 'MDL-65453-master' of git://github.com/lameze/moodle 2020-07-28 11:42:47 +08:00
Simey Lameze d208ffb0e2 MDL-65453 core: fix behaviour of --skip-database option on install 2020-07-28 11:21:35 +08:00
Paul Holden 5c36644c05 MDL-69204 tool_dataprivacy: summary link only on current user profile. 2020-07-27 17:25:09 +01:00
Jun Pataleta c84b8976e3 Merge branch 'MDL-66755-master' of https://github.com/SergioComeron/moodle 2020-07-27 16:55:34 +08:00
Bas Brands 99ddf538ca MDL-68107 mod_label: make images dropped onto courses responsive 2020-07-27 09:55:43 +02:00
C4ne 4144e278a6 MDL-68107 editor_atto: responsive images for drag and drop 2020-07-27 09:55:33 +02:00
Jun Pataleta a1b2045364 Merge branch 'MDL-69260_master' of git://github.com/adpe/moodle 2020-07-27 10:53:23 +08:00
Mihail Geshoski c4296f77e0 MDL-69238 core: Remove coursecat_sortable_records class 2020-07-27 09:43:16 +08:00
Adrian Greeve 0f70cf0497 Merge branch 'MDL-69079-master-1' of git://github.com/mihailges/moodle 2020-07-27 08:48:58 +08:00
AMOS bot 7c30725f6b Automatically generated installer lang files 2020-07-27 00:07:24 +00:00
AMOS bot 6065090736 Automatically generated installer lang files 2020-07-27 00:07:24 +00:00
Mikhail Golenkov 42f75f5a52 MDL-66626 assignfeedback_editpdf: Check page count for attempt.
Co-Authored-By: John Yao <johnyao@catalyst-au.net>
2020-07-27 09:49:56 +10:00
Mikhail Golenkov 78572f186d MDL-66626 assignfeedback_editpdf: Count files outside of foreach loop.
Co-Authored-By: John Yao <johnyao@catalyst-au.net>
2020-07-27 09:49:56 +10:00
Luca Bösch 84197640eb MDL-37745 mod_choice: Show taken and limit. 2020-07-26 00:08:37 +02:00
AMOS bot fc49ce855a Automatically generated installer lang files 2020-07-25 00:07:48 +00:00
Paul Holden 486d2a35ba MDL-68706 customfield_textarea: allow field content to be cleared. 2020-07-24 13:44:41 +01:00
Paul Holden 15af3240b3 MDL-69353 admin: set page title when prompting for upgrade key. 2020-07-24 13:24:13 +01:00
Tim Hunt 45722f4188 MDL-67002 quiz reports: fix sorting on Oracle in the responses report 2020-07-24 11:42:50 +01:00
Sergio Comerón a1087ef609 MDL-66755 forum: Subscription cancel when edit a message 2020-07-24 09:05:17 +02:00
Mihail Geshoski d6ec2d3e44 MDL-69079 core: Restore and set missing guest user 2020-07-24 11:08:25 +08:00
Mihail Geshoski 7add3440c8 MDL-69079 course: Handle missing guest when fetching recommended modules 2020-07-24 10:33:50 +08:00
Mihail Geshoski 3295288d6e MDL-69079 course: Handle fetch module data failures in activity chooser 2020-07-24 10:33:50 +08:00
Sam Marshall 3d03d2a0d4 MDL-63252 tool_xmldb: convert default to float to avoid false positives 2020-07-24 07:53:19 +08:00
Simey Lameze e3c28dffa3 MDL-68968 core: fix wrong phpdoc on admin_externalpage 2020-07-24 07:42:45 +08:00
Amaia Anabitarte 2d710f35cd MDL-69199 mod_quiz: Show timefinish in user Complete report 2020-07-23 18:53:49 +02:00
Victor Deniz Falcon 94fdac9117 weekly release 4.0dev 2020-07-23 16:10:20 +01:00
Victor Deniz Falcon 1dd722145d Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-07-23 16:10:16 +01:00
David Mudrák 9d171793d7 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 16:54:14 +02:00
Bas Brands 8e039a5662 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:19 +02:00
AMOS bot 990bd11773 Automatically generated installer lang files 2020-07-23 00:07:42 +00:00
Victor Deniz Falcon ddcde1994d Merge branch 'MDL-48391' of https://github.com/paulholden/moodle 2020-07-22 21:51:25 +01:00
Victor Deniz Falcon cf35d0b26e Merge branch 'MDL-65819' of https://github.com/paulholden/moodle 2020-07-22 18:58:23 +01:00
Paul Holden b9a09480b2 MDL-48391 tool_uploadcourse: access checks for configuring enrolments. 2020-07-22 17:52:24 +01:00
Ferran Recio 5025c1ad82 MDL-55299 mod_feedback: fix quoted values donwload 2020-07-22 18:47:37 +02:00
Jun Pataleta 0ea341f14b Merge branch 'MDL-68586-format_topics_code_prechecks' of https://gitlab.com/drlikm/moodle 2020-07-22 23:26:24 +08:00
Jun Pataleta a03e9e0d9d Merge branch 'MDL-68874-db-sql-instrumentation' of https://github.com/brendanheywood/moodle 2020-07-22 18:10:46 +08:00
Paul Holden c1c57e816c MDL-69311 dataformat: correct license docblock.
When this class was implemented in 8844cb82, it incorrectly set the
license to Moodle Workplace.
2020-07-22 10:44:35 +01:00
Andrew Nicols b284293402 MDL-69138 behat: Update session->visit() to use visit step 2020-07-22 16:43:08 +08:00
Andrew Nicols d61fa24239 MDL-69138 behat: Add "I visit :localurl" step 2020-07-22 16:43:08 +08:00
Jun Pataleta 11eb85e494 Merge branch 'MDL-52052-master' of git://github.com/mihailges/moodle 2020-07-22 13:47:14 +08:00
Jun Pataleta c765b1f7e2 Merge branch 'MDL-68178-master' of git://github.com/mihailges/moodle 2020-07-22 12:59:09 +08:00
Eloy Lafuente (stronk7) 8e44da5653 Merge branch 'MDL-69160-master' of git://github.com/andrewnicols/moodle 2020-07-21 23:29:29 +02:00
Bas Brands 0489e9ceee 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:02 +02:00
Jun Pataleta e948a6354e Merge branch 'MDL-68737_master' of https://github.com/t-schroeder/moodle 2020-07-21 21:55:41 +08:00
David Mudrák 8a6b13b71e 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:55:25 +02:00
David Mudrák e2f1e10225 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:53:08 +02:00
David Mudrák 474e768a26 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:53:08 +02:00
Adrian Greeve 17e99314a2 Merge branch 'MDL-67657-master' of git://github.com/andrewnicols/moodle 2020-07-21 14:47:14 +08:00
Adrian Greeve d817ccaca5 Merge branch 'MDL-67436-master' of https://github.com/jondo/moodle 2020-07-21 08:28:53 +08:00
Eloy Lafuente (stronk7) 0cb248077c Merge branch 'MDL-68726-master' of https://github.com/sammarshallou/moodle 2020-07-21 00:37:03 +02:00
Ferran Recio 1d8cbfb81b MDL-68423 message: avoid self-xss when send a message 2020-07-20 19:48:17 +02:00
Eloy Lafuente (stronk7) 6c579b60f2 Merge branch 'master_MDL-67440' of https://github.com/danmarsden/moodle 2020-07-20 17:08:12 +02:00
Leon Stringer 6b03aebf27 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:51:14 +01:00
Bas Brands 8e929fa58a MDL-66670 theme_boost: list bullet styling
Ensure lists with bullets are not cut off
2020-07-20 14:47:45 +02:00
Jake Dallimore f956926db5 MDL-69319 mod_lti: style and docs changes in external tests 2020-07-20 13:01:21 +08:00
Jake Dallimore cea2645a81 MDL-69319 mod_lti: replace try/catch with expectException in ext tests 2020-07-20 13:00:47 +08:00
Jake Dallimore 5aff8a7852 MDL-69319 mod_lti: remove unused vars from externallib_test 2020-07-20 12:51:27 +08:00
Jake Dallimore 7c7c5286a4 MDL-69319 mod_lti: move test data generation out of common setup 2020-07-20 12:51:25 +08:00
Mihail Geshoski c39bc627a0 MDL-68178 auth: CSRF protection for the resend confirmation email form
Credit to Chandra Kishor.
2020-07-20 12:30:21 +08:00
Adrian Greeve 867509ac25 Merge branch 'MDL-69113' of https://github.com/jonof/moodle 2020-07-20 10:20:47 +08:00
Jake Dallimore 261400d4ea MDL-69319 mod_lti: call clean_returnvalue in external tests 2020-07-20 09:29:40 +08:00
Mihail Geshoski f9bcf22483 MDL-52052 gradeimport_csv: Do not skip rows with blank user fields 2020-07-20 08:54:11 +08:00
Eloy Lafuente (stronk7) a16ab5697d Merge branch 'MDL-69278-master' of git://github.com/andrewnicols/moodle 2020-07-18 11:55:48 +02:00
sam marshall 9b3646417e MDL-68726 Search: Stop Solr 'optimize' behaviour
The optimize feature in Solr is usually considered harmful, especially
prior to Solr 7.5.

This change simply removes the optimize implementation from the Solr
engine.
2020-07-17 17:11:57 +01:00
Sara Arjona 741d6dde19 weekly release 4.0dev 2020-07-16 21:28:16 +02:00
Sara Arjona 14b4ee0827 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-07-16 21:28:13 +02:00
Tim Schroeder 396a282a2d MDL-68737 other: add .vscode folder to .gitignore 2020-07-16 18:46:43 +02:00
Jake Dallimore af331f08d4 Merge branch 'MDL-45849-selfenrol' of https://github.com/Peterburnett/moodle 2020-07-16 16:27:01 +02:00
Jake Dallimore 988d0d4c50 Merge branch 'MDL-69215-master-2' of git://github.com/andrewnicols/moodle 2020-07-16 16:25:55 +02:00
Eloy Lafuente (stronk7) a86f428702 Merge branch 'MDL-69214' of https://github.com/paulholden/moodle 2020-07-16 16:21:27 +02:00
Eloy Lafuente (stronk7) 5a32562f82 Merge branch 'MDL-69165-master' of https://github.com/HuongNV13/moodle 2020-07-16 16:21:27 +02:00
Eloy Lafuente (stronk7) 9e28ba2b65 Merge branch 'MDL-69074-master' of https://github.com/mackensen/moodle 2020-07-16 16:21:27 +02:00
Sara Arjona 2eb31f8bb3 Merge branch 'MDL-68605_master' of https://github.com/t-schroeder/moodle 2020-07-16 16:21:27 +02:00
Sara Arjona d189edb843 Merge branch 'MDL-68210-master' of https://github.com/snake/moodle 2020-07-16 16:21:27 +02:00
Sara Arjona 57ad9e1566 Merge branch 'MDL-67671_master' of https://github.com/marxjohnson/moodle 2020-07-16 16:21:26 +02:00
Robert Pollak beca5a9300 MDL-67436 mod_assign: "Assignments per page": Sort "All" after "100" 2020-07-16 09:34:57 +02:00
Andrew Nicols 083604ea09 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 cd6eadd407 MDL-67657 behat: Convert existing uses of executeScript 2020-07-16 11:06:31 +08:00
Andrew Nicols 6d5d1935ea MDL-67657 behat: Add wrapper for JS execution 2020-07-16 11:05:32 +08:00
Andrew Nicols 05f23d5a2b MDL-69278 behat: Correct variable name 2020-07-16 08:29:22 +08:00
Andrew Nicols 0d751c196b MDL-69278 behat: Mark tests as failed when unable to start Session 2020-07-16 08:29:22 +08:00
Andrew Nicols 6f5f08a846 MDL-69215 output: Correct use of icon_system::instance 2020-07-16 07:29:22 +08:00
Andrew Nicols 4a4a367251 MDL-69215 output: Correct font awesome for themes 2020-07-16 07:29:22 +08:00
Paul Holden 809be05428 MDL-65819 message: send contact requests using recipient language. 2020-07-15 20:24:44 +01:00
Shamim Rezaie 4bd0eaf732 MDL-66707 mod_forum: do not blindly mark discussion replies as read 2020-07-15 22:20:40 +10:00
Sara Arjona 23f33d12ca Merge branch 'MDL-57678-master-3' of git://github.com/junpataleta/moodle 2020-07-15 12:56:02 +02:00
Brendan Heywood ef4145dd1a MDL-68874 dml: Add SQL stacktrace debugging mode 2020-07-15 20:32:43 +10:00
Jun Pataleta 4c44813e9e MDL-57678 admin: Replace usage of make_categories_options()
Replace with core_course_category::make_categories_list() instead.
2020-07-15 18:26:03 +08:00
Jun Pataleta c5438f982c MDL-57678 enrol_ldap: Replace usage of make_categories_options()
Replace with core_course_category::make_categories_list() instead.
2020-07-15 18:26:03 +08:00
Jun Pataleta 2c45ad6f18 MDL-57678 core_course: Deprecate make_categories_options()
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.
Given this, there's not much point keeping make_categories_options().
So it's better to deprecate this function and call
core_course_category::make_categories_list() directly instead.
2020-07-15 18:25:57 +08:00
Sara Arjona 9f9682cfe2 Merge branch 'MDL-69068-master' of git://github.com/andrewnicols/moodle 2020-07-15 12:20:20 +02:00
Sara Arjona b8d16ecad1 Merge branch 'MDL-45002_master' of https://github.com/grillonbleu/moodle 2020-07-15 09:51:37 +02:00
Andrew Nicols 45871ec48e MDL-69068 behat: Allow singular, pivotted data generators 2020-07-15 15:27:31 +08:00
Andrew Nicols b49cb92e82 MDL-69068 behat: New step to support singular generators 2020-07-15 15:27:31 +08:00
Andrew Nicols eb06f92457 MDL-68390 core: Share focusable selector 2020-07-15 15:15:34 +08:00
Andrew Nicols 7cc18dc2ad MDL-68390 js: Update to use Aria mod 2020-07-15 14:40:49 +08:00
Andrew Nicols 4f1c8ce764 MDL-68390 aria: Add new core_aria module 2020-07-15 14:40:49 +08:00
Jake Dallimore 805214b38c Merge branch 'MDL-69206-master' of git://github.com/mihailges/moodle 2020-07-15 10:29:03 +08:00
Eloy Lafuente (stronk7) 9e65bc8fa6 Merge branch 'MDL-68690-master' of https://github.com/sammarshallou/moodle 2020-07-15 00:17:11 +02:00
François Moreau 760ed019ee MDL-45002 mod_quiz: completion option, at least N attempts completed 2020-07-14 15:32:06 -04:00
Sara Arjona 22f4eab309 Merge branch 'MDL-68715' of https://github.com/paulholden/moodle 2020-07-14 14:31:44 +02:00
Paul Holden 8acaa4e356 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:46:02 +01:00
Sara Arjona ebd307b396 Merge branch 'MDL-69228-master' of git://github.com/andrewnicols/moodle 2020-07-14 12:41:05 +02:00
Mihail Geshoski 2b61f1eb27 MDL-69206 course: Tidy up behat test to avoid potential failures 2020-07-14 12:09:52 +08:00
Mihail Geshoski 586ae77bc2 MDL-69206 course: Tidy up unit test to avoid potential failures 2020-07-14 12:09:52 +08:00
Paul Holden 60c92dcb4b MDL-62980 tool_dataprivacy: show persistent errors inside form. 2020-07-14 00:22:48 +01:00
adpe d4dc94ec8d MDL-69260 admin_cli: show only contributed plugins in uninstall plugins 2020-07-13 20:19:35 +02:00
Sara Arjona 168348abeb Merge branch 'MDL-69115-master' of git://github.com/junpataleta/moodle 2020-07-13 14:24:00 +02:00
Andrew Nicols b0627a1a11 MDL-69160 workshop: Ensure steps are chained 2020-07-13 14:22:32 +08:00
Andrew Nicols 2c37677635 MDL-69160 behat: Add form field setter step 2020-07-13 14:22:31 +08:00
Leon Stringer 69f0ecf605 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:51:02 +01:00
AMOS bot 815f256bcd Automatically generated installer lang files 2020-07-10 19:52:39 +00:00
Eloy Lafuente (stronk7) ee23a8cf25 weekly release 4.0dev 2020-07-10 20:21:44 +02:00
Eloy Lafuente (stronk7) b89a37942e Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-07-10 20:21:38 +02:00
sam marshall 0deb19468d MDL-68690 Search: Allow Solr to add documents in batches
Adding documents in batches instead of one at a time can make
indexing using Solr significantly faster.

This adds new API functions for search engines, including
add_document_batch() to add a batch of documents,
supports_add_document_batch(), get_batch_max_documents() and
get_batch_max_content().
2020-07-10 11:32:46 +01:00
Jake Dallimore 0ad85f4148 Merge branch 'MDL-69232-master' of git://github.com/andrewnicols/moodle 2020-07-10 15:12:44 +08:00
Peter Burnett 37c99bd07e MDL-45849 enrol_self: Added self enrol capability 2020-07-10 11:52:10 +10:00
Andrew Nicols 4df5ee039a 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 5306f2f2b9 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:30 +08:00
Mark Johnson e37cdf881e MDL-67671 backup: Fix modname display on backup form 2020-07-09 10:11:17 +01:00
Jake Dallimore 336d0d2927 Merge branch 'MDL-69135-master' of git://github.com/andrewnicols/moodle 2020-07-09 10:35:33 +08:00
Michael Hawkins f1d86e0319 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:05:59 +08:00
Andrew Nicols 5e99058860 MDL-69232 behat: Add debugging information to Selenium fails 2020-07-09 09:30:15 +08:00
Andrew Nicols 41426e0aa4 MDL-69232 behat: Move suite tests to BeforeSuite hook 2020-07-09 09:27:11 +08:00
Jake Dallimore 389744710a Merge branch 'MDL-62982-master' of git://github.com/mihailges/moodle 2020-07-09 09:07:49 +08:00
Jake Dallimore 848f08e126 Merge branch 'MDL-67477-master' of git://github.com/mihailges/moodle 2020-07-09 08:38:18 +08:00
Eloy Lafuente (stronk7) cdbb433c32 Merge branch 'MDL-69134-master' of git://github.com/andrewnicols/moodle 2020-07-08 20:53:11 +02:00
Jake Dallimore 0524f3ae5b Merge branch 'MDL-69104-master' of https://github.com/HuongNV13/moodle 2020-07-08 13:06:45 +08:00
Andrew Nicols 1e37778fc1 Merge branch 'MDL-56041-master-fix' of https://github.com/snake/moodle 2020-07-08 12:39:17 +08:00
Andrew Nicols fc5e5d4999 Merge branch 'MDL-68784' of https://github.com/Peterburnett/moodle 2020-07-08 12:35:37 +08:00
Andrew Nicols 954e4d1132 Merge branch 'm40_MDL-66322_Travis_Run_Using_Docker_ExtTests' of https://github.com/scara/moodle 2020-07-08 12:20:08 +08:00
Jake Dallimore 8cb0b7262b MDL-56041 core: add missing cap string for site:senderrormessage 2020-07-08 12:09:02 +08:00
Huong Nguyen 579da44a70 MDL-69165 Questions: Incorrect id used in init_submit_button function 2020-07-08 10:54:24 +07:00
Peter Burnett 7482fef18b MDL-68784: Updated variable for graph report 2020-07-08 13:48:30 +10:00
Andrew Nicols 0bf024e48a MDL-69228 tool_mobile: Hide dependant settings 2020-07-08 11:44:02 +08:00
Andrew Nicols 7d4ee9c50b Merge branch 'MDL-69031-master' of git://github.com/jleyva/moodle 2020-07-08 09:38:46 +08:00
Jake Dallimore 7a40781aeb Merge branch 'MDL-56041-custom-error-pages' of https://github.com/brendanheywood/moodle 2020-07-08 09:33:46 +08:00
Andrew Nicols 0a5291c013 Merge branch 'MDL-60494-stray_img_end' of https://github.com/leonstr/moodle 2020-07-08 09:23:31 +08:00
Andrew Nicols 63a66eb2ce MDL-69134 competencies: Behat fails randomly opening dialogues 2020-07-08 09:21:44 +08:00
Jake Dallimore c032adf341 MDL-68210 mod_lesson: fix random failure in override behat test 2020-07-08 09:08:27 +08:00
Jake Dallimore c467de9ac6 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:08:27 +08:00
Andrew Nicols 145604590f Merge branch 'MDL-69109-master-2' of git://github.com/marinaglancy/moodle 2020-07-08 08:39:32 +08:00
Brendan Heywood 43999a3f2b MDL-56041 error: Enable custom 404 and 500 error pages 2020-07-08 09:36:21 +10:00
Matt Clarkson 7f55289912 MDL-67440 analytics: optimse delete's in clean up task. 2020-07-08 11:16:36 +12:00
Eloy Lafuente (stronk7) 7a5f2d0b78 Merge branch 'MDL-69086-master' of git://github.com/andrewnicols/moodle 2020-07-07 19:15:13 +02:00
Eloy Lafuente (stronk7) 3303daf3bf Merge branch 'm40_MDL-68588_Hide_Backuptempdir_From_Message_And_Debuginfo' of https://github.com/scara/moodle 2020-07-07 19:09:59 +02:00
Eloy Lafuente (stronk7) e47c53ae4a Merge branch 'MDL-68784' of https://github.com/Peterburnett/moodle 2020-07-07 18:51:50 +02:00
Paul Holden ca02422d66 MDL-69214 user: correct participant table forced group SQL. 2020-07-07 14:31:31 +01:00
Tim Schroeder 3786de22f2 MDL-68605 mod_assign: return grp submissns from ws
Co-authored-by: Septatrix <24257556+Septatrix@users.noreply.github.com>
2020-07-07 12:55:04 +02:00
Víctor Déniz Falcón d07fb8b9e8 MDL-69093 enrol_manual: added check for allowed roles a user can assign 2020-07-07 08:32:39 +02:00
Andrew Nicols 877a3f70d0 Merge branch 'MDL-69106-master' of git.in.moodle.com:cameron/moodle 2020-07-07 14:13:22 +08:00
Jake Dallimore 3d7a8a09ba Merge branch 'MDL-63966' of https://github.com/Chocolate-lightning/moodle 2020-07-07 13:54:27 +08:00
Andrew Nicols 3bf4744303 Merge branch 'MDL-67594-master-2' of git://github.com/mihailges/moodle 2020-07-07 09:32:20 +08:00
Eloy Lafuente (stronk7) 70e973d092 Merge branch 'MDL-60827-master' of git://github.com/mihailges/moodle 2020-07-07 00:14:34 +02:00
Matteo Scaramuccia 3ce1eba180 MDL-66322 travis: Configure a local copy of 'exttests' 2020-07-06 23:02:56 +02:00
Martin Drlík ca864e09b1 MDL-68586 format_topics: code prechecks 2020-07-06 13:26:09 +02:00
Andrew Nicols a95f458cde MDL-69110 table: Remove commented code 2020-07-06 13:25:31 +08:00
Andrew Nicols 1ffdc39468 Merge branch 'MDL-69110-master' of git://github.com/junpataleta/moodle 2020-07-06 13:16:38 +08:00
Mihail Geshoski 83c18a2dec MDL-67594 core_lock: Modify postgres get_lock() to avoid recursion 2020-07-06 13:04:41 +08:00
Mihail Geshoski 566b73fbfc MDL-67594 core_lock: Deprecate extend() 2020-07-06 13:04:33 +08:00
Mihail Geshoski 80736a93aa MDL-67594 core_lock: Deprecate extend_lock() 2020-07-06 13:03:08 +08:00
Mihail Geshoski 41bc63dbf3 MDL-67594 core_lock: Remove supports_recursion() usages 2020-07-06 13:01:20 +08:00
Mihail Geshoski 4b71cdcd89 MDL-67594 core_lock: Deprecate supports_recursion() 2020-07-06 13:01:16 +08:00
Andrew Nicols e4faf5fede Merge branch 'MDL-68820-referrer-policy' of https://github.com/Peterburnett/moodle 2020-07-06 12:38:29 +08:00
Andrew Nicols 8a635e3e24 Merge branch 'MDL-69158-master' of git://github.com/lucaboesch/moodle 2020-07-06 12:11:10 +08:00
Jake Dallimore 71bfe91591 Merge branch 'MDL-55192-master' of git://github.com/peterRd/moodle 2020-07-06 12:10:02 +08:00
Peter Dias ceedbf1515 MDL-55192 log: Remove add_log from unit tests 2020-07-06 11:56:47 +08:00
Jake Dallimore 68e240284c Merge branch 'MDL-63004' of https://github.com/Chocolate-lightning/moodle 2020-07-06 11:55:12 +08:00
John Okely d464fb43d6 MDL-55192 log: Final deprecation of add_to_log 2020-07-06 11:54:10 +08:00
Mathew May b44495cecc MDL-63966 messaging: Make tests pass after deprecation 2020-07-06 11:44:04 +08:00
Mathew May d0ba284421 MDL-63966 core: Remove tests covering removed functions 2020-07-06 11:44:04 +08:00
Mathew May b27a27adcd MDL-63966 core: Final deprecations in deprecatedlib 2020-07-06 11:44:01 +08:00
Mathew May f87f23777f MDL-63004 behat: Final removal of i_navigate_to_node_in 2020-07-06 11:39:13 +08:00
Jake Dallimore 6ceba9e0e8 Merge branch 'MDL-69136-master' of git://github.com/andrewnicols/moodle 2020-07-06 10:44:10 +08:00
Mihail Geshoski ecf15a63b4 MDL-60827 oauth2: Consider requireconfirmation setting on login 2020-07-06 10:04:42 +08:00
Michael Hawkins c6ffe9588e MDL-69128 admin: Convert HTML entities when populating tasklogs filter 2020-07-06 10:04:03 +08:00
Mihail Geshoski 8cdb2fcc0e MDL-62982 core_form: Final deprecation of the htmleditor form element 2020-07-06 10:02:58 +08:00
Mihail Geshoski 8efa87ed6f MDL-67477 lib: Remove renamed classes 2020-07-06 10:00:22 +08:00
AMOS bot a5b23f1f4e Automatically generated installer lang files 2020-07-06 00:08:22 +00:00
Leon Stringer 9679c49c35 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:56:04 +01:00
Matteo Scaramuccia 82850a0418 MDL-68588 Backup: Hide ->backuptempdir in exception info 2020-07-03 21:17:42 +02:00
Jun Pataleta b583c46297 MDL-69110 core: Unset the correct sort data element 2020-07-04 00:47:14 +08:00
Eloy Lafuente (stronk7) 49a9e8b07d weekly release 4.0dev 2020-07-03 18:41:01 +02:00
Eloy Lafuente (stronk7) 419709e9b2 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-07-03 18:40:55 +02:00
Jake Dallimore 5a3b9d64dd Merge branch 'MDL-68714-master' of https://github.com/andrewnicols/moodle 2020-07-03 11:58:17 +08:00
Andrew Nicols 9eaf7a4c3f MDL-68714 clilib: Check set_process_title exists
The web cron script at /admin/cron.php pretends to be a CLI script which
means that it is not possible to rely upon the CLI_SCRIPT constant.
2020-07-03 09:49:11 +08:00
Andrew Nicols 834aba2309 MDL-68714 cron: Check value of CLI_SCRIPT not existence 2020-07-03 09:04:05 +08:00
Jake Dallimore b5878eaec9 Merge branch 'MDL-63254' of https://github.com/Chocolate-lightning/moodle 2020-07-02 12:22:17 +08:00
Jake Dallimore ccae2f74f8 Merge branch 'MDL-69130-master-enfix' of git://github.com/mudrd8mz/moodle 2020-07-02 12:07:58 +08:00
Jake Dallimore 752a073885 Merge branch 'MDL-69149-master' of git://github.com/andrewnicols/moodle 2020-07-02 11:57:04 +08:00
Jake Dallimore e96987d89e Merge branch 'MDL-69122-master' of git://github.com/bmbrands/moodle 2020-07-02 11:49:02 +08:00
Andrew Nicols 710c3f0c36 Merge branch 'MDL-68714-task-top-process-name' of https://github.com/brendanheywood/moodle 2020-07-02 11:20:45 +08:00
Jake Dallimore c39dc16da4 Merge branch 'MDL-58926-ajax-timer' of https://github.com/rboyatt/moodle 2020-07-02 09:37:00 +08:00
AMOS bot b3e45d753a Automatically generated installer lang files 2020-07-02 00:08:01 +00:00
Eloy Lafuente (stronk7) 2cadeca3eb Merge branch 'MDL-69072-master' of git://github.com/andrewnicols/moodle 2020-07-01 23:20:34 +02:00
Eloy Lafuente (stronk7) 8fb519442a Merge branch 'MDL-58931-master' of https://github.com/mackensen/moodle 2020-07-01 22:56:30 +02:00
Charles Fulton 66ba391e82 MDL-58931 dml: add support for aurora mysql 2020-07-01 22:56:20 +02:00
Jake Dallimore 2cde5c5267 Merge branch 'MDL-63167-master' of git://github.com/peterRd/moodle 2020-07-01 17:06:01 +08:00
Jake Dallimore 2c41fe81e8 Merge branch 'MDL-68584-master' of git://github.com/lucaboesch/moodle 2020-07-01 16:42:19 +08:00
Brendan Heywood 0b996db6a3 MDL-68714 task: Expose current task in cli process name 2020-07-01 18:35:32 +10:00
Brendan Heywood 73a5ba92b7 MDL-68714 clilib: Allow cli processes to set a process title suffix 2020-07-01 18:35:32 +10:00
Jun Pataleta c3015dd0c8 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:42:44 +08:00
Andrew Nicols 3585c252ce Merge branch 'MDL-60583' of https://github.com/NeillM/moodle 2020-07-01 09:16:21 +08:00
Andrew Nicols e6ff582e1a Merge branch 'MDL-69150' of https://github.com/paulholden/moodle 2020-07-01 08:34:30 +08:00
Andrew Nicols 53df9e34f9 Merge branch 'MDL-69151' of https://github.com/paulholden/moodle 2020-07-01 08:27:36 +08:00
Juan Leyva 1d6683bb0e MDL-69031 tool_mobile: Add missing features that can be disabled in 3.9 2020-06-30 13:02:59 +02:00
Marina Glancy 9c10de7f35 MDL-69109 theme: try to load icons from the current theme 2020-06-30 09:56:49 +02:00
Marina Glancy 17ab4fb266 MDL-69109 core: use different cache keys for FA icon maps 2020-06-30 09:38:33 +02:00
Huong Nguyen 5fa8f1c811 MDL-69104 Questions: Drag and drop question family don't work with iOS
- Drag and Drop marker question type
 - Drag and Drop onto image question type
 - Drag and Drop into text question type
2020-06-30 13:15:48 +07:00
Peter Burnett 91f26b5874 MDL-68784 scorm: Removed limit on allowed scorm users in report 2020-06-30 15:14:53 +10:00
Andrew Nicols 1b771b1947 Merge branch 'MDL-60621-master-1' of git://github.com/mihailges/moodle 2020-06-30 12:30:48 +08:00
Cameron Ball 548c44c89c 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 11:03:11 +08:00
Mihail Geshoski 8ee9fbca8d MDL-60621 core_course: Disable scrollable in the activity chooser modal 2020-06-30 10:18:19 +08:00
Mihail Geshoski e13cbf9e27 MDL-60621 js: Add ability to set a modal to be scrollable or not
With this change the modal can be configured to be scrollable or not.
If enabled to be 'scrollable', the modal's body will become scrollable
when the modal's height exceeds the browser's height. This is useful
in cases where the content in the modal is quite large and extends the
modal beyond the browser's height, which usually results in a bad UI.
If 'scrollable' is not explicitely configured, it will be set as 'true'
by default as in most cases it would be the expected behaviour.
2020-06-30 10:18:19 +08:00
Luca Bösch 14f047abdb MDL-69158 block_blog_menu: format search form. 2020-06-29 11:07:28 +02:00
Neill Magill b6c7a25d60 MDL-60583 webservice: Add index to improve token lookup performance
Without this index every webservice call will do a full table scan
when it tries to validate a token. On a busy site with many tokens
this adds unnecessary load to the database.
2020-06-29 07:33:12 +01:00
Andrew Nicols d128bf726e MDL-69136 behat: Improve reliability of navigation steps 2020-06-29 11:36:36 +08:00
Andrew Nicols 3450387277 MDL-69136 behat: Support find on a NodeElement 2020-06-29 11:36:30 +08:00
Andrew Nicols aacfff0bc8 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
Paul Holden 9071b2314f MDL-69151 message_airnotifier: start output before accesskey request.
This allows debugging generated by the request to be shown on the
page.
2020-06-26 17:34:02 +01:00
Paul Holden 54393e223a MDL-69150 message_airnotifier: correct apps portal link. 2020-06-26 17:13:56 +01:00
Andrew Nicols 868a1c377d 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:23 +08:00
Andrew Nicols 675e981004 MDL-69072 behat: Relaunch browser session between scenarios 2020-06-26 21:17:22 +08:00
Andrew Nicols eed4650028 MDL-69149 core_grade: Correct xpath attribute selector 2020-06-26 19:59:56 +08:00
Andrew Nicols 94711c151d MDL-69135 core_calendar: PendingJS for event filtering 2020-06-26 07:58:36 +08:00
Luca Bösch 8dfa3027a0 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 22:01:15 +02:00
Helen Foster 38d5e3db1b MDL-69130 lang: Import fixed English strings (en_fix)
Significant string change:

- presentationoraltrequired,atto_image - wording changed to mention
  'decorative only' checkbox
2020-06-25 21:54:13 +02:00
Eloy Lafuente (stronk7) c11e2517a7 weekly release 4.0dev 2020-06-25 18:05:59 +02:00
Eloy Lafuente (stronk7) 5cc173a128 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-06-25 18:05:53 +02:00
Jonathon Fowler c31a32140b MDL-69113 assign: save grader app workflow/marker filters correctly 2020-06-25 14:39:08 +10:00
Bas Brands ee658223ff MDL-69122 report_competency: fix clearfix
- a misplaced clearfix caused part of the recontrols to be
inaccessible
2020-06-24 09:06:21 +02:00
Jake Dallimore 061347a93a Merge branch 'MDL-68992-master_france_digital_age' of https://github.com/martignoni/moodle 2020-06-24 10:11:08 +08:00
Jake Dallimore c7d5af7d6e Merge branch 'MDL-69065-master' of git://github.com/peterRd/moodle 2020-06-24 10:11:08 +08:00
Eloy Lafuente (stronk7) a68004a433 Merge branch 'MDL-66568-master-2' of git://github.com/andrewnicols/moodle 2020-06-23 17:57:17 +02:00
Peter Dias c8388ead0f MDL-69065 course: Provide the id for the sr param
* Pass the section return id to the activity chooser
* Additional behat test to cover the case
2020-06-23 13:19:07 +08:00
Jake Dallimore bd23521ca0 Merge branch 'MDL-69021-master' of git://github.com/bmbrands/moodle 2020-06-23 11:31:08 +08:00
Adrian Greeve c557df533a Merge branch 'MDL-68841-master' of https://github.com/DinhHien0307/moodle 2020-06-23 09:39:44 +08:00
David Mudrák cdcb53a114 MDL-69099 tasks: Do not mark the non-enabled plugin's task as disabled
The `core\plugininfo\base::is_enabled()` uses three-state logic for its
return value. It can return null as a valid value as per its
documentation. We need to test for the explicit false value in this
case.

To make the attached Behat test able to identify the table, the caption
is added. It seems to be helpful for all users so I leave it displayed
without using the accesshide mechanism.
2020-06-22 17:23:10 +01:00
Bas Brands 6346cc3593 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:15:41 +02:00
Jake Dallimore 680502e4da Merge branch 'MDL-69047-master' of git://github.com/aanabit/moodle 2020-06-22 12:41:06 +08:00
Adrian Greeve 3afe61d620 Merge branch 'MDL-69077' of https://github.com/timhunt/moodle 2020-06-22 10:32:44 +08:00
AMOS bot 9272cc8498 Automatically generated installer lang files 2020-06-21 00:07:21 +00:00
Nicolas Martignoni 57a005e7c6 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-19 18:00:33 +02:00
Sara Arjona a6d724fe41 Merge branch 'MDL-69008-master' of git://github.com/junpataleta/moodle 2020-06-19 16:44:53 +02:00
Andrew Nicols 94376c6910 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
Amaia Anabitarte 088786d284 MDL-69047 core_contentbank: Hard coding status messages 2020-06-18 18:06:30 +02:00
Sara Arjona 1ab9522055 weekly on-sync release 4.0dev 2020-06-18 14:14:26 +02:00
Sara Arjona c6c6770268 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-06-18 14:14:23 +02:00
Victor Deniz Falcon e055a45160 Merge branch 'MDL-66899-log-quiz-regrade' of https://github.com/rboyatt/moodle 2020-06-18 04:16:53 +01:00
Víctor Déniz Falcón a59f03d4de Merge branch 'MDL-69060-master' of git://github.com/lucaboesch/moodle 2020-06-17 23:38:15 +01:00
Tim Hunt 5fbb14524d MDL-69077 questions: question tag capabilties are relevant 2020-06-17 13:06:57 +01:00
Jun Pataleta dff53373de Merge branch 'MDL-68890-master' of https://github.com/DinhHien0307/moodle 2020-06-17 19:53:29 +08:00
Jun Pataleta 63f06e0d96 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:05:07 +08:00
Jake Dallimore 32e9128333 Merge branch 'MDL-68215-master' of git://github.com/lucaboesch/moodle 2020-06-17 14:57:42 +08:00
Peter Dias d49d4ee47b MDL-63167 grade: Test functions update 2020-06-17 14:12:26 +08:00
Peter Dias c771b25c0f MDL-63167 grade: Deprecated gradingform_provider 2020-06-17 14:12:21 +08:00
Jun Pataleta 753f2dcfba Merge branch 'MDL-68971' of https://github.com/timhunt/moodle 2020-06-17 11:36:12 +08:00
Jun Pataleta 26f3788857 Merge branch 'MDL-67294-master' of git://github.com/mihailges/moodle 2020-06-17 10:33:55 +08:00
Andrew Nicols c7fb9fe55a MDL-66568 behat: Reset theme CSS between scenarios 2020-06-17 07:46:23 +08:00
Andrew Nicols ab5a81321a MDL-66568 behat: Support building of themes for behat 2020-06-17 07:46:23 +08:00
Charles Fulton 2c93ca61d0 MDL-69074 admin: ensure consistent default for getremoteaddrconf 2020-06-16 16:34:21 -04:00
Víctor Déniz Falcón f82fad44d7 Merge branch 'MDL-69049-master' of git://github.com/junpataleta/moodle 2020-06-16 18:05:42 +01:00
Mihail Geshoski 2e5e143061 MDL-67294 assignsubmission_file: Make sure record exists before updating 2020-06-17 00:50:22 +08:00
Jun Pataleta 3a679810d5 Merge branch 'MDL-68436' of https://github.com/timhunt/moodle 2020-06-16 14:38:44 +08:00
Jun Pataleta 3484f3e4b5 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-16 09:25:03 +08:00
Víctor Déniz Falcón a51797cc0e Merge branch 'MDL-69044' of https://github.com/stronk7/moodle 2020-06-15 17:21:49 +01:00
Víctor Déniz Falcón bc0b4ec7f4 Merge branch 'MDL-69043' of https://github.com/stronk7/moodle 2020-06-15 15:55:22 +01:00
Luca Bösch c09a294ff4 MDL-68215 block_activity_result: Format elements more nicely. 2020-06-15 15:24:46 +02:00
Luca Bösch 061893d89b MDL-69060 core_contentbank: fix contenbank typos. 2020-06-15 13:35:43 +02:00
Mathew May 1bedd8df20 MDL-63254 core_event: Remove deprecated message events 2020-06-15 11:59:34 +08:00
hiendinh de6b084925 MDL-68890 progressbar: prevent display exist file's progress bar 2020-06-15 10:55:06 +07:00
Andrew Nicols 868c7558f8 MDL-66568 core_output: Return built theme CSS 2020-06-15 10:34:40 +08:00
Eloy Lafuente (stronk7) b764343e5a MDL-69044 upgrade: add 3.9.0 separation line to all upgrade scripts 2020-06-14 13:08:09 +02:00
Eloy Lafuente (stronk7) dbe3e2dd13 MDL-69043 backup: Bump release to 4.0 2020-06-14 12:53:38 +02:00
AMOS bot edb1a9b4f3 Automatically generated installer lang files 2020-06-14 00:07:18 +00:00
Eloy Lafuente (stronk7) a2b286ce17 weekly back-to-dev release 4.0dev 2020-06-13 20:11:29 +02:00
Eloy Lafuente (stronk7) 7be8da04cd NOBUG: Change travis.yml back to master 2020-06-13 20:04:50 +02:00
Eloy Lafuente (stronk7) 500c131eb4 Moodle release 3.9 2020-06-13 20:04:49 +02:00
Eloy Lafuente (stronk7) ea24bef18a NOBUG: Change travis.yml to MOODLE_39_STABLE 2020-06-13 20:04:49 +02:00
Eloy Lafuente (stronk7) 698e225d61 Merge branch 'MDL-68632' of git://github.com/aolley/moodle 2020-06-12 19:59:55 +02:00
Victor Deniz Falcon 8dbc6ebbe3 Moodle release 3.9rc3 2020-06-12 12:32:06 +01:00
Jun Pataleta 2b263bf837 Merge branch 'MDL-69026-master' of git://github.com/andrewnicols/moodle 2020-06-12 11:58:59 +08:00
Adam Olley 9db6c361fd MDL-68632 quizaccess_seb: Limit privacy queriyes to the quiz module
Without this, joins are performed against the course_modules table purely on
the instance id - other modules can share this ID, resulting in incorrect
contexts being pulled in.
2020-06-12 12:31:01 +09:30
Andrew Nicols 8d5926bead MDL-69026 user: Correct statuses => status in test 2020-06-12 10:03:06 +08:00
Andrew Nicols 8bcf74e9bc MDL-69026 user: Wrap sub-query in brackets
It is perfectly valid to have a query like:

Match None of the following:
- Role is ANY of the following:
-- 'Teacher'
-- 'Editing teacher'
-- 'Manager'; AND
- Keyword is NONE of the following:
-- 'Kevin'

However, due to the way in which the query is constructed, this leads to
a query which includes

    WHERE NOT ef.id IS NOT NULL
    AND NOT
        u.id IN (SELECT userid FROM {role_assignments} WHERE roleid IN (...) AND contextid IN (...))
    AND NOT
        NOT (u.firstname || ' ' || u.lastname LIKE '%Kevin%')

The use of NOT NOT is valid in Postgres, MariaDB, MySQL, and MSSQL, but
not in Oracle.

To counter this when the outer jointype is of type NONE, we must wrap
each of the inner WHERE clauses in a set of brackets, which makes the
query:

    WHERE NOT ef.id IS NOT NULL
    AND NOT
        (u.id IN (SELECT userid FROM {role_assignments} WHERE roleid IN (...) AND contextid IN (...)))
    AND NOT
        (NOT (u.firstname || ' ' || u.lastname LIKE '%Kevin%'))

Whilst Oracle does not support the use of `AND NOT NOT ...`, it does support
`AND NOT (NOT ...)`
2020-06-12 10:03:06 +08:00
Sara Arjona aa6830ef99 Moodle release 3.9rc2 2020-06-11 18:05:14 +02:00
Sara Arjona 4234dc31cb Merge branch 'MDL-69022' of https://github.com/Chocolate-lightning/moodle 2020-06-11 12:50:49 +02:00
Mathew May ddb34e56d3 MDL-69022 tool_moodlenet: Disable integration by default 2020-06-11 17:25:54 +08:00
Jun Pataleta 02b7fac93d Merge branch 'MDL-69017-master' of git://github.com/andrewnicols/moodle 2020-06-11 16:59:04 +08:00
hiendinh 813c385320 MDL-68841 Modal dialogs: Wrong behavior of popup 2020-06-11 15:25:25 +07:00
Sara Arjona 057db49265 Merge branch 'MDL-69004-master' of git://github.com/rezaies/moodle 2020-06-11 10:22:38 +02:00
Jake Dallimore 28bcf61281 Merge branch 'MDL-69020-master' of git://github.com/mihailges/moodle 2020-06-11 16:18:08 +08:00
Mihail Geshoski cca4ba26c9 MDL-69020 tool_moodlenet: Modify defaultmoodlenet_desc string 2020-06-11 16:13:19 +08:00
Andrew Nicols d3bfae8fcc MDL-69017 user: Show all links should work for students 2020-06-11 15:51:41 +08:00
Jun Pataleta f2dc6313f0 Merge branch 'MDL-67070-master' of git://github.com/andrewnicols/moodle 2020-06-11 14:22:48 +08:00
Andrew Nicols 01f6be2cff Merge branch 'MDL-69006-master' of git://github.com/bmbrands/moodle 2020-06-11 12:59:26 +08:00
Jake Dallimore c53b9c9a6f Merge branch 'MDL-68991-master' of git://github.com/rezaies/moodle 2020-06-11 12:27:16 +08:00
Jake Dallimore 8aa901e7c3 Merge branch 'MDL-69010' of https://github.com/Chocolate-lightning/moodle 2020-06-11 12:01:22 +08:00
Jun Pataleta a04f9e8bf4 Merge branch 'MDL-69013-master' of git://github.com/andrewnicols/moodle 2020-06-11 11:28:31 +08:00
Andrew Nicols 4dae4b1429 Merge branch 'MDL-69002-master' of git://github.com/sarjona/moodle 2020-06-11 11:08:14 +08:00
Andrew Nicols fc99ffa1aa MDL-67070 tool_usertours: Fix assumption that tours exist 2020-06-11 11:05:27 +08:00
Jun Pataleta 49a34f1593 Merge branch 'MDL-68912' of https://github.com/rlorenzo/moodle 2020-06-11 11:01:05 +08:00
Adrian Greeve fcae8cd3cf MDL-66601 atto_image: Removing bad js build files. 2020-06-11 10:43:13 +08:00
Mathew May e5daf9c7fc MDL-69010 tool_moodlenet: Migrate default MoodleNet instance setting 2020-06-11 10:32:27 +08:00
Andrew Nicols 6414edf1f9 MDL-69013 core: Add quizaccess_safebrowser to deleted plugins 2020-06-11 09:43:38 +08:00
Adrian Greeve 0f4a9aa531 Merge branch 'MDL-66601-master' of git://github.com/mihailges/moodle 2020-06-11 09:43:07 +08:00
Andrew Nicols f938dfcae8 MDL-67070 tool_usertours: Remove old tour JSON files 2020-06-11 09:32:31 +08:00
Andrew Nicols b9310489ab MDL-67070 tool_usertours: Disable old tours 2020-06-11 09:32:31 +08:00
Shamim Rezaie 06bbbbff27 MDL-69004 core: Encourage admins to enable user feedback
As part of this commit, the default for the user feedback feature
has changed to disable.
2020-06-11 11:24:30 +10:00
Rex Lorenzo 330c871c3f MDL-68912 user: "Send a message" select all not working 2020-06-10 17:53:53 -07:00
Eloy Lafuente (stronk7) 39885e35f4 Merge branch 'MDL-68954-master' of git://github.com/mihailges/moodle 2020-06-10 23:53:35 +02:00
Eloy Lafuente (stronk7) 5364577065 Merge branch 'MDL-68994-master' of git://github.com/andrewnicols/moodle 2020-06-10 23:31:11 +02:00
Victor Deniz Falcon 034ba327d0 Merge branch 'MDL-68980-master' of git://github.com/andrewnicols/moodle 2020-06-10 21:41:56 +01:00
Jun Pataleta 15823a94c1 Merge branch 'MDL-68989-master' of git://github.com/mickhawkins/moodle 2020-06-11 00:03:54 +08:00
Sara Arjona 1826ac971a Merge branch 'MDL-68902-master' of git://github.com/ferranrecio/moodle 2020-06-10 17:57:40 +02:00
Eloy Lafuente (stronk7) 489b82b22a Merge branch 'MDL-69005' of https://github.com/paulholden/moodle 2020-06-10 17:52:53 +02:00
Ferran Recio 56d9b5f8d5 MDL-68902 mod_h5pactivity: fix result report output 2020-06-10 17:50:55 +02:00
Bas Brands b8ee31a0ce MDL-69006 repository_flickr: flickr authentication fails
- Flickr does not like useragents including the word "Bot"
2020-06-10 15:46:13 +02:00
Tim Hunt 157c85c20a MDL-68436 atto_recordrtc: only works once per page 2020-06-10 13:40:15 +01:00
Víctor Déniz Falcón 69184789b5 Merge branch 'MDL-68986-master' of git://github.com/merrill-oakland/moodle 2020-06-10 13:12:58 +01:00
Peter Dias 5c0d795bce MDL-69002 core_badges: performance update to set default sitebackpack 2020-06-10 13:02:44 +02:00
Sara Arjona 92219c8ffd 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:02:44 +02:00
Sara Arjona 3e567085a8 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:26:47 +02:00
Sara Arjona 15db4a762a 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:06:59 +02:00
Paul Holden 2d70187ade MDL-69005 cache: fix private $store access in loader. 2020-06-10 10:31:47 +01:00
Andrew Nicols 9a7bd66b4e MDL-68980 user: Add additional groupmode participants tests 2020-06-10 16:23:58 +08:00
Jake Dallimore 337e2e2b23 Merge branch 'MDL-68973' of https://github.com/stronk7/moodle 2020-06-10 16:13:57 +08:00
Jake Dallimore 2b983d29a0 Merge branch 'MDL-68977-master' of git://github.com/andrewnicols/moodle 2020-06-10 15:36:44 +08:00
Andrew Nicols eb45751b7b MDL-68994 user: Reset filterverb value when resetting filter 2020-06-10 14:19:02 +08:00
Marina Glancy 09fe2a0ce2 MDL-68980 user: Test for groupmode participants behaviour 2020-06-10 14:15:41 +08:00
Andrew Nicols 20531b30f6 MDL-68980 core_user: Show user participation group when groupmode set 2020-06-10 14:14:50 +08:00
Shamim Rezaie ce80716a8e MDL-68991 core: delete core_get_userfeedback_url webservice 2020-06-10 16:12:03 +10:00
Shamim Rezaie 292a67aede MDL-68991 core: Prevent popup blockers blocking feedback window
Some browsers like Firefox are very inflexible with window.open()
and block it if it is not instantly invoked after the user click.

Also according to https://stackoverflow.com/a/6807615 it is best
practice to replace self:: with static::
2020-06-10 16:10:53 +10:00
Shamim Rezaie 4cdcd23fb2 MDL-68931 core: No feedback link on footer if the feature is disabled 2020-06-10 16:10:53 +10:00
Sara Arjona e5a2b74d8b Merge branch 'MDL-68955' of https://github.com/Chocolate-lightning/moodle 2020-06-10 08:06:05 +02:00
Mihail Geshoski ae6712133d MDL-66601 atto_image: Set the max-height of the image selection dialogue 2020-06-10 12:13:55 +08:00
Jun Pataleta 2157207971 Merge branch 'MDL-68864-master' of git://github.com/junpataleta/moodle 2020-06-10 11:26:13 +08:00
Jun Pataleta 4baa3d1280 MDL-68864 qtype_multichoice: Rebuild clearchoice source map 2020-06-10 11:20:22 +08:00
Bas Brands 5d5153906c MDL-68864 qtype_multichoice: clearchoice button styles
- display the clearchoice link as a button to improve the way
it looks when using keyboard focus
2020-06-10 11:10:46 +08:00
Bas Brands 233eafd8eb MDL-68864 qtype_multichoice: shift focus to first option on keyboard tab
- This prevents losing focus when using keyboard navigation.
2020-06-10 11:10:46 +08:00
Bas Brands b59de78bd1 MDL-68864 qtype_multichoice: clearchoice
- Reverted changes from MDL-67901
2020-06-10 11:10:46 +08:00
Mathew May e0c41c0449 MDL-68955 mod_h5pactivity: Enable dndupload to H5P activity 2020-06-10 10:10:51 +08:00
Adrian Greeve fc9be99323 Merge branch 'MDL-68985-master' of git://github.com/sarjona/moodle 2020-06-10 09:39:45 +08:00
Jake Dallimore 233a526c95 Merge branch 'MDL-68972-master-enfix' of git://github.com/mudrd8mz/moodle 2020-06-10 09:14:46 +08:00
Jake Dallimore 3df783acf2 Merge branch 'MDL-68995' of https://github.com/paulholden/moodle 2020-06-10 08:53:21 +08:00
Jake Dallimore 11b76652a0 Merge branch 'MDL-68999-master-homemoodlenet' of git://github.com/mudrd8mz/moodle 2020-06-10 08:37:46 +08:00
Jake Dallimore be80ef1cd2 Merge branch 'MDL-68998-master' of git://github.com/marinaglancy/moodle 2020-06-10 08:33:38 +08:00
Andrew Nicols a9075379d8 MDL-68977 enrol_manual: Add pending promises to enrol modal 2020-06-10 08:16:03 +08:00
Andrew Nicols 7b3026fabe MDL-68977 core_user: Refresh table after removing all filters
Previously the update function was called for each row as it was
removed. This patch changes the behaviouro to only remove one row at at
ime.
2020-06-10 08:03:16 +08:00
David Mudrák 2223261586 MDL-68999 moodlenet: Make the default instance name translatable
Admins can change the value as they want / need. Still, it will be nice
if the default value (the name of the default MoodleNet instance) is
controlled by the language pack.

Beside that, it will allow us to more easily change the value should we
need it in the future (via the en_fix process).
2020-06-09 22:16:00 +02:00
Helen Foster 1ab405f4a2 MDL-68972 lang: Import fixed English strings (en_fix) 2020-06-09 20:56:34 +02:00
Eloy Lafuente (stronk7) e69ab798dd MDL-68973 versions: Fix other small details
Thanks to Luca Bösch and Matteo Scaramuccia that detected
these 2 minor, but ugly details in core version files:

1) Adding comments pointed to versions (3.x, 20190801...) is not
   recommended, they easily come outdated.
2) Using plugin->release in core is no sense. Core plugins belong
   to the core release.

This commit just gets rid of them. That's all.
2020-06-09 20:27:30 +02:00
Marina Glancy 8eaad10b5f MDL-68998 core_course: do not expect that assign is the first module 2020-06-09 18:59:34 +02:00
Ferran Recio 4b6e92b8e9 MDL-68902 core_h5p: add essay h5p package 2020-06-09 16:58:17 +02:00
Jun Pataleta 1495cf837e Merge branch 'MDL-68931-master' of git://github.com/rezaies/moodle 2020-06-09 22:53:04 +08:00
Eloy Lafuente (stronk7) 97800d7e70 MDL-68973 versions: main version bump 2020-06-09 16:24:58 +02:00
Eloy Lafuente (stronk7) 115cc0214f MDL-68973 versions: bump all versions and requires near release
version = 2020061500 release version
requires= 2020060900 current rc1 (week7roll1) version
2020-06-09 16:23:09 +02:00
Eric Merrill 178a914acd MDL-68986 quiz: Add back default/adv for questionsperpage setting 2020-06-09 09:24:19 -04:00
Víctor Déniz Falcón b28f530a84 Merge branch 'MDL-68984-master' of git://github.com/mickhawkins/moodle 2020-06-09 13:45:40 +01:00
Sara Arjona 982a9a5919 MDL-68985 core_h5p: fix issue with composed code languages
Composed code languages, such as 'Spanish, Mexican' are different
in H5P and Moodle:
- In H5P, they use '-' to separate the language from the country.
For instance: es-mx.
- However, in Moodle, they have '_' instead of '-'. For example: es_mx.
2020-06-09 14:38:27 +02:00
Víctor Déniz Falcón 6ea3c69c37 Merge branch 'MDL-68953-master' of git://github.com/lameze/moodle 2020-06-09 13:18:46 +01:00
Paul Holden 0759da9ecf 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 12:48:50 +01:00
Sara Arjona 71a34a039f Moodle release 3.9rc1 2020-06-09 12:42:39 +02:00
Tim Hunt 5f26bdc5e9 MDL-68971 webservice: errors should give enough info to find the problem 2020-06-09 11:09:09 +01:00
Shamim Rezaie e505618f08 MDL-68931 core: No feedback link on footer if the feature is disabled 2020-06-09 19:05:16 +10:00
Russell Boyatt 8a2d8ec472 MDL-66899 quiz: Adding test for regrading quiz event. 2020-06-09 09:50:34 +01:00
Michael Hawkins f2972e1dcb MDL-68989 user: Apply none filterset join correctly on keyword filter
Also improved behat coverage for filterset joins and keyword filtering.
2020-06-09 15:49:31 +08:00
Andrew Nicols cb2f672525 MDL-68977 user: Add pendingPromise to interactions 2020-06-09 14:36:08 +08:00
Andrew Nicols 8503e0ee53 MDL-68977 user: Do not refresh participants table on load 2020-06-09 14:35:39 +08:00
Andrew Nicols dd9dea6148 MDL-68977 user: Normalise participant table filterdata 2020-06-09 14:35:21 +08:00
Mihail Geshoski e8017491d1 MDL-68954 repository_flickr_public: Return only photo media 2020-06-09 12:36:59 +08:00
Michael Hawkins 8ddfc963b9 MDL-68984 user: Ensure first/last name filtering is always applied
This ensures the firstname and surname filtering is applied in addition
to any other filtering, rather than using the filterset join type.
2020-06-09 12:36:11 +08:00
Mihail Geshoski e58db3a8fd MDL-68954 repository_flickr_public: Handle when photo cannot be found 2020-06-09 12:34:25 +08:00
Andrew Nicols c8c1bccf08 Merge branch 'MDL-68946' of https://github.com/Chocolate-lightning/moodle 2020-06-09 11:48:00 +08:00
Jun Pataleta ea9a854bb6 Merge branch 'MDL-68962-master' of git://github.com/sarjona/moodle 2020-06-09 11:30:37 +08:00
Andrew Nicols efc3dfff47 MDL-68977 core_table: Do not update dynamic tables on nullop
When a setting is added/removed (i.e. an empty filter is removed) and
there is no change, then we should treat this is a null-op and not
refresh the table unnecessarily.
2020-06-09 11:21:04 +08:00
Andrew Nicols f2d6a96494 Merge branch 'MDL-68956' of https://github.com/Chocolate-lightning/moodle 2020-06-09 08:51:38 +08:00
Jake Dallimore b0ae939af9 Merge branch 'MDL-68919-master' of git://github.com/bmbrands/moodle 2020-06-09 08:36:06 +08:00
Víctor Déniz Falcón 19ec0b7bd4 Merge branch 'MDL-68963-master' of git://github.com/bmbrands/moodle 2020-06-08 22:03:39 +01:00
Russell Boyatt fad72d7177 MDL-66899 quiz: Log a regrading event when quiz attempt is regraded. 2020-06-08 20:44:23 +01:00
Sara Arjona 0e57729d5b Merge branch 'MDL-68936-master' of git://github.com/aanabit/moodle 2020-06-08 20:31:53 +02:00
Amaia Anabitarte 7be38070d4 MDL-68936 core_contentbank: Behat test for editing capabilities 2020-06-08 16:40:10 +02:00
Amaia Anabitarte 0633e60a91 MDL-68936 core_contentbank: Checking manage permissions to allow editing 2020-06-08 16:40:10 +02:00
Simey Lameze b294e0fe5c MDL-68953 core: remove close button from campaign block 2020-06-08 21:10:32 +08:00
Bas Brands 024a0cc7c2 MDL-68963 qtype_calculatedmulti: show question content inline
- Applies the CSS changes added in MDL-68761 for the multichoice qtype
so questions don't start on a new line
2020-06-08 15:03:37 +02:00
Bas Brands 1ce86e3ada MDL-68963 qtype_multichoice: better styles for safari
- Input type radio needs a width attribute when it is in a flexbox
container
2020-06-08 15:02:59 +02:00
Bas Brands 510ab5e32c MDL-68963 theme_boost: fix safari focus outline for radio and checkbox
- safari does not support the custom styles for radios and
checkboxes added in MDL-67874
2020-06-08 14:30:49 +02:00
Sara Arjona ffd6465029 MDL-68962 contentbank: get sortbyX strings from the correct place 2020-06-08 12:00:22 +02:00
Jun Pataleta 5a862ca1a2 Merge branch 'MDL-68951-master' of git://github.com/andrewnicols/moodle 2020-06-08 17:49:02 +08:00
Mathew May 329d3a8de5 MDL-68946 tool_task: Make clionly string handling more consistent 2020-06-08 17:11:57 +08:00
Bas Brands f9a99e0eaa MDL-68919 theme_boost: prevent nav-tabs collapsing on safari
- Flexbox seems to have an issue on safari which shows when using
the activity chooser on mobile. this might be Flexbug moodle#14 listed
on https://github.com/philipwalton/flexbugs
2020-06-08 10:14:01 +02:00
Jun Pataleta eee5661146 Merge branch 'MDL-68916-master' of git://github.com/mihailges/moodle 2020-06-08 14:25:54 +08:00
Mihail Geshoski 36c3eb0438 MDL-68916 mod_h5pactivity: Fix duplicated user error in attempts report 2020-06-08 14:17:10 +08:00
Jake Dallimore d7ffa840cc Merge branch 'MDL-68952-master' of git://github.com/mihailges/moodle 2020-06-08 14:09:14 +08:00
Mathew May 39bc6c4c2e MDL-68956 mod_h5pactivity: Move templates to L2 namespaces 2020-06-08 12:50:03 +08:00
Adrian Greeve 5244420b1b Merge branch 'MDL-68930-master' of git://github.com/cescobedo/moodle 2020-06-08 11:47:44 +08:00
Jake Dallimore 831e1d86c6 Merge branch 'MDL-68929-master' of git://github.com/mihailges/moodle 2020-06-08 11:11:16 +08:00
Andrew Nicols 99de0bb062 Merge branch 'MDL-68918-master' of git://github.com/ferranrecio/moodle 2020-06-08 10:47:24 +08:00
Ferran Recio 346c51690c MDL-68873 core_h5p: fix editor H5P file update 2020-06-08 10:44:23 +08:00
Andrew Nicols 2450035801 Merge branch 'MDL-68899-master' of git://github.com/mihailges/moodle 2020-06-08 10:29:02 +08:00
Jun Pataleta 1ac08a2de6 Merge branch 'MDL-68950' of https://github.com/paulholden/moodle 2020-06-08 10:24:05 +08:00
Adrian Greeve 8d20e3c688 Merge branch 'MDL-68922-master' of git://github.com/sarjona/moodle 2020-06-08 10:16:53 +08:00
Jake Dallimore 5c361ed9af Merge branch 'MDL-68917-master' of git://github.com/sarjona/moodle 2020-06-08 09:41:27 +08:00
Andrew Nicols efa490c61f MDL-68951 table: Page numbers are 1-indexed, not 0 2020-06-08 09:35:39 +08:00
Andrew Nicols eb087fc5de MDL-68951 user: Add appropriate exceptions for table/participants 2020-06-08 09:35:39 +08:00
Mihail Geshoski c2327a2679 MDL-68952 tool_moodlenet: Modify enablemoodlenet_desc string 2020-06-08 09:31:11 +08:00
Mihail Geshoski 159500d444 MDL-68899 theme_classic: Fix dashboard course cards rendering
Co-authored-by: Bas Brands <bas@moodle.com>
2020-06-08 09:14:21 +08:00
Paul Holden fb6b7e8a42 MDL-68950 core: add Moodlenet tool to standard plugin list. 2020-06-07 22:44:00 +01:00
Mihail Geshoski b7ecc104fe MDL-68929 core_filepicker: Fix radio button alignment 2020-06-07 12:13:37 +08:00
Russell Boyatt 747f5ba09b MDL-58926 quiz: Addition of AJAX based quiz timer. 2020-06-06 17:28:02 +01:00
Eloy Lafuente (stronk7) bbb7dfc62e Moodle release 3.9beta 2020-06-06 18:16:16 +02:00
Eloy Lafuente (stronk7) 113b27eda0 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-06-06 18:16:12 +02:00
AMOS bot a51705c8b1 Automatically generated installer lang files 2020-06-06 00:07:18 +00:00
Sara Arjona 4abb69f588 Merge branch 'MDL-68745-master-fix' of github.com:sarjona/moodle 2020-06-05 22:17:59 +02:00
Sara Arjona 515bc8f4e0 MDL-68745 user: remove empty line 2020-06-05 21:57:24 +02:00
Sara Arjona 6ddab9d6d3 Merge branch 'MDL-68745-master-2' of git://github.com/mickhawkins/moodle 2020-06-05 21:30:07 +02:00
Sara Arjona 5eb78045d4 MDL-68704 h5plib_v124: upgrade JQuery version to 1.12.4 2020-06-05 19:44:38 +01:00
Eloy Lafuente (stronk7) f6128f3919 Merge branch 'MDL-68888-master-enfix' of git://github.com/mudrd8mz/moodle 2020-06-05 19:21:43 +02:00
cescobedo 00ae91688d MDL-68930 mod_h5pactivity: Check submit cap when tracking is enabled 2020-06-05 17:08:47 +02:00
Ferran Recio 2bdd6b120c MDL-68918 mod_h5pactivity: add context to get_h5pactivities_by_courses 2020-06-05 14:27:38 +02:00
Sara Arjona 84e8bc4915 weekly release 3.9dev+ 2020-06-05 13:24:12 +02:00
Sara Arjona d85980fd85 NOBUG: Fixed SVG browser compatibility 2020-06-05 13:24:10 +02:00
Michael Hawkins e1e5766940 MDL-68745 lib: Improved docblock descriptions for alpha PARAM types 2020-06-05 17:50:54 +08:00
Sara Arjona c0ed1a250e Merge branch 'MDL-68933-master' of git://github.com/junpataleta/moodle 2020-06-05 11:35:42 +02:00
Jun Pataleta ee8a4fbb95 MDL-68933 core: Use get_config() to fetch theme version number
Fetching the theme version number via get_component_version() which
requires lib/adminlib.php unnecessarily increases memory consumption.
Using get_config() is more direct and simpler.
2020-06-05 16:19:02 +08:00
David Mudrák 6918ca6a4e MDL-68888 lang: Use the fixed spelling in the Behat tests, too 2020-06-05 09:33:29 +02:00
Adrian Greeve be812a064b Merge branch 'MDL-68826-master' of git://github.com/ferranrecio/moodle 2020-06-05 15:24:26 +08:00
Sara Arjona 4c2cdbe261 MDL-68922 core_h5p: upgrade content with newer libraries
The H5P editor always uses the latest libraries version.
Besides, H5P has a mechanism for upgrading content created
using older libraries. So, in order to be able to edit
existing content created with older libraries, we can assume
the library may change (for instance, from
"Course presentation 1.20" to "Course presentation 1.22")
because the $content->h5plibrary contains both (machinename and
major/minor version).
2020-06-05 09:17:06 +02:00
Helen Foster 98c882132d MDL-68888 lang: Import fixed English strings (en_fix)
Significant string changes: userdata, userdata_help, keptroles,
keptroles_help in core_backup - Clearer wording about how the settings
work.
2020-06-05 08:33:55 +02:00
Ferran Recio dd75c98889 MDL-68826 mod_h5pactivity: fix content bank link 2020-06-05 08:31:00 +02:00
Adrian Greeve ac69c0eb96 Merge branch 'MDL-68826-master' of git://github.com/ferranrecio/moodle 2020-06-05 13:35:03 +08:00
Jun Pataleta 618b13e1f5 Merge branch 'MDL-67883-squash' of https://github.com/Chocolate-lightning/moodle 2020-06-05 11:52:36 +08:00
Adrian Greeve d1b2d3f36f Merge branch 'MDL-67773-master' of https://github.com/radzisze/moodle 2020-06-05 11:47:42 +08:00
Jake Dallimore b1e6d8b86f MDL-67883 tool_moodlenet: Add MoodleNet to core 2020-06-05 11:47:42 +08:00
Mathew May 16d77f1884 MDL-67883 core: Make core ready for MoodleNet. 2020-06-05 11:47:42 +08:00
Jake Dallimore 4925924f0f Merge branch 'MDL-68761-master' of git://github.com/bmbrands/moodle 2020-06-05 10:23:13 +08:00
Víctor Déniz Falcón 88036713a5 MDL-68641 core_h5p: test dropped because the tested method was deleted 2020-06-04 19:27:59 +01:00
Anthony Radziszewski 34cd22860d MDL-67773 course: Make sure tags are enabled before logging the setting. 2020-06-04 11:41:28 -06:00
Ferran Recio 7f6026323d MDL-68826 mod_h5pactivity: content bank message in form 2020-06-04 18:41:05 +02:00
Víctor Déniz Falcón 069ae9134f Merge branch 'MDL-68905-master' of git://github.com/sarjona/moodle 2020-06-04 16:22:10 +01:00
Eloy Lafuente (stronk7) ce8201c876 Merge branch 'MDL-68076-master-4' of git://github.com/rezaies/moodle 2020-06-04 16:31:39 +02:00
Sara Arjona 9df9251c96 MDL-68917 core_h5p: use the correct libraryUrl
The libraryUrl was empty (because ->out was missing)
and pointing to the wrong URL (because 'core' is not required,
because it's added by the method).
2020-06-04 14:28:05 +02:00
Víctor Déniz Falcón 96a4d3f309 Merge branch 'MDL-68641-master' of git://github.com/aanabit/moodle 2020-06-04 12:46:11 +01:00
Amaia Anabitarte 747f6012e4 MDL-68641 contenttype_h5p: Libraries permissions tests 2020-06-04 13:44:23 +02:00
Amaia Anabitarte 2721dd3a63 MDL-68641 contenttype_h5p: Showing permission errors 2020-06-04 13:44:23 +02:00
Amaia Anabitarte 6157f5930f MDL-68641 core_h5p: Fixing capability checks in ajax.php 2020-06-04 13:44:23 +02:00
Shamim Rezaie 20146e3f39 MDL-68076 core: Fix the non cross DB query 2020-06-04 19:55:35 +10:00
Jake Dallimore aa40de942a Merge branch 'MDL-68800-lti-gbs-patch-fixes' of https://github.com/cengage/moodle 2020-06-04 14:55:58 +08:00
Michael Hawkins f32f25b89d MDL-68745 lib: Updated table filters to support non-English characters
Added support for non-English first/last name filtering.
2020-06-04 12:48:03 +08:00
Andrew Nicols 444ae8c8f0 MDL-68612 core_table: Pending checks for dyanmic updates 2020-06-04 10:47:27 +08:00
Andrew Nicols 2edcba39a2 Merge branch 'MDL-68076-master-4' of git://github.com/rezaies/moodle 2020-06-04 10:04:58 +08:00
Shamim Rezaie 363aaf6eaa MDL-68076 core: log user's click on feedback links 2020-06-04 11:57:26 +10:00
Shamim Rezaie a3a9539bd7 MDL-68076 core: display the feedback link on footer 2020-06-04 11:57:24 +10:00
Shamim Rezaie d74a826829 MDL-68076 core: display call to feedback on user dashboard 2020-06-04 11:38:49 +10:00
Shamim Rezaie 6872c96569 MDL-68076 core: webservice to get the feedback url 2020-06-04 11:38:46 +10:00
Adrian Greeve 089c9d925c Merge branch 'MDL-68894-master' of git://github.com/andrewnicols/moodle 2020-06-04 08:43:53 +08:00
Andrew Nicols 2eba6e42a5 Merge branch 'MDL-68825-master' of git://github.com/ferranrecio/moodle 2020-06-04 08:40:18 +08:00
Adrian Greeve 1d7663a341 Merge branch 'MDL-68203-decode-url-quiz-restore-master' of https://github.com/ilya-catalyst/moodle 2020-06-04 08:29:58 +08:00
Sara Arjona cbe0bb91fd MDL-68905 core_badges: remove issuer details from edit page
In MDL-68746 issuer details fields were removed from the badges
form, because they are filled from the site settings.
This is a regression because these fields should be removed also
from the edit page.
2020-06-03 19:38:09 +02:00
Sara Arjona 688ba22d6b Merge branch 'MDL-68871-master' of git://github.com/ferranrecio/moodle 2020-06-03 18:48:01 +02:00
Víctor Déniz Falcón 0e6d73245b Merge branch 'MDL-68904-master' of git://github.com/sarjona/moodle 2020-06-03 16:59:43 +01:00
Sara Arjona fa1a173302 Merge branch 'MDL-68833-master' of git://github.com/andrewnicols/moodle 2020-06-03 17:57:57 +02:00
Sara Arjona 4106d26354 Merge branch 'MDL-68796-master' of git://github.com/bmbrands/moodle 2020-06-03 14:26:53 +02:00
Sara Arjona 7e05ece1b3 Merge branch 'MDL-68772-master' of https://github.com/Clyxz/moodle 2020-06-03 13:17:32 +02:00
Sara Arjona 881dca064d MDL-68904 core_h5p: order libraries by title 2020-06-03 12:01:59 +02:00
Bas Brands 40d1487bf5 MDL-68761 question_multichoice: show question content inline 2020-06-03 11:02:59 +02:00
Andrew Nicols 84eb0a3e14 MDL-68894 user: Wrap bottom enrol buttons like top
The div wrapping the enrolment buttons has been updated in MDL-67743 to
use a flexbox grid. It was also updated to add a data- attribute
relating to the participants table id.

The bottom enrol button line should have been updated in the same way.
2020-06-03 16:53:00 +08:00
Andrew Nicols 0e606192ef MDL-68833 theme_boost: Add missing js tags 2020-06-03 16:33:43 +08:00
Shamim Rezaie 1a4c8e0275 MDL-68076 core: webservice to record feedback actions users take 2020-06-03 17:43:52 +10:00
Shamim Rezaie 3fecf7b547 MDL-68076 core: Introduced \core\notification::cta() 2020-06-03 17:43:52 +10:00
Shamim Rezaie d21ae8c297 MDL-68076 core: Added bullhorn icon to the core icon map 2020-06-03 17:43:52 +10:00
Shamim Rezaie 2cbe9eaf42 MDL-68076 core: new admin settings related to user feedback 2020-06-03 17:43:52 +10:00
Jun Pataleta 7fcdd9d983 Merge branch 'MDL-68612-master-integration' of git://github.com/mickhawkins/moodle 2020-06-03 15:39:36 +08:00
Sara Arjona ba2d0b679a Merge branch 'MDL-68320-master' of git://github.com/lameze/moodle 2020-06-03 09:29:00 +02:00
Simey Lameze ed7cd552f8 MDL-68320 core: add campaign content to notifications page 2020-06-03 14:49:01 +08:00
Andrew Nicols 084c955e49 MDL-68612 user: Set the initial filter on page load 2020-06-03 14:29:22 +08:00
Michael Hawkins 5187e7c515 MDL-68612 core: Behat tests updated to support new participants filter
Existing tests have been updated, rewritten and/or expanded to support
the new participants filter.
2020-06-03 14:29:22 +08:00
Michael Hawkins 67bf30a549 MDL-68612 user: Created behat step to set user course lastaccess data 2020-06-03 14:29:22 +08:00
Jun Pataleta 3a2363c063 Merge branch 'MDL-68840-master' of git://github.com/bmbrands/moodle 2020-06-03 14:09:03 +08:00
Peter Burnett b4623c8975 MDL-68820 web: Added referrer policy header setting 2020-06-03 15:18:19 +10:00
Jake Dallimore b556159541 Merge branch 'MDL-68875' of https://github.com/stronk7/moodle 2020-06-03 12:28:51 +08:00
Jake Dallimore e714288d90 Merge branch 'MDL-68898-master' of git://github.com/bmbrands/moodle 2020-06-03 12:10:38 +08:00
Jake Dallimore aa52fde8f5 Merge branch 'MDL-68163-master' of https://github.com/syxton/moodle 2020-06-03 12:06:06 +08:00
Bas Brands 355af8f84d MDL-68833 theme_boost: prevent having to call init on the loader
This was added in a previous master-only issue and breaks backwards compatability with child themes.

There is no need to have the init function here.
2020-06-03 09:21:48 +08:00
Andrew Nicols 23c60c18ef MDL-68833 theme_boost: Stop overriding popover triggers
The trigger specified in JS overrides any `data-trigger` in the DOM,
which changed the behaviour of Popovers.
2020-06-03 09:21:07 +08:00
Andrew Nicols 721c29ff2d MDL-68833 theme_boost: Add ./pending event checks back 2020-06-03 09:17:37 +08:00
Adrian Greeve 6a7a264e01 Merge branch 'MDL-68891-master' of git://github.com/mihailges/moodle 2020-06-03 09:10:32 +08:00
Adrian Greeve 311d28c71b Merge branch 'MDL-68883-master' of git://github.com/andrewnicols/moodle 2020-06-03 08:38:33 +08:00
Andrew Nicols 9777b0fa19 Merge branch 'MDL-68312-master-2' of git://github.com/rezaies/moodle 2020-06-03 08:00:57 +08:00
Victor Deniz Falcon 7e7b329afc Merge branch 'MDL-68578-master' of git://github.com/aanabit/moodle 2020-06-03 00:35:10 +01:00
Ferran Recio 3af22ad962 MDL-68871 mod_h5pactivity: fix webservice get_results return types 2020-06-02 17:23:56 +02:00
Martin Hanusch 398f0ae110 MDL-68772 mod_quiz: Navigation overlay fix 2020-06-02 16:50:02 +02:00
Bas Brands f31d33c2de MDL-68898 core_contentbank: add link attribute to contentbank items
- this will reveil the fullname of the item which is useful when
the name is truncated
2020-06-02 16:20:48 +02:00
Amaia Anabitarte 45bff7f9d6 MDL-68578 contenttype_h5p: Behat test for H5P editor changes 2020-06-02 16:17:22 +02:00
Amaia Anabitarte 6219740b8e MDL-68578 contenttype_h5p: Add name attribute to editor iframe
The switch_to_class_iframe step needs a name attribute for the iframe.
H5P third party library does not add that name attribute, so we add it.
2020-06-02 16:17:22 +02:00
Amaia Anabitarte 3149defec1 MDL-68578 contenttype_h5p: Save content title from uploaded H5P file 2020-06-02 16:17:22 +02:00
Eloy Lafuente (stronk7) de245163e3 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:40 +02:00
Matt Davidson 887679e510 MDL-68163 gradebook: add grade item duplication 2020-06-02 09:28:29 -04:00
Sara Arjona 111b293f61 weekly release 3.9dev+ 2020-06-02 13:03:08 +02:00
Sara Arjona a7f6a60ae4 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-06-02 13:03:05 +02:00
Ferran Recio 3db7a65e15 MDL-68825 theme_boost: fixing recently accessed items block icons 2020-06-02 12:22:15 +02:00
Ferran Recio 90d8fe1532 MDL-68825 mod_h5pactivity: fixing svg icon size 2020-06-02 12:22:15 +02:00
Bas Brands 94fd778dbf MDL-68840 mod_quiz: random question in question list css fix 2020-06-02 10:54:54 +02:00
Mihail Geshoski 5c9c1534a1 MDL-68891 theme_boost: Fix go to top link position on horizontal scroll 2020-06-02 16:45:46 +08:00
Andrew Nicols 2ba031f0d6 MDL-68793 core_table: Version bump for renamed WS 2020-06-02 11:57:40 +08:00
Andrew Nicols b2caa508b0 Merge branch 'MDL-68793-master' of git://github.com/lameze/moodle 2020-06-02 11:56:31 +08:00
Simey Lameze 1179f07d3c MDL-68793 core_table: fix WS name to comply with guidelines 2020-06-02 11:49:04 +08:00
Andrew Nicols cd61a8ad3b Merge branch 'MDL-68821' of https://github.com/Chocolate-lightning/moodle 2020-06-02 11:14:00 +08:00
Mathew May e74bcf19f3 MDL-68821 course: Add a attr check for the chooser 2020-06-02 11:11:15 +08:00
Adrian Greeve 823a01ad13 Merge branch 'MDL-68828-master' of git://github.com/bmbrands/moodle 2020-06-02 09:36:37 +08:00
Andrew Nicols 4d1ec7c2a7 Merge branch 'MDL-67518' of https://github.com/stronk7/moodle 2020-06-02 09:14:00 +08:00
Adrian Greeve ce67b300a4 Merge branch 'MDL-68723-master' of git://github.com/mihailges/moodle 2020-06-02 08:38:35 +08:00
Andrew Nicols b81bbc126a MDL-68883 filter_displayh5p: Ensure wwwroot is preg_quoted properly
The character used as a preg_* delimter is the tilde (~) char, but this
was not passed into the `preg_quote()` when taking the user input
($CFG->wwwroot).

As a result, any site which uses a userdir fails to parse the regexp.
2020-06-02 08:23:15 +08:00
Eloy Lafuente (stronk7) 054c76691b Merge branch 'MDL-63284-master' of https://github.com/Clyxz/moodle 2020-06-02 00:25:04 +02:00
Eloy Lafuente (stronk7) 703d8e2066 Merge branch 'MDL-68866-master' of https://github.com/mchurchward/moodle 2020-06-02 00:13:56 +02:00
Eloy Lafuente (stronk7) b2cc7d93f3 Merge branch 'MDL-68844-master' of https://github.com/roland04/moodle 2020-06-02 00:08:35 +02:00
Víctor Déniz Falcón 386a1c5595 Merge branch 'MDL-68353-master' of git://github.com/rezaies/moodle 2020-06-01 16:45:27 +01:00
Victor Deniz Falcon 877a925c6e Merge branch 'MDL-68861-master' of git://github.com/vmdef/moodle 2020-06-01 08:11:48 +01:00
cescobedo 7e5a395854 MDL-68861 core_contentbank: Fix translation in add button 2020-06-01 08:05:42 +01:00
Shamim Rezaie f806ee8e42 MDL-68353 theme_classic: Update filepicker xpath selector 2020-06-01 00:14:10 +10:00
AMOS bot b2489825a0 Automatically generated installer lang files 2020-05-30 00:07:14 +00:00
Claude Vervoort c93c711ab0 MDL-68800 mod_lti: create gbs only for restored activity 2020-05-29 17:46:07 -04:00
Martin Hanusch 08fe534986 MDL-63284 question: Moving questions with tags disabled bug fix 2020-05-29 16:42:04 +02:00
Sara Arjona 0641366181 Merge branch 'MDL-68858-master' of git://github.com/vmdef/moodle 2020-05-29 16:30:32 +02:00
Jun Pataleta 96dc92f099 Merge branch 'MDL-68353-master' of git://github.com/rezaies/moodle 2020-05-29 22:26:03 +08:00
Eloy Lafuente (stronk7) e4ca875954 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:01 +02:00
Ferran Recio 709cab79ed MDL-68826 behat: new step I close all opened windows 2020-05-29 13:34:13 +02:00
Víctor Déniz Falcón f30d1fd6c6 MDL-68858 core_contentbank: added scrollable dropdown and missing icons 2020-05-29 11:57:01 +01:00
Sara Arjona 2e324c14bf weekly release 3.9dev+ 2020-05-29 12:52:25 +02:00
Sara Arjona 78cc20d266 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-05-29 12:52:22 +02:00
Shamim Rezaie dce43c7677 MDL-68353 test: Update existing tests to work with file elements 2020-05-29 14:50:35 +10:00
Shamim Rezaie 58994fe8bb MDL-68353 test: Update filemanager/filepicker xpath selector 2020-05-29 14:50:35 +10:00
Shamim Rezaie 9b6efe3aea MDL-68353 test: get_field_locator to support custom field labels 2020-05-29 14:50:35 +10:00
Shamim Rezaie 9c60fd18a7 MDL-68353 form: filepicker label fix 2020-05-29 14:50:32 +10:00
Shamim Rezaie 4ceff26fdf MDL-68353 admin: Not use label tag in admin setting elements when needed 2020-05-29 14:37:05 +10:00
Shamim Rezaie 65b73df1c9 MDL-68353 message: enclose privacy settings within a fieldset 2020-05-29 14:37:05 +10:00
Shamim Rezaie 08be893a36 MDL-68353 core: replace invalid labels with div 2020-05-29 14:37:05 +10:00
Shamim Rezaie f792b0ace4 MDL-68353 form: filemanager label fix 2020-05-29 14:37:01 +10:00
Michael Hawkins c36f37dfb4 MDL-68612 user: Fixed delete participants filter row execution order
This ensures that when deleting the penultimate filter, the filterset
join type is reset before the filters are re-applied.
2020-05-29 12:18:39 +08:00
Michael Hawkins 3d60881d5d MDL-68612 user: Participants filter row accessibility improvements
More clearly defining each filter row and its ability to remove
filter selections for screen readers.
2020-05-29 12:18:39 +08:00
Michael Hawkins 03cb6064ea MDL-68612 user: Unified filter deprecations - renderer and renderable 2020-05-29 12:18:39 +08:00
Michael Hawkins 2396e3156f MDL-68612 user: Unified filter deprecations - related library functions 2020-05-29 12:13:26 +08:00
Jun Pataleta 61dac48752 Merge branch 'MDL-64175-master' of git://github.com/sarjona/moodle 2020-05-29 12:01:50 +08:00
Jun Pataleta 323f5f46c7 Merge branch 'MDL-68855-master' of git://github.com/cescobedo/moodle 2020-05-29 11:48:46 +08:00
Shamim Rezaie 5dad4a95ac MDL-68353 form: Only include the size attribute if there is a size set 2020-05-29 13:17:08 +10:00
Shamim Rezaie c2e48a1d85 MDL-68353 form: Removed the size attribute
The size attribute does not work with the checkbox input type.
2020-05-29 13:17:08 +10:00
Shamim Rezaie e2aefa3ba8 MDL-68353 core: do not output empty labels 2020-05-29 13:17:08 +10:00
Shamim Rezaie 1b4acd4f3f MDL-68353 core: Set aria-label for close buttons on YUI dialogues 2020-05-29 13:17:08 +10:00
Jake Dallimore cfe32a7caf Merge branch 'MDL-68802-master' of https://github.com/HuongNV13/moodle 2020-05-29 10:53:57 +08:00
Michael Hawkins f626308193 MDL-68612 user: Unified filter deprecations - mustache template 2020-05-29 10:10:33 +08:00
Michael Hawkins 9e8aa94b88 MDL-68612 user: Unified filter deprecations - JavaScript 2020-05-29 10:10:33 +08:00
Michael Hawkins 624635fb02 MDL-68612 core: Unified filter deprecations - language string 2020-05-29 10:10:33 +08:00
Michael Hawkins 9e791ff7f5 MDL-68612 lib: Reverting filter/filterset default join types to match UI
These had temporarily been set to ALL for consistency while the unified
filter remained in use. Now that is being replaced with the new UI, it
can be returned to its intended default.
2020-05-29 10:10:33 +08:00
Michael Hawkins d85315ee8c MDL-68612 user: Update participants group filtering to enforce groups
This is required to ensure regardless of user applied filters, only
members of groups visible to the user are ever fetched. This also
includes a fix to remove the groups filter option where no groups
mode is applied.
2020-05-29 10:10:33 +08:00
Michael Hawkins d53dd31f05 MDL-68612 user: Remove unified filter from participants page 2020-05-29 10:10:33 +08:00
Mike Churchward 9e8e75a05a MDL-68866 accesslib: Fixing parameter documentation. 2020-05-28 22:01:22 -04:00
AMOS bot c5bffc445a Automatically generated installer lang files 2020-05-29 00:07:42 +00:00
Sara Arjona 936bc084fd Merge branch 'MDL-68854-master' of git://github.com/vmdef/moodle 2020-05-28 18:11:35 +02:00
Sara Arjona 471cc93a45 Merge branch 'MDL-68583-master-fix' of github.com:sarjona/moodle 2020-05-28 17:58:51 +02:00
Sara Arjona 582481c3e9 MDL-68583 core_course: add missing spaces 2020-05-28 17:57:26 +02:00
Sara Arjona f27e579cdd Merge branch 'MDL-68583-master' of https://github.com/kabalin/moodle 2020-05-28 17:42:52 +02:00
Víctor Déniz Falcón 37f2c91a8c Merge branch 'MDL-68209-master-2' of git://github.com/bmbrands/moodle 2020-05-28 16:37:21 +01:00
Sara Arjona 2b860436c9 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:28:37 +02:00
cescobedo ec853bef8d MDL-68855 mod_h5pactivity: Add itemid to the package URL 2020-05-28 15:54:30 +02:00
Ruslan Kabalin 4993775900 MDL-68583 core_course: Fix category delete action menu.
Deletion form offers user a deletion with contents move option, it is
available when full deletion is not permitted. Action menu should take
this into account too and allow user to reach the form.
2020-05-28 14:30:04 +01:00
Víctor Déniz Falcón d4af0f4a74 MDL-68854 repository_contentbank: add size to content nodes 2020-05-28 13:30:38 +01:00
Víctor Déniz Falcón db1fb23ce2 Merge branch 'MDL-67813-master-1' of git://github.com/mihailges/moodle 2020-05-28 13:00:16 +01:00
Huong Nguyen 81d7fd7a80 MDL-68802 qtype_ddimageortext: issue related to keyboard navigation 2020-05-28 18:03:11 +07:00
Eloy Lafuente (stronk7) 6f56e743ed Merge branch 'MDL-68753-master-enfix' of git://github.com/mudrd8mz/moodle 2020-05-28 13:01:39 +02:00
Víctor Déniz Falcón a987c54539 Merge branch 'MDL-68746-master-fix' of git://github.com/sarjona/moodle 2020-05-28 11:46:39 +01:00
Sara Arjona 87fd36a696 Merge branch 'MDL-68244' of https://github.com/Chocolate-lightning/moodle 2020-05-28 12:42:39 +02:00
Sara Arjona e757f9c598 Merge branch 'MDL-68565' of https://github.com/paulholden/moodle 2020-05-28 12:00:21 +02:00
Paul Holden 3bd9e1e8d2 MDL-68565 tool_usertours: account for optional config in WS response. 2020-05-28 10:51:50 +01:00
Sara Arjona dcbc830cfa MDL-68746 core_badges: fix behat error with issuername 2020-05-28 11:20:46 +02:00
Shamim Rezaie 97cf42e0ef 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-05-28 19:18:38 +10:00
Shamim Rezaie 21d1a03b51 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-05-28 19:18:38 +10:00
Shamim Rezaie dfb326a8c6 MDL-68312 gradereport_grader: Remove adjacent links to the same URL 2020-05-28 19:18:38 +10:00
Shamim Rezaie cc0c1e2817 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-05-28 19:18:38 +10:00
Shamim Rezaie 96896e0dd7 MDL-68312 gradereport_grader: Use caption instead of summary in table
The summary attribute on the table element is obsolete.
2020-05-28 19:18:38 +10:00
Eloy Lafuente (stronk7) f2e6b797b9 Merge branch 'MDL-68789-master' of git://github.com/crazyserver/moodle 2020-05-28 10:46:25 +02:00
Adrian Greeve 521b524368 Merge branch 'MDL-66911-master-fix' of git://github.com/junpataleta/moodle 2020-05-28 16:23:13 +08:00
Jun Pataleta a996318c9d MDL-66911 files: Update $CFG->licenses when adding/deleting licenses
* When creating custom licenses, the list of active licenses
  ($CFG->licenses) also needs to be updated. Same when a custom license
  is being deleted.
2020-05-28 16:15:15 +08:00
Jun Pataleta 1389465c29 MDL-66911 files: Use proper function for fetching enabled licenses 2020-05-28 15:23:38 +08:00
Jun Pataleta 4eaa7269a6 MDL-66911 files: Format full name of custom licenses 2020-05-28 15:20:14 +08:00
Pau Ferrer Ocaña aafe220a7b MDL-68789 behat: Rename the app from Moodle Mobile to Moodle app 2020-05-28 08:38:08 +02:00
Jake Dallimore 30604f81a8 Merge branch 'MDL-67903-master' of git://github.com/bmbrands/moodle 2020-05-28 13:58:50 +08:00
Jun Pataleta 0a1b55ce36 Merge branch 'MDL-67810-master' of git://github.com/vmdef/moodle 2020-05-28 12:19:25 +08:00
Mihail Geshoski 5cf21a3c27 MDL-67813 repository_contentbank: Add behat tests 2020-05-28 12:06:32 +08:00
Victor Deniz Falcon 7a82ee7ed6 MDL-67813 core: Add a manual 'enter' key press behat action step 2020-05-28 12:06:32 +08:00
Mihail Geshoski 8bb55dd5f9 MDL-67813 core: Add for attribute to search input label in filepicker
Adds the missing for attribute in the label that identifies the
search input in the filepicker. This is an accessibility improvement.
2020-05-28 12:06:32 +08:00
Mihail Geshoski f3fc0266ca MDL-67813 core_filepicker: Handle ElementNotFoundException in behat step
Catches and handles ElementNotFoundException if thrown in the
i_should_see_elements_in_filepicker_repository() behat step in order to
enable the assertion that no elements exist in the repository content
area
2020-05-28 12:06:31 +08:00
Mihail Geshoski 1bb6231b32 MDL-67813 core_contentbank: Add content name parameter in the generator 2020-05-28 12:06:31 +08:00
Mihail Geshoski 4f442eeaba MDL-67813 repository_contentbank: Add unit tests 2020-05-28 12:06:31 +08:00
Mihail Geshoski 966442c44e MDL-67813 repository_contentbank: Add search functionality 2020-05-28 12:05:39 +08:00
Jake Dallimore b08e4b5cd6 Merge branch 'MDL-68746-master' of git://github.com/sarjona/moodle 2020-05-28 11:56:23 +08:00
Adrian Greeve 9e1ace3fb5 Merge branch 'MDL-68822-master' of git://github.com/ferranrecio/moodle 2020-05-28 11:49:37 +08:00
deraadt 5143106813 MDL-68425 user: Add capability check for messaging 2020-05-28 11:23:42 +08:00
Bas Brands 457e61cd7b MDL-67874 core_filepicker: fix focus styles for filepicker folders 2020-05-28 10:34:02 +08:00
Adrian Greeve 4231b83668 Merge branch 'MDL-66911-38_core_file_add_license_help_to_fileselect' of https://github.com/tomdickman/moodle 2020-05-28 09:09:27 +08:00
Andrew Nicols 2ffc3bd5a2 Merge branch 'MDL-68846' of https://github.com/stronk7/moodle 2020-05-28 07:35:10 +08:00
Michael Hawkins a4bd55725b MDL-68829 user: Update participants SQL for Oracle/MSSQL compatibility
This refactors the SQL to join on a distinct list of users, removing
the need for GROUP BY statements, and fixing the related errors in
Oracle/MSSQL
2020-05-28 00:28:34 +02:00
Eloy Lafuente (stronk7) a0e38e4371 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 17:55:32 +02:00
Bas Brands c393d8185a MDL-68796 core_contentbank: Store view preferences
includes privacy export, privacy unit test
2020-05-27 17:27:23 +02:00
Bas Brands 5fe7bcdb30 MDL-68209 core_course: improve activity chooser styling 2020-05-27 16:49:23 +02:00
Thomas.Ludwig 9bdd83c9fd MDL-67903 core_grades: remove outdated CSS for grade import form 2020-05-27 15:58:53 +02:00
Sara Arjona 8e1b43f0d5 Merge branch 'MDL-68343-master' of git://github.com/rezaies/moodle 2020-05-27 15:09:39 +02:00
Mikel Martín 22a80863d5 MDL-68844 formslib: Fix inline layout for static elements 2020-05-27 13:18:35 +02:00
Sara Arjona 20bbb473cf Merge branch 'MDL-68667-master' of git://github.com/aanabit/moodle 2020-05-27 12:26:46 +02:00
Víctor Déniz Falcón c49d8663ad MDL-67810 core_contentbank: contenttype_h5p editor integrated 2020-05-27 10:27:55 +01:00
Victor Deniz Falcon 613281cd25 MDL-67810 core_contentbank: placed the edit action in the view page 2020-05-27 10:27:13 +01:00
Victor Deniz Falcon a99dab944f MDL-67810 core_contentbank: contentype_h5p modified to support add menu 2020-05-27 10:27:13 +01:00
Víctor Déniz Falcón 75f58cbfa2 MDL-67810 core_contentbank: added dropdown menu to create content 2020-05-27 10:27:13 +01:00
Jun Pataleta 7fb2f4d1a5 Merge branch 'MDL-67828-master' of git://github.com/rezaies/moodle 2020-05-27 16:48:03 +08:00
David Mudrák 2615e429f4 MDL-68753 lang: Remove a redundant okay string and use "OK" everywhere
The "Ok" (with lower-case "k") string was added in MDL-68409 to keep
backwards compatibility with YUI alerts that had it hard-coded. But we
should not need to explain to translators why we have two OK strings
like this and why they use different wording.

Additionally, there would be inconsistency in Behat tests and everywhere
depending on which "OK" or "Ok" string is used for buttons.

So instead, this patch changes the hard-coded 'Ok' string in the YUI and
we should stick to "OK" from now on everywhere.
2020-05-27 09:59:44 +02:00
David Mudrák c47b174d44 MDL-68753 lang: Use the updated strings in the tests 2020-05-27 09:59:35 +02:00
Sara Arjona 3d0541c03a Merge branch 'MDL-68758-master' of git://github.com/peterRd/moodle 2020-05-27 09:46:47 +02:00
Jun Pataleta d5eec2a2fd Merge branch 'MDL-67743-master-final' of git://github.com/andrewnicols/moodle 2020-05-27 14:51:25 +08:00
Jake Dallimore 5a0d8a7eaf Merge branch 'MDL-52138-master-take4' of git://github.com/lucaboesch/moodle 2020-05-27 14:24:51 +08:00
Peter Dias 31788c8cf2 MDL-68758 core_repository: Allow ability to download files on all views. 2020-05-27 14:20:15 +08:00
Jake Dallimore 0fbc2c11f5 Merge branch 'MDL-67874-master' of git://github.com/bmbrands/moodle 2020-05-27 13:54:51 +08:00
Andrew Nicols 04ce665a98 Merge branch 'MDL-68765-master' of https://github.com/ised-isde-canada/moodle 2020-05-27 12:49:39 +08:00
Andrew Nicols 28bff4cff4 Merge branch 'master_MDL-68054' of https://github.com/danmarsden/moodle 2020-05-27 12:12:27 +08:00
Andrew Nicols 6cb3444f22 MDL-67743 user: Remove incorrect ARIA role on autocomplete
The autocomplete is not a listbox so cannot be multiselectable.
2020-05-27 11:52:01 +08:00
Andrew Nicols c4bd1858db MDL-67743 table: Sort direction is an integer 2020-05-27 11:16:24 +08:00
Jun Pataleta 039fc86902 Merge branch 'MDL-68750-master' of git://github.com/andrewnicols/moodle 2020-05-27 11:03:54 +08:00
Adrian Greeve 6f17ec9181 Merge branch 'MDL-68788' of https://github.com/Chocolate-lightning/moodle 2020-05-27 10:55:20 +08:00
Michael Hawkins f637640f01 MDL-68678 user: Made filterset match text clearer
Part of MDL-67743
2020-05-27 10:49:44 +08:00
Bas Brands 6881ca38d7 MDL-68259 user: add styling to participant filters
Part of MDL-67743
2020-05-27 10:49:44 +08:00
Andrew Nicols 110f3ebf54 MDL-68169 user: Limit the number of filter conditions
Part of MDL-67743
2020-05-27 10:49:44 +08:00
Andrew Nicols 028ec17c94 MDL-68169 user: Add keyword filter
Part of MDL-67743
2020-05-27 10:49:44 +08:00
Andrew Nicols fbcc657713 MDL-68169 user: Add accesssince filter
Part of MDL-67743
2020-05-27 10:49:43 +08:00
Andrew Nicols fa3d57fe7e MDL-68169 user: Add enrolment instance filter
Part of MDL-67743
2020-05-27 10:49:43 +08:00
Andrew Nicols de83d4357f MDL-68169 user: Add groups filter
Part of MDL-67743
2020-05-27 10:49:43 +08:00
Andrew Nicols ffc933ad46 MDL-68169 user: Add roles filter
Part of MDL-67743
2020-05-27 10:49:43 +08:00
Andrew Nicols f14df62d1a MDL-67917 user: Use custom templates for participant value selection
Part of MDL-67743
2020-05-27 10:49:43 +08:00
Andrew Nicols 1be0f90c6f MDL-67917 core: Add custom template support to autocomplete
Part of MDL-67743
2020-05-27 10:49:43 +08:00
Andrew Nicols 77ba77f10a MDL-67917 user: Add skeleton for new participants filter
Part of MDL-67743

AMOS BEGIN
  CPY [select,core],[selectfiltertype,core_user]
AMOS END
2020-05-27 10:49:43 +08:00
Andrew Nicols f456195599 MDL-67917 core: Return newly added nodes from template helpers
Part of MDL-67743
2020-05-27 10:49:43 +08:00
Andrew Nicols ddf6e48156 MDL-68750 tool_dataprivacy: Correct behat test modal checks 2020-05-27 10:40:30 +08:00
Mihail Geshoski 5e62e4b25f MDL-68723 filepicker: Display parent content in filemanger tree view 2020-05-27 08:51:17 +08:00
Ilya Tregubov d83bf6e0ff MDL-68203 restore: Decode quiz links when restore into existing course
or duplicating.
2020-05-27 10:38:40 +10:00
Tom Dickman 2228ca31a2 MDL-66911 core files: Add license help to file selector
This improvement adds a help icon to the 'Choose license' option
providing links to further information on each license.
Utilise templates for license links to avoid code reuse.
2020-05-27 08:36:48 +10:00
Eloy Lafuente (stronk7) 08c6eca7e9 Merge branch 'MDL-68789-master' of git://github.com/crazyserver/moodle 2020-05-26 23:43:05 +02:00
Luca Bösch 543f36a5aa MDL-52138 core_grades: gradebook striped styling 2020-05-26 23:33:03 +02:00
Eloy Lafuente (stronk7) 68fd8d8bdf on-demand release 3.9dev+ 2020-05-26 22:52:49 +02:00
Claude Vervoort 4801550180 MDL-68800 mod_lti: fix domain matching launches for 1.3 2020-05-26 16:35:16 -04:00
Sara Arjona 54b97575d1 Merge branch 'MDL-68388' of https://github.com/stronk7/moodle 2020-05-26 20:03:22 +02:00
Helen Foster 026a12ec51 MDL-68753 lang: Import fixed English strings (en_fix) 2020-05-26 19:18:23 +02:00
Eloy Lafuente (stronk7) 60fe1f8c9d 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:00:24 +02:00
Shamim Rezaie 3b3269ee1d MDL-67828 calendar: Fix the js error in IE11 2020-05-27 02:36:55 +10:00
Ferran Recio 5567c5e833 MDL-68822 mod_h5pactivity: add description to view.php 2020-05-26 17:29:40 +02:00
Claude Vervoort 6f85c23d7f MDL-68800 mod_lti: apply format fixes per guidelines 2020-05-26 10:49:50 -04:00
Sara Arjona 309b4d0111 Merge branch 'MDL-67386-master-hotfix' of github.com:bmbrands/moodle 2020-05-26 16:23:20 +02:00
Bas Brands 203eed43e2 MDL-67386 theme_classic: initialize the bootstrap loader. 2020-05-26 14:20:33 +02:00
Bas Brands f7a3f554b7 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:08:05 +02:00
Bas Brands 91de0ed823 MDL-67874 theme_boost: make focus outline accessible 2020-05-26 09:54:12 +02:00
Andrew Nicols a2bc97a386 MDL-68750 analytics: Correct behat test modal checks 2020-05-26 12:55:29 +08:00
Andrew Nicols 89db84b5b1 MDL-68750 core_tag: Add missing confirmation dialogue title 2020-05-26 12:55:29 +08:00
Andrew Nicols 8985c478ce MDL-68750 behat: Correct dialogue selector 2020-05-26 12:55:29 +08:00
Jun Pataleta 8aa0f2c4d8 Merge branch 'MDL-45184-master' of git://github.com/junpataleta/moodle 2020-05-26 12:39:24 +08:00
Jun Pataleta 86c0f3cfd0 MDL-45184 tool_licensemanager: Behat fixes
* Fix license manager test
* Remove unnecessary @javascript tags
* Remove unnecessary "I log out" steps
* Fix structure so each scenario will have a single Given-When-Then
2020-05-26 12:29:09 +08:00
Jun Pataleta cd4ec9b33b MDL-45184 tool_licensemanager: Move $deletelicense for proper scope 2020-05-26 12:11:07 +08:00
Andrew Nicols fa197fbf09 Merge branch 'MDL-68099-master' of git://github.com/marinaglancy/moodle 2020-05-26 11:29:48 +08:00
Adrian Greeve b2978c1787 Merge branch 'MDL-68757' of https://github.com/timhunt/moodle 2020-05-26 10:33:03 +08:00
Andrew Nicols 17238ab079 MDL-68388 grade: Tidy comments and whitespace 2020-05-26 10:15:52 +08:00
Andrew Nicols a7aaf91855 Merge branch 'MDL-68388' of https://github.com/marcusboon/moodle 2020-05-26 10:11:08 +08:00
Tom Dickman 4399e4759a MDL-45184 tool_licenses: Add custom licenses
This feature adds an admin tool for creating custom licenses.
Now custom licenses can be added and amended in Moodle, and the site
default can be set to a custom license.

Core licenses remain hard-coded and are uneditable, so they will always
require update within Moodle core updates, and maintain their
internationalisation through core language strings.

This also includes fundamental changes to the license API including
the addition of license caching and deprecation of no longer required
admin settings for license management.
2020-05-26 12:08:05 +10:00
Andrew Nicols ecf526566a Merge branch 'MDL-64427' of https://github.com/NeillM/moodle 2020-05-26 10:04:51 +08:00
Andrew Nicols 7d02452504 Merge branch 'MDL-67547' of https://github.com/paulholden/moodle 2020-05-26 08:06:39 +08:00
Andrew Nicols 1a3a864a4a Merge branch 'MDL-68270-master' of git://github.com/bmbrands/moodle 2020-05-26 08:02:50 +08:00
Victor Deniz Falcon a735d4d1d4 Merge branch 'MDL-68252' of https://github.com/timhunt/moodle 2020-05-26 00:55:02 +01:00
Paul Holden f8f5a2f6da MDL-67547 mod_forum: convert pluginfile URLs prior to export. 2020-05-26 00:54:51 +01:00
Paul Holden 233a51ad21 MDL-67547 dataformat_pdf: method to convert images to supported format.
For Dataformats that support exporting HTML content, provide an API for
converting images within that content to something suitable for the format.

This fixes an issue with the PDF writer when it encountered a pluginfile.php
image, which it tried to request via HTTP without an active session. This
resulted in a 303 header returned by Moodle instead of the actual image,
causing an exception in the underlying TCPDF library.
2020-05-26 00:54:27 +01:00
Adrian Greeve ef17275726 Merge branch 'MDL-68348-master-6' of git://github.com/mickhawkins/moodle 2020-05-26 07:48:53 +08:00
Marcus Boon f1f5ba36ad 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:06:50 +10:00
Amaia Anabitarte f9c094e214 MDL-68667 repository_contentbank: Filename and content name use test 2020-05-25 18:44:53 +02:00
Amaia Anabitarte 67e3378c56 MDL-68667 filepicker: Use shortitle parameter 2020-05-25 18:44:53 +02:00
Amaia Anabitarte f9d2635f7f MDL-68667 core_contentbank: Fix content generator to use filename 2020-05-25 18:44:53 +02:00
Sara Arjona a706f7161f Merge branch 'MDL-67386-master-fix' of github.com:sarjona/moodle 2020-05-25 17:58:39 +02:00
Sara Arjona 36e2a9af84 MDL-67386 theme_boost: update latest CSS changes 2020-05-25 17:57:34 +02:00
Sara Arjona 028d43b37d Merge branch 'MDL-67386-master' of git://github.com/bmbrands/moodle 2020-05-25 17:46:41 +02:00
Sara Arjona 16b55f1cad Merge branch 'MDL-68177-master_course_renderer_split_methods' of https://github.com/roland04/moodle 2020-05-25 17:11:03 +02:00
Mikel Martín ebd08abce8 MDL-68177 course: split course_info_box into different methods 2020-05-25 16:14:37 +02:00
Bas Brands f0947b944c MDL-68270 core_output: prevent blurring of navbar logo 2020-05-25 15:48:52 +02:00
Bas Brands 6a4ce7b0a3 MDL-67386 theme_boost: upgrade bootstrap to version 4.5.0 2020-05-25 15:48:17 +02:00
Sara Arjona 1b88f7567a Merge branch 'MDL-68819-master' of git://github.com/lucaboesch/moodle 2020-05-25 15:47:44 +02:00
Pau Ferrer Ocaña a87aa36ad9 MDL-68789 behat: Change app page menu text selector 2020-05-25 14:53:18 +02:00
Andrew Nicols b5b9166831 Merge branch 'MDL-68103-master' of git://github.com/bmbrands/moodle 2020-05-25 19:55:11 +08:00
Bas Brands 9d2d2c2beb MDL-68103 theme_classic: show content full width when printing 2020-05-25 13:48:42 +02:00
Andrew Nicols 35f5bf4abc Merge branch 'MDL-68549' of https://github.com/HuongNV13/moodle 2020-05-25 19:10:21 +08:00
Michael Hawkins d26b3ad524 MDL-68348 user: Added filterset joins unit testing 2020-05-25 18:35:08 +08:00
Michael Hawkins 4fa636330f MDL-68348 user: Added other logical operators to filter unit tests 2020-05-25 18:35:08 +08:00
Michael Hawkins 6a54e58a8c MDL-68348 user: User filter match types support - enrol method & status
Completed support for all join types (any/all/none) for enrolment
method and status filtering. This includes handling forced status
filtering where a user does not have the capability to view suspended
users, as well as handling front page (whole site) participants page.
2020-05-25 18:35:08 +08:00
Michael Hawkins 03397c817b MDL-68348 lib: User filter match types support - groups
Updated groups_get_members_join to support different filter match types
2020-05-25 18:35:08 +08:00
Michael Hawkins 25d9dabdcf MDL-68348 user: User filter match types support - keywords/last access
The last access implementation also fixes an existing bug,
where it was assumed never accessed would be 0, when it also needed to
handle null to return correct results. Related userlib unit tests also
updated to reflect this, as well as some incorrect comment wording.
2020-05-25 18:35:08 +08:00
Michael Hawkins 4157e2d4f3 MDL-68348 lib: Added create_user_course_lastaccess generator
This creates a last access record for a user within a course.
It is requires for testing accesssince participants filtering.
2020-05-25 18:10:53 +08:00
Michael Hawkins 25d5be444f MDL-68348 user: User filter match types support - filterset and roles 2020-05-25 18:10:53 +08:00
Michael Hawkins 3f069a2c48 MDL-68348 lib: Default filters to match ALL for backwards compatibility
Temporarily defaulting filtersets and their filters to join type ALL
for backwards compatibility, so the existing participants unified
filter continues to function consistently. This will be reverted once
the new participants filter UI replaces the existing unified filter.
2020-05-25 18:10:53 +08:00
Sara Arjona 71dbe42c64 Merge branch 'MDL-68248-master' of https://github.com/DinhHien0307/moodle 2020-05-25 11:59:24 +02:00
Nick Phillips 7a2baafc96 MDL-68103 theme_classic: hidden-print => d-print-none for BS4. 2020-05-25 11:40:14 +02:00
Sara Arjona 9073ed9355 Merge branch 'MDL-68448-master-fix' of github.com:sarjona/moodle 2020-05-25 11:37:41 +02:00
Sara Arjona 0a7c9b9d63 MDL-68448 h5pactivity: remove illegal whitespaces 2020-05-25 11:35:15 +02:00
Sara Arjona 51b3feb2e9 Merge branch 'MDL-68448-master' of git://github.com/cescobedo/moodle 2020-05-25 10:56:18 +02:00
Mathew May a2fc851738 MDL-68244 auth_email: Update unit test, remove hard assertion 2020-05-25 16:37:49 +08:00
Adrian Greeve e1f4258906 Merge branch 'MDL-68629_master' of https://github.com/t-schroeder/moodle 2020-05-25 16:14:54 +08:00
Jake Dallimore 33294da864 Merge branch 'MDL-62853' of https://github.com/paulholden/moodle 2020-05-25 16:11:55 +08:00
Andrew Nicols d3503c76b4 Merge branch 'MDL-68658' of https://github.com/stronk7/moodle 2020-05-25 15:23:37 +08:00
cescobedo 9fa0e253ae MDL-68448 mod_h5pactivity: Add new ws get_h5pactivities_by_courses
This WS is required by the Moodle app in order to fetch
the activity information for displaying it to app users.
2020-05-25 09:12:20 +02:00
cescobedo 14b463c92a MDL-68448 core_h5p: Add get export information to helper
Create a new method in the helper to use in the player,
in the external WS and in the API. Also, add a
new method in API to help to get export information
by other WS.
2020-05-25 09:12:06 +02:00
Adrian Greeve d602189874 Merge branch 'MDL-63812' of https://github.com/timhunt/moodle 2020-05-25 14:40:14 +08:00
Jake Dallimore 4404ced7f7 Merge branch 'MDL-68567-master' of git://github.com/sarjona/moodle 2020-05-25 11:36:48 +08:00
Luca Bösch 937c7e5f0c MDL-68819 core_contentbank: "Upload" button is not localized. 2020-05-24 21:52:43 +02:00
Sara Arjona 968016a38d Merge branch 'MDL-68592-master' of https://github.com/kabalin/moodle 2020-05-22 17:55:23 +02:00
Sara Arjona 4955d9279f Merge branch 'MDL-68619-master' of git://github.com/ferranrecio/moodle 2020-05-22 17:49:32 +02:00
Eloy Lafuente (stronk7) 200570558d 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:05 +02:00
Pau Ferrer Ocaña 9afc6b78c3 MDL-68789 behat: Adapt login step to new app version 2020-05-22 16:17:29 +02:00
Victor Deniz Falcon 71965a8572 weekly release 3.9dev+ 2020-05-22 14:21:37 +01:00
Victor Deniz Falcon bbd1b742ef Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-05-22 14:21:32 +01:00
Jake Dallimore 0facda5eaa Merge branch 'MDL-68367-master-fix' of git://github.com/junpataleta/moodle 2020-05-22 15:10:04 +08:00
Sara Arjona a80541ea90 MDL-68567 badges: add/remove site backpacks 2020-05-22 09:01:59 +02:00
Jun Pataleta 20a660f864 MDL-68367 qtype_multichoice: Decrease minimum expected export file size
* Exporting via Oracle trims trailing zeroes in floating numbers which
results to a smaller file size for the exported file. Better to reduce
the minimum expected export file size from 4000 bytes to 3900 bytes.
2020-05-22 14:45:05 +08:00
Andrew Nicols cc29e04f27 Merge branch '68137-master-prevent-removing-all-dots-in-filename' of https://github.com/DSI-Universite-Rennes2/moodle 2020-05-22 11:53:22 +08:00
Jake Dallimore 3f99406350 Merge branch 'MDL-68143-master' of https://github.com/HuongNV13/moodle 2020-05-22 11:52:31 +08:00
Jun Pataleta 87decf6e00 Merge branch 'MDL-65796' of https://github.com/paulholden/moodle 2020-05-22 11:50:53 +08:00
Andrew Nicols 4e9641c2d1 Merge branch 'MDL-57240' of https://github.com/timhunt/moodle 2020-05-22 11:37:38 +08:00
Andrew Nicols a15175eab4 Merge branch 'MDL-68446' of https://github.com/timhunt/moodle 2020-05-22 11:32:01 +08:00
Andrew Nicols 6c0ffdd7ff Merge branch 'MDL-68783-master' of git://github.com/junpataleta/moodle 2020-05-22 11:21:47 +08:00
Andrew Nicols e1657e3c07 Merge branch 'MDL-68661-rebase' of https://github.com/Chocolate-lightning/moodle 2020-05-22 11:12:46 +08:00
Jun Pataleta 929bb27c21 Merge branch 'MDL-68508-master' of git://github.com/andrewnicols/moodle 2020-05-22 11:06:16 +08:00
Andrew Nicols c225a42c19 Merge branch 'MDL-67700-master' of git://github.com/ferranrecio/moodle 2020-05-22 10:51:31 +08:00
Andrew Nicols a31a2b6d54 MDL-68508 core_table: Improve sorting to support sorting by multiple columns 2020-05-22 10:42:30 +08:00
Jake Dallimore 77dddebdb9 Merge branch 'MDL-58645-master' of https://github.com/HuongNV13/moodle 2020-05-22 10:35:27 +08:00
Mathew May 7f86455237 MDL-68661 core_lang: Roll back addresourceoractivity 2020-05-22 10:02:57 +08:00
Andrew Nicols cd08d856c6 MDL-68493 contentbank: Whitespace fixes 2020-05-22 09:21:21 +08:00
Andrew Nicols ae2e417a19 Merge branch 'MDL-68493-master' of git://github.com/bmbrands/moodle 2020-05-22 09:04:57 +08:00
Eloy Lafuente (stronk7) 7a92c63663 Merge branch 'MDL-65306-resourceid-onecommit' of https://github.com/cengage/moodle 2020-05-22 02:15:03 +02:00
Victor Deniz Falcon 57c40bd964 Merge branch 'MDL-39571-Master' of git://github.com/tuanngocnguyen/moodle 2020-05-21 22:28:32 +01:00
David Mudrák 59641dd5a6 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:02 +02:00
Sara Arjona e50e6d39ce Merge branch 'master_MDL-67497' of https://github.com/danmarsden/moodle 2020-05-21 19:00:26 +02:00
Ferran Recio f3ae94a41d MDL-68619 mod_h5pactivity: add results report webservice 2020-05-21 18:37:54 +02:00
Ferran Recio 42c48b6660 MDL-68619 mod_h5pactivity: add activity check to get_attempt method 2020-05-21 18:37:54 +02:00
Ferran Recio 778846987a MDL-67700 message: prevent async loading conversation message mix 2020-05-21 18:02:42 +02:00
Sara Arjona 48127bfec6 Merge branch 'MDL-66471' of https://github.com/paulholden/moodle 2020-05-21 17:33:12 +02:00
Andrew Nicols f2d33fcc11 Merge branch 'MDL-68439-master' of https://github.com/HuongNV13/moodle 2020-05-21 20:30:13 +08:00
Sara Arjona cca063e229 Merge branch 'MDL-67126_master' of https://github.com/ffhs/moodle 2020-05-21 13:34:59 +02:00
Ferran Recio 87eb65ab44 MDL-68619 mod_h5pactivity: correcting content generator 2020-05-21 12:49:30 +02:00
Huong Nguyen 51de017235 MDL-68439 qtype_ddwtos: UI issues
- Fixed cursor for dropped ddwtos
 - Fixed the animation of "flying back to the home position" starts off at the right end of the previous line"
2020-05-21 17:19:40 +07:00
Jun Pataleta 7750dd55e8 Merge branch 'MDL-68367' of https://github.com/mkassaei/moodle 2020-05-21 17:10:16 +08:00
Mahmoud Kassaei 00055ef6ab MDL-68367 Question: Multi-choice Option to hide systemtext 2020-05-21 09:47:15 +01:00
Mathew May eff7ef2cd2 MDL-68788 core_notification: Check if the user is logged in 2020-05-21 16:33:25 +08:00
Sara Arjona 5cc1d953bf Merge branch 'MDL-68451-master' of git://github.com/cescobedo/moodle 2020-05-21 08:30:31 +02:00
Jun Pataleta 7b66f81b90 Merge branch 'MDL-68568-master' of git://github.com/junpataleta/moodle 2020-05-21 14:26:54 +08:00
Sara Arjona e4426b3aff Merge branch 'MDL-68782-master' of git://github.com/aanabit/moodle 2020-05-21 08:23:46 +02:00
Adrian Greeve aa1dcabf4c Merge branch 'MDL-68733' of https://github.com/timhunt/moodle 2020-05-21 08:37:52 +08:00
AMOS bot 7984b52ae9 Automatically generated installer lang files 2020-05-21 00:07:15 +00:00
Eloy Lafuente (stronk7) a5a8ca5e62 Merge branch 'MDL-52578-master' of git://github.com/junpataleta/moodle 2020-05-21 00:51:10 +02:00
Eloy Lafuente (stronk7) 7ce7d21503 Merge branch 'MDL-66992-master' of https://github.com/tungthai/moodle 2020-05-21 00:48:30 +02:00
Amaia Anabitarte 8675e8ae6a MDL-68782 core_contentbank: Improving event unit tests 2020-05-20 22:37:30 +02:00
Michael Milette 17cc4735d7 MDL-68765 auth: Login form has DIV tag with 2 CLASS attributes. 2020-05-20 14:00:03 -04:00
cescobedo 887644a1d5 MDL-68451 mod_h5pactivity: Add info attempts in check_updates_since
Add updates information related to attempts in check_updates_since
because they may affect the user or the information displayed
in the app.
2020-05-20 18:50:21 +02:00
Jun Pataleta 01c8c667fc MDL-68568 editor_atto: Upgrade step for the new toolbar default layout
* emojipicker added to files
* indent moved to list
2020-05-21 00:39:00 +08:00
Mike Churchward b677d33d62 MDL-68568 editor-atto: Move 'indent' next to 'lists' by default. 2020-05-21 00:10:37 +08:00
Víctor Déniz Falcón 7380c31afe Merge branch 'MDL-67183' of git://github.com/timhunt/moodle 2020-05-20 15:54:14 +01:00
Sara Arjona 3cc0bab8ab Merge branch 'MDL-68617-master' of git://github.com/ferranrecio/moodle 2020-05-20 16:32:36 +02:00
Ferran Recio c09bc8d897 MDL-68617 mod_h5pactivity: add attempts report webservice 2020-05-20 16:28:45 +02:00
Bas Brands e695d9d0b6 MDL-68493 core_contentbank: implement list view 2020-05-20 16:27:58 +02:00
Sara Arjona 041afbeab5 Merge branch 'MDL-68780' of https://github.com/stronk7/moodle 2020-05-20 12:58:37 +02:00
Amaia Anabitarte 7a460fd5d5 MDL-68782 core_contentbank: Fixing undefined variable error 2020-05-20 12:42:44 +02:00
Ferran Recio 2f2cdd2a48 MDL-68617 mod_h5pactivity: add attempt info to generator 2020-05-20 12:09:28 +02:00
Sara Arjona 69d5a63b97 Merge branch 'MDL-68778-master' of git://github.com/andrewnicols/moodle 2020-05-20 11:47:27 +02:00
Jun Pataleta a7431ec3f1 Merge branch 'MDL-58866-master-2' of git://github.com/marinaglancy/moodle 2020-05-20 17:35:08 +08:00
Eloy Lafuente (stronk7) 5b188629c7 MDL-68780 unit tests: Add missing ->destroy() calls to controllers
Every backup and restore controller always need to call
to their ->destroy() method in charge of finalizing loggers,
closing file handlers and destroy some circular references.

This is specially important within unit tests, because
open resources cannot be reset between tests, causing problems,
specially within Windows that locks all those files.
2020-05-20 11:02:00 +02:00
Adrian Greeve 56287073d5 Merge branch 'MDL-68662' of https://github.com/Chocolate-lightning/moodle 2020-05-20 16:52:17 +08:00
Andrew Nicols a6adce6b9b Merge branch 'MDL-68577-redis-lock-tuning' of https://github.com/brendanheywood/moodle 2020-05-20 16:50:37 +08:00
Marina Glancy 185a00c874 MDL-58866 core_calendar: deprecation warning in upgrade.txt 2020-05-20 10:38:12 +02:00
Mathew May e146a2ca74 MDL-68662 core_course: Add new tabs to the chooser
We now have two more tabs in the chooser.
Activities & Resources aer now offered in different tabs.
2020-05-20 15:53:06 +08:00
Andrew Nicols fb4f19af80 MDL-68778 user: Add bulk action pendingjs checks 2020-05-20 15:45:24 +08:00
Neill Magill b26efcd861 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:27:53 +01:00
Neill Magill d92acd5dcc 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:27:53 +01:00
Neill Magill 7289f5c0c1 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:27:52 +01:00
Neill Magill 236a52c4de 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:27:52 +01:00
Sara Arjona 630a19ebd5 MDL-68746 core_badges: remove Issuer details from badges form
When OBv2.0 support was added, the issuername and issuercontact
fields were changed to static.
In order to avoid confusion for the user, these fields shouldn't
be displayed for OBv2.0 or higher.
2020-05-20 08:51:52 +02:00
Brendan Heywood 8eab4f77cc MDL-68577 session: Fine tune the redis lock polling 2020-05-20 15:54:10 +10:00
Adrian Greeve 1c1fd15b18 Merge branch 'MDL-68333-master' of git://github.com/marinaglancy/moodle 2020-05-20 13:17:58 +08:00
Andrew Nicols db5be3a31c MDL-68778 user: Fetch select from selected option
It seems that the HTMLSelectElement behaves slightly different on Linux
vs MacOS.

On Linux with Firefox 47 when selecting an option the
HTMLOptionElement is returned, whereas on MavOS the HTMLSelectElement
that the Option belongs to is returned.

We need to normalise the value here before resetting the currently
selected item.
2020-05-20 13:17:50 +08:00
Jun Pataleta 0763480b33 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:12:58 +08:00
Nathan Nguyen a9c139c8d4 MDL-39571 repository_recent: query improvement 2020-05-20 13:11:51 +10:00
Nathan Nguyen 1529fc7954 MDL-39571 repository_recent: add unit test 2020-05-20 12:48:17 +10:00
Jun Pataleta 3728866a5f 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:29:46 +08:00
Dan Marsden fe96a5528c MDL-68054 lib: viewhiddenactivities should be set as captype:read 2020-05-20 14:00:48 +12:00
Adrian Greeve 59d0090fda Merge branch 'MDL-67548-master' of https://github.com/kabalin/moodle 2020-05-20 08:35:18 +08:00
AMOS bot 1ec1cfff2d Automatically generated installer lang files 2020-05-20 00:07:22 +00:00
Andrew Nicols 6754ceae3a MDL-68464 user: Remove legacy selectall 2020-05-20 07:38:26 +08:00
Eloy Lafuente (stronk7) 31ffacb020 Merge branch 'MDL-68464-master-final' of git://github.com/andrewnicols/moodle 2020-05-20 00:17:53 +02:00
Tim Hunt 64207dab65 MDL-67183 questions: get_question & get_behaviour only init if required
This reviews all the code code, and sets $requirequestioninitialised
whenever possible in these calls, which should improve performance.
2020-05-19 20:52:07 +01:00
Tim Hunt 9cbbb779eb MDL-67183 question engine: allow lazy-init of question_attempts
That is, we don't call apply_attempt_state as soon as a
the data is loaded from the database. Instead, we wait
and only call it if really needed.

This should (especially after the next commit) be a performance win
during quizzes, particularly for people using advanced question
types liks STACK, or people making extensive use of the
'Try another question like this one' feature.
2020-05-19 20:49:33 +01:00
Víctor Déniz Falcón 676b8b8217 Merge branch 'MDL-68299-master' of git://github.com/bmbrands/moodle 2020-05-19 20:43:46 +01:00
Paul Holden be60a5d096 MDL-66471 user: fix user_selector debug about extra identity fields. 2020-05-19 19:12:35 +01:00
Steve Bader 604fb8c2a2 MDL-52578 core_course: Activity weight set to 0 on creation 2020-05-20 01:28:59 +08:00
Marina Glancy 5b529aca15 MDL-68333 testing: trigger user_created event in user generator 2020-05-19 19:11:54 +02:00
Marina Glancy d268c5bac3 MDL-58866 core_calendar: separate color for other events, icons 2020-05-19 19:04:15 +02:00
Marina Glancy 6f92c731e7 MDL-58866 block_timeline: do not display course if abscent 2020-05-19 19:04:15 +02:00
Marina Glancy 1a972b06f1 MDL-58866 core_calendar: allow component events 2020-05-19 19:04:13 +02:00
Sara Arjona 1afe68f382 weekly release 3.9dev+ 2020-05-19 17:54:25 +02:00
Sara Arjona a0caddb696 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-05-19 17:54:22 +02:00
Andrew Nicols 7f22867502 MDL-68463 core_user: Correct Show all link details 2020-05-19 14:16:25 +02:00
Juan Leyva 82d5547b8f MDL-68294 tool_mobile: Fix custom strings and limits calculation 2020-05-19 12:19:37 +02:00
Andrew Nicols fec9e9cce5 Merge branch 'srdjan-slave-conn' of https://github.com/srdjan-catalyst/moodle 2020-05-19 16:13:48 +08:00
Bas Brands 92bc86e429 MDL-68299 theme_boost: theme updates for accessible zoom
The Moodle UI should be functional in a viewport of 320px by 256px to
meet WCAG 1.4.10

this patch contains improvements to:
-prevent horizontal scrolling
-better wrapping of page header
-message drawer funtional on tiny screens
-remove indenting on courses
-prevent elements overlapping on quiz editing
-better navigation tabs
-fix colour picker
-quiz editing
2020-05-19 10:13:20 +02:00
Srdjan 317432cacc MDL-19711 dml: call mysqli::real_connect() with @ 2020-05-19 18:09:14 +10:00
Juan Leyva 509a4c5865 MDL-68294 tool_mobile: Fix key and default apps values 2020-05-19 09:24:26 +02:00
Srdjan 3612d0b8b9 MDL-19711 dml: Fix undefined $dberr
In mysqli_native_moodle_database::raw_connect()
2020-05-19 17:02:05 +10:00
Ferran Recio 99374e7e14 MDL-67700 message: correcting conversation timer reset 2020-05-19 08:38:26 +02:00
Andrew Nicols abc83c40b5 MDL-68464 enrol_manual: Comment out buggy behat line
This is commented out because auto-hidden toasts currently call `hide()`
and trigger the `bs.toast.hide` event immediately, and _then_ apply the
autohide delay.

Since we automatically add M.util.pending_js calls when we _start_ to
hide, and resolve them when the hide _finishes_, this means that we do:
- addToast called
- trigger `bs.toast.show` event
- add to pending_js
- [pending_js queue not empty - behat waits]
- message is shown in UI
- `hide()` called
- trigger `bs.toast.hide` event
- add to pending_js
- [pending_js queue not empty - behat waits]
- start autohide delay
- [pending_js queue not empty - behat waits]
- [pending_js queue not empty - behat waits]
- [pending_js queue not empty - behat waits]
- [pending_js queue not empty - behat waits]
- end autohide delay
- remove message (no longer present in DOM)
- trigger `bs.toast.hidden` event
- resolve pending_js
- [pending_js queue empty - behat stops waiting]
- Behat runs next step: And I should see "1 enrolled users"
-- Step fails beacuse the message has been shown, and has then been removed

The conversation should have been:
- addToast called
- trigger `bs.toast.show` event
- add to pending_js
- [pending_js queue not empty - behat waits]
- message is shown in UI
- start autohide delay
- trigger `bs.toast.shown` event
- resolve pending_js
- [pending_js queue empty - behat stops waiting]
- Behat runs next step: And I should see "1 enrolled users"
-- Step passes
- autohide delay ends and calls `hide()`
- trigger bs.toast.hide event
- add to pending_js
- [behat waits]
- end autohide delay
- remove message (no longer present in DOM)
- trigger `bs.toast.hidden` event
- resolve pending_js
- [pending_js queue empty - behat stops waiting]
- Behat run continues

See MDL-67386 for futher information.
2020-05-19 12:37:21 +08:00
Andrew Nicols e0e7b19f9c MDL-68464 enrol_manual: Reload participants table after enroling 2020-05-19 12:37:21 +08:00
Andrew Nicols c50f5af248 MDL-68464 enrol_manual: Rewrite quickenrolment to use ES6 2020-05-19 12:33:40 +08:00
Andrew Nicols ab6ca1d5c9 Merge branch 'srdjan-slave-conn' of https://github.com/srdjan-catalyst/moodle 2020-05-19 12:29:20 +08:00
Jun Pataleta f46b5f5f28 Merge branch 'MDL-68463-master-3' of git://github.com/andrewnicols/moodle 2020-05-19 12:24:14 +08:00
Andrew Nicols 50ba817fda MDL-68463 user: Show count link should always exist in DOM 2020-05-19 12:18:15 +08:00
Jun Pataleta b81c2a3475 Merge branch 'MDL-68528-master' of git://github.com/andrewnicols/moodle 2020-05-19 11:46:39 +08:00
Andrew Nicols bc9426c879 MDL-68528 js: Normalise core component for template strings 2020-05-19 11:40:44 +08:00
Andrew Nicols ed0328397a MDL-68528 js: Normalise empty component to "core" for string 2020-05-19 11:37:55 +08:00
Srdjan 46cfde3d95 MDL-19711 dml: Enable use of readonly slave database handles
Implemented with moodle_read_slave_trait

Functionality is triggered by supplying config dboption['readonly'].
See config-dist.php for more info on supported dboptions.

pgsql and mysqli drivers are using this feature. Also added support for
connection timeout for these two drivers.
2020-05-19 11:50:42 +10:00
AMOS bot df35cf110e Automatically generated installer lang files 2020-05-19 00:07:17 +00:00
Eloy Lafuente (stronk7) 4c6a9740f7 Merge branch 'MDL-68656-master' of https://github.com/catalyst/moodle 2020-05-19 01:13:22 +02:00
Tim Hunt 89c8a076b2 MDL-68733 quiz editing: behat test for altering random question tags 2020-05-18 23:20:10 +01:00
Bence Molnar 9024289626 MDL-68733 quiz editing: be more careful deleting random question tags 2020-05-18 22:56:33 +01:00
Tim Hunt c689726d3f MDL-68733 question behat: question tag generator and use in quiz test 2020-05-18 22:56:33 +01:00
Tim Hunt 4a45b7112c MDL-68757 questions: don't do output in low-level functions 2020-05-18 20:54:27 +01:00
Sara Arjona 2418c12c60 Merge branch 'MDL-68760' of https://github.com/timhunt/moodle 2020-05-18 20:33:05 +02:00
Sara Arjona 0a3efb5689 Merge branch 'MDL-68728-master-2' of git://github.com/andrewnicols/moodle 2020-05-18 20:24:17 +02:00
Tim Hunt c3dd5ccc40 MDL-68760 timezones: add string for new timezone America/Nuuk 2020-05-18 17:31:43 +01:00
Tim Hunt 8f406297e0 MDL-68760 string tests: make test_timezone_lang_strings message helpful 2020-05-18 16:51:17 +01:00
Eloy Lafuente (stronk7) 6462724e4f Merge branch 'MDL-68526-master' of git://github.com/aanabit/moodle 2020-05-18 17:14:12 +02:00
Víctor Déniz Falcón 8060ed34db Merge branch 'MDL-67812-master-latest-3' of git://github.com/mihailges/moodle 2020-05-18 16:04:58 +01:00
Sara Arjona 149b60f242 Merge branch 'MDL-68450-master' of git://github.com/cescobedo/moodle 2020-05-18 16:16:23 +02:00
Amaia Anabitarte 01003725f4 MDL-68526 core_contentbank: Tests for delete/move by context 2020-05-18 16:05:04 +02:00
Amaia Anabitarte f2a9bb6edb MDL-68526 core_contentbank: Delete content when a course is deleted
Or when a course category is moved/deleted
2020-05-18 16:05:04 +02:00
Marina Glancy ae0218624f MDL-68099 gradereport_grader: prevent exception without groups 2020-05-18 15:18:30 +02:00
Andrew Nicols 5fb2abb4eb Merge branch 'MDL-68497-master' of git://github.com/bmbrands/moodle 2020-05-18 20:53:20 +08:00
Sara Arjona 3f6d31f979 Merge branch 'MDL-68449-master' of git://github.com/cescobedo/moodle 2020-05-18 14:39:10 +02:00
Andrew Nicols 215393c86c Merge branch 'MDL-68503_master' of https://github.com/marxjohnson/moodle 2020-05-18 20:29:52 +08:00
cescobedo a9ed34a944 MDL-68450 mod_h5pactivity: Add WS view_h5pactivity
This is the external method for triggering the course module viewed event
and update the module completion status. Affects mobile app.
2020-05-18 14:17:46 +02:00
cescobedo feae09652e MDL-68449 mod_h5pactivity: Add a WS for get access information
This WS should return access information required by an external client to check if and how to display the activity module.
Require for Mobile App
2020-05-18 14:07:59 +02:00
Andrew Nicols 07c9106476 MDL-68463 user: Remove old selectall attribute 2020-05-18 20:03:38 +08:00
Andrew Nicols ed23725bc6 MDL-68463 user: Update select/show [count] links dynamically 2020-05-18 20:03:38 +08:00
Andrew Nicols 814da16778 MDL-68463 core: Add helper functions to toggle checkboxes 2020-05-18 20:03:38 +08:00
Andrew Nicols 0d01f2ae56 MDL-68463 report_participants: Use new shared participant actions module 2020-05-18 20:00:47 +08:00
Andrew Nicols bae72dd06d MDL-68463 user: Rewrite participant bulk actions in ES 2020-05-18 20:00:47 +08:00
Sara Arjona 20a1852593 Merge branch 'MDL-68253-master' of git://github.com/lucaboesch/moodle 2020-05-18 13:54:34 +02:00
Sara Arjona 84ab8a51e2 Merge branch 'MDL-68294-master' of git://github.com/jleyva/moodle 2020-05-18 12:49:32 +02:00
Adrian Perez c1bce8b4c7 MDL-67126 assign: set completion state for all group members 2020-05-18 12:29:01 +02:00
Sara Arjona da7feb3455 Merge branch 'read-only-session' of https://github.com/Agilicus/moodle 2020-05-18 12:09:00 +02:00
Andrew Nicols 88f1a81bd6 MDL-68728 calendar: Pending promises for event summary 2020-05-18 13:00:32 +08:00
Andrew Nicols 15d02a3045 MDL-68728 calendar: Remove calendar modal on close 2020-05-18 13:00:30 +08:00
Andrew Nicols 1feb2a5e2e Merge branch 'MDL-62487' of https://github.com/timhunt/moodle 2020-05-18 12:10:02 +08:00
Adrian Greeve 410cec0d40 Merge branch 'MDL-67791-master' of git://github.com/ferranrecio/moodle 2020-05-18 11:55:36 +08:00
Adrian Greeve a1bd5d556d Merge branch 'MDL-68563-master' of git://github.com/lameze/moodle 2020-05-18 11:34:38 +08:00
Mihail Geshoski 17050eea1c MDL-67812 repository_contentbank: Add behat tests 2020-05-18 11:10:07 +08:00
Mihail Geshoski a165085055 MDL-67812 core_filepicker: Add behat steps for filepicker 2020-05-18 11:10:07 +08:00
Mihail Geshoski 4f2a5f2074 MDL-67812 core_contentbank: Modify behat tests
Modify all behat tests that use the behat contentbank content generator
in order to use the updated generator structure
2020-05-18 11:10:07 +08:00
Adrian Greeve 5ec37d28a6 Merge branch 'master_MDL-64843_course_copy_ui' of https://github.com/catalyst/moodle 2020-05-18 10:35:44 +08:00
Mihail Geshoski 2e4e031e1c MDL-67812 core_contentbank: Modify behat contentbank content generator
Enables the behat contentbank content generator to create content in
multiple contexts and optionaly create files on the filesystem
2020-05-18 10:12:14 +08:00
Mihail Geshoski 7cec78f763 MDL-67812 core: Add content bank files repository in standard plugins 2020-05-18 09:34:51 +08:00
Mihail Geshoski 06764d288c MDL-67812 repository_contentbank: Add unit tests 2020-05-18 09:34:51 +08:00
Mihail Geshoski fa12d5dcc1 MDL-67812 repository_contentbank: Create content bank files repository 2020-05-18 09:34:51 +08:00
Adrian Greeve 6e8e079789 Merge branch 'MDL-68636-master' of git://github.com/aanabit/moodle 2020-05-18 08:21:53 +08:00
AMOS bot 1aca043bd0 Automatically generated installer lang files 2020-05-18 00:07:37 +00:00
Tung Thai 15a00bead1 MDL-66992 core_badges: Add support to Open Badges 2.1 2020-05-17 20:01:55 +07:00
AMOS bot ec8ac45fea Automatically generated installer lang files 2020-05-17 00:07:09 +00:00
Juan Leyva 8f2a40f2da MDL-68294 core_component: Fix test that depends on tool_mobile 2020-05-15 20:49:35 +02:00
Juan Leyva df2aa3480e MDL-68294 tool_mobile: WebService for validating subscription key 2020-05-15 20:49:34 +02:00
Juan Leyva 33dbc582e4 MDL-68294 tool_mobile: New subscription page 2020-05-15 20:49:34 +02:00
Don Bowman cf7b00b8cf MDL-68696 sessions: Fixed redis session handler for readonly
In 39770792ca read-only sessions were allowed.
In the redis case, as called from the mobile application,
this can lead to returning 'false' for session rather than ''.
2020-05-15 12:09:15 -04:00
Tim Hunt 89ee18c0e1 MDL-62487 quiz manual grading: implement suggestions from int review
Add privacy provider bits, and tidy code.
2020-05-15 13:48:21 +01:00
Tim Hunt b20541805f MDL-62487 quiz manual grading: store options as user preferences 2020-05-15 13:12:08 +01:00
Tim Hunt e37acc6773 MDL-62487 quiz manual grading: clean coding style and add PHPdocs 2020-05-15 13:12:08 +01:00
Ferran Recio fd7ef55acb MDL-67791 mod_h5pactivity: attempt report UI ajustments 2020-05-15 12:38:28 +02:00
Luca Bösch ee4abdc11d MDL-68253 mod_book: Remove prev arrow on the firstmost page. 2020-05-15 12:20:13 +02:00
Amaia Anabitarte a09129b09c MDL-68636 core_contentbank: Redirect to view page when uploading a file 2020-05-15 11:35:31 +02:00
Amaia Anabitarte 6fc3477cc5 MDL-68636 core_contentbank: Changing get_icon function 2020-05-15 11:35:31 +02:00
Amaia Anabitarte f9830e456a MDL-68636 core_contentbank: Changing parameter classes to be consistent 2020-05-15 11:35:31 +02:00
Víctor Déniz Falcón 296ae78885 MDL-68636 core_contentbank: added method to get H5P id from pathnamehash 2020-05-15 11:35:08 +02:00
Eloy Lafuente (stronk7) d85118369d on-demand release 3.9dev+ 2020-05-15 11:08:05 +02:00
Eloy Lafuente (stronk7) 6b44d48f00 NOBUG: Fixed SVG browser compatibility 2020-05-15 11:07:59 +02:00
Matt Porritt 01436f7539 MDL-64843 Backup: Course copy user interface
This patch adds better core support for copying courses.
There is now a simplified and dedicated UI for copying
courses. This can be accessed from the course context
menu or course management screens.

All backups are done asynchronously and there can be multiple
copies of a course in flight at once.
2020-05-15 06:02:02 +00:00
Jun Pataleta 8a34d36b56 Merge branch 'MDL-52846' of git://github.com/stronk7/moodle 2020-05-15 11:58:39 +08:00
Andrew Nicols bef1d08531 Merge branch 'MDL-66917' of https://github.com/paulholden/moodle 2020-05-15 10:54:15 +08:00
Andrew Nicols 60c3c08f6e MDL-67689 core: Whitespace fix 2020-05-15 10:36:55 +08:00
Andrew Nicols fdae08b8e9 Merge branch 'MDL-67689-master' of git://github.com/bmbrands/moodle 2020-05-15 10:36:54 +08:00
Andrew Nicols 4877ee9ca5 Merge branch 'MDL-68537-master' of git://github.com/jleyva/moodle 2020-05-15 10:36:54 +08:00
Andrew Nicols 362086b9b2 MDL-67990 antivirus_clamav: Typo fix 2020-05-15 10:36:01 +08:00
Andrew Nicols 0817d6ccf3 Merge branch 'MDL-67990' of https://github.com/OdyX/moodle 2020-05-15 08:56:10 +08:00
Eloy Lafuente (stronk7) 036b1beb49 Merge branch 'MDL-68677-master' of git://github.com/andrewnicols/moodle 2020-05-15 01:58:41 +02:00
Eloy Lafuente (stronk7) d2a0e106c6 Merge branch 'MDL-68084' of https://github.com/paulholden/moodle 2020-05-15 01:30:28 +02:00
Eloy Lafuente (stronk7) 9eb1b08f07 Merge branch 'MDL-68645-master-earlyoutputinit' of git://github.com/mudrd8mz/moodle 2020-05-14 16:35:35 +02:00
Ferran Recio 9a4307dd7a MDL-67791 mod_h5pactivity: adding attempts reports 2020-05-14 15:01:26 +02:00
Sara Arjona ccc7a30b3e Merge branch 'MDL-68200-master-take2' of git://github.com/rezaies/moodle 2020-05-14 13:10:01 +02:00
Sara Arjona 85e7049103 Merge branch 'MDL-68246-master-IR-squashed' of git://github.com/mickhawkins/moodle 2020-05-14 12:31:29 +02:00
Ferran Recio ebec56dac0 MDL-67791 mod_h5pactivity: adding review attempts capability 2020-05-14 11:54:33 +02:00
Sara Arjona 0fd6b977b6 Merge branch 'MDL-68241-master' of git://github.com/ferranrecio/moodle 2020-05-14 09:55:35 +02:00
Andrew Nicols d525ac4b8d MDL-68246 user: Add participants_search role & keyword unit tests
Created the participants_search unit testing file, including
tests for role, keywords, status and enroment method filtering.

Co-authored-by: Michael Hawkins <michaelh@moodle.com>
2020-05-14 15:47:34 +08:00
Michael Hawkins 86e71acc0c MDL-68246 user: Adding the participants_search class
This class introduces support for multiple values per filter to the
participants page.
2020-05-14 15:47:34 +08:00
Michael Hawkins 44e47eff9a MDL-68246 lib: Prepare for participants filter multiple groups support
These function updates are in preparation for the participants_search
class, which will be used to support multiple values per filter when
filtering the participants page.
2020-05-14 15:47:52 +08:00
Michael Hawkins 036b7cda10 MDL-68246 lib: Grouplib coding standards and consistency improvements 2020-05-14 15:47:34 +08:00
Ferran Recio 4d0241e488 MDL-68241 mod_h5pactivity: remove MOODLE_INTERNAL 2020-05-14 09:13:56 +02:00
Ferran Recio e28b40695d MDL-68241 mod_h5pactivity: add grading attempts options 2020-05-14 09:13:56 +02:00
Adrian Greeve b75a184312 Merge branch 'MDL-68498-master' of git://github.com/mihailges/moodle 2020-05-14 14:13:55 +08:00
Andrew Nicols 84d8b45fdf MDL-68677 core: Enable prefetching when cachejs is disabled
With the templaterev issue resolved we should enable the prefetch module
when cachejs is enabled to avoid a different experience when cachejs is
enabled vs. disabled.

Previously there was little point in doing this due to a range of other
bugs (string normalisation, and misuse of templaterev).

With these issues resolved we should enabel the caching.
2020-05-14 14:10:55 +08:00
Andrew Nicols b9dec51ab4 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-14 14:10:55 +08:00
David Mudrák 866ce1fbe9 MDL-68645 output: Make other generators fail if they init the output too
Identically to what we've added to the module generators, let's raise a
coding exception if generating a block or a repository triggers the
theme and output initialisation.
2020-05-14 07:55:19 +02:00
Jun Pataleta 2a202f3b97 Merge branch 'MDL-68529' of https://github.com/Chocolate-lightning/moodle 2020-05-14 12:51:35 +08:00
Dmitrii Metelkin 142a02308d MDL-68656 quizaccess_seb: refactor test to use helper trait 2020-05-14 13:11:07 +10:00
Dmitrii Metelkin 355cf68893 MDL-68656 quizaccess_seb: remove incorrect namespace 2020-05-14 11:53:30 +10:00
Dmitrii Metelkin 43302afc56 MDL-68656 quizaccess_seb: move test files 2020-05-14 11:32:43 +10:00
Víctor Déniz Falcón 6b37b6a1ba Merge branch 'MDL-68227-master' of git://github.com/sarjona/moodle 2020-05-13 17:13:11 +01:00
Víctor Déniz Falcón ca7127ed03 Merge branch 'MDL-68697-master' of git://github.com/andrewnicols/moodle 2020-05-13 16:53:16 +01:00
Paul Holden 9965b654f8 MDL-65796 message: improve content of contact request notifications. 2020-05-13 15:40:17 +01:00
Jun Pataleta 9c09ec41d6 Merge branch 'MDL-68483-master' of git://github.com/sarjona/moodle 2020-05-13 19:33:37 +08:00
Sara Arjona f3126f84b4 MDL-68483 contentbank: remove unneeded MOODLE_INTERNAL
These improvements were suggested by Eloy when MDL-67795 and other
content bank issues (such as MDL-67790) were integrated.
2020-05-13 13:31:30 +02:00
Sara Arjona 54ce66bd76 MDL-68483 contentbank: improve search API
These improvements were suggested by Eloy when MDL-67797 was integrated.
2020-05-13 13:31:30 +02:00
Sara Arjona 7616fbfd8e MDL-68483 contentbank: order contents by name 2020-05-13 13:31:29 +02:00
Sara Arjona f9b6849b85 MDL-68483 contentbank: filter contents by name
Credits to Bas and Rafa for helping us to improve the UX.
Also to Amaia with her help with Behat tests.
2020-05-13 13:31:29 +02:00
Eloy Lafuente (stronk7) 6a7146fc71 Merge branch 'MDL-68314-master' of git://github.com/aanabit/moodle 2020-05-13 13:15:17 +02:00
Ruslan Kabalin a38e1d4968 MDL-67548 core_course: Add unittests covering category deletion hooks. 2020-05-13 10:24:33 +01:00
Andrew Nicols 0e809762d4 MDL-68697 core_h5p: Store missing translations as null 2020-05-13 16:35:41 +08:00
David Mudrák 87f9e88ddd MDL-68563 filters: Fix unit test regressions
Also incrementing the plugin versions to make sure the unit test
environment is reinitialised and the tests are reliable.

Minor correction of phpdocs @package tags included.
2020-05-13 16:28:24 +08:00
Simey Lameze 4044914d17 MDL-68563 editor_atto: display emoji picker on atto toolbar
As per enabling of emoticon filters enabling emoji picker is now visible
by default on the Atto editor toolbar.
2020-05-13 16:27:05 +08:00
Simey Lameze 2a9e5ba70a MDL-68563 filter_urltolink: enable filter uppon install
Every major system that people use these days turns URLs into links automatically.

This filter was turned off by default a decade ago because of performance concerns
that do not apply any more, specially on fresh new installations.

In order to improve user experience on text editing features, the urltolink filter
will be now enabled by default in new installations.
2020-05-13 16:24:53 +08:00
Simey Lameze 5f95ea83fd MDL-68563 filter_emoticon: enable filter uppon install
Every major system that people use these days turns smiles into emoticons automatically.

This filter was turned off by default a decade ago because of performance concerns
that do not apply any more, specially on fresh new installations.

In order to improve users experience on text editing features the emoticon filter
will be now enabled by default in new installations.
2020-05-13 16:24:12 +08:00
David Mudrák 005b00dd9b MDL-68645 output: Do not apply filters when creating calendar events
Applying filters on an activity module description when using it as a
new calendar event's description is bad m'kay? We need to store the raw
text and apply the filters only when we actually display the text. That
way, filters (such as multi-language content) may actually fully work
and we do not initialise the theme and output machinery.

Additionally, we need to explicitly set the format of the description
text to HTML (because we have converted it to it already). Otherwise it
defaults to the current user's preferred editor format.

This is still a pragmatic hot-fix solution. The proper solution would be
to pass the raw text, format and embedded files.
2020-05-13 10:03:01 +02:00
Tim Hunt f883c681ff MDL-68645 output: Make module generators fail if they init the output
The coding exception hint should say it all. Creating an activity module
should not need any output function call. It turned out it can lead to
hard-to-debug bugs and unexpected behaviour. So better to explicitly
fail and let the developer fix the code.
2020-05-13 10:03:01 +02:00
Amaia Anabitarte 66489aea0f MDL-68314 core_contentbank: Backup and restore tests 2020-05-13 09:35:58 +02:00
Amaia Anabitarte 3449e22683 MDL-68314 core_contentbank: Course content bank backup and restore 2020-05-13 09:35:58 +02:00
Jun Pataleta 51939f6feb Merge branch 'MDL-68261-cli-config-log' of https://github.com/brendanheywood/moodle 2020-05-13 10:36:54 +08:00
Mihail Geshoski f915dcbe1a MDL-68498 core: Fix content bank links in the navigation drawer 2020-05-13 09:26:18 +08:00
Jake Dallimore 1516b80752 Merge branch 'MDL-68631' of https://github.com/jonof/moodle 2020-05-13 09:24:30 +08:00
Mihail Geshoski cd1a878774 MDL-68498 core: Display content bank icon in nav drawer in classic theme 2020-05-13 08:42:46 +08:00
Eloy Lafuente (stronk7) 47c5108234 Merge branch 'MDL-68614-master' of git://github.com/aanabit/moodle 2020-05-13 00:09:44 +02:00
Eloy Lafuente (stronk7) de185f1c2b Merge branch 'MDL-68417-master' of git://github.com/lameze/moodle 2020-05-12 23:20:21 +02:00
Paul Holden 56b431c2f6 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:23:36 +01:00
Eloy Lafuente (stronk7) d2ecc75e2f MDL-52846 tasks: complete docs and move functions to deprecatedlib
- Add MDL codes to @deprecated.
- Add @todo tag for future 4.3 phase 2 deprecation.
- Deprecate global scope functions:
  - cron_execute_plugin_type().
  - cron_bc_hack_plugin_functions().
  (moving them to deprecatelib).
- Document it in main upgrade.txt
2020-05-12 17:41:13 +02:00
Ankit Agarwal 3bdb8f4584 MDL-52846 tasks: Display developer notice for legacy cron 2020-05-12 17:38:08 +02:00
Amaia Anabitarte ce1fe72dbd MDL-68483 contentbank: adapt to existing behat generator 2020-05-12 16:50:46 +02:00
Sara Arjona a42a9ad997 MDL-68227 core_h5p: localize H5P editor strings
H5P editor has a folder with all supported languages in JS files.
A mechanish has been added to let users to translate them using AMOS.
That's how the translations are managed (the order how they are processed):

- If there a JS file for a language, it's loaded.
- If a string has been translated in Moodle (they are placed in
h5plib_vXXX), it will override strings loaded from the JS file.
2020-05-12 16:39:42 +02:00
Simey Lameze d717918c87 MDL-68417 core_table: add some css styling to loading icon 2020-05-12 21:44:42 +08:00
Ruslan Kabalin 72316a9f4e MDL-67548 core_course: Add more category deletion hooks.
Introduce new hooks for plugin developers:

  - <component>_can_course_category_delete($category)
  - <component>_can_course_category_delete_move($category, $newcategory)
These hooks allow plugin developers greater control over category deletion. Plugin can return false in those
functions if category deletion or deletion with content move to the new parent category is not permitted.

  - <component>_pre_course_category_delete_move($category, $newcategory)
This hook is expanding functionality of existing <component>_pre_course_category_delete hook and allow plugin developers
to execute code prior to category deletion when its content is moved to another category.

 - <component>_get_course_category_contents($category)
This hook allow plugin developers to add information that is displayed on category deletion form. Function should
return string, which will be added to the list of category contents shown on the form.
2020-05-12 14:30:14 +01:00
Amaia Anabitarte 28ebd2719f MDL-68614 core_contentbank: Add svg and png contentbank icons 2020-05-12 14:43:35 +02:00
Sara Arjona 206e179df5 weekly release 3.9dev+ 2020-05-12 14:16:44 +02:00
Mathew May f2d033a2bb MDL-68529 course: Refactor chooser to include loading 2020-05-12 16:59:54 +08:00
Shamim Rezaie a30bb16ef2 MDL-68200 core: Fix phpdoc for the external return functions 2020-05-12 15:13:01 +10:00
Shamim Rezaie 1ba5f0f410 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:13:01 +10:00
Shamim Rezaie 31d401aaa0 MDL-68200 mod_forum: fix invalid format of the time tag on modern view 2020-05-12 15:13:01 +10:00
Shamim Rezaie b0326f0632 MDL-68200 mod_forum: Fix the invalid date format in the time tags 2020-05-12 15:13:01 +10:00
Jun Pataleta 6e95533c73 MDL-68200 mod_forum: Use core/time_element for the discussion list page 2020-05-12 10:59:02 +10:00
Jun Pataleta 26b2982ba0 MDL-68200 core: Add new time_element template 2020-05-12 10:59:02 +10:00
Jun Pataleta e21252b309 MDL-68200 core: Support fixday/hour for core/user_date's get() method 2020-05-12 10:59:02 +10:00
Jun Pataleta 558470e7c1 MDL-68200 core: Support fixday/hour for core_external::get_user_dates() 2020-05-12 10:59:02 +10:00
Shamim Rezaie 127f69d3fe MDL-68200 core: Add calendartype param to user_date.loadDatesFromServer 2020-05-12 10:59:02 +10:00
Shamim Rezaie 4f9bcde969 MDL-68200 core: Add type param to core_get_user_dates external function 2020-05-12 10:59:02 +10:00
Shamim Rezaie 79364d4cdc 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 10:56:29 +10:00
Shamim Rezaie 9f2a68feb4 MDL-68200 mod_forum: single discussion to follow nestet_v2 display rules 2020-05-12 10:56:29 +10:00
Shamim Rezaie fcd34f1876 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 10:56:29 +10:00
Simey Lameze eebe3ca611 MDL-68417 core_table: add spinner to dynamic table 2020-05-12 06:58:06 +08:00
Eloy Lafuente (stronk7) a417c31b2e Merge branch 'MDL-68579-master' of git://github.com/cescobedo/moodle 2020-05-11 23:13:45 +02:00
Eloy Lafuente (stronk7) 5879d1773d Merge branch 'MDL-68276-replace-logs' of https://github.com/brendanheywood/moodle 2020-05-11 23:10:49 +02:00
Ruslan Kabalin 27b29b2996 MDL-67548 core_course: Reflect content move category in deleted event. 2020-05-11 21:08:06 +01:00
Sara Arjona 1d2d4782da Merge branch 'MDL-68654-master' of https://github.com/catalyst/moodle 2020-05-11 19:16:14 +02:00
Jun Pataleta 6165110f0a Merge branch 'MDL-66109-master' of git://github.com/andrewnicols/moodle 2020-05-12 00:03:19 +08:00
Ruslan Kabalin 39e777e3f7 MDL-67548 core_course: Remove category deletion form artefact.
This is not usable for the reason that categorylabel element does not
exist.
2020-05-11 16:11:28 +01:00
Sara Arjona 36a3a259de Merge branch 'MDL-68571-master' of git://github.com/cescobedo/moodle 2020-05-11 16:52:48 +02:00
cescobedo 444b2282f1 MDL-68571 core_h5p: Return default handler if no it has been defined 2020-05-11 16:46:27 +02:00
Sara Arjona 80fd46edfd Merge branch 'MDL-68576-master' of git://github.com/mihailges/moodle 2020-05-11 16:36:59 +02:00
Jun Pataleta d1735204c0 Merge branch 'MDL-63580-master' of git://github.com/cescobedo/moodle 2020-05-11 22:32:34 +08:00
cescobedo db15746c2d MDL-63580 core_task: Deprecation cron_run_single_task and run_from_cli
Also we have move the functions in \tool_task\run_from_cli to \core\task\manager
and we have deprecated that class.
2020-05-11 10:53:23 +02:00
cescobedo 079736ccb3 MDL-63580 core_task: Deprecation CLI scripts from admin/tool/task/cli
Copy the CLI scripts from admin/tool/task/cli to admin/cli (schedule_task.php and adhoc_task.php)
and rename to scheduled_task.php and to improve in order to use cron_run_inner_scheduled_task.
2020-05-11 10:53:17 +02:00
Jun Pataleta c314ec6770 Merge branch 'MDL-68041-master-rev2' of https://github.com/nhoobin/moodle 2020-05-11 16:27:48 +08:00
cescobedo b19468ce8a MDL-68579 core_h5p: Add a check to avoid execute task using BEHAT 2020-05-11 10:13:08 +02:00
Nicholas Hoobin 119a83f148 MDL-68041 core_theme: New admin settings in secure page layout
This adds two new admin settings to the theme appearance options.

Shows the lang menu in secure layout, langmenuinsecurelayout.
Shows the user's name in secure layout, logininfoinsecurelayout.

When the page layout is set to secure, these options will be in effect.
2020-05-11 17:23:17 +10:00
Andrew Nicols 29c5fafff5 MDL-66109 js: Fix Shifter linting issues 2020-05-11 11:07:49 +08:00
Andrew Nicols 4ad0f38a82 MDL-66109 js: Upgrade to latest version of Shifter
This change bumps the version of Shifter that we use to the final
release - version 1.2.0.

I strongly doubt that there will be more releases, and this release was
over two years ago.

This version uses a newer version of Istanbul, and fixes to use that
specific version of Istanbul. As a result I have forked Shifter and
applied the Moodle Circular Dependency fixes there instead.

This version also inludes an upgrade to uglify from 1.3.x to 2.4.x. This
major upgrade includes a some changes to the built YUI module code.
2020-05-11 11:07:49 +08:00
Andrew Nicols bbb291ba2f MDL-66109 behat: Prevent the use of Examples in Scenarios
This change enables the Gherkin-lint rule to prevent the use of
"Examples" in a Scenario.

The Example tag is only allowed in a Scenario Outline at this time and
their use in a Scenario has no meaning.
2020-05-11 11:07:49 +08:00
Andrew Nicols 7afd16ad84 MDL-66109 behat: Require newline at EOF
This change enables the gherkinlint rule to require a new line at the
end of the file. This change is in keeping with existing Moodle coding
style guidelines.
2020-05-11 11:07:49 +08:00
Andrew Nicols 149d80e819 MDL-66109 behat: Fix Example usage in feature files
The gherkin-lint package now understands the use of "Examples" and
requries that their indentation be correct and consistent.

This change sets the indentatation for these to:

    "Examples": 4,
    "example": 6,

This is in-line with the examples given in the offical Cucumber/Gherkin
documentation at
https://cucumber.io/docs/gherkin/reference/#scenario-outline whereby the
Examples and individual rows of the Examples table are children of the
Scenario outline.

This is contrary to the default for Gherkin-lint which places them as
top-level nodes with an indentatio of 0, and 2 respectively.
2020-05-11 10:55:58 +08:00
Andrew Nicols bf6630a832 MDL-66109 css: Fix incorrect max-empty-lines in Boost scss
This was previously not picked up by stylelint for an unknown reason.
2020-05-11 10:55:57 +08:00
Andrew Nicols 1152df3ec4 MDL-66109 css: Drop use of filter:alpha(opacity)
This CSS statement was an MS-only rule which was never accepted, and
which was abonded some time before IE 10. It has no effect in supported
browsers and can be safely replace with `opacity: [0.0-1.0]`.
2020-05-11 10:55:57 +08:00
Andrew Nicols f879cc518e MDL-66109 js: Build changes for NodeJS upgrade
This change includes a build to fix all minified file changes in Moodle
as a result of upgrades to our build process.
2020-05-11 10:55:54 +08:00
Andrew Nicols 5b4debd2b0 MDL-66109 js: Upgrade Node dependencies
This change updates most libraries used in our Grunt build stack and
applies necessary changes to Grunt and Gherkin-lint configuration to
ensure that they continue to work.

The grunt-sass plugin has been updated to support alternative
'implementations' of sass compilers, and the chosen sass compiler must
now be specified in the grunt configuration. We continue to use the
`node-sass` package for this.

Our gherkin-lintrc included two rules which were renamed from
'no-unamed-*' to 'no-unnamed-*'. This change occurred in version 2.0.0
of Gherkin-lint and has no other effect.
2020-05-11 10:53:35 +08:00
Andrew Nicols 9b7e6e9c6c MDL-66109 js: Built file changes from new Node version 2020-05-11 10:53:35 +08:00
Andrew Nicols a508dfb43a 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:35 +08:00
Andrew Nicols 1591dc5786 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:35 +08:00
Andrew Nicols 0d5b115b0e Merge branch 'MDL-68271-master' of git://github.com/sarjona/moodle 2020-05-11 09:10:40 +08:00
Dmitrii Metelkin 774bd482fd MDL-68654 quizaccess: destroy a restore controller in tests 2020-05-10 09:29:16 +10:00
Jun Pataleta 2f5e791395 Merge branch 'MDL-65547-master' of git://github.com/jleyva/moodle 2020-05-09 00:30:34 +08:00
Sara Arjona f635915137 MDL-68271 core_h5p: implement localization methods for editor
The following methods have been implemented for supporting
content-type translations:
- H5PEditorAjaxInterface.getTranslations. This method is used for
loading the "Text overrides and translations" section.
- H5peditorStorage.getLanguage. This method is used for displaying
the specific fields and messages for each content-type library.
- H5peditorStorage.getAvailableLanguages. This method is used to
get the language list displayed into the "Text overrides and
translations" section.
2020-05-08 18:18:24 +02:00
Juan Leyva af59fe585a MDL-65547 tool_mobile: Allow to generate site QR codes only 2020-05-08 16:51:36 +02:00
Huong Nguyen 1937957be3 MDL-68549 Drag-drop into text: minor glitches caused by MDL-68113 2020-05-08 19:37:50 +07:00
Eloy Lafuente (stronk7) 36e5a07a59 on-demand release 3.9dev+ 2020-05-08 13:32:22 +02:00
Eloy Lafuente (stronk7) 635ea71fb0 NOBUG: Fixed file access permissions 2020-05-08 13:32:22 +02:00
Eloy Lafuente (stronk7) c6b75af51b NOBUG: Fixed SVG browser compatibility 2020-05-08 13:32:20 +02:00
Eloy Lafuente (stronk7) ffa413895b Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-05-08 13:32:18 +02:00
Mihail Geshoski 90feebe486 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-08 16:58:43 +08:00
Mihail Geshoski cba4a1d9b3 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-08 16:33:57 +08:00
Juan Leyva 118852a710 MDL-65547 tool_mobile: New WS for generating tokens with qr login keys 2020-05-08 10:26:45 +02:00
Juan Leyva 9df5151013 MDL-65547 tool_mobile: Display QR in user profile 2020-05-08 10:26:45 +02:00
Juan Leyva f24b0795ef MDL-65547 qr: Wrapper for core_qrcode 2020-05-08 10:26:45 +02:00
Mihail Geshoski 1de1fc58f3 MDL-68576 filepicker: Fix inability to select files in table view 2020-05-08 14:40:36 +08:00
Jake Dallimore 812aaf73d7 Merge branch 'MDL-51694-m' of https://github.com/MartinGauk/moodle 2020-05-08 11:22:31 +08:00
Eloy Lafuente (stronk7) 9a4a8bd3cb Merge branch 'MDL-68443-xmldb-path-validation' of https://github.com/brendanheywood/moodle 2020-05-07 19:16:37 +02:00
Eloy Lafuente (stronk7) 7bf6fd4528 Merge branch 'MDL-67753-master' of git://github.com/jleyva/moodle 2020-05-07 18:44:45 +02:00
Eloy Lafuente (stronk7) 301cd3e9c0 Merge branch 'MDL-68415' of https://github.com/paulholden/moodle 2020-05-07 18:38:43 +02:00
Jake Dallimore 3450a08366 Merge branch 'MDL-68572-master' of https://github.com/catalyst/moodle 2020-05-07 18:30:47 +02:00
Jake Dallimore 37e9a8c2b3 Merge branch 'MDL-62403-master' of git://github.com/lameze/moodle 2020-05-07 18:30:47 +02:00
Tim Schroeder 5760d9a09f MDL-68629 mod_choice: multilang coursename support 2020-05-07 15:49:13 +02:00
Simey Lameze 907212695c MDL-62403 portfolio: add upgrade notes for google docs 2020-05-07 12:40:22 +08:00
Ryan Wyllie 5b4ae0038d 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:40:22 +08:00
Jun Pataleta 08103b0a64 MDL-68355 gradingform_guide: Improve lang strings 2020-05-07 11:49:53 +08:00
Jonathon Fowler 4ac6c3d44e MDL-68631 cron: ensure the cron user is reset between scheduled tasks 2020-05-07 13:26:23 +10:00
Andrew Nicols ac53825ff2 Merge branch 'MDL-68556-master-pluginscheckcss' of git://github.com/mudrd8mz/moodle 2020-05-07 09:13:20 +08:00
Paul Holden 2cd534a7df MDL-68410 mod_scorm: safer status operator comparison. 2020-05-07 09:02:42 +08:00
Adrian Greeve 0e9fcef421 Merge branch 'MDL-67613-master' of git://github.com/ferranrecio/moodle 2020-05-07 08:40:41 +08:00
Paul Holden f4488eca79 MDL-68415 core: test attachments in email_to_user from allowed paths. 2020-05-06 23:23:17 +01:00
Juan Leyva 37bd67f54b MDL-67753 registration: Enable Push Notifications when site register
There are some changes to make this possible:
- Enable by default the Mobile notifications plugin
- Implement a new callback for core -> plugins communication
- Generate an Airnotifier access key in the callback when needed
2020-05-06 23:20:13 +02:00
Ferran Recio b745817203 MDL-68430 filter_mathjaxloader: update default CDN to 2.7.8 2020-05-06 21:14:41 +02:00
Víctor Déniz Falcón 50d3cc3268 Merge branch 'MDL-68235' of git://github.com/Chocolate-lightning/moodle 2020-05-06 20:05:32 +01:00
Sara Arjona 773e46c808 Merge branch 'MDL-68381-master' of git://github.com/ferranrecio/moodle 2020-05-06 17:43:53 +02:00
Ferran Recio 1db6424ceb MDL-67613 availability_completion: replacing old arrays 2020-05-06 11:27:34 +02:00
Jun Pataleta 2685accca8 Merge branch 'MDL-68402' of https://github.com/timhunt/moodle 2020-05-06 17:04:25 +08:00
Ferran Recio c54b183c8d MDL-67613 availability_completion: add previous activity condition 2020-05-06 10:56:47 +02:00
Tim Hunt 1ed243c2fe MDL-68402 accesslib: fix coding style of loops 2020-05-06 09:18:02 +01:00
Tim Hunt 1736c59925 MDL-68402 accesslib: Modernise coding style in the functions changed 2020-05-06 09:18:02 +01:00
Tim Hunt 0d3bdb94bc 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:18:02 +01:00
Mathew May edf52a0e65 MDL-68235 core_course: Sections work after drag and drop reordering 2020-05-06 16:14:48 +08:00
Mathew May 278d9d30f7 MDL-68235 core_course: Add section ID attribute to sections 2020-05-06 16:14:48 +08:00
Eloy Lafuente (stronk7) bb341e4b2f Merge branch 'MDL-68615' of https://github.com/timhunt/moodle 2020-05-06 10:07:28 +02:00
Dmitrii Metelkin 93532e7871 MDL-68572 quizaccess: use uploaded file as is for SEB settings 2020-05-06 17:13:53 +10:00
Tim Hunt bee903193b MDL-68615 questions: more increment idnumber cases found by our tester 2020-05-06 07:46:09 +01:00
Simey Lameze c0db61e45f MDL-68462 core_table: add missing global 2020-05-06 14:40:33 +08:00
Andrew Nicols 53e4ba3143 Merge branch 'MDL-68216-master' of git://github.com/lucaboesch/moodle 2020-05-06 14:20:09 +08:00
Brendan Heywood 529c509f62 MDL-68276 admin: Skip risky tables and columns in db_replace 2020-05-06 15:46:41 +10:00
Jake Dallimore 3e5c3cf8d9 Merge branch 'MDL-68293-master' of git://github.com/jleyva/moodle 2020-05-06 12:53:16 +08:00
Andrew Nicols 6507a3368f Merge branch 'MDL-68217-master' of git://github.com/lucaboesch/moodle 2020-05-06 12:50:15 +08:00
Jake Dallimore 279f6488ca Merge branch 'MDL-67800-master' of git://github.com/andrewnicols/moodle 2020-05-06 12:10:31 +08:00
Andrew Nicols db15dab80c MDL-67800 contentbank: Include missing event class 2020-05-06 12:06:59 +08:00
Andrew Nicols 7b0d235876 Merge branch 'MDL-67845-master-3' of git://github.com/mihailges/moodle 2020-05-06 11:22:26 +08:00
Jun Pataleta 2bacffba53 Merge branch 'MDL-68301-master' of git://github.com/bmbrands/moodle 2020-05-06 11:06:11 +08:00
Adrian Greeve 5178f0f43c Merge branch 'MDL-68462-master' of git://github.com/lameze/moodle 2020-05-06 11:06:11 +08:00
Andrew Nicols d86dfdd51e Merge branch 'MDL-67800-master-3' of git://github.com/aanabit/moodle 2020-05-06 11:06:11 +08:00
Andrew Nicols 1ad79ecb18 Merge branch 'MDL-67383-master-1' of git://github.com/mihailges/moodle 2020-05-06 11:06:10 +08:00
Mihail Geshoski 5aca440471 MDL-67383 media_videojs: Update VideoJS versions in Moodle related files 2020-05-06 11:06:08 +08:00
Mihail Geshoski 9632fde77f MDL-67383 media_videojs: Upgrade VideoJS and plugins to latest version
Upgrade VideoJS (7.7.6), Youtube Playback for VideoJS (2.6.1), Flash Tech for VideoJS (2.2.1), Flash Player for VideoJS (5.4.2)
2020-05-06 11:06:08 +08:00
Mihail Geshoski 9fa46e8a8c MDL-67845 enrol_database: Remove enrol_database_admin_setting_category
This class was only used by the database enrolment plugin settings and
was replaced by admin_settings_coursecat_select. Also, this class is in
a plugin which we do not expect to be extended and therefore it can be
simply removed without going through the deprecation process.
2020-05-06 10:50:05 +08:00
Mihail Geshoski b16f5398a5 MDL-67845 enrol_database: Use course category selection setting
We should use admin_settings_coursecat_select instead of
enrol_database_admin_setting_category as the second class is only
being used by the database enrolment plugin settings and can be
removed after this change.
2020-05-06 10:50:05 +08:00
Simey Lameze 937f21d3b8 MDL-68462 core_table: add @javascript to failing scenario 2020-05-06 09:44:44 +08:00
Simey Lameze 68c46a28d6 MDL-68462 core_table: add support for reset table preferences 2020-05-06 09:44:39 +08:00
Andrew Nicols ae346c8624 Merge branch 'MDL-68548' of https://github.com/Neosi/moodle 2020-05-06 08:55:51 +08:00
Andrew Nicols 9d67c34709 Merge branch 'MDL-63609' of https://github.com/paulholden/moodle 2020-05-06 08:50:00 +08:00
Jake Dallimore 1b4e6b3826 Merge branch 'MDL-68355-master' of git://github.com/junpataleta/moodle 2020-05-06 08:36:06 +08:00
AMOS bot ee37ed1a78 Automatically generated installer lang files 2020-05-06 00:13:03 +00:00
Eloy Lafuente (stronk7) dac1b3a4eb Merge branch 'MDL-68541-39' of https://github.com/PoetOS/moodle 2020-05-06 01:04:14 +02:00
Eloy Lafuente (stronk7) 95430af3f1 Merge branch 'MDL-68615' of https://github.com/timhunt/moodle 2020-05-06 00:58:26 +02:00
Victor Deniz Falcon 45067da068 Merge branch 'MDL-68338' of git://github.com/timhunt/moodle 2020-05-05 22:21:36 +01:00
Luca Bösch 690470974f MDL-68217 course: Style recent activity report. 2020-05-05 22:09:32 +02:00
Luca Bösch 439c8c5933 MDL-68216 block_recent_activity: Format elements more nicely. 2020-05-05 22:09:19 +02:00
Paul Holden 118a109499 MDL-67547 dataformat: allow plugins to declare support for HTML. 2020-05-05 19:23:32 +01:00
Eloy Lafuente (stronk7) a09eb2697f on-demand release 3.9dev+ 2020-05-05 19:06:06 +02:00
Eloy Lafuente (stronk7) a0ad55c599 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-05-05 19:06:03 +02:00
Tim Hunt 1d47cb2168 MDL-68615 questions: fix fiendish default idnumber edge case 2020-05-05 16:19:54 +01:00
Neosi 27e44c18fe MDL-68548 editor-atto: change <i> tags to <em> 2020-05-05 09:50:26 +01:00
Amaia Anabitarte f2e02ea9f0 MDL-67800 core_contentbank: Testing contentbank events 2020-05-05 10:20:20 +02:00
Amaia Anabitarte d90ff83962 MDL-67800 core_contentbank: Fixing search content provider 2020-05-05 10:20:20 +02:00
Amaia Anabitarte fb302d3848 MDL-67800 core_contentbank: Creating events for contentbank 2020-05-05 10:20:20 +02:00
Amaia Anabitarte b39a03d739 MDL-67800 contenttype_h5p: Fix the error when deleting a content with no file 2020-05-05 10:19:15 +02:00
Amaia Anabitarte 48bcb1f228 MDL-67800 core_contentbank: Moving uploading logic to contentbank class 2020-05-05 10:19:15 +02:00
Brendan Heywood 76de190c25 MDL-68261 report_configlog: Log changes from admin/cli/cfg.php 2020-05-05 17:52:27 +10:00
Didier 'OdyX' Raboud eebd02461b MDL-67990 antivirus_clamav: set chunksize to 32Mb 2020-05-05 09:33:26 +02:00
Didier 'OdyX' Raboud bf427afcf6 MDL-67990 antivirus_clamav: validate tcpsocket with unset default port 2020-05-05 09:33:25 +02:00
Jake Dallimore eec3a65e5d Merge branch 'MDL-47750' of https://github.com/timhunt/moodle 2020-05-05 11:55:15 +08:00
Andrew Nicols 0449045fa0 Merge branch 'MDL-68542-39' of https://github.com/JayChurchward/moodle 2020-05-05 11:50:04 +08:00
Andrew Nicols 561fc87034 Merge branch 'MDL-68551' of https://github.com/Neosi/moodle 2020-05-05 11:48:46 +08:00
Andrew Nicols 1174dcb184 Merge branch 'MDL-68465-master' of git://github.com/junpataleta/moodle 2020-05-05 11:29:10 +08:00
Andrew Nicols 7be118e265 Merge branch 'MDL-67881-master' of git://github.com/bmbrands/moodle 2020-05-05 11:17:33 +08:00
Jun Pataleta 6a71bccfea Merge branch 'MDL-68524-master' of git://github.com/andrewnicols/moodle 2020-05-05 10:50:09 +08:00
Andrew Nicols a427a48c10 MDL-68524 core: Prefetch modal registry templates 2020-05-05 10:16:10 +08:00
Andrew Nicols 983baf4e34 MDL-68524 js: Add prefetch module 2020-05-05 10:16:10 +08:00
Andrew Nicols 37f48d2547 Merge branch 'MDL-68500' of https://github.com/paulholden/moodle 2020-05-05 09:48:24 +08:00
AMOS bot 21b77db6eb Automatically generated installer lang files 2020-05-05 00:11:26 +00:00
Eloy Lafuente (stronk7) 87c0887564 Merge branch 'MDL-67790-master' of git://github.com/aanabit/moodle 2020-05-04 23:01:20 +02:00
Eloy Lafuente (stronk7) f6bfa49cc6 Merge branch 'MDL-52904-master' of git://github.com/junpataleta/moodle 2020-05-04 22:31:25 +02:00
Amaia Anabitarte 3a6ca392d8 MDL-67790 core_contentbank: Unit and behat tests for renaming content 2020-05-04 20:15:05 +02:00
Amaia Anabitarte cc58791b68 MDL-67790 core_contentbank: Behat contentbank content generator 2020-05-04 20:15:05 +02:00
Amaia Anabitarte 448012c6b6 MDL-67790 core_contentbank: Add Rename content option 2020-05-04 20:15:05 +02:00
Sara Arjona a58e8cb0a1 Merge branch 'MDL-68379-master' of git://github.com/ferranrecio/moodle 2020-05-04 20:02:06 +02:00
Sara Arjona da2f9f6510 Merge branch 'MDL-67713-master' of git://github.com/ferranrecio/moodle 2020-05-04 19:30:45 +02:00
Ferran Recio 9848594715 MDL-68381 mod_h5pactivity: add attempt duration, completion and success 2020-05-04 18:53:00 +02:00
Ferran Recio 72a2335151 MDL-68379 core_xapi: adding result, attachments and context to statement 2020-05-04 18:47:11 +02:00
Ferran Recio 75ba339cdb MDL-68379 mod_h5pactivity: adding item_result to xAPI handler 2020-05-04 18:47:11 +02:00
Ferran Recio 7f5b6adac1 MDL-67713 mod_h5pactivity: adding backup and restore 2020-05-04 18:42:48 +02:00
Paul Holden 8844cb8286 MDL-68500 dataformat: re-factor download/export methods into new class. 2020-05-04 16:01:12 +01:00
Martin Gauk 966556074c MDL-51694 core_grades: use transactions when deleting 2020-05-04 12:48:41 +00:00
fujiwara c4f51bfd31 MDL-68415 email: Fix attachment in email_to_user() 2020-05-04 21:43:57 +09:00
Tim Hunt 33d4f4b0b9 MDL-47750 Atto: allow pasting of images
Note: this works if you have image data on the clipboard (e.g. a
screen-grab). It does not work in most other cases, basically because
web browsers are completely unhelpful in the paste/drop events
they raise. See the detailed analysis of my testing in the tracker
issue. (Hopefully this will improve in future.)
2020-05-04 10:15:08 +01:00
Sara Arjona 271d08f37b Merge branch 'MDL-68315-master' of https://github.com/kabalin/moodle 2020-05-04 10:37:17 +02:00
Paul Holden 1de3b81983 MDL-68500 dataformat: allow instances to export to local file. 2020-05-04 09:32:44 +01:00
Andrew Nicols 3ba4248fe7 Merge branch 'MDL-68502-master' of git://github.com/ferranrecio/moodle 2020-05-04 15:59:04 +08:00
Andrew Nicols 34851c1171 Merge branch 'MDL-68266-master' of git://github.com/bmbrands/moodle 2020-05-04 15:33:14 +08:00
Ferran Recio b4f617a609 MDL-68502 mod_h5pactivity: fixing get_file_info error 2020-05-04 09:30:32 +02:00
Jun Pataleta 716ac2c902 Merge branch 'MDL-68409-master' of git://github.com/andrewnicols/moodle 2020-05-04 15:22:12 +08:00
Bas Brands a521226dd2 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:11:03 +02:00
Andrew Nicols 47d094817f MDL-68409 behat: Fix tests from modal rewrite 2020-05-04 15:08:11 +08:00
Andrew Nicols 67774a9567 MDL-68409 js: Convert cancel modals to ES6 2020-05-04 15:08:11 +08:00
Andrew Nicols 9050f3f17e MDL-68409 js: Convert alert and confirmation dialogues to use modal 2020-05-04 15:08:10 +08:00
Andrew Nicols e8df743b3b MDL-68409 js: Convert core/notification to ES6 2020-05-04 15:07:49 +08:00
Andrew Nicols b810c84f2b MDL-68409 js: Add Alert modal 2020-05-04 15:07:49 +08:00
Andrew Nicols fc3d7d693a MDL-68409 js: Fix eslint failure in modal 2020-05-04 15:07:48 +08:00
Andrew Nicols 92810f7af9 MDL-68409 js: Add setButtonText modal helper 2020-05-04 15:07:48 +08:00
Andrew Nicols fa6101ba27 MDL-68409 js: Add helper to register close event on save/cancel 2020-05-04 15:07:48 +08:00
Adrian Greeve 5d91ca0d7a Merge branch 'MDL-68454-master' of git://github.com/andrewnicols/moodle 2020-05-04 12:18:54 +08:00
Andrew Nicols 2cc28979f0 MDL-68454 mod_feedback: Update get_context to match parent 2020-05-04 11:52:20 +08:00
Andrew Nicols 685fe08003 MDL-68454 table: Improve documentation for dynamic table 2020-05-04 11:52:19 +08:00
Andrew Nicols 5615a772a6 MDL-68454 table: Move guessing of base URL to flexible 2020-05-04 11:52:19 +08:00
Andrew Nicols 56143dd622 MDL-68454 table: Move filterset functionality to flexible_table 2020-05-04 11:52:19 +08:00
Andrew Nicols c00552b3b0 MDL-68454 table: Move get_context from dynamic to flexible 2020-05-04 11:52:19 +08:00
Andrew Nicols ff475522fb MDL-68454 table: Drop get_unique_id_from_argument fn requirement
This was originally intended to be a way for the calling code to specify
data as part of the table construction which could then be used as
appropriate. When the filterset was created the requirement for this
function no longer existed.

Removing this to simplify the API.
2020-05-04 11:52:19 +08:00
Jake Dallimore cd98a57b9f Merge branch 'MDL-68382-master' of https://github.com/HuongNV13/moodle 2020-05-04 10:37:50 +08:00
David Saylor 525a9da269 MDL-52904 completion: reference context in cron query
Co-authored-by: Barbara Lawrence <blawrence@harlow-college.ac.uk>
2020-05-04 09:57:37 +08:00
Jun Pataleta 9d65860430 MDL-52904 completion: Unit tests for daily completion task 2020-05-04 09:57:30 +08:00
Adrian Greeve 4f7b9e3276 Merge branch 'MDL-68330-master-2' of git://github.com/mihailges/moodle 2020-05-04 07:15:03 +08:00
Ruslan Kabalin 50bf320f4d MDL-68592 formslib: Fix inline layout for nested groups 2020-05-03 21:02:30 +01:00
Andrew Nicols 2d1944fe60 Merge branch 'MDL-66263' of https://github.com/stronk7/moodle 2020-05-03 20:21:17 +08:00
Andrew Nicols e2ad2506df Merge branch 'MDL-68589' of https://github.com/stronk7/moodle 2020-05-03 20:13:54 +08:00
Andrew Nicols 53c06b63c5 Merge branch 'MDL-68473-master' of git://github.com/vmdef/moodle 2020-05-03 19:59:46 +08:00
Eloy Lafuente (stronk7) 2f24562d07 MDL-68589 plist: Add information about local changes 2020-05-03 01:28:41 +02:00
Eloy Lafuente (stronk7) bf527c8bf9 MDL-68589 plist: PHP 7.4 curly bracket fixes
Note this is, partially, https://github.com/TECLIB/CFPropertyList/pull/61

I only have applied the stricly required PHP 7.4 changes, keeping
apart the intval() ==> (int) change, because that's unrelated to
this fix.
2020-05-03 01:05:10 +02:00
Eloy Lafuente (stronk7) 31bb99549e 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:15 +02:00
Eloy Lafuente (stronk7) cd391f9922 on-demand release 3.9dev+ 2020-05-02 16:37:31 +02:00
Eloy Lafuente (stronk7) 89696acccf Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-05-02 16:37:29 +02:00
Eloy Lafuente (stronk7) 1097530242 Merge branch 'MDL-68328-dlfix' of https://github.com/cengage/moodle 2020-05-01 23:33:08 +02:00
Claude Vervoort 779e753faf MDL-68328 mod_lti: resourcekey and pwd hidden not removed 2020-05-01 15:03:14 -04:00
Juan Leyva f724514e4f MDL-68537 tool_mobile: Add new features to disable
We need to allow admins to disable the new things coming in the app.
2020-05-01 17:55:38 +02:00
Eloy Lafuente (stronk7) 157f5c9e54 Merge branch 'MDL-66135' of https://github.com/paulholden/moodle 2020-05-01 16:07:56 +02:00
Víctor Déniz Falcón a8455b7240 MDL-68473 core_h5p: moved fixture to anonymous class 2020-05-01 14:25:11 +01:00
Victor Deniz Falcon e4127c9262 MDL-68473 core_h5p: fixed import of moodleform class 2020-05-01 13:59:16 +01:00
Paul Holden e1dfd4b83c MDL-66135 tool_uploadcourse: case-insensitive date string comparison.
Account for PM/pm differences in PHP on different OS.
2020-05-01 09:05:07 +01:00
Jun Pataleta c9a5ccccf0 Merge branch 'MDL-67798-master-fix' of git://github.com/andrewnicols/moodle 2020-05-01 15:44:26 +08:00
Andrew Nicols 9e0c40d1bd MDL-67798 contentbank: Sort data before comparison 2020-05-01 15:42:01 +08:00
Bas Brands 4a6215149e MDL-67689 theme_boost: improve theme designer mode performance 2020-05-01 08:26:50 +02:00
Andrew Nicols 3076dfe55d Merge branch 'MDL-68492-master' of https://github.com/sammarshallou/moodle 2020-05-01 12:07:00 +08:00
Andrew Nicols ce8cc79712 MDL-67798 contentbank: Whitespace fixes 2020-05-01 11:51:15 +08:00
Andrew Nicols 468817abcd Merge branch 'MDL-67798-master' of git://github.com/cescobedo/moodle 2020-05-01 11:43:20 +08:00
Andrew Nicols aa3813b72b Merge branch 'master_MDL-67540' of https://github.com/golenkovm/moodle 2020-05-01 11:20:55 +08:00
Jun Pataleta cfcbebaacb Merge branch 'MDL-68506-master' of git://github.com/andrewnicols/moodle 2020-05-01 11:20:21 +08:00
Andrew Nicols 8d186121ab Merge branch 'MDL-57680' of https://github.com/timhunt/moodle 2020-05-01 11:00:19 +08:00
Dmitrii Metelkin 327da79b27 MDL-67850 quizaccess: change SEB supported versions 2020-05-01 10:59:36 +08:00
Dmitrii Metelkin baed1968b5 MDL-67850 quizaccess: fix broken unit tests 2020-05-01 10:59:08 +08:00
Dmitrii Metelkin 4b6c4f6713 MDL-67850 quizaccess: remove invalid white spaces 2020-05-01 10:58:30 +08:00
Dmitrii Metelkin 4aaf342df7 MDL-67850 lib: remove trailing slash for plist 2020-05-01 10:58:18 +08:00
Andrew Nicols 5a477de341 Merge branch 'MDL-43156' of https://github.com/stronk7/moodle 2020-05-01 10:16:37 +08:00
Eloy Lafuente (stronk7) fcad901c73 Merge branch 'MDL-66135' of https://github.com/paulholden/moodle 2020-05-01 01:51:49 +02:00
Bas Brands 555ec89ad3 MDL-68329 cache: Improve cache performance footer info 2020-05-01 01:13:37 +02:00
Paul Holden d62fc08ed9 MDL-66135 tool_uploadcourse: support custom course fields. 2020-05-01 00:10:15 +01:00
Eloy Lafuente (stronk7) fd0344e388 Merge branch 'MDL-68328-dlfix' of https://github.com/cengage/moodle 2020-05-01 00:32:00 +02:00
Eloy Lafuente (stronk7) 9b0a1e2a98 Merge branch 'MDL-68427-master' of git://github.com/andrewnicols/moodle 2020-04-30 23:35:09 +02:00
Davo Smith 9da975fe21 MDL-43156 core_form: fix handling of fixture form
Also moving it from behat_forms to behat_navigation
2020-04-30 20:39:24 +02:00
Davo Smith 5079271b39 MDL-43156 formslib: newly-created repeat elements get the default values 2020-04-30 20:16:07 +02:00
JayChurchward 869f44063e MDL-68542 editor-atto: Change the bold tag to <strong>. 2020-04-30 11:29:22 -04:00
Mike Churchward 7e03b27dd9 MDL-68541 editor-atto: Limiting alt text length, changing ignore text. 2020-04-30 09:47:59 -04:00
Jun Pataleta 9be6c16a37 Merge branch 'MDL-66732' of https://github.com/paulholden/moodle 2020-04-30 17:16:16 +08:00
Andrew Nicols e217c0f326 Merge branch 'MDL-67075-redis-session-locks' of https://github.com/brendanheywood/moodle 2020-04-30 16:05:05 +08:00
Jun Pataleta 2a858c2d5e Merge branch 'MDL-68404-master' of git://github.com/lucaboesch/moodle 2020-04-30 13:33:45 +08:00
Brendan Heywood 7bc8ccdcf0 MDL-67075 session: Added extra debugging of blocking redis session locks 2020-04-30 13:06:07 +10:00
Jun Pataleta 728b03c049 Merge branch 'MDL-68309-master' of https://github.com/snake/moodle 2020-04-30 09:57:50 +08:00
Jake Dallimore 192a43f109 Merge branch 'MDL-67850-seb-integration-3' of https://github.com/catalyst/moodle 2020-04-30 09:13:14 +08:00
AMOS bot 573704d577 Automatically generated installer lang files 2020-04-30 00:11:50 +00:00
Huong Nguyen d0311165a7 MDL-68446 drag to image qtypes: remove hard-coded image size limits 2020-04-29 22:59:53 +01:00
Eloy Lafuente (stronk7) 9b2b1f3fa5 Merge branch 'MDL-68434-master-enfix' of git://github.com/mudrd8mz/moodle 2020-04-29 22:52:40 +02:00
Huong Nguyen a05ef1307e MDL-58645 Drag and drop onto image questions: responsive support 2020-04-30 00:43:45 +07:00
David Mudrák 8599eb5ebb MDL-68434 lang: Use the updated terminology in the tests 2020-04-29 17:40:58 +02:00
Neosi d772cce77a MDL-68551 editor-atto: change <strike> to <del> 2020-04-29 16:00:12 +01:00
David Mudrák 1338b9df8b 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:40:45 +02:00
Adrian Greeve b8cf95bb48 Merge branch 'MDL-68442-master' of git://github.com/andrewnicols/moodle 2020-04-29 13:54:57 +08:00
Dmitrii Metelkin 78adf6f63a MDL-67850 quizaccess: remove the old quizaccess_safebrowser
Co-authored-by: Nicholas Hoobin <nicholashoobin@catalyst-au.net>
Co-authored-by: Andrew Madden <andrewmadden@catalyst-au.net>
2020-04-29 14:29:21 +10:00
Andrew Madden 79f621241c MDL-67850 quizaccess: add Safe Exam Browser access rule plugin
Co-authored-by: Nicholas Hoobin <nicholashoobin@catalyst-au.net>
Co-authored-by: Dmitrii Metelkin <dmitriim@catalyst-au.net>
2020-04-29 14:28:54 +10:00
Andrew Madden 3df8492132 MDL-67850 lib: add new plist library
Co-authored-by: Nicholas Hoobin <nicholashoobin@catalyst-au.net>
Co-authored-by: Dmitrii Metelkin <dmitriim@catalyst-au.net>
2020-04-29 14:10:22 +10:00
Andrew Nicols eb0ddccd49 Merge branch 'MDL-68433-adhoc-task-lookahead' of https://github.com/brendanheywood/moodle 2020-04-29 08:22:27 +08:00
Andrew Nicols cb8ad9c76e Merge branch 'MDL-68378-master' of git://github.com/rezaies/moodle 2020-04-29 08:19:09 +08:00
Eloy Lafuente (stronk7) 368dd60877 Merge branch 'MDL-64417' of https://github.com/paulholden/moodle 2020-04-28 23:55:22 +02:00
Eloy Lafuente (stronk7) e8ab043ec2 Merge branch 'MDL-68329-cache-info' of https://github.com/brendanheywood/moodle 2020-04-28 23:34:41 +02:00
Dan Marsden a542fe35b5 MDL-67497 lib: backuptargetimport should be set as captype:read 2020-04-29 08:11:17 +12:00
Jun Pataleta 0ec4dd8333 Merge branch 'MDL-67915-master' of git://github.com/lameze/moodle 2020-04-28 23:11:38 +08:00
Claude Vervoort f259405d02 MDL-68328 mod_lti: use hidden form when deeplink options disabled 2020-04-28 10:18:03 -04:00
Luca Bösch e944a8f86d MDL-68404 gradingform_rubric: Style "Add level" button. 2020-04-28 14:06:49 +02:00
Andrew Nicols b2404fa5e2 Merge branch 'MDL66035_master' of https://github.com/jwalits/moodle 2020-04-28 20:04:34 +08:00
Helen Foster 1fce3f52ac 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

* addresourceoractivity,core - Removing 'resource' as the new activity
  chooser doesn't have resource types separated
2020-04-28 14:01:20 +02:00
Andrew Nicols 38a1ccf7d4 Merge branch 'MDL-68445' of https://github.com/stronk7/moodle 2020-04-28 18:29:20 +08:00
Julien Boulen 7d918bc693 MDL-68137 core_files: replace consecutive dots in filename by single dot 2020-04-28 11:29:35 +02:00
Eloy Lafuente (stronk7) f570a79071 on-demand release 3.9dev+ 2020-04-28 11:15:48 +02:00
Eloy Lafuente (stronk7) 724a1a1d1d NOBUG: Fixed SVG browser compatibility 2020-04-28 11:15:46 +02:00
Eloy Lafuente (stronk7) f5eccb7071 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-04-28 11:15:44 +02:00
Andrew Nicols e684b41b6e Merge branch 'MDL-68525-master' of git://github.com/andrewnicols/moodle 2020-04-28 10:19:56 +02:00
Andrew Nicols 605107b147 Merge branch 'MDL-66259' of https://github.com/stronk7/moodle 2020-04-28 10:19:53 +02:00
Andrew Nicols 594189eb70 Merge branch 'MDL-67316' of https://github.com/stronk7/moodle 2020-04-28 10:19:50 +02:00
Andrew Nicols 96c7c37bf3 Merge branch 'MDL-68047' of https://github.com/stronk7/moodle 2020-04-28 10:19:47 +02:00
Eloy Lafuente (stronk7) b03a63337d Merge branch 'MDL-68342-xsendfile-file' of https://github.com/brendanheywood/moodle 2020-04-28 10:19:44 +02:00
Huong Nguyen 8b52ca84ab MDL-68143 Workshop: should remember collapsed/expanded sections 2020-04-28 13:53:26 +07:00
Huong Nguyen d2fa9e7981 MDL-68382 Drag and drop marker questions: responsive support
These changes also make it possible to print these questions.
2020-04-28 13:52:14 +07:00
Eloy Lafuente (stronk7) c3e04b2c3c 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:31:58 +08:00
Andrew Nicols 829f860321 MDL-68442 user: Add notifications on unenrol/update 2020-04-28 10:21:45 +08:00
Andrew Nicols 478039f99a MDL-68442 user: Rewrite participant status to work with dynamic tables 2020-04-28 10:21:45 +08:00
Andrew Nicols 143ebb9b20 MDL-68442 user: Rewrite enrolment actions as ES6 2020-04-28 10:21:28 +08:00
Brendan Heywood 9f4bb48e40 MDL-68329 cache: Improve cache performance footer info 2020-04-28 10:08:28 +10:00
Eloy Lafuente (stronk7) a8eba6e4f4 Merge branch 'MDL-68383-master' of git://github.com/bmbrands/moodle 2020-04-27 23:40:14 +02:00
Eloy Lafuente (stronk7) b1c4bd23d0 Merge branch 'MDL-68477-master' of git://github.com/lameze/moodle 2020-04-27 23:30:09 +02:00
Eloy Lafuente (stronk7) 20860a339e Merge branch 'master' of https://github.com/DrCuriosity/moodle 2020-04-27 23:08:26 +02:00
Eloy Lafuente (stronk7) 606011b065 Merge branch 'MDL-67797-master' of git://github.com/sarjona/moodle 2020-04-27 23:00:59 +02:00
Juan Leyva e624a2c8a1 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-27 18:26:30 +02:00
Eloy Lafuente (stronk7) ab09f4ee5f Merge branch 'MDL-68393-master-availableupdateui' of git://github.com/mudrd8mz/moodle 2020-04-27 17:39:39 +02:00
Eloy Lafuente (stronk7) 06248a23d4 Merge branch 'MDL-67701-master' of git://github.com/ferranrecio/moodle 2020-04-27 17:36:49 +02:00
Eloy Lafuente (stronk7) 65848c3ba4 Merge branch 'MDL-68515-master-report_status_standard' of git://github.com/mudrd8mz/moodle 2020-04-27 17:33:15 +02:00
Eloy Lafuente (stronk7) 5942d26e24 Merge branch 'MDL-65967-master' of https://github.com/danielneis/moodle 2020-04-27 17:31:20 +02:00
hiendinh ad2ef9dd44 MDL-68248 Blocks: My overview block: Add sort by short name 2020-04-27 17:37:45 +07:00
Brendan Heywood 5bf5a7aaeb MDL-68342 files: Add a faster xsendfile method to avoid db lookups 2020-04-27 16:11:34 +10:00
AMOS bot 01cc802d27 Automatically generated installer lang files 2020-04-27 00:11:23 +00:00
Jwalit Shah d743aaf262 MDL-66035 message: Restore missing message preferences files 2020-04-27 09:48:41 +10:00
Tim Hunt 848a29cf51 MDL-57680 form autocomplete: extend Behat tests 2020-04-26 15:11:25 +01:00
Tim Hunt be612e5f68 MDL-57680 form autocomplete: fix triggering change event 2020-04-26 13:23:42 +01:00
Tim Hunt 588b86fd49 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 13:23:42 +01:00
Mikhail Golenkov 8c287a6696 MDL-67540 quiz: Start transaction before selecting existing slots.
Co-authored-by: Conn <conn@cmrwarwicker.com>
2020-04-26 10:54:14 +10:00
Thiagolivramento 934ad2c869 MDL-65967 tool_recyclebin: add recycle bin link to category edit menu 2020-04-24 17:07:38 -03:00
Claude Vervoort b33e8c8524 MDL-65306 mod_lti: preserve resourceid restoring older backups 2020-04-24 15:37:55 -04:00
Claude Vervoort cfbc361dd6 MDL-65306 mod_lti: remove direct coupling to subplugin 2020-04-24 15:30:27 -04:00
Claude Vervoort e5423ddb93 MDL-65306 mod_lti: fix deeplinking support for tag and resourceid 2020-04-24 15:30:26 -04:00
Eloy Lafuente (stronk7) 74ccea0127 Merge branch 'MDL-68514-master' of git://github.com/sarjona/moodle 2020-04-24 19:23:16 +02:00
David Mudrák 50396bbe4e MDL-68515 admin: Mark the system status report as a standard plugin 2020-04-24 17:16:46 +02:00
Sara Arjona 44642b0a83 MDL-68514 contentbank: fix behat issues with classic 2020-04-24 16:47:02 +02:00
cescobedo aeacd6c862 MDL-67798 core_contentbank: Add privacy provider 2020-04-24 16:39:41 +02:00
Eloy Lafuente (stronk7) 98cc4d0445 MDL-68445 behat: Bump to 3.6.x
composer.lock generated with PHP 7.2, 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:09 +02:00
Eloy Lafuente (stronk7) 486bf50413 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:38 +02:00
Eloy Lafuente (stronk7) 3b69ed2104 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:38 +02:00
Tim Hunt a196cf5ac1 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:23 +02:00
Tim Hunt 82df13aead MDL-66259 qtype_numerical: remove no-longer relevant todo I noticed 2020-04-24 15:56:23 +02:00
Eloy Lafuente (stronk7) bb930b7d5b 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:23 +02:00
Tim Hunt 5c3f700ac7 MDL-66259 quiz responses: fix unrealistic test setup 2020-04-24 15:56:23 +02:00
Eloy Lafuente (stronk7) 0447277904 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:23 +02:00
Tim Hunt 9874e7cdd0 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:23 +02:00
sam marshall 111cf93b71 MDL-68492 Behat: Use faster direct link steps in lib/tests/behat 2020-04-24 12:09:15 +01:00
sam marshall be32dc800d MDL-68492 Behat: Direct URL links for courses, activities 2020-04-24 12:09:14 +01:00
Tim Hunt fa7431ce50 MDL-68252 question tags: fix tag editing for missingtype questions 2020-04-24 11:26:12 +01:00
Simey Lameze e2f12c2220 MDL-67915 core_table: add support for hide and show of columns 2020-04-24 18:23:34 +08:00
Tim Hunt 89692520e8 MDL-68252 question bank: for 'missingtype' questions, hide actions 2020-04-24 09:58:35 +01:00
Paul Holden adca2ab629 MDL-66135 customfield: allow calling code to set form category headings. 2020-04-24 08:32:54 +01:00
Paul Holden 1084f8bf79 MDL-66135 customfield: method to allow fields to parse values.
This is useful when the value is coming from an external source (e.g. course upload tool).
2020-04-24 08:32:54 +01:00
Sara Arjona 1bb3663c19 MDL-67797 contentbank: review class_exists uses 2020-04-24 09:28:24 +02:00
Sara Arjona 1f8dfe79ce MDL-67797 contentbank: use the search_contents method 2020-04-24 09:28:24 +02:00
Sara Arjona fb445c76c8 MDL-67797 contentbank: add search_contents method 2020-04-24 09:28:24 +02:00
Jun Pataleta 3c28246234 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-24 15:05:09 +08:00
Mihail Geshoski 255a62ff88 MDL-68330 media_videojs: Fix videojs player rendering issue 2020-04-24 14:57:02 +08:00
Andrew Nicols ca69d3875e MDL-68506 core_table: Add a tableContentRefreshed event 2020-04-24 14:53:35 +08:00
Jun Pataleta f6f1014761 MDL-68465 message_email: Deprecate emaildigestsubject lang string 2020-04-24 11:42:40 +08:00
Jun Pataleta 1f7e9a698a MDL-68465 message_email: Add site name to digest email 2020-04-24 11:41:41 +08:00
Jun Pataleta 9df4a4de18 weekly release 3.9dev 2020-04-24 09:41:01 +08:00
Jun Pataleta 529b53030a Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-04-24 09:41:00 +08:00
Mark Johnson f77212a051 MDL-68503 user profile: Make sortorders relative to existing records 2020-04-23 15:55:03 +01:00
Eloy Lafuente (stronk7) b88f74c9ee Merge branch 'MDL-67886' of https://github.com/stronk7/moodle 2020-04-23 16:06:06 +02:00
Tim Hunt 2bfb8d4a3d MDL-63812 qtype_gapselect: fix questions with non-consecutive gap nos 2020-04-23 14:39:52 +01:00
Tim Hunt fdbff6cecb MDL-63812 qtype_gapselect: test data generator to standard qtype pattern 2020-04-23 14:39:52 +01:00
Eloy Lafuente (stronk7) 543b7bcfd9 Merge branch 'MDL-67795-master' of git://github.com/sarjona/moodle 2020-04-23 13:18:43 +02:00
Sara Arjona de322e3de6 MDL-67795 contentbank: make consistent $record vs $content 2020-04-23 13:09:40 +02:00
Sara Arjona 45192e9a87 MDL-67795 contentbank: delete content UI 2020-04-23 13:09:40 +02:00
Sara Arjona 58f85a6c6e MDL-67795 contentbank: clean all the content when uninstalling plugin 2020-04-23 13:09:40 +02:00
Sara Arjona f627173ce3 MDL-67795 contentbank: new external for deleting content 2020-04-23 13:09:40 +02:00
Sara Arjona c0d615e8f9 MDL-67795 contentbank: delete content API 2020-04-23 13:09:40 +02:00
Sara Arjona 7fc73af69b MDL-67795 contentbank: add generator 2020-04-23 13:09:40 +02:00
Sara Arjona 153c45625d MDL-67795 h5p: move methods from player to helper 2020-04-23 13:09:40 +02:00
Eloy Lafuente (stronk7) d584d34967 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 13:03:03 +02:00
Bas Brands d6cd1d87cf MDL-68497 theme_boost: font smoothing for Firefox on Mac 2020-04-23 10:29:07 +02:00
Eloy Lafuente (stronk7) 172d3ee7ab Merge branch 'MDL-67886_master' of git://github.com/mdjnelson/moodle 2020-04-23 15:01:40 +08:00
Eloy Lafuente (stronk7) d56c7547d6 Merge branch 'MDL-58018_master-arraycomparison' of git://github.com/mdjnelson/moodle 2020-04-23 15:00:57 +08:00
Jun Pataleta 66ecaa0b0c Merge branch 'MDL-68392' of https://github.com/stronk7/moodle 2020-04-23 15:00:57 +08:00
Jun Pataleta 1dce78d8d2 Merge branch 'MDL-68341-master' of git://github.com/lameze/moodle 2020-04-23 15:00:56 +08:00
Jun Pataleta 31066f91bd Merge branch 'MDL-68356-master' of git://github.com/cescobedo/moodle 2020-04-23 15:00:56 +08:00
Jun Pataleta 53cecde5a8 Merge branch 'MDL-68339' of https://github.com/stronk7/moodle 2020-04-23 15:00:56 +08:00
Jun Pataleta 799572268b Merge branch 'MDL-67095-master' of git://github.com/cescobedo/moodle 2020-04-23 15:00:55 +08:00
Jun Pataleta 62b586e5a0 Merge branch 'MDL-68318-master' of git://github.com/andrewnicols/moodle 2020-04-23 15:00:55 +08:00
Simey Lameze 8bb8c2852d MDL-68477 libraries: add legend option examples to test page 2020-04-23 09:23:21 +08:00
David Thompson 5bc86614a2 MDL-68477 libraries: support for Chart.js legend options. 2020-04-23 09:23:21 +08:00
AMOS bot e859cf7146 Automatically generated installer lang files 2020-04-23 00:14:29 +00:00
Mark Nelson fad610045b MDL-67886 tool_xmldb: checks for extra indexes 2020-04-23 00:45:43 +02:00
Mark Nelson 47f3fa131a MDL-67886 core: check_database_schema() checks for extra indexes 2020-04-23 00:45:43 +02:00
Mark Nelson a8c38ce85b MDL-67886 core: check_database_schema() checks for missing indexes 2020-04-22 23:22:18 +02:00
Tim Hunt 07d90238c6 MDL-57240 quiz: don't show useless links on overdue attempt summary page 2020-04-22 21:38:19 +01:00
Bas Brands ac00aec239 MDL-68383 contentbank: improve css for content bank 2020-04-22 15:50:46 +02:00
Ferran Recio 05da45ccf2 MDL-67701 mod_h5pactivity: new activity icon 2020-04-22 11:31:13 +02:00
Shamim Rezaie 8a944856eb MDL-68343 gradereport_singleview: Remove adjacent links to the same URL 2020-04-22 04:30:53 +10:00
Shamim Rezaie 976dac3fd1 MDL-68343 gradereport_singleview: Use caption instead of summary
The summary attribute on the table element is obsolete.
2020-04-22 04:30:53 +10:00
Shamim Rezaie 4e9b0c4278 MDL-68343 gradereport_singleview: fix empty links 2020-04-22 04:30:53 +10:00
Shamim Rezaie 1031303a54 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:30:53 +10:00
Shamim Rezaie d28b4ec326 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:30:53 +10:00
Shamim Rezaie 2a14ef789b MDL-68378 core: url_select listens to accessibleChange event 2020-04-22 04:16:44 +10:00
Shamim Rezaie a97c40cf83 MDL-68378 core: update single_select to listen to accessibleChange event 2020-04-22 04:16:44 +10:00
Shamim Rezaie df35a03367 MDL-68378 forumreport_summary: action menu listens to accessibleChange 2020-04-22 04:16:44 +10:00
Shamim Rezaie 2858814aaa MDL-68378 user: listen to the accessibleChange event instead of change 2020-04-22 04:16:44 +10:00
Shamim Rezaie 505cc918b7 MDL-68378 lib: Added accessibleChange custom event 2020-04-22 04:16:44 +10:00
Mark Nelson 39770792ca MDL-58018 core: add support to redis for read-only sessions 2020-04-21 19:29:12 +02:00
Mark Nelson 7daa126d1d MDL-58018 core: add support to database for read-only sessions 2020-04-21 19:29:12 +02:00
Mark Nelson 4400ed3e1c MDL-58018 core: finish dev to support open sessions without a lock 2020-04-21 19:29:12 +02:00
Paul Holden 54cb5666c1 MDL-64417 message_popup: remove old notifications during cleanup task.
Add upgrade step to remove existing orphaned records.
2020-04-21 14:48:22 +01:00
Paul Holden db8bda61a3 MDL-64417 message: allow processors to run their own cleanup tasks. 2020-04-21 14:48:22 +01:00
Paul Holden 956f636d83 MDL-63609 media_videojs: support Youtube URL start time. 2020-04-21 14:46:05 +01:00
Paul Holden d99e0ab7a2 MDL-62853 privacy: sanitize subcontext paths. 2020-04-21 14:38:22 +01:00
Paul Holden 59f941f6db MDL-66917 admin: validate uploaded plugin version.
Prevent overwriting current plugins with older versions of themselves.
2020-04-21 14:35:59 +01:00
Simey Lameze fb17c31c46 MDL-68341 core_table: fix wrong participanttablehtml variable name 2020-04-21 10:28:05 +08:00
Simey Lameze ad176d6f0a MDL-68341 core_table: improve fetch WS php unit coverage 2020-04-21 10:28:05 +08:00
Simey Lameze 4cf97b7f42 MDL-68341 core_table: add component parameter to fetch WS 2020-04-21 10:28:01 +08:00
cescobedo 3f5e386db7 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-20 17:07:14 +02:00
Adam Eijdenberg 82da35fd51 MDL-58018 core: Enable read-only sessions for key pages
These pages are often loaded in parallel.
2020-04-20 14:13:35 +02:00
Adam Eijdenberg 1c3b89b170 MDL-58018 core: Add support to open sessions without a lock 2020-04-20 14:13:34 +02:00
Bas Brands 45decc81c4 MDL-67881 core_message: fix tab order for message drawer 2020-04-20 11:37:34 +02:00
Adrian Greeve 5d1ff2aa96 Merge branch 'MDL-66920' of https://github.com/Cvmcosta/moodle 2020-04-20 08:28:25 +08:00
Andrew Nicols 8080ea4e72 MDL-68318 core: Add GitHub Funding information
This links directly to our own pages relating to funding.
2020-04-20 07:57:05 +08:00
AMOS bot 971f958a7c Automatically generated installer lang files 2020-04-19 00:13:11 +00:00
Brendan Heywood c80bcd56fd MDL-68443 xmldb: Improve path validation on view_xml action 2020-04-18 20:50:03 +10:00
Andrew Nicols e74c253037 Merge branch 'MDL-67317' of https://github.com/stronk7/moodle 2020-04-17 18:35:10 +08:00
cescobedo e84ce938d9 MDL-67095 core_h5p: Prevent synchronous access to save the same h5p
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-04-17 09:14:18 +02:00
David Thompson ab0d409991 MDL-68386 libraries: Enhancement for Area Charts support with chart.js. 2020-04-17 09:12:41 +12:00
Eloy Lafuente (stronk7) 5d0b046594 MDL-67317 behat: Bump to 3.39.2 moodle-behat-extension
It comes with behat/mink 1.8.x that provides php74 compatibility.

lock file generated with php72 (min version supported by the branch)
2020-04-16 20:28:49 +02:00
Eloy Lafuente (stronk7) 98f56e6f4b 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:49 +02:00
Eloy Lafuente (stronk7) 3d88307f8f 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:22 +02:00
Eloy Lafuente (stronk7) 788dfb9c7d weekly release 3.9dev 2020-04-16 19:33:49 +02:00
Eloy Lafuente (stronk7) 6f9a84348c NOBUG: Fixed SVG browser compatibility 2020-04-16 19:33:44 +02:00
Eloy Lafuente (stronk7) 877c5c7d9f Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-04-16 19:33:42 +02:00
Sara Arjona 0a05ca3604 MDL-67788 h5p: fix issue for non logged-in users 2020-04-16 15:50:10 +02:00
Brendan Heywood 611d6c1e29 MDL-68433 tasks: Limit the adhoc task queue look ahead 2020-04-16 23:33:07 +10:00
carlos 32591786d9 MDL-66920 mod_lti: Allow usage of both JWKS URI and Public Key
- Changed mod_lti edit_form.php to add necessary fields.
- Added configuration field 'keytype' that can be RSA_KEY or JWK_KEYSET, defaulting to RSA_KEY if none is found.
- Changed mod_lti locallib.php to add the usage of jwk in the verifications of jwt's.
- Changed mod_lti token.php to call the verification function from locallib.php.
- Caches the keyset endpoint content of any given lti tool.
- Updated language files to accommodate new functionalities.
- Added test method for JWK functionalities.
- Added test_keyset file in the fixtures folder.
- Bumped the mod_lti version to 2020022200.
2020-04-16 08:53:53 -03:00
Sara Arjona 2ac1d9aedf MDL-67814 h5p: recover missed xAPI settings 2020-04-16 09:36:05 +01:00
Andrew Nicols 3e5a8acc85 MDL-68427 core: Correct previous/next page in paging bar 2020-04-16 14:40:01 +08:00
Adrian Greeve 1e33203b82 MDL-67814 core_h5p: Revert of eslintignore change
Also has update to fix js global properly.
2020-04-16 14:02:25 +08:00
Jun Pataleta 477ef861a0 Merge branch 'MDL-68113-master' of https://github.com/HuongNV13/moodle 2020-04-16 11:46:50 +08:00
Adrian Greeve 7b13120ad1 MDL-67814 core_h5p: Update to eslintignore to handle included file.
The H5PEditor is already loaded. This causes grunt to complain.
2020-04-16 11:42:53 +08:00
Víctor Déniz Falcón eeb90e7e70 MDL-67814 core_h5p: added renderer and editor classes 2020-04-16 11:29:35 +08:00
Víctor Déniz Falcón 8c325d3feb MDL-67814 core_h5p: modifications to interact with the Hub selector
The HUB selector allows you to install/update H5P content types from
the H5P editor. We have moved these features to the Content Bank, so we
will not show the HUB selector in the H5P editor.
2020-04-16 11:29:35 +08:00
Víctor Déniz Falcón a0ce8f87b3 MDL-67814 core_h5p: moved common methods from player to helper class 2020-04-16 11:29:35 +08:00
Víctor Déniz Falcón 6da050d72a MDL-67814 core_h5p: implemented H5P Core/Editor library interfaces 2020-04-16 11:29:35 +08:00
Víctor Déniz Falcón 8d702491bc MDL-67814 core_h5p: added H5P Editor PHP library
Added the third party libray "H5P Editor PHP to the v124 h5plib plugin.
2020-04-16 11:27:49 +08:00
Adrian Greeve 50dbf7e9c8 Merge branch 'MDL-68196-master' of git://github.com/rezaies/moodle 2020-04-16 10:55:11 +08:00
Shamim Rezaie 517e568e5a MDL-68196 core: not expand autocomplete elements too soon on IE 2020-04-16 12:25:37 +10:00
Eloy Lafuente (stronk7) d26a13b407 Merge branch 'MDL-66849-master' of https://github.com/ised-isde-canada/moodle 2020-04-16 01:01:32 +02:00
Eloy Lafuente (stronk7) 2347ab5a3b Merge branch 'MDL-68323-master' of git://github.com/marinaglancy/moodle 2020-04-16 00:47:20 +02:00
Eloy Lafuente (stronk7) 9c2e8e3bd3 Merge branch 'MDL-68279' of https://github.com/paulholden/moodle 2020-04-16 00:27:44 +02:00
Eloy Lafuente (stronk7) 41e7042781 Merge branch 'MDL-68189' of https://github.com/NeillM/moodle 2020-04-16 00:13:32 +02:00
Eloy Lafuente (stronk7) 58e73daa59 Merge branch 'MDL-68280' of https://github.com/paulholden/moodle 2020-04-16 00:10:35 +02:00
Eloy Lafuente (stronk7) 8467cbf226 Merge branch 'MDL-67786-master' of git://github.com/aanabit/moodle 2020-04-15 23:45:48 +02:00
Amaia Anabitarte bd4e0a7664 MDL-67786 core_contentbank: Unit and behat tests 2020-04-15 23:45:08 +02:00
Amaia Anabitarte 70819075c6 MDL-67786 core_contentbank: add testable_plugin
Co-authored by: Sara Arjona <sara@moodle.com>
2020-04-15 23:45:08 +02:00
Amaia Anabitarte 43c2d0fe47 MDL-67786 core_contentbank: Templates and theme CSS 2020-04-15 23:45:08 +02:00
Amaia Anabitarte 2867550e39 MDL-67786 contenttype_h5p: New H5P content type plugin for content bank 2020-04-15 23:45:08 +02:00
Amaia Anabitarte 33b8ca26f9 MDL-67786 core_contentbank: New content bank contenttype plugin type
Co-authored by: Ferran Recio <ferran@moodle.com>
2020-04-15 23:45:08 +02:00
Paul Holden 16f05b5c22 MDL-66732 core: config option to force whether site considered public. 2020-04-15 22:08:49 +01:00
Paul Holden ab106ad70f MDL-66732 core: improve detection of non-public sites. 2020-04-15 21:54:29 +01:00
Sara Arjona 106974b31a Merge branch 'MDL-67751' of https://github.com/paulholden/moodle 2020-04-15 17:57:05 +02:00
Jun Pataleta 6b4a66b0bc Merge branch 'MDL-68288-master' of git://github.com/lameze/moodle 2020-04-15 23:20:23 +08:00
Jun Pataleta 9b77dc8db2 Merge branch 'MDL-66200-master_gradebook_csv_import' of https://github.com/jwalits/moodle 2020-04-15 23:16:57 +08:00
Paul Holden 2c469d3843 MDL-67751 course: include inline folders in list of resources. 2020-04-15 13:59:50 +01:00
Eloy Lafuente (stronk7) d9776bc02a Merge branch 'MDL-67499' of git://github.com/paulholden/moodle 2020-04-15 12:49:14 +02:00
Sara Arjona 0720504587 Merge branch 'MDL-67788-master' of git://github.com/ferranrecio/moodle 2020-04-15 09:53:03 +02:00
Bas Brands 64de4deced MDL-68301 theme_boost: move course format css
this reduces duplication of css in format_topic
and format_weeks
2020-04-15 09:52:10 +02:00
Adrian Greeve 06b1f01216 Merge branch 'MDL-67663-master-3' of git://github.com/junpataleta/moodle 2020-04-15 13:19:18 +08:00
Michael Milette 8056397b7e MDL-66849 output: Remove custom menu title when not specified 2020-04-14 22:27:06 -04:00
Ferran Recio 6cdf1d76ff MDL-67788 mod_h5pactivity: update activity attempt privacy 2020-04-14 16:58:10 +02:00
Ferran Recio 0aeec79a2a MDL-67788 mod_h5pactivity: add xAPI attempts track to activity 2020-04-14 16:58:10 +02:00
Jun Pataleta e7845f9fa7 Merge branch 'MDL-68405-master' of git://github.com/andrewnicols/moodle 2020-04-14 16:09:42 +08:00
Andrew Nicols 986bf4e988 MDL-68405 behat: Fix gherkinlint failures 2020-04-14 15:09:13 +08:00
Andrew Nicols 57b1653a37 MDL-68405 js: Ensure correct exit code for gherkinlint 2020-04-14 15:09:13 +08:00
Ferran Recio ad9589f64c MDL-67788 core_h5p: add evaluable h5p to fixtures 2020-04-13 12:39:58 +02:00
Ferran Recio 8685c313e0 MDL-67788 core_h5p: add tracking to player 2020-04-13 12:39:58 +02:00
AMOS bot e46b5fa096 Automatically generated installer lang files 2020-04-11 00:11:47 +00:00
AMOS bot d83db4f583 Automatically generated installer lang files 2020-04-11 00:11:46 +00:00
Eloy Lafuente (stronk7) 594b4b98b7 Merge branch 'MDL-67587-master-1' of git://github.com/mihailges/moodle
Changed PARAM_TEXT to PARAM_NOTAGS to "search" param
because it's the same but WITHOUT lang support and we
don't need lang support there.

Of course, both require to verify that the output is always
escaped. In this case (mustache) it is. Or also p() or s().

Without that XSS on form values are relatively easy!
2020-04-10 17:04:13 +02:00
David Mudrák 3c94533810 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:42 +02:00
Sara Arjona 767fa3a64b Merge branch 'MDL-68112-master' of git://github.com/peterRd/moodle 2020-04-10 12:11:29 +02:00
Eloy Lafuente (stronk7) f167f93799 Merge branch 'MDL-67919-master' of git://github.com/sarjona/moodle 2020-04-10 11:54:17 +02:00
Eloy Lafuente (stronk7) 2bf69bbc9a Merge branch 'MDL-67910-master' of git://github.com/sarjona/moodle 2020-04-10 11:10:16 +02:00
Luca Bösch 9901ce5f68 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:12:16 +02:00
Mihail Geshoski b15b259696 MDL-68112 core_course: Override bootstrap classes
Override bootstrap classes to keep original design
2020-04-09 18:21:25 +08:00
Peter Dias 95dceedd2f MDL-68112 core_course: Use bootstrap input-group 2020-04-09 18:21:24 +08:00
Jun Pataleta bed9308ef5 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 17:50:09 +08:00
Jun Pataleta 9183c0c91a 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 17:50:09 +08:00
Jun Pataleta 0d3a580e03 MDL-67663 mod_forum: Add missing lang strings 2020-04-09 17:50:09 +08:00
Jun Pataleta 5803df2344 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 17:50:09 +08:00
Jun Pataleta a37c40d31f 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 17:50:09 +08:00
Jun Pataleta f63503a603 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 17:50:08 +08:00
Jun Pataleta d0f8a42e5f 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 17:50:08 +08:00
Mihail Geshoski 0da3443539 MDL-67587 course: Add unit tests 2020-04-09 09:17:53 +08:00
Mihail Geshoski ccffe30d5b MDL-67587 course: Add behat tests 2020-04-09 09:17:53 +08:00
Mihail Geshoski d379dc9b0c MDL-67587 course: Add search in recommended activities admin page 2020-04-09 09:17:53 +08:00
Jwalit Shah c74ccbcbaa MDL-66200 gradebook: check selected feedback option when importing data 2020-04-09 11:01:15 +10:00
Simey Lameze bc6f5f23ea MDL-68341 core_user: move and rename participants_table class 2020-04-09 07:08:44 +08:00
Simey Lameze f7b84afe15 MDL-68288 core_table: support pagination bar for dynamic tables 2020-04-09 07:06:35 +08:00
carlos a2a13f2786 MDL-66920 lib/php-jwt: Update to version 5.2.0 to add JWK support
- Updated firebase/php-jwt library to version 5.2.0 that has JWK support.
- Changed thirdpartylibs.xml to reflect version change.
2020-04-08 13:12:23 -03:00
Sara Arjona df0e58adb1 weekly release 3.9dev 2020-04-08 16:24:37 +02:00
Sara Arjona 1bd3bdf029 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-04-08 16:24:34 +02:00
Andrew Nicols 9056efdb56 Merge branch 'MDL-68185-performance-checks-fixing2' of https://github.com/brendanheywood/moodle 2020-04-08 12:43:56 +08:00
Andrew Nicols aae4b15631 Merge branch 'MDL-47271-status-api-fixes' of https://github.com/brendanheywood/moodle 2020-04-08 12:37:52 +08:00
Brendan Heywood 79dbcce8b1 MDL-68185 report_performance: Refactored into Check API 2020-04-08 14:35:33 +10:00
Brendan Heywood 59a44a5bad MDL-47271 tool_task: Added Task API status checks 2020-04-08 14:35:33 +10:00
Brendan Heywood e8e2bd28ec MDL-47271 check: Refactor check table into a renderable 2020-04-08 14:35:33 +10:00
Brendan Heywood 20167daf89 MDL-47271 report_status: Added System status report 2020-04-08 14:35:31 +10:00
Andrew Nicols 7aa6398830 Merge branch 'MDL-68148-master' of git://github.com/rezaies/moodle 2020-04-08 11:20:39 +08:00
Shamim Rezaie 8aecd8579e 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:35:58 +10:00
Shamim Rezaie cf48026307 MDL-68148 user: fixed stray end tag (input) 2020-04-08 11:24:51 +10:00
Shamim Rezaie 3dec4c6ce3 MDL-68148 core_user: avoid multiple enrol buttons with the same id 2020-04-08 11:22:34 +10:00
Shamim Rezaie 8a805e03a4 MDL-68148 core_user: set the fullname column as the header column
ref: https://www.w3.org/WAI/tutorials/tables/
2020-04-08 11:22:34 +10:00
Shamim Rezaie 1a94ddd31b MDL-68148 output: type attribute is unnecessary for javascript resources 2020-04-08 11:22:34 +10:00
Shamim Rezaie 0ad48a3e68 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:22:34 +10:00
Eloy Lafuente (stronk7) f1f1497f04 Merge branch 'MDL-66357-master' of git://github.com/sarjona/moodle 2020-04-08 02:52:15 +02:00
AMOS bot fd236c2062 Automatically generated installer lang files 2020-04-08 00:11:05 +00:00
AMOS bot 9b543efc05 Automatically generated installer lang files 2020-04-08 00:11:05 +00:00
Eloy Lafuente (stronk7) 2c50e08a3b Merge branch 'MDL-68286-master' of git://github.com/andrewnicols/moodle 2020-04-08 00:37:02 +02:00
Eloy Lafuente (stronk7) 2ede5371ed Merge branch 'MDL-67895' of https://github.com/timhunt/moodle 2020-04-08 00:01:33 +02:00
Tim Hunt 9205d263d6 MDL-68256 task admin UI: Grrrr! browsers 2020-04-07 19:04:53 +02:00
Sara Arjona b3f562176c Merge branch 'MDL-40081' of https://github.com/paulholden/moodle 2020-04-07 15:09:56 +02:00
Sara Arjona 3f79d5461d Merge branch 'master_MDL-68223' of https://github.com/golenkovm/moodle 2020-04-07 13:42:20 +02:00
Sara Arjona 55339ca9d0 Merge branch 'master_MDL-65700' of https://github.com/golenkovm/moodle 2020-04-07 13:34:01 +02:00
Mikhail Golenkov 3180869e19 MDL-65700 javascript: Add url-polyfill. 2020-04-07 20:54:46 +10:00
Andrew Nicols 4fc8c1e4f3 Merge branch 'MDL-68285-master' of git://github.com/cescobedo/moodle 2020-04-07 13:25:48 +08:00
Brendan Heywood c1f7368e57 MDL-47271 clilib: Add support for background colors 2020-04-07 12:30:27 +10:00
Andrew Nicols a87a3c12c9 Merge branch 'MDL-68051-master-2' of git://github.com/mihailges/moodle 2020-04-07 10:25:04 +08:00
Andrew Nicols c8eca1f642 Merge branch 'MDL-67818-check-api-fixes' of https://github.com/brendanheywood/moodle 2020-04-07 10:09:34 +08:00
Brendan Heywood a28277697d MDL-67818 check: Rename renderer to be less generic 2020-04-07 12:07:42 +10:00
Eloy Lafuente (stronk7) c3415804c1 Merge branch 'MDL-68147-master' of git://github.com/mihailges/moodle 2020-04-06 19:09:10 +02:00
Sara Arjona dad7f2ba1d Merge branch 'MDL-65539' of https://github.com/NeillM/moodle 2020-04-06 16:40:52 +02:00
Brendan Heywood d71752df93 MDL-67818 auth_none: Moved to improved Check API
AMOS BEGIN
 MOV [check_noauth_details,auth_none],[checknoauthdetails,auth_none]
 MOV [check_noauth_error,auth_none],[checknoautherror,auth_none]
 MOV [check_noauth_name,auth_none],[checknoauthname,auth_none]
 MOV [check_noauth_ok,auth_none],[checknoauthok,auth_none]
AMOS END
2020-04-06 22:08:33 +10:00
Brendan Heywood 26bb3c24d2 MDL-67818 check: Improved Check API to reduce boilerplate 2020-04-06 22:08:15 +10:00
Paul Holden abde761cb6 MDL-40081 completion: clean up criteria records for deleted courses. 2020-04-06 12:22:51 +01:00
Sara Arjona 71576a58e6 Merge branch 'MDL-68231-master' of https://github.com/snake/moodle 2020-04-06 13:22:18 +02:00
Paul Holden 0c68ae88eb MDL-67499 restore: account for deleted user truncated email/username. 2020-04-06 12:09:48 +01:00
Sara Arjona 43cda51ea1 Merge branch 'MDL-68233' of https://github.com/timhunt/moodle 2020-04-06 12:51:22 +02:00
Eloy Lafuente (stronk7) 68ba708334 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:27 +01:00
Paul Holden 343380d9c8 MDL-67499 user: truncate long username/email during user deletion. 2020-04-06 11:48:27 +01:00
Paul Holden b6ea0ef7ee MDL-68280 user: fix PHP notice for unknown user invalid login token. 2020-04-06 11:46:06 +01:00
Paul Holden 96e7f4f4fd MDL-68279 admin: filter site fullname when sending test email. 2020-04-06 11:41:18 +01:00
Mihail Geshoski 9f1bfca2e8 MDL-68051 course: Fix accessibility issues in chooser tabs navigation 2020-04-06 17:31:23 +08:00
Sara Arjona 9ac9ff50de Merge branch 'MDL-68250-master' of git://github.com/bmbrands/moodle 2020-04-06 10:31:39 +02:00
Sara Arjona b0aaee0e69 Merge branch 'MDL-68239' of https://github.com/NinaHerrmann/moodle 2020-04-06 10:17:44 +02:00
Huong Nguyen f389e916f2 MDL-68113 Drag and drop into text questions: better responsive design
These changes also make it possible to print these questions.
2020-04-06 14:28:29 +07:00
Andrew Nicols c52f3a3efa Merge branch 'MDL-68256' of https://github.com/timhunt/moodle 2020-04-06 15:05:41 +08:00
Andrew Nicols 924d50a3b8 Merge branch 'MDL-67818-check-api' of https://github.com/brendanheywood/moodle 2020-04-06 11:23:39 +08:00
Brendan Heywood 00c2153be1 MDL-67818 check: Added Check API and refactored security checks
AMOS BEGIN
 MOV [check_noauth_details,report_security],[check_noauth_details,auth_none]
 MOV [check_noauth_error,report_security],[check_noauth_error,auth_none]
 MOV [check_noauth_name,report_security],[check_noauth_name,auth_none]
 MOV [check_noauth_ok,report_security],[check_noauth_ok,auth_none]
AMOS END
2020-04-06 12:28:37 +10:00
Andrew Nicols b02d376c9b Merge branch 'MDL-66301-master' of git://github.com/mickhawkins/moodle 2020-04-06 10:13:01 +08:00
Eloy Lafuente (stronk7) 631d2ad7e2 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:29:55 +02:00
Tim Hunt 3d96227305 MDL-68338 qformat_gift: support idnumbers and tags
Hopefully the new format is forwards and backwards compatible.
2020-04-05 17:49:41 +01:00
Ruslan Kabalin 52a268a09d MDL-68315 formslib: Fix completion attribute in course form element.
This fixes 'onlywithcompletion' attribute in course form element.
2020-04-03 20:33:38 +01:00
Sara Arjona 0f51963108 MDL-67919 dataprivacy: Fix behat error when contacting DPO 2020-04-03 19:37:39 +02:00
n_herr03 d097538b01 MDL-68239 mod_data: make required icon in multimenu visible 2020-04-03 12:15:54 +02:00
Andrew Nicols c540a575db MDL-68286 table: Support initials bar for dynamic tables 2020-04-03 16:54:13 +08:00
Neill Magill 28ee72fd68 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:36:37 +01:00
Neill Magill b08323a789 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:36:37 +01:00
Neill Magill 472c953093 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:36:37 +01:00
Neill Magill b5c9fb4a3d 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:36:36 +01:00
Neill Magill dc489dffe6 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:36:36 +01:00
Neill Magill 2ad7a19565 MDL-68189 course: Section name change should display in DD menu
This patch removed the sectionname hidden element (that was not used
by the keyboard menu anyway)

Changed the aria-label of the section to aria-labelled by as this
means that the description will change as drag and drop updated
things without the need to add additional JavaScript.
2020-04-03 08:36:17 +01:00
Sara Arjona faf0029eed MDL-66357 core_badges: remove action=0 usage for issuer
In MDL-67971, issuer_json.php was created, to display issuer JSON content.
However, some files were still using action=0 to display this information.
It has been replaced by issuer_json.php.
The action=0 support won't be removed (at least for now), because several
public badges URLs are using it.
2020-04-03 08:09:55 +02:00
Sara Arjona 640628192a MDL-66357 core_badges: set OBv2 as default 2020-04-03 08:09:55 +02:00
Sara Arjona f958f5c19b MDL-66357 core_badges: remove mozilla backpack references
Mozilla backpack closed a few months ago. It was moved to Badgr.io
(as OBv1.0) but as we're also supporting Badgr.io OBv2.0, it
makes no sense to leave old references to Mozilla backpack there.
2020-04-03 08:09:55 +02:00
Andrew Nicols 1c112ac5fd MDL-68286 table: Empty tables need the dynamic table wrapper 2020-04-03 12:08:48 +08:00
Mihail Geshoski 98ec40a8f6 MDL-68147 course: Remove bold styling in recommended activity admin page 2020-04-03 10:29:50 +08:00
Sara Arjona 1d4fdb0d1c weekly release 3.9dev 2020-04-02 16:51:06 +02:00
Sara Arjona 7a3cf8b177 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-04-02 16:51:03 +02:00
Marina Glancy 749a38a7a9 MDL-68323 core: add --max-lint-warnings option to grunt 2020-04-02 13:42:28 +02:00
Eloy Lafuente (stronk7) d9bb17e696 Merge branch 'MDL-68300' of https://github.com/timhunt/moodle 2020-04-02 13:13:36 +02:00
Tim Hunt a0f8944305 MDL-68300 question bank: merge duplicate Duplicate Behat tests 2020-04-02 11:18:55 +01:00
Ferran Recio d8c9c99001 MDL-67734 core_xapi: Fix MSSQL PHPUnit failure with duplicated id 2020-04-02 10:37:41 +02:00
Michael Hawkins 99f928a893 MDL-66301 forumreport_summary: Minor code improvements 2020-04-02 15:17:57 +08:00
Michael Hawkins bff097f216 MDL-66301 forumreport_summary: Refactors and fixes to course report 2020-04-02 13:36:26 +08:00
Michael Hawkins d235f7a017 MDL-66301 forumreport_summary: Improved filter renderer variable names 2020-04-02 13:36:26 +08:00
Michael Hawkins 0e759f616b MDL-66301 forumreport_summary: Made nodetitle string more specific
This is needed now course-level forum summary reports are available,
otherwise places like breadcrumbs are not clear that it relates
to forum data.
2020-04-02 13:36:26 +08:00
Michael Hawkins 380ae3f126 MDL-66301 forumreport_summary: Added course report behat tests 2020-04-02 13:36:25 +08:00
Michael Hawkins 54a3b94452 MDL-66301 forumreport_summary: Add course level reporting
This adds the ability to report on all forums the user has
access to within a course.
2020-04-02 13:36:25 +08:00
Jake Dallimore d3eb1f2f6e MDL-68309 overrides: clarify inactive overrides help string 2020-04-02 09:57:01 +08:00
Andrew Nicols 17f429ed57 Merge branch 'MDL-67734-andrewapocalipse' of git://github.com/ferranrecio/moodle 2020-04-02 09:30:54 +08:00
Jake Dallimore 1bfd325307 Merge branch 'MDL-68165' of https://github.com/stronk7/moodle 2020-04-02 08:42:45 +08:00
Eloy Lafuente (stronk7) a0ea162f63 Merge branch 'MDL-67672-master' of git://github.com/lucaboesch/moodle 2020-04-02 00:16:51 +02:00
Luca Bösch 2ad02280a9 MDL-67672 user: Display name in user menu as elsewhere. 2020-04-02 00:04:38 +02:00
Eloy Lafuente (stronk7) 0ab2f5b506 Merge branch 'MDL-67914-master' of git://github.com/lameze/moodle 2020-04-01 23:41:38 +02:00
Eloy Lafuente (stronk7) 8ba6b97577 Merge branch 'MDL-68265-master' of git://github.com/andrewnicols/moodle 2020-04-01 23:29:13 +02:00
Eloy Lafuente (stronk7) 1172cd028d Merge branch 'MDL-68193_master' of git://github.com/mdjnelson/moodle 2020-04-01 23:22:25 +02:00
Mark Nelson 52f993651c MDL-68193 core: added new database_text_field_content_replaced event 2020-04-01 20:44:10 +02:00
Eloy Lafuente (stronk7) 1b7327c6d4 Merge branch 'MDL-68191' of git://github.com/timhunt/moodle 2020-04-01 20:18:25 +02:00
Eloy Lafuente (stronk7) 36c8bbc542 Merge branch 'MDL-67995-master' of git://github.com/cescobedo/moodle 2020-04-01 19:07:12 +02:00
Ferran Recio 1d4c6f5355 MDL-67734 core_xapi: add xAPI statement support webservice 2020-04-01 14:14:39 +02:00
Jake Dallimore f5609ea9d6 Merge branch 'MDL-67672-master' of git://github.com/lucaboesch/moodle 2020-04-01 16:43:03 +08:00
Sara Arjona 8afa7cca91 Merge branch 'MDL-68281' of https://github.com/stronk7/moodle 2020-04-01 09:25:04 +02:00
Sara Arjona 677f87e010 Merge branch 'MDL-68277' of https://github.com/timhunt/moodle 2020-04-01 09:14:36 +02:00
Simey Lameze a020b02078 MDL-67914 core_table: unit tests for table view fetch webservice 2020-04-01 15:13:35 +08:00
Simey Lameze 1592c3c498 MDL-67914 core_table: implement dynamic table sorting 2020-04-01 15:13:31 +08:00
Luca Bösch dfe22c29c2 MDL-67672 user: Display name in user menu as elsewhere. 2020-04-01 09:03:03 +02:00
Sara Arjona 4aa71debb5 Merge branch 'MDL-68263-master' of git://github.com/mihailges/moodle 2020-04-01 08:58:27 +02:00
Claude Vervoort c986e55773 MDL-67612 mod_lti: tcguid default to siteid 2020-04-01 00:48:15 +02:00
Sara Arjona afb0af9cf9 Merge branch 'MDL-45227-master' of git://github.com/rezaies/moodle 2020-03-31 19:23:01 +02:00
Sara Arjona b835386512 Merge branch 'MDL-58964-master' of git://github.com/abias/moodle 2020-03-31 19:13:15 +02:00
Eloy Lafuente (stronk7) 244f341129 Merge branch 'MDL-64494-master' of git://github.com/bmbrands/moodle 2020-03-31 18:59:09 +02:00
Bas Brands 1a17df089d MDL-64494 theme_boost: accessible theme colours 2020-03-31 18:51:38 +02:00
Eloy Lafuente (stronk7) a63a565a7c Merge branch 'MDL-68300' of https://github.com/timhunt/moodle 2020-03-31 18:16:53 +02:00
Sara Arjona c68080c4c2 Merge branch 'MDL-66245-master' of git://github.com/junpataleta/moodle 2020-03-31 15:09:06 +02:00
Tim Hunt 7459856d26 MDL-68300 questions: un-break duplicating questions without idnumbers
This was a regression caused by MDL-67934
2020-03-31 11:00:39 +01:00
Jake Dallimore d5a9c02947 Merge branch 'MDL-68225-master' of git://github.com/lameze/moodle 2020-03-31 15:16:37 +08:00
Simey Lameze 88659cd703 MDL-68225 core_user: add behat coverage for group modes 2020-03-31 15:09:40 +08:00
Sara Arjona e6ef9d3236 MDL-67910 behat: PendingJS improvements for deleteevent modal 2020-03-31 08:40:03 +02:00
Jake Dallimore 15b0f56ffa Merge branch 'MDL-68144-master' of git://github.com/lucaboesch/moodle 2020-03-31 13:59:27 +08:00
Eloy Lafuente (stronk7) 2bb4e2d868 Merge branch 'MDL-68269-master' of git://github.com/rezaies/moodle 2020-03-30 22:53:33 +02:00
Eloy Lafuente (stronk7) 83ae63e0fb Merge branch 'MDL-68049' of https://github.com/spvickers/moodle 2020-03-30 13:26:21 +02:00
cescobedo c667e6064a MDL-68285 core_h5p: Fix unused variables and undeclared globals 2020-03-30 09:55:32 +02:00
Shamim Rezaie 27d4e606de MDL-68269 form: fieldset in group elements should be full width 2020-03-30 18:29:23 +11:00
Andrew Nicols 6eb9705154 Merge branch 'MDL-52319-master-environmentxml' of git://github.com/mudrd8mz/moodle 2020-03-30 14:35:20 +08:00
cescobedo 3911e71435 MDL-67995 format_singleactivity: Fix dropwdown type of activity 2020-03-30 08:22:54 +02:00
Mihail Geshoski 9ba17166fe MDL-68263 course: Fix error when modules are not fully uninstalled 2020-03-30 14:15:00 +08:00
Mikhail Golenkov 46b81ed5ba MDL-68223 assign: Fix selection of comment text. 2020-03-30 14:43:19 +11:00
Andrew Nicols 9a0523c6b8 MDL-68265 core_question: Switch question import to request dir 2020-03-30 08:14:46 +08:00
Andrew Nicols a32a52b0a6 MDL-68265 mod_lesson: Switch question import to request dir 2020-03-30 08:14:46 +08:00
Tim Hunt 19f221961e MDL-68233 renderers/block: fix reported coding style issues 2020-03-29 15:35:04 +01:00
Tim Hunt 1dcd0d3499 MDL-68233 renderers/block: remove illegal uses of $PAGE and $OUTPUT 2020-03-29 15:34:26 +01:00
AMOS bot 766a4e43fc Automatically generated installer lang files 2020-03-29 00:11:39 +00:00
Tim Hunt 9bf4d19930 MDL-67895 task admin: show defaults when editing a task
Also show the task classname, and the component info above the form.

With some refactoring to eliminate duplicated logic.
2020-03-28 18:40:51 +00:00
Tim Hunt 6fdc0f8796 MDL-68256 task admin: usability improvements
In the table that lists the scheduled tasks:

1. There are badges to show which components are disabled.
2. The plugin name (e.g. auth_ldap) is shown as well as the
   human-readable name (e.g. LDAP server).
3. Where a time column has a non-default value, it is highlighted
   and the default is shown.
4. If the fail-delay is non-zero, the cell is highlighted.
4. If you just interacted with a task (looked at or edited the settings,
   did Run now, or cleared the fail delay) that row is highlighted,
   and scrolled into view when the page loads.

To support this, some of the methods for loading the default tasks
have been extended with an optional argument to leave 'R' as 'R'
rather than replacing with a random number.

Also, mixed into this commit are a bunch of coding style improvements.
Sorry I did not separate them out, but ultimately this makes the
Moodle code better.
2020-03-28 18:40:51 +00:00
Eloy Lafuente (stronk7) 1ee1ce36d6 MDL-68281 unit test: Include required class
Also, add missing line break, that I did not see 1 week ago.
2020-03-28 16:23:34 +01:00
AMOS bot 6c24071d54 Automatically generated installer lang files 2020-03-28 00:11:30 +00:00
Tim Hunt dbf72bb40f 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:11:16 +00:00
Simey Lameze ef4109d265 MDL-68225 core_user: apply group filter to participants page 2020-03-27 21:48:20 +08:00
Eloy Lafuente (stronk7) 6335ed82c2 MDL-68165 install: update the list of stale files for 3.9 2020-03-27 12:57:22 +01:00
Ferran Recio 0a832fa1f0 MDL-67734 core_xapi: add xAPI testsuite 2020-03-27 12:08:45 +01:00
Shamim Rezaie 613c130665 MDL-45227 atto_align: Make IE follow css styling 2020-03-27 21:32:06 +11:00
Shamim Rezaie 31d62654a6 MDL-45227 atto_rtl: Automatically set alignment when direction changes 2020-03-27 21:25:41 +11:00
Shamim Rezaie 372616ace0 MDL-45227 editor_atto: PR changes and improved behat 2020-03-27 21:25:41 +11:00
Avi Levy dbae95c6da MDL-45227 editor_atto: add behat test for RTL and LTR direction 2020-03-27 21:25:41 +11:00
Nadav Kavalerchik b10155308f MDL-45227 editor_atto: Add direction to default ATTO generated markup 2020-03-27 21:25:41 +11:00
Luca Bösch ee7c297da4 MDL-68144 mod_folder: make top margins less dominant for folder content 2020-03-27 07:14:28 +01:00
Jake Dallimore d939d6e769 weekly release 3.9dev 2020-03-27 09:18:29 +08:00
Jake Dallimore 9ac4561b95 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-03-27 09:18:28 +08:00
Eloy Lafuente (stronk7) e0552f271b Merge branch 'MDL-64429' of https://github.com/paulholden/moodle 2020-03-26 18:49:36 +01:00
Paul Holden 091758d512 MDL-64429 tool_usertours: upgrade step to fix existing tours sortorder. 2020-03-26 16:48:59 +00:00
Jun Pataleta 9c7c2d845f Merge branch 'MDL-67072-oidc-additional-login-parameters' of https://github.com/cengage/moodle 2020-03-26 12:15:24 +08:00
Eloy Lafuente (stronk7) 70598a90ca Merge branch 'MDL-68183-master-mysqlpwdresetsql' of git://github.com/mudrd8mz/moodle 2020-03-26 01:08:04 +01:00
Eloy Lafuente (stronk7) 69c8f8ed30 Merge branch 'MDL-63865' of https://github.com/paulholden/moodle 2020-03-26 00:31:55 +01:00
Eloy Lafuente (stronk7) fee4dd7b20 Merge branch 'MDL-68116-master' of git://github.com/sarjona/moodle 2020-03-26 00:13:52 +01:00
Eloy Lafuente (stronk7) 2bcadacd09 Merge branch 'MDL-67442' of https://github.com/jonof/moodle 2020-03-26 00:04:05 +01:00
Jun Pataleta 67077ae5aa Merge branch 'MDL-68149' of https://github.com/timhunt/moodle 2020-03-26 00:10:01 +08:00
Bas Brands b35d4d8e8e MDL-68250 mod_book: make book navigation separation
Make the book navigation more distinguishable from activity navigation
2020-03-25 15:35:15 +01:00
Jun Pataleta 1cc247029e Merge branch 'MDL-68153' of https://github.com/timhunt/moodle 2020-03-25 22:34:36 +08:00
Jun Pataleta f6cf23f2fe Merge branch 'MDL-68111-master' of https://github.com/snake/moodle 2020-03-25 08:43:28 +08:00
Jun Pataleta e17046d2c6 Merge branch 'MDL-67024-master' of git://github.com/farhan6318/moodle 2020-03-25 08:34:41 +08:00
Jake Dallimore 9b8fc9be6d Merge branch 'MDL-67934' of https://github.com/timhunt/moodle 2020-03-25 08:28:27 +08:00
Jake Dallimore 4e9894cd8e Merge branch 'MDL-58413-master-take2' of git://github.com/lucaboesch/moodle 2020-03-25 08:04:47 +08:00
Eloy Lafuente (stronk7) c3b26f17b9 Merge branch 'MDL-67731' of https://github.com/paulholden/moodle 2020-03-24 23:59:26 +01:00
Eloy Lafuente (stronk7) 8cd39a1aa7 Merge branch 'MDL-67930' of https://github.com/paulholden/moodle 2020-03-24 22:48:05 +01:00
Eloy Lafuente (stronk7) 327e851c43 Merge branch 'MDL-68068-master' of git://github.com/cescobedo/moodle 2020-03-24 22:38:59 +01:00
Jake Dallimore b3f19d3547 MDL-68231 core_formats: conditionally swap controls on section drop
When using section drag and drop, the topics and weeks formats expected
the '.section_add_menus' element to be present so it could update it on
section drop. Due to MDL-68056, this control is only sometimes present.
This has been updated to conditionally swap to address this.
2020-03-24 16:43:51 +08:00
Jake Dallimore 82a1e8da34 Merge branch 'MDL-68135-master' of git://github.com/rezaies/moodle 2020-03-24 12:10:33 +08:00
AMOS bot 93d3e4ef13 Automatically generated installer lang files 2020-03-24 00:10:58 +00:00
Alexander Bias d4737c2147 MDL-58964 navigation: Reindex array when element is removed 2020-03-23 21:33:47 +01:00
David Mudrák 754f641f85 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:23:43 +01:00
Tim Hunt fb37a2d49d MDL-52319 install: Fix some coding style issues 2020-03-23 11:23:43 +01:00
Tim Hunt f3d77f0c9e 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:23:43 +01:00
Jake Dallimore 23ea244117 MDL-68111 core: add 'enablemoodlenet' setting to advanced features
This will control whether any MoodleNet features are presented to users
2020-03-23 08:49:12 +08:00
AMOS bot 23442febb3 Automatically generated installer lang files 2020-03-23 00:12:05 +00:00
Paul Holden 8dabade61f MDL-64429 tool_usertours: ensure tour sortorder can't move out of range. 2020-03-22 20:03:52 +00:00
Paul Holden a11e3d90f2 MDL-63865 tool_dataprivacy: unit test for plugin privacy provider. 2020-03-22 19:59:43 +00:00
Paul Holden 5526870052 MDL-67731 backup: fix async restores in progress table listing. 2020-03-22 19:57:34 +00:00
Paul Holden 3e1b05f001 MDL-67930 mod_forum: consistent default group image when hidden. 2020-03-22 19:54:53 +00:00
Adrian Hutchinson 9b0b472dd6 MDL-67072 mod_lti: OIDC additional login parameters 2020-03-20 10:10:02 -04:00
Luca Bösch 45f3858b5f MDL-58413 mod_url: support internationalized domain names.
Internationalized domain names (IDN) do work in the URL resource.
2020-03-20 10:24:53 +01:00
Sara Arjona fb56f5190c MDL-68116 atto_h5p: deprecate unused strings 2020-03-20 10:07:34 +01:00
Sara Arjona 186a0361a3 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:07:34 +01:00
Sara Arjona 728f0fb587 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:07:34 +01:00
cescobedo 254add38f2 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:51:49 +01:00
Farhan Karmali caf5ebb582 MDL-67024 Lib: Check if user->mnethostid is set before using it 2020-03-20 11:59:04 +05:30
Adrian Greeve f2fc4a9fa1 weekly release 3.9dev 2020-03-20 13:35:42 +08:00
Alexander Bias 13b6b5dce8 MDL-58964 navigation: Add class attributes to Boost flat navigation 2020-03-19 20:34:24 +01:00
Peter Dias dacdc4a467 MDL-60817 file: Populate header only if exists 2020-03-19 15:29:36 +00:00
Stephen Vickers 5140a7bb11 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:18:39 +00:00
Adrian Greeve aab8d9a1c0 Merge branch 'MDL-68081-master' of https://github.com/kritisingh1/moodle 2020-03-19 11:26:25 +08:00
Adrian Greeve 8783d101df Merge branch 'MDL-68014-master' of git://github.com/peterRd/moodle 2020-03-19 11:03:07 +08:00
Adrian Greeve 9b57e08e8b Merge branch 'MDL-67924' of https://github.com/Chocolate-lightning/moodle 2020-03-19 09:41:30 +08:00
Jun Pataleta b703435b2e Merge branch 'MDL-68108-master' of git://github.com/crazyserver/moodle 2020-03-18 23:01:08 +08:00
Víctor Déniz Falcón fa3ee722b5 Merge branch 'MDL-60817-master-4' of git://github.com/mihailges/moodle 2020-03-18 14:26:30 +00:00
Pau Ferrer Ocaña e6faed9bf0 MDL-68108 formslib: Add element password inline template 2020-03-18 08:45:04 +01:00
Adrian Greeve 5d00c85412 Merge branch 'MDL-67901-master' of git://github.com/bmbrands/moodle 2020-03-18 09:57:41 +08:00
Tim Hunt 4b03530ca8 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:26:14 +00:00
Jun Pataleta 3af57b7321 Merge branch 'MDL-68056-master' of https://github.com/snake/moodle 2020-03-18 07:21:22 +08:00
David Mudrák 2d60593892 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:52:32 +01:00
David Mudrák 3621b497d2 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:52:32 +01:00
David Mudrák 77bc884473 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:52:32 +01:00
Sara Arjona 9d95fdf23f Merge branch 'MDL-67707-master' of git://github.com/ferranrecio/moodle 2020-03-17 09:03:12 +01:00
Adrian Greeve 1f0639ed04 Merge branch 'MDL-67907-master' of git://github.com/dpalou/moodle 2020-03-17 16:01:26 +08:00
Adrian Greeve cc00258669 Merge branch 'MDL-67970-master' of git://github.com/rezaies/moodle 2020-03-17 15:23:49 +08:00
Shamim Rezaie f064e11579 MDL-67970 course: More informative aria-label for 'more help' 2020-03-17 18:19:20 +11:00
Shamim Rezaie 99cac46162 MDL-67970 output: use div for content wraping instead of span
span is not a valid content wrapper tag.
Moreover, according to W3C validation service report, it is not valid to
have div elements as children of a span element.
We can safely replace span with div here because the element's css class
is .action and display of .action is set to flex in both boost and
classic themes.
2020-03-17 18:16:25 +11:00
Shamim Rezaie 604df144d2 MDL-67970 output: use fieldset in core/chooser instead of label 2020-03-17 18:16:25 +11:00
Shamim Rezaie 0499a8c24f 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:16:25 +11:00
Shamim Rezaie 4d0e97c781 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:16:25 +11:00
Shamim Rezaie b48b4d2244 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:16:25 +11:00
Shamim Rezaie 668df7663f MDL-67970 search: fixed stray end tag (input) 2020-03-17 18:16:25 +11:00
Adrian Greeve 082153573c Merge branch 'MDL-67981' of https://github.com/timhunt/moodle 2020-03-17 11:30:33 +08:00
Ferran Recio 252e112376 MDL-67707 mod_h5pactivity: add plugin to standard list 2020-03-16 17:52:08 +01:00
Ferran Recio b7a416817f MDL-67707 mod_h5pactivity: plugin skeleton
AMOS BEGIN
 CPY [h5poptions,atto_h5p],[h5pdisplay,mod_h5pactivity]
 CPY [downloadbutton,atto_h5p],[displayexport,mod_h5pactivity]
 CPY [embedbutton,atto_h5p],[displayembed,mod_h5pactivity]
 CPY [copyrightbutton,atto_h5p],[displaycopyright,mod_h5pactivity]
AMOS END
2020-03-16 17:52:08 +01:00
Ferran Recio 40cef8afe7 MDL-67707 core_h5p: move shared h5p files to core fixtures 2020-03-16 17:52:08 +01:00
Ferran Recio f3c7e00f13 MDL-67707 core_h5p: add public H5P player methods 2020-03-16 17:52:08 +01:00
Ferran Recio 1e7e255d72 MDL-67707 course: add support for PARAM_ALPHANUM module names 2020-03-16 17:52:08 +01:00
Sara Arjona 0059b1f19c Merge branch 'MDL-67913-master' of git://github.com/lameze/moodle 2020-03-16 09:12:18 +01:00
Simey Lameze 8146335ff4 MDL-67913 core_user: refactor participants page to use new filter API 2020-03-16 11:44:31 +08:00
Simey Lameze 88ba207d2e MDL-67913 core_table: introduce dynamic table interface 2020-03-16 11:44:31 +08:00
Andrew Nicols c43bdf5e13 MDL-67913 user: Add participants table filterset 2020-03-16 11:44:31 +08:00
Andrew Nicols 44effcb419 MDL-67913 core_table: Add filter classes 2020-03-16 11:44:31 +08:00
Andrew Nicols 1142e1bc83 MDL-67913 core: Add new core_table component path 2020-03-16 11:44:31 +08:00
Jake Dallimore af0d644bea MDL-68056 core_course: remove feature test for non-js activity creation
We rely on JS now, so we don't need to keep this feature.
2020-03-16 08:36:38 +08:00
Jake Dallimore aa4d7e1391 MDL-68056 core_course: improve render performance when editing
Only generate the non-ajax controls in cases where we know we need
them. Otherwise, only generate the new link style control. This patch
includes a behat check as many of our tests use the 'I add "Page" to
section "1"' syntax, which runs without JS.
2020-03-16 08:36:38 +08:00
Jonathon Fowler 2a0645b195 MDL-67442 assign: expand/contract text works in all browsers now 2020-03-16 08:55:55 +10:00
Mihail Geshoski 0525ee5825 MDL-60817 mod_workshop: Fix behat tests 2020-03-13 13:17:44 +08:00
Mihail Geshoski 17ddce9676 MDL-60817 core_repository: Show a warning if file extension is modified 2020-03-13 13:17:44 +08:00
Mathew May 6354ead666 MDL-67924 core: Changes to features for Goutte & editing button 2020-03-13 08:50:29 +08:00
Mathew May ddd387ef68 MDL-67924 core: Now show the editing button everywhere 2020-03-13 08:50:14 +08:00
Tim Hunt f2393804bf MDL-67934 questions: give a sensible default idnumber when duplicating 2020-03-12 18:07:11 +00:00
Victor Deniz Falcon 73f8c56dfc weekly release 3.9dev 2020-03-12 14:22:06 +00:00
Victor Deniz Falcon 97f4721885 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-03-12 14:22:00 +00:00
Eloy Lafuente (stronk7) d1feae1cb9 Merge branch 'MDL-66607-master' of git://github.com/andrewnicols/moodle 2020-03-12 10:08:22 +01:00
Andrew Nicols 8fd1dfc795 Merge branch 'MDL-68030-master' of https://github.com/Chocolate-lightning/moodle 2020-03-12 12:42:17 +08:00
Mathew May d2695ab2f3 MDL-68030 core_course: Relocate chooser templates 2020-03-12 12:05:20 +08:00
Mathew May c515848ce0 MDL-68030 core_course: Update behat 2020-03-12 11:51:45 +08:00
Mathew May 4883aabf0d MDL-68030 core_course: Tuncate long module names 2020-03-12 11:51:45 +08:00
Mathew May 486abbcb74 MDL-68030 core_course: Set focus onto the help area header 2020-03-12 11:51:45 +08:00
Mathew May c368657153 MDL-68030 core_course: Properly size elements in the chooser 2020-03-12 11:51:45 +08:00
Eloy Lafuente (stronk7) 41f191b341 Merge branch 'MDL-68125-regression' of https://github.com/brendanheywood/moodle 2020-03-12 01:19:23 +01:00
Eloy Lafuente (stronk7) 0b698cb00b Merge branch 'MDL-67752-master-userstats' of git://github.com/mudrd8mz/moodle 2020-03-12 00:23:30 +01:00
Eloy Lafuente (stronk7) a17bdbd5cf Merge branch 'MDL-68019-master' of git://github.com/peterRd/moodle 2020-03-11 23:47:43 +01:00
Brendan Heywood 17b04bdb25 MDL-68125 core: Fixed $CFG->reverseproxyignore install regression 2020-03-12 09:36:17 +11:00
Eloy Lafuente (stronk7) d950188c19 Merge branch 'MDL-68061-master' of git://github.com/mickhawkins/moodle 2020-03-11 22:56:13 +01:00
Tim Hunt 511801eaa9 MDL-68153 qbank: question of unknown type should not cause fatal error
Regression casued by MDL-67153
2020-03-11 20:40:51 +00:00
Eloy Lafuente (stronk7) 9d6e37b3ef Merge branch 'MDL-67063-master-fix' of github.com:sarjona/moodle 2020-03-11 19:40:14 +01:00
Sara Arjona 7ae4a58229 MDL-67063 core_h5p: return the correct default handler 2020-03-11 18:18:09 +01:00
Tim Hunt 9440b54f8a 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:43:21 +00:00
Tim Hunt b060e7495c MDL-68149 qtype_match: Updatey tests to follow make_question() pattern 2020-03-11 13:41:13 +00:00
kritisingh1 02c350947f MDL-68081 Groups: Fixes string error in member removal function 2020-03-11 17:28:54 +05:30
Andrew Nicols 56bcfae31f MDL-66607 message: Add pendingJS checks 2020-03-11 16:23:16 +08:00
Andrew Nicols efeaa51edc 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 16:23:16 +08:00
Andrew Nicols 63e821fb41 Merge branch 'MDL-67063-master' of git://github.com/sarjona/moodle 2020-03-11 16:06:00 +08:00
Sara Arjona 08fda3e0f8 MDL-67063 h5p: new h5plib plugintype for supporting multi coreAPI
A new plugintype has been created for having more than one installed
third-party H5P libraries. Existing libraries have been moved from
lib/h5p to the new h5plib_v124 plugin.
2020-03-11 08:46:16 +01:00
Andrew Nicols e55d14e8d2 Merge branch 'MDL-68146' of https://github.com/stronk7/moodle 2020-03-11 11:33:25 +08:00
Eloy Lafuente (stronk7) 8aee741e24 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 22:59:36 +01:00
Eloy Lafuente (stronk7) 5900253c79 Merge branch 'MDL-65724-master-3' of git://github.com/peterRd/moodle 2020-03-10 13:44:03 +01:00
Eloy Lafuente (stronk7) c3afb828b3 Merge branch 'MDL-67337-master' of git://github.com/aanabit/moodle 2020-03-10 12:56:23 +01:00
Amaia Anabitarte 885d481749 MDL-67337 filter_displayh5p: Apply filter inside <a> tags 2020-03-10 12:10:35 +01:00
Eloy Lafuente (stronk7) c30cddf43b Merge branch 'MDL-67189-master' of git://github.com/dpalou/moodle 2020-03-10 11:28:44 +01:00
Dani Palou 096c46bb4e MDL-67189 external: Add test to catch PHP exceptions 2020-03-10 08:26:43 +01:00
Dani Palou 2603034e0a MDL-67189 external: Catch Throwable in call_external_function 2020-03-10 08:26:43 +01:00
Shamim Rezaie 32ec05466a 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 16:30:08 +11:00
Eloy Lafuente (stronk7) 9dc5d5ce0b Merge branch 'MDL-67827-master' of git://github.com/andrewnicols/moodle 2020-03-09 20:36:09 +01:00
Sara Arjona 6185f1ce24 Merge branch 'MDL-66671-master' of https://github.com/dthies/moodle 2020-03-09 18:49:02 +01:00
Sara Arjona cd717e8ba8 Merge branch 'MDL-67968-master' of git://github.com/rezaies/moodle 2020-03-09 18:16:56 +01:00
Sara Arjona 19766ef9ad Merge branch 'MDL-67902-master' of git://github.com/rezaies/moodle 2020-03-09 15:06:35 +01:00
AMOS bot 8608c4b0b3 Automatically generated installer lang files 2020-03-09 00:11:44 +00:00
Sara Arjona 32a05b5625 MDL-67063 core: fix error for supporting numbers in component
Component names should always support numbers (but the first character).
This patch will add PARAM_COMPONENT the expected regular expression
to validate the expected format.
2020-03-06 20:21:31 +01:00
Sara Arjona 06299fc604 MDL-67063 output: make public get_jsrev method 2020-03-06 20:21:31 +01:00
Tim Hunt 1b6b554118 MDL-67981 questions: avoid errors deleting contextless questions 2020-03-06 17:57:11 +00:00
Shamim Rezaie f63fd51189 MDL-67968 calendar: use aria-label instead of the abbr tag 2020-03-07 03:27:35 +11:00
Shamim Rezaie 863814c64a MDL-67968 calendar: explain weekday abbreviations 2020-03-06 19:58:25 +11:00
Shamim Rezaie acbbe930eb MDL-67968 form: not to put empty label when no label is available 2020-03-06 19:58:25 +11:00
Shamim Rezaie a728edcb0c 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-06 19:58:25 +11:00
Shamim Rezaie 8fe311a3a5 MDL-67968 form: grouped element label fix 2020-03-06 19:58:25 +11:00
Peter 74d95c7bf9 MDL-65724 core: Force restore to use the settings from the plan
When importing use the import settings.
2020-03-06 13:43:39 +08:00
Andrew Nicols 604887ce8f MDL-67827 behat: Pending JS improvements for dialogues 2020-03-06 12:59:38 +08:00
Andrew Nicols ae8d60c4a1 MDL-67827 behat: Add missing exception use 2020-03-06 12:59:38 +08:00
AMOS bot 8219570973 Automatically generated installer lang files 2020-03-06 00:10:41 +00:00
Sara Arjona 9df2f66fb4 weekly release 3.9dev 2020-03-05 17:31:15 +01:00
Sara Arjona 2a17d4371d Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-03-05 17:31:12 +01:00
Sara Arjona 546d9047b8 MDL-33671 behat: fix error with Select all/none checkbox 2020-03-05 15:58:56 +01:00
Dani Palou fbe3178a55 MDL-67907 airnotifier: Warn if some settings disabled after get key 2020-03-05 11:58:56 +01:00
Sara Arjona 1654b2fb46 Merge branch 'MDL-33671-master-fix' of git://github.com/andrewnicols/moodle 2020-03-05 09:05:52 +01:00
Michael Hawkins c02a85c786 MDL-67861 core: Fix getremoteaddr unit test to match new proxy setup 2020-03-05 14:39:24 +08:00
Andrew Nicols 0e09bc932d MDL-33671 behat: Check current fieldtype and parent 2020-03-05 14:16:18 +08:00
Peter Dias 006d348624 MDL-68014 lti: Remove alt text for image 2020-03-05 13:37:00 +08:00
Andrew Nicols ff1a10333d Merge branch 'MDL-67263-master' of git://github.com/mihailges/moodle 2020-03-05 13:22:40 +08:00
Mihail Geshoski ae0e9801bd MDL-67263 course: Add behat tests 2020-03-05 11:57:14 +08:00
Mihail Geshoski f152b71dd4 MDL-67263 course: Add search functionality in the activity chooser 2020-03-05 11:56:39 +08:00
Andrew Nicols 4deee83a98 Merge branch 'MDL-67504-Master' of https://github.com/tuanngocnguyen/moodle 2020-03-05 10:46:37 +08:00
Andrew Nicols ba3263332d Merge branch 'MDL-65298' of https://github.com/Chocolate-lightning/moodle 2020-03-05 10:39:25 +08:00
Mathew May f3c47c9ca8 MDL-65298 core_course: Remove unused function parameters 2020-03-05 10:36:41 +08:00
Andrew Nicols 85b9ecdbd9 Merge branch 'master_MDL-67872' of https://github.com/danmarsden/moodle 2020-03-05 09:45:37 +08:00
Brendan Heywood c2366b85b3 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:28:05 +01:00
Brendan Heywood 516c8aa506 MDL-67861 libraries: Refactor is_ip_in_subnet_list in ip_utils 2020-03-05 01:28:04 +01:00
Brendan Heywood 1186275685 MDL-67861 admin: Default $CFG->getremoteaddrconf to only use REMOTE_ADDR 2020-03-05 01:28:04 +01:00
Brendan Heywood df0619c7b6 MDL-67861 core: Use last ip in X-Forwarded-For list 2020-03-05 01:28:04 +01:00
Andrew Nicols 534488abfe MDL-65106 theme_classic: Remove unused variable 2020-03-05 08:15:34 +08:00
Andrew Nicols 499f9002da Merge branch 'MDL-65106-master' of git://github.com/bmbrands/moodle 2020-03-05 08:12:56 +08:00
Andrew Nicols 4288e2ca14 MDL-33671 core_files: Correct behat grammar 2020-03-05 07:59:51 +08:00
Andrew Nicols b11c9c19a5 Merge branch 'MDL-33671-master-3' of git://github.com/peterRd/moodle 2020-03-05 07:57:05 +08:00
Eloy Lafuente (stronk7) f41bec72bf Merge branch 'MDL-62768' of https://github.com/paulholden/moodle 2020-03-04 18:33:00 +01:00
Sara Arjona 5cc0ef48c0 Merge branch 'MDL-67696-master' of https://github.com/JayChurchward/moodle 2020-03-04 17:55:27 +01:00
Sara Arjona 92499808cb Merge branch 'MDL-67767-master' of git://github.com/dpalou/moodle 2020-03-04 15:04:47 +01:00
Dani Palou 12da324fc0 MDL-67767 tool_mobile: Allow using more characters in forcedurlscheme 2020-03-04 14:22:22 +01:00
Sara Arjona 4767b7bff1 Merge branch 'MDL-67863-master' of git://github.com/bmbrands/moodle 2020-03-04 14:05:17 +01:00
Sara Arjona 03a4964277 Merge branch 'MDL-67969-master' of git://github.com/rezaies/moodle 2020-03-04 12:58:04 +01:00
Marina Glancy 99b3ce9669 MDL-56287 gradereport_history: Separate groups queries improved 2020-03-04 11:46:52 +01:00
Jun Pataleta 29ddc8ff32 MDL-56287 gradereport_history: Show users from groups that can be viewed 2020-03-04 11:46:52 +01:00
Eloy Lafuente (stronk7) e9e4f9c737 Merge branch 'MDL-67641-master' of git://github.com/dpalou/moodle 2020-03-04 10:47:45 +01:00
Sara Arjona e0a2f774df Merge branch 'MDL-68008-master' of git://github.com/ferranrecio/moodle 2020-03-04 08:40:43 +01:00
Sara Arjona b71604b058 Merge branch 'MDL-68055-master' of https://github.com/snake/moodle 2020-03-04 08:16:47 +01:00
Dani Palou 5a56d34063 MDL-67641 auth: Fix shortname type in get_signup_settings WS 2020-03-04 08:11:11 +01:00
Peter Dias 06dc3a6c27 MDL-33671 core: Remove custom behat selectors
Co-authored-by: Andrew Nicols <andrew@nicols.co.uk>
2020-03-04 13:38:49 +08:00
Jake Dallimore d86274c64b MDL-68055 core_course: export content item description as markdown 2020-03-04 11:44:26 +08:00
AMOS bot 7e62a19127 Automatically generated installer lang files 2020-03-04 00:11:05 +00:00
Eloy Lafuente (stronk7) a2d4ea5f12 Merge branch 'MDL-67728-master' of git://github.com/crazyserver/moodle 2020-03-03 19:50:08 +01:00
Eloy Lafuente (stronk7) 2ff7b7b0da Merge branch 'MDL-68038-master' of git://github.com/sarjona/moodle 2020-03-03 19:45:05 +01:00
Eloy Lafuente (stronk7) bc988c0600 Merge branch 'MDL-67971-master' of git://github.com/sarjona/moodle 2020-03-03 19:02:22 +01:00
Sara Arjona d0b087efa1 Merge branch 'MDL-67993-master' of git://github.com/lameze/moodle 2020-03-03 18:06:23 +01:00
Ferran Recio de5cc3662b MDL-68008 tool_capability: shows multiple contexts when overrides exists 2020-03-03 17:46:11 +01:00
Sara Arjona 07b6ae5f3a Merge branch 'MDL-68048-master-behatnotfound' of git://github.com/mudrd8mz/moodle 2020-03-03 17:01:33 +01:00
Sara Arjona 47f825b3d1 Merge branch 'MDL-68060-master-huburlcompare' of git://github.com/mudrd8mz/moodle 2020-03-03 13:10:00 +01:00
Sara Arjona ae2b9f4814 Merge branch 'MDL-67891' of https://github.com/paulholden/moodle 2020-03-03 12:48:03 +01:00
Sara Arjona bcfab3d736 Merge branch 'MDL-63316' of https://github.com/azito122/moodle 2020-03-03 11:10:36 +01:00
Sara Arjona bcea0d8340 Merge branch 'MDL-67945-master' of git://github.com/ferranrecio/moodle 2020-03-03 10:10:32 +01:00
Sara Arjona dc55029bca Merge branch 'MDL-67749-master' of git://github.com/dpalou/moodle 2020-03-03 09:29:18 +01:00
Peter 3d7d25afce MDL-68019 favourites: Unit test 2020-03-03 13:19:46 +08:00
Peter a216d86c6c MDL-33671 core: Add ability to download selected items
Utilise the new checkbox-toggleall functionality
2020-03-03 07:20:35 +08:00
Peter 5c567c1421 MDL-33671 core: Toggable checkboxes on filepickers 2020-03-03 07:20:35 +08:00
Peter 2f03923602 MDL-33671 core: Allow for bulk delete of files
* Enable bulk delete in a details view
* Behat tests for new functionality
* Unit test for new function
2020-03-03 07:20:35 +08:00
Sara Arjona 564f01694d Merge branch 'MDL-67988-jws-base64url' of https://github.com/cengage/moodle 2020-03-02 13:59:48 +01:00
Paul Holden 07d93d27a0 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:43 +00:00
Sara Arjona 2f45b6f7cf MDL-67971 core_badges: review issuer URL 2020-03-02 08:02:08 +01:00
Sara Arjona 3e3b656795 MDL-68038 core_h5p: rename can_update_library test 2020-03-02 08:00:42 +01:00
Nathan Nguyen 464bd7ecd5 MDL-67504 antivirus_clamav: Add scanning tries option 2020-03-02 08:54:02 +11:00
Andrew Zito 1e67849c1f MDL-63316 participants: lastname sort for participants table 2020-02-28 14:34:18 -05:00
Daniel Thies 158898254c MDL-66671 enrol_lti: Skip grade sync when cm deleted 2020-02-28 09:32:24 -06:00
Eloy Lafuente (stronk7) d7374522ed weekly release 3.9dev 2020-02-28 12:22:30 +01:00
Peter b3b2d72c1e MDL-68019 course: Performance improvement with component favourites
Add the ability to get all/select itemtypes within a component
2020-02-28 11:28:15 +08:00
Bas Brands 8ad4255fbe 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:03 +01:00
Eloy Lafuente (stronk7) 5767ceda85 Merge branch 'MDL-67062-master-fix-oracle' of https://github.com/sarjona/moodle 2020-02-27 13:18:58 +01:00
David Mudrák 4e907e7be4 MDL-67752 course: Provide the active user stats during the registration
These new stats provide better insight as they only consider recently
active users and active enrolments only.
2020-02-27 13:14:39 +01:00
David Mudrák c268c1bd3f MDL-67752 course: Improve the average_number_of_participants function
The patch adds two new optional parameters that control the function
behaviour. With default values, the function is backwards compatible and
it simply uses the number of enrolment records. The new parameters allow
to include only active enrolments and/or only recently active users.
2020-02-27 13:14:39 +01:00
Sara Arjona 770cfadd68 MDL-67062 core_h5p: fix oracle distinct error 2020-02-27 13:12:52 +01:00
Eloy Lafuente (stronk7) df6071af65 Merge branch 'MDL-67062-master-fix' of https://github.com/sarjona/moodle 2020-02-27 12:54:30 +01:00
Sara Arjona 91ae2593d6 MDL-67062 core_h5p: behat fix for delete library test 2020-02-27 12:32:21 +01:00
Bas Brands e06b302ed5 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-02-27 10:24:12 +01:00
Michael Hawkins b34f2c75c9 MDL-68061 gradereport_history: Restrict per page config value to int 2020-02-27 13:38:37 +08:00
Jun Pataleta 9585a6fdf7 Merge branch 'MDL-67584-integration-2' of https://github.com/Chocolate-lightning/moodle 2020-02-27 12:36:33 +08:00
Mathew May 6e1a4477d8 MDL-67584 core_course: Activity chooser favouriting frontend 2020-02-27 12:13:35 +08:00
Eloy Lafuente (stronk7) 3bc090db2a Merge branch 'MDL-67865-master' of git://github.com/rezaies/moodle 2020-02-26 23:36:26 +01:00
Eloy Lafuente (stronk7) 6304e6a380 Merge branch 'MDL-64686-master' of git://github.com/lucaboesch/moodle 2020-02-26 23:25:23 +01:00
Eloy Lafuente (stronk7) 01689c8fe4 Merge branch 'MDL-67062-master' of git://github.com/sarjona/moodle 2020-02-26 22:44:47 +01:00
Sara Arjona 64a2bd19b0 MDL-67062 core_h5p: delete libraries
New feature to let admins to remove H5P libraries/content types.

Thanks Ferran Recio for your contribution with the renderer!

AMOS BEGIN
 CPY [actions,core],[actions,core_h5p]
AMOS END
2020-02-26 19:55:34 +01:00
Sara Arjona 2b8d97326d MDL-67062 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-02-26 19:55:34 +01:00
Eloy Lafuente (stronk7) 9e5331c331 Merge branch 'MDL-67758-master' of git://github.com/dpalou/moodle 2020-02-26 17:35:38 +01:00
Eloy Lafuente (stronk7) bc418341fe Merge branch 'MDL-67132-LTI-Adv-TriggerCalc' of https://github.com/cengage/moodle 2020-02-26 17:15:50 +01:00
Eloy Lafuente (stronk7) d2ac7726eb Merge branch 'MDL-67979-master-enfix' of git://github.com/mudrd8mz/moodle 2020-02-26 17:13:12 +01:00
Anthony Forth bcc3a463f6 MDL-67945 enrol: missing $DB in edit_instance_form 2020-02-26 16:22:36 +01:00
David Mudrák 2606485ab2 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:59:15 +01:00
Jun Pataleta 47fd698541 Merge branch 'MDL-67921-master' of git://github.com/sarjona/moodle 2020-02-26 16:51:19 +08:00
Jun Pataleta 042753b27f Merge branch 'master_MDL-67980' of https://github.com/golenkovm/moodle 2020-02-26 14:30:49 +08:00
David Balch 50850003e5 MDL-67993 roles: Fix pix_icon() calls. 2020-02-26 12:01:45 +08:00
Claude Vervoort ae46b7442c MDL-67132 mod_lti: document new param 2020-02-25 21:22:45 -05:00
Eloy Lafuente (stronk7) 392e270c93 Merge branch 'MDL-67950-passwordpolicy-callback' of https://github.com/brendanheywood/moodle 2020-02-26 00:20:49 +01:00
Eloy Lafuente (stronk7) 8e933354a6 Merge branch 'MDL-67644-master' of git://github.com/dpalou/moodle 2020-02-25 23:59:41 +01:00
Eloy Lafuente (stronk7) d1658a47eb Merge branch 'MDL-67806-master' of git://github.com/dpalou/moodle 2020-02-25 23:57:15 +01:00
Eloy Lafuente (stronk7) a32e7f7933 Merge branch 'MDL-67237-master' of git://github.com/dpalou/moodle 2020-02-25 23:53:19 +01:00
Eloy Lafuente (stronk7) b5220abb0f Merge branch 'MDL-67920-master' of git://github.com/aanabit/moodle 2020-02-25 23:32:17 +01:00
Eloy Lafuente (stronk7) db7861cf7a Merge branch 'MDL-67131-master' of git://github.com/cescobedo/moodle 2020-02-25 23:30:41 +01:00
Paul Holden 95f2f7cc9f MDL-62768 tool_policy: add page title & breadcrumb navigation. 2020-02-25 22:03:09 +00:00
Paul Holden bff97f158e MDL-62768 tool_dataprivacy: add page breadcrumbs to navigation. 2020-02-25 21:36:37 +00:00
David Mudrák 930d9782e1 MDL-67979 lang: Reflect the new string wording in the Behat test
This effectively only adds the full stop and would not break the test
but still.
2020-02-25 12:21:09 +01:00
Helen Foster a753f4f9a1 MDL-67979 lang: Import fixed English strings (en_fix)
Significant string changes:

* configcustommenuitems,core_admin - corrected example
* custommenuitems_desc,tool_mobile - fallback behaviour of custom menu
  items in the app
2020-02-25 12:21:09 +01:00
Eloy Lafuente (stronk7) 5ea7d1b205 Merge branch 'MDL-67862-master' of git://github.com/junpataleta/moodle 2020-02-25 12:09:33 +01:00
Eloy Lafuente (stronk7) 8b64627235 Merge branch 'MDL-67364-master' of git://github.com/mickhawkins/moodle 2020-02-25 12:05:33 +01:00
David Mudrák e84ca4fb22 MDL-68048 behat: Fix the ElementNotFoundException message wording
The exception class itself adds the "not found" to the error message.
2020-02-25 11:33:57 +01:00
Jun Pataleta 88fb49b657 Merge branch 'MDL-67846-master' of git://github.com/lameze/moodle 2020-02-25 16:52:45 +08:00
Simey Lameze 041ff27245 MDL-67846 mod_forum: export user full name 2020-02-25 15:26:22 +08:00
Jun Pataleta 6b6705a8ad Merge branch 'MDL-67586-integration' of https://github.com/Chocolate-lightning/moodle 2020-02-25 14:25:16 +08:00
Mathew May e04b4be619 MDL-67586 core_course: Recommended modules frontend 2020-02-25 14:07:40 +08:00
Jun Pataleta b5b7e88caa Merge branch 'MDL-67262' of git://github.com/stronk7/moodle 2020-02-25 09:37:38 +08:00
Eloy Lafuente (stronk7) 30206d545e MDL-67262 core_course: fix behat looking for non-existing page 2020-02-24 23:15:28 +01:00
Shamim Rezaie 032b9d15cb MDL-67902 calendar: keyboard users should be able to toggle day popover 2020-02-25 03:38:35 +11:00
Shamim Rezaie ac0ae31953 MDL-67902 calendar: informative aria label for event days in mini cals 2020-02-25 03:38:35 +11:00
Shamim Rezaie 369fc01391 MDL-67902 calendar: informative aria label for event days in calendar 2020-02-25 03:38:30 +11:00
Shamim Rezaie d24f97c456 MDL-67902 calendar: Fix label of the course filter in calendar 2020-02-24 23:43:10 +11:00
Jun Pataleta c31085bb66 MDL-67262 core_course: Rebuild recommended activities JS module 2020-02-24 16:04:06 +08:00
Jun Pataleta 326527c25b Merge branch 'MDL-67262-master-2' of git://github.com/snake/moodle 2020-02-24 15:56:04 +08:00
Jake Dallimore b3fe33ac75 MDL-67262 core_course: integration review changes 2020-02-24 13:13:49 +08:00
Adrian Greeve ebdbe8736e MDL-67262 core_course: Unit and behat tests for recommendations. 2020-02-24 11:00:44 +08:00
Adrian Greeve cd09777dbd MDL-67262 core_course: Added the ability to recommend activities.
This allows an adminsitrator or a user with
'moodle/course:recommendactivity' to recommend activities in the
activity chooser.
2020-02-24 10:59:55 +08:00
Mikhail Golenkov e63040d02b MDL-67980 tasks: Sort ad-hoc tasks by nextruntime. 2020-02-24 09:30:09 +11:00
Adrian Hutchinson 9c66d72779 MDL-67988 mod_lti: remove padding from JWS base64url encoding 2020-02-21 08:42:41 -08:00
Pau Ferrer Ocaña c6d2e5c5ab MDL-67728 behat: Increase app start timeout 2020-02-21 12:45:05 +01:00
Pau Ferrer Ocaña ab892ccb7a MDL-67728 behat: Improve behat app selectors 2020-02-21 12:45:05 +01:00
cescobedo 5d81efd1f7 MDL-67131 core_h5p: Allow use webservice/pluginfile|tokenpluginfile url
With this fix the player accepts webservice/pluginfile.php, pluginfile.php
and tokenpluginfile.php URLs to find the h5p files.
Also, we allow to build fileurl with the proper endpoint if
the URL is webservice/pluginfile, tokenpluginfile.php or pluginfile.php
as Mobile App needs.
2020-02-21 09:46:23 +01:00
Sara Arjona 92ad6bd901 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:07 +01:00
Amaia Anabitarte f531a30252 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 08:59:27 +01:00
Luca Bösch 8398273dfd MDL-64686 theme: align course search form for small screens sizes. 2020-02-21 06:38:08 +01:00
Jun Pataleta 37b2ee3f64 weekly release 3.9dev 2020-02-21 11:02:08 +08:00
Jun Pataleta dd8144ebff Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-02-21 11:01:17 +08:00
Eloy Lafuente (stronk7) a1a5f87093 Merge branch 'MDL-67727-master' of git://github.com/crazyserver/moodle 2020-02-20 16:12:23 +01:00
Jun Pataleta 5a4c63aa4f Merge branch 'MDL-67585-master-4' of git://github.com/snake/moodle 2020-02-20 11:58:02 +08:00
Adrian Greeve a7b2378d72 MDL-67585 core_course: Added legacyitem to exporter.
Legacy items have no id and so can not be favourited nor
recommended. We needed a way to easily determine whether to show
these features in the templates.
2020-02-20 11:42:24 +08:00
Adrian Greeve 54561c885e MDL-67585 core_course: Removing functions introduced this release.
For the initial rewrite of the activity chooser we had some
temporary functions to make everything work. These have been replaced
with different functions and so these functions are now being removed.
2020-02-20 11:42:23 +08:00
Adrian Greeve 618d310663 MDL-67585 core_course: Update to provider to add favourites info.
This adds information to the privacy report about the user being
able to favourite activities in the activity chooser.
2020-02-20 11:42:23 +08:00
Adrian Greeve 5c78541f80 MDL-67585 core_course: Service factory for course content items. 2020-02-20 11:42:23 +08:00
Jake Dallimore 806e736a7c MDL-67585 core_course: use new content item service to load the chooser 2020-02-20 11:42:23 +08:00
Jake Dallimore 85b4eec5b7 MDL-67585 core_course: new web service to return course content items 2020-02-20 11:42:23 +08:00
Jake Dallimore a826857844 MDL-67585 core_course: added web services for content item favourites
Two new services:
add_content_item_to_user_favourites
remove_content_item_from_user_favourites
2020-02-20 11:42:23 +08:00
Jake Dallimore f09e9b887e MDL-67585 core_course: add favouriting to the content item service class 2020-02-20 11:42:22 +08:00
Jake Dallimore 57dfcf951d MDL-67585 core_course: add hook get_all_content_items
Returns all content items which are provided by the plugin, irrespective
of whether or not a user can see an item in a particular course. This is
used to generate a global list of content items, allowing for admin
level features to be added.
2020-02-20 11:42:22 +08:00
Jake Dallimore 520add19d6 MDL-67585 core_course: deprecate the callback get_shortcuts()
This involves a few changes:
- The callback is still called by the repository but only if the
replacement callback get_course_content_items is not implemented.
- Debugging is called when the get_shortcuts callback is called.
- We leave lti's implementation of get_shortcuts alone, in order to
maintain the output of get_module_metadata during its deprecation life
span.
2020-02-20 11:42:21 +08:00
Jake Dallimore 39b9e293e7 MDL-67585 core_course: only accept content items from mods and submods
This matches the prior behaviour in core.
2020-02-20 09:28:57 +08:00
Jake Dallimore 8fc7d83f38 MDL-67585 core_course: add get_course_content_items hook
Plugins use this to report which content items relate to a user in
a course.
2020-02-20 09:28:57 +08:00
Jake Dallimore 38a9d717a9 MDL-67585 format_singleactivity: fix hassubtype to use the service data
TODO: really need to properly work out subtypes lower down in the repo.
2020-02-20 09:28:57 +08:00
Jake Dallimore 12f73788b4 MDL-67585 core_course: deprecate get_module_metadata() from course/lib 2020-02-20 09:28:57 +08:00
Jake Dallimore 2f040002ee MDL-67585 core_course: Use the content_item_service to build the picker
Replace get_module_metadata calls with calls to the new
content_item_service class.
2020-02-20 09:28:57 +08:00
Jake Dallimore dd494a41a4 MDL-67585 core_course: add content_item_service class
The service object encapsulates access control logic and allows
consumers to query content items in different contexts/scopes.
2020-02-20 09:28:57 +08:00
Jake Dallimore 8210186372 MDL-67585 core_course: add user param to course_allowed_module
We want to be able to call this for a user, not rely on a global.
2020-02-20 09:28:57 +08:00
Jake Dallimore eec2d09f84 MDL-67585 core_course: add exporter for course content items
An exporter will allow let us add calculated fields like 'favourited'
to the data being transferred.
2020-02-20 09:28:57 +08:00
Jake Dallimore 7c7ae1bd6f MDL-67585 core_course: add caching_content_item_repository class
A repository object which caches results for a user and course. This
allows this repository to be called many time in a single request - a
pattern we expect when objects of this type replace the existing
get_module_metadata() method.
2020-02-20 09:28:57 +08:00
Jake Dallimore 92715acd0c MDL-67585 core: add course content item cache
To be indexed by userid_courseid.
2020-02-20 09:28:57 +08:00
Jake Dallimore e843336ee6 MDL-67585 core_course: add content_item_readonly_repository class
Add a read-only repository, which returns the list of content items
which can be added to a course. This class does not handle access
control nor user-related data pertaining to to core content_items.
This will be handled in a future commit in any calling code using
the repositories.
2020-02-20 09:28:57 +08:00
Jake Dallimore 94420851a5 MDL-67585 core_course: add support for custom titles to content_item
Plugins have always been able to return either a string or a lang string
when implementing the hook, 'get_shortcuts'. Since content_items will
be the replacement for that stdClass implementation, we need a way
for plugins to continue to have this flexibility. This just provides
a small contract and some classes that plugins can use in future.
2020-02-20 09:28:57 +08:00
Jake Dallimore dd8048e350 MDL-67585 core_course: add the content_item class
Objects of this class represent items able to be added to a course,
including modules and submodules.
2020-02-20 09:28:57 +08:00
Eloy Lafuente (stronk7) a21ba663fd Merge branch 'MDL-67899-master' of git://github.com/rezaies/moodle 2020-02-20 00:41:19 +01:00
Luke Tucker 785271c6d9 MDL-50455: tool_capability: Use static cache when loading context data 2020-02-20 00:27:33 +01:00
Eloy Lafuente (stronk7) 287c044f9c Merge branch 'MDL-67942-master' of https://github.com/HuongNV13/moodle 2020-02-19 19:17:09 +01:00
Eloy Lafuente (stronk7) 2b97ab8adb Merge branch 'MDL-67947' of https://github.com/timhunt/moodle 2020-02-19 17:48:14 +01:00
Tim Hunt 887daf932c MDL-67947 questions: questions_in_use should ask all components
Previously it was only checking mods.
2020-02-19 11:55:04 +00:00
Dani Palou 956232db1d MDL-67749 ws: Set private token when reset or manual create token 2020-02-19 12:03:48 +01:00
Shamim Rezaie 768c318ad6 MDL-67969 lib: Fix duplicate blockinstanceid for fake blocks 2020-02-19 21:20:01 +11:00
Huong Nguyen fbad7a5170 MDL-67942 Quiz: Quiz attempt report delete_selected_attempts issue 2020-02-19 15:34:34 +07:00
Jun Pataleta 56a73a3f1e Merge branch 'MDL-67321-latest' of https://github.com/Chocolate-lightning/moodle 2020-02-19 14:44:13 +08:00
Mathew May c58c23d6c6 MDL-67321 core_course: Add support for tabbing activities in the chooser 2020-02-19 13:28:54 +08:00
Eloy Lafuente (stronk7) 751189a83a Merge branch 'MDL-67471_master' of https://github.com/t-schroeder/moodle 2020-02-18 23:54:35 +01:00
Brendan Heywood 648e20ab6d MDL-67950 core: check_password_policy only fires when passwordpolicy = 1 2020-02-19 09:46:21 +11:00
Eloy Lafuente (stronk7) 39696f9e66 Merge branch 'MDL-61390-master' of git://github.com/junpataleta/moodle 2020-02-18 19:07:05 +01:00
Eloy Lafuente (stronk7) aced9967cc Merge branch 'MDL-67953-master' of git://github.com/andrewnicols/moodle 2020-02-18 17:09:17 +01:00
Eloy Lafuente (stronk7) 29e0c1c85f Merge branch 'MDL-67949-master' of git://github.com/andrewnicols/moodle 2020-02-18 10:20:07 +01:00
Shamim Rezaie c2fa370b0e MDL-67865 output: Fix id of the dropdown trigger 2020-02-18 16:14:45 +11:00
Andrew Nicols d1a7806094 MDL-67949 grunt: normalise component paths 2020-02-18 08:10:24 +08:00
Eloy Lafuente (stronk7) 03a897c038 Merge branch 'MDL-61389-master' of git://github.com/junpataleta/moodle 2020-02-17 23:29:28 +01:00
Eloy Lafuente (stronk7) 245ac91748 Merge branch 'MDL-67309' of https://github.com/Peterburnett/moodle 2020-02-17 22:40:45 +01:00
Eloy Lafuente (stronk7) 1a5a87c4f3 Merge branch 'MDL-67817-master' of https://github.com/dthies/moodle 2020-02-17 22:08:09 +01:00
Eloy Lafuente (stronk7) 82ca0e2afd Merge branch 'MDL-67712-master' of git://github.com/andrewnicols/moodle 2020-02-17 12:28:05 +01:00
Tim Schroeder be8cfe6bcc MDL-67471 message: fixed mark_notification_read with messaging disabled 2020-02-17 09:15:19 +01:00
Bas Brands 46ff4741a1 MDL-65106 theme_classic: set custom navigationitem icon 2020-02-17 09:01:11 +01:00
Jun Pataleta dff9f9564b MDL-61390 mod_forum: Create template for forum search results 2020-02-17 15:55:56 +08:00
Jun Pataleta 904bc48b16 MDL-61389 mod_forum: Descriptive aria-label for "Discuss this topic" 2020-02-17 15:51:23 +08:00
Peter Burnett 59298ccebc MDL-67309 login: Added check for password policy at login time. 2020-02-17 09:55:07 +10:00
Andrew Nicols 843cf97bf6 MDL-67949 grunt: Add debugging information 2020-02-16 11:31:12 +08:00
Andrew Nicols 91434142a4 MDL-67712 grunt: Ensure that more-specific matches are first 2020-02-16 11:03:51 +08:00
AMOS bot 5f581dc9bb Automatically generated installer lang files 2020-02-16 00:11:04 +00:00
Daniel Thies a632739617 MDL-67817 core_date: Add test for timezone localization strings 2020-02-14 11:48:38 -06:00
Daniel Thies bf270d13fa MDL-67817 core_lang: Update timezone strings deprecating old identifiers 2020-02-14 11:48:38 -06:00
Sara Arjona 2c0b08c5a7 weekly release 3.9dev 2020-02-14 12:12:02 +01:00
Sara Arjona 5b21f101ee NOBUG: Fixed SVG browser compatibility 2020-02-14 12:12:00 +01:00
Sara Arjona f8a3ba1c86 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-02-14 12:11:59 +01:00
Jun Pataleta ed683f5f24 Merge branch 'MDL-67965-master' of git://github.com/andrewnicols/moodle 2020-02-14 11:16:42 +01:00
Andrew Nicols cdf6bf03c6 Merge branch 'MDL-67878' of https://github.com/timhunt/moodle 2020-02-14 11:16:39 +01:00
Andrew Nicols 166a314a0c Merge branch 'MDL-67264-review-squashed' of https://github.com/Chocolate-lightning/moodle 2020-02-14 11:16:31 +01:00
Eloy Lafuente (stronk7) d4758fd646 Merge branch 'MDL-67876' of https://github.com/timhunt/moodle 2020-02-14 11:15:33 +01:00
Sara Arjona 4bbf8716fa Merge branch 'MDL-63032-master' of git://github.com/peterRd/moodle 2020-02-14 11:15:30 +01:00
Andrew Nicols c74532c8b3 Merge branch 'MDL-67857' of https://github.com/timhunt/moodle 2020-02-14 11:15:27 +01:00
Eloy Lafuente (stronk7) 49e895a587 Merge branch 'MDL-67532' of https://github.com/paulholden/moodle 2020-02-14 11:15:24 +01:00
Eloy Lafuente (stronk7) 7b98ff28c6 Merge branch 'MDL-67675-master' of git://github.com/rezaies/moodle 2020-02-14 11:15:21 +01:00
Eloy Lafuente (stronk7) f9d0d67d52 Merge branch 'MDL-67690-master' of git://github.com/merrill-oakland/moodle 2020-02-14 11:15:18 +01:00
Andrew Nicols afe13dfe9c MDL-67965 behat: Get theme-specific context classes correctly 2020-02-14 10:15:49 +08:00
Claude Vervoort 4da02a6824 MDL-67132 mod_lti: call grade api to trigger course total computation 2020-02-13 15:20:04 -05:00
Michael Hawkins 2c78a8f479 MDL-67364 output: Add unit testing for editor_scss_to_css 2020-02-13 17:20:32 +08:00
Michael Hawkins 1c10c542f3 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 14:01:55 +08:00
Andrew Nicols 48b5817e88 MDL-67953 grunt: Work around spawn length limits 2020-02-13 13:29:28 +08:00
Mathew May e6a5298394 MDL-67264 lib modal: Add deffered promises to content promises 2020-02-13 09:15:41 +08:00
Peter 37cf89b34a MDL-67264 core_course: Activity chooser behat
Update the selectors to use a button
Add new tests to cover new functionality
Add new new step definitions to minimise usage of xpaths

Co-authored-by: Mathew May <mathewm@hotmail.co.nz>
Co-authored-by: Mihail Geshoski <mihail@moodle.com>
Co-authored-by: Peter <peterrolanddias@gmail.com>
2020-02-13 09:15:40 +08:00
Dan Marsden c61619fd1f MDL-67872 lib: fix code compliance with guidelines. 2020-02-13 12:15:02 +13:00
Dan Marsden de8d91ce38 MDL-67872 lib: correct plagiarism config frankenstyle naming. 2020-02-13 12:14:58 +13:00
Tim Hunt 35e1470e06 MDL-67878 grunt: make it works on Windows
To be honest, all the real skill here is Andrew Nicols, but I made the patch, so the credit is mine! All mine!
2020-02-12 15:03:25 +00:00
Dani Palou 29aeab4eee MDL-67644 tool_mobile: Add OAuth 2 providers in disabled features 2020-02-12 14:11:45 +01:00
Tim Hunt ae5d5f2085 MDL-67876 forms: not all field types need validation JS 2020-02-12 10:06:58 +00:00
Tim Hunt a5b56c4da5 MDL-67876 forms: scroll to any invalid element if form cannot submit 2020-02-12 09:32:21 +00:00
Mathew May 05b27f2118 MDL-67264 core_course: Activity chooser new feature
Roll in the base for the new activity chooser
It renders all modules into a modal
Gives the user to add from either the base or help screens
All checked by accessability tools with great coverage
Adds minimal overhead to the course edit setup time

Co-authored-by: Mathew May <mathewm@hotmail.co.nz>
Co-authored-by: Mihail Geshoski <mihail@moodle.com>
2020-02-12 12:35:03 +08:00
Shamim Rezaie cd4c44bea4 MDL-67899 message: Add aria-label to the emoji picker button 2020-02-12 01:01:22 +11:00
Sara Arjona 6b506621a6 Merge branch 'MDL-59303' of https://github.com/paulholden/moodle 2020-02-11 13:52:19 +01:00
Sara Arjona 799c3955e4 Merge branch 'MDL-67635-filesystem-cleanup' of https://github.com/brendanheywood/moodle 2020-02-11 13:22:54 +01:00
Sara Arjona c002fbf3db Merge branch 'MDL-66847-master' of git://github.com/lucaboesch/moodle 2020-02-11 12:28:24 +01:00
Luca Bösch c3fe18506b MDL-66847 webservice: Correct breadcrumb + title for ws documentation. 2020-02-11 12:17:39 +01:00
Sara Arjona a7cd3a17fc Merge branch 'MDL-66834-master' of https://github.com/kepeter/moodle 2020-02-11 11:54:12 +01:00
Sara Arjona 5963c3c8f0 Merge branch 'MDL-67060-master' of git://github.com/aanabit/moodle 2020-02-11 11:40:18 +01:00
Tim Hunt 007d13f147 MDL-67857 formchangechecker: support form submits that dont save 2020-02-11 10:25:45 +00:00
Amaia Anabitarte 78f0e17127 MDL-67060 core_h5p: Behats for H5P tools Overview 2020-02-11 10:26:57 +01:00
Amaia Anabitarte 4e7a035f68 MDL-67060 core_h5p: Improvements to Manage H5P setting page
Co-authored by: Adrian Greeve <adrian@moodle.com>

AMOS BEGIN
 CPY [description,moodle],[description,core_h5p]
 CPY [status,moodle],[status,core_h5p]
AMOS END
2020-02-11 10:26:57 +01:00
Amaia Anabitarte d3ee08dba3 MDL-67060 core_h5p: Improving H5P libraries list 2020-02-11 10:26:57 +01:00
Sara Arjona 855d4db87a Merge branch 'bugfix-MDL-67142' of https://github.com/AngadSethi/moodle 2020-02-11 10:18:49 +01:00
Sara Arjona 4b1d922967 Merge branch 'MDL-67894-master' of https://github.com/grabs/moodle 2020-02-11 08:20:29 +01:00
Peter Dias 1cb6c0bb31 MDL-63032 core: Update the timezone to the latest windows list 2020-02-11 07:17:23 +08:00
Sara Arjona 6ec4ed6f74 Merge branch 'MDL-67192-master' of git://github.com/vmdef/moodle 2020-02-10 17:59:22 +01:00
Dani Palou f95afbaf48 MDL-67758 airnotifier: Send wwwroot to airnotifier 2020-02-10 11:46:40 +01:00
Jun Pataleta 3a836cc110 MDL-66245 privacy: Encode each part of the data URL instead of the whole 2020-02-10 16:55:11 +08:00
Víctor Déniz Falcón fe9bb50cb5 MDL-67192 core_h5p: remove redundant assignment 2020-02-10 08:40:13 +00:00
Víctor Déniz Falcón a23969a5fa MDL-67192 core_h5p: get site UUID from H5P using the API 2020-02-10 08:40:12 +00:00
Jun Pataleta fb31e3da0b MDL-67862 message: Render dialogue header only when necessary 2020-02-10 13:08:31 +08:00
Mihail Geshoski cd2efd12ca MDL-67264 core_course: Begin set up for Activity chooser 2020-02-10 08:14:16 +08:00
Mathew May d6b95b8642 MDL-67264 core_templates: If classes exists render it out 2020-02-10 08:14:16 +08:00
Angad Sethi 86127e774f 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:40:44 +05:30
AMOS bot b1d076192b Automatically generated installer lang files 2020-02-08 00:11:45 +00:00
Andreas Grabs 20fea5522c MDL-67894 mod_feedback: database error on show responses 2020-02-07 18:48:38 +01:00
Paul Holden 1e89b1d686 MDL-59303 auth_shibboleth: consistent readme URL. 2020-02-07 14:25:15 +00:00
Paul Holden 5253834d03 MDL-67532 badges: better default for new badge language. 2020-02-07 09:46:56 +00:00
Sara Arjona 4e90332195 weekly release 3.9dev 2020-02-07 09:44:47 +01:00
Sara Arjona dc557fa4fd Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-02-07 09:44:44 +01:00
Brendan Heywood f070dd126f MDL-67726 tool_phpunit: Removed webrunner tool 2020-02-07 08:08:48 +08:00
Andrew Nicols af3de26941 Merge branch 'MDL-67175-master' of git://github.com/andrewnicols/moodle 2020-02-07 08:08:43 +08:00
Ferran Recio 312a9317fa MDL-67175 mod_scorm: fixing js eslint errors 2020-02-07 08:05:14 +08:00
Sam Hemelryk 841d855993 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-07 08:05:14 +08:00
Brendan Cox 86b082cece 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-07 08:05:14 +08:00
Dani Palou 2ccdc21b36 MDL-67237 tool_mobile: Add H5P offline option in disabled features 2020-02-06 11:33:15 +01:00
Eloy Lafuente (stronk7) 986c5283cf Merge branch 'MDL-67832' of https://github.com/timhunt/moodle
(fixed a couple of typos in the merge commit)
2020-02-06 00:01:07 +01:00
Eloy Lafuente (stronk7) a411ab8825 Merge branch 'MDL-67387-master' of git://github.com/cescobedo/moodle 2020-02-05 19:18:11 +01:00
Eloy Lafuente (stronk7) 3c87f49f79 Merge branch 'MDL-67830' of https://github.com/timhunt/moodle 2020-02-05 19:07:55 +01:00
Sara Arjona 53be27e4fb Merge branch 'MDL-66463-master' of git://github.com/ferranrecio/moodle 2020-02-05 13:10:59 +01:00
Ferran Recio 303df89df6 MDL-66463 theme_boost: IE and Edge go to top link compatibility 2020-02-05 11:44:59 +01:00
Eloy Lafuente (stronk7) a8976119dc Merge branch 'MDL-46542' of https://github.com/timhunt/moodle 2020-02-05 09:32:32 +01:00
Andrew Nicols 097677f765 Merge branch 'MDL-49103-master' of git://github.com/sarjona/moodle 2020-02-05 13:48:29 +08:00
Andrew Nicols bc51efe54b Merge branch 'MDL-58584-master' of git://github.com/rezaies/moodle 2020-02-05 13:45:34 +08:00
Eloy Lafuente (stronk7) 4cbba6d108 Merge branch 'MDL-67842' of https://github.com/timhunt/moodle 2020-02-04 22:44:24 +01:00
Eloy Lafuente (stronk7) 3ed74c3f93 Merge branch 'MDL-63424-master' of git://github.com/lucaboesch/moodle 2020-02-04 19:28:36 +01:00
Eloy Lafuente (stronk7) ce7f5ac4b9 Merge branch 'MDL-66875-master' of git://github.com/lucaboesch/moodle 2020-02-04 19:02:26 +01:00
Sara Arjona f8d9b1eb8c 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:49:39 +01:00
Shamim Rezaie 94e25092b2 MDL-58584 core_ddl: delete te loft over table in the test 2020-02-04 23:15:32 +11:00
Sara Arjona ceaa04ffea Merge branch 'MDL-67681_master' of https://github.com/marxjohnson/moodle 2020-02-04 12:16:39 +01:00
Andrew Nicols 7be4a3fba1 Merge branch 'MDL-60126-master-3' of git://github.com/mihailges/moodle 2020-02-04 10:33:19 +08:00
Andrew Nicols 5f21e45f9f Merge branch 'MDL-58584-master' of git://github.com/rezaies/moodle 2020-02-04 10:30:32 +08:00
Peter 7d6f66b422 MDL-60126 competency: Unit tests 2020-02-04 08:36:21 +08:00
Simey Lameze 507c34820c MDL-60126 core: upgrade step to clean user comp 2020-02-04 08:36:21 +08:00
AMOS bot 4534c489a9 Automatically generated installer lang files 2020-02-04 00:11:08 +00:00
Simey Lameze 2595d450e0 MDL-60126 competency: delete content upon user delete 2020-02-04 08:00:19 +08:00
Eloy Lafuente (stronk7) fbde0a7798 Merge branch 'MDL-67052-mysql-locks' of https://github.com/brendanheywood/moodle 2020-02-03 19:32:58 +01:00
JayChurchward 72eaa3c916 MDL-67696 mod_forum: Changed invalid count() to loop counter. 2020-02-03 09:31:28 -05:00
Sara Arjona eac589d8ab Merge branch 'MDL-67721-master' of git://github.com/rezaies/moodle 2020-02-03 14:52:16 +01:00
Sara Arjona 473634a450 Merge branch 'MDL-67511-master' of git://github.com/andrewnicols/moodle 2020-02-03 14:10:15 +01:00
Peter Eliyahu Kornfeld 3ab494b154 MDL-66834 Questions: add transaction, move trigger 2020-02-03 12:29:43 +02:00
Shamim Rezaie 934c2ee1b6 MDL-58584 core_ddl: getDropTableSQL should not do more than what it says 2020-02-03 15:07:15 +11:00
Shamim Rezaie b4d062c6be MDL-58584 core: remove duplications from get_columns functions 2020-02-03 15:07:15 +11:00
Andrew Nicols 4d4409437a MDL-67511 core: Adjust spacing at top of toast-wrapper 2020-02-03 07:38:07 +08:00
Tim Hunt 1aacbb72d3 MDL-67832 quiz: fix lots of PHPdoc in attemptlib.php 2020-01-31 19:09:03 +00:00
Ferran Recio 1b5630a01f MDL-66463 theme_boost: go to top link 2020-01-31 12:37:10 +01:00
Tim Hunt 2569fb5d2c MDL-67842 questions: Cannot remove the idnumber from a question 2020-01-30 17:24:59 +00:00
Tim Hunt 87554981f0 MDL-46542 formslib: duration field option for which units to show
Based on the original work of Itamar Tzadok.
2020-01-30 17:08:29 +00:00
cescobedo 14324f84af MDL-67387 libraries: Upgrade PhpSpreadsheet to version 1.10.1 2020-01-30 17:25:47 +01:00
Eloy Lafuente (stronk7) cb38ab1e39 weekly release 3.9dev 2020-01-30 16:10:59 +01:00
Eloy Lafuente (stronk7) 4f4e408d99 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-01-30 16:10:56 +01:00
Mark Johnson d62ce1d419 MDL-67681 Cache: Store coursecattree array in a single key 2020-01-30 13:21:22 +00:00
Jun Pataleta 961833b477 Merge branch 'MDL-67353_reset' of https://github.com/stronk7/moodle 2020-01-30 12:35:56 +08:00
Adrian Greeve f494e9e6c0 Merge branch 'MDL-67351-master_required_setting' of https://github.com/catalyst/moodle 2020-01-30 08:11:33 +08:00
Andrew Madden 4a63a5b875 MDL-67351 quiz: Change advanced quiz settings types to use flags.
Change all 'with_advanced' setting types in quiz/settings to their
regular counterparts and apply the 'advanced' admin flag to them
instead. Settings that extend with_advanced setting types are
unchanged.
2020-01-30 10:50:59 +11:00
Andrew Madden b5d1151574 MDL-67351 quiz: Move quiz form defaults logic out of form.
By including the mod_form:apply_admin_defaults() method in the quiz
moodle_form, each element does not need to set default and advanced
states individually.
2020-01-30 10:50:01 +11:00
Andrew Madden 948a951a4e MDL-67351 admin: Create new 'required' admin flag setting.
Extend the admin flag options, that currently allow the 'advanced' and 'locked' states
of a form setting to be controlled by a plugins admin settings, to also include
the 'required' state. These options appear as a list of checkboxes next to the admin
setting.
2020-01-30 10:49:14 +11:00
Eloy Lafuente (stronk7) 4af44dbc8e 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-29 23:43:57 +01:00
Brendan Heywood 262061d661 MDL-67052 locks: Added a native MySQL / MariaDB lock implementation 2020-01-30 09:20:10 +11:00
Brendan Heywood 9e27807bed MDL-67052 locks: Fixed backwards unit tests for unstacked locks 2020-01-30 09:19:41 +11:00
Michelle Melton b5fc2892df 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:34:35 +01:00
Tim Hunt a33e0b4d84 MDL-67830 quiz: notice in grade details redirect script 2020-01-29 18:34:39 +00:00
Eloy Lafuente (stronk7) fd27c57901 Merge branch 'wip-MDL-67545-master' of https://github.com/Beedell/moodle 2020-01-29 19:28:56 +01:00
Jun Pataleta 4ef4e10194 Merge branch 'MDL-67626_master' of git://github.com/adpe/moodle 2020-01-29 21:36:12 +08:00
Adrian Greeve aa78c654ba Merge branch 'MDL-67768-master-componentdirs' of git://github.com/mudrd8mz/moodle 2020-01-29 10:01:08 +08:00
Eloy Lafuente (stronk7) 492f3b71bb Merge branch 'MDL-67472-master' of git://github.com/bmbrands/moodle 2020-01-28 22:56:37 +01:00
Eloy Lafuente (stronk7) f5cb242afd Merge branch 'MDL-52189' of https://github.com/jonof/moodle 2020-01-28 22:43:22 +01:00
Eloy Lafuente (stronk7) db325421a3 Merge branch 'MDL-67447-master-autocomplete' of git://github.com/mudrd8mz/moodle 2020-01-28 22:23:43 +01:00
Eloy Lafuente (stronk7) 14de866897 Merge branch 'MDL-67722-master' of git://github.com/mickhawkins/moodle 2020-01-28 20:13:08 +01:00
Shamim Rezaie 2c4be2ebfd MDL-67675 atto_h5p: No need to manually clear the H5P placeholder 2020-01-28 22:28:57 +11:00
Eloy Lafuente (stronk7) dae0a8c405 Merge branch 'MDL-56389' of https://github.com/paulholden/moodle 2020-01-28 11:04:05 +01:00
Eloy Lafuente (stronk7) 2aa92150a6 Merge branch 'MDL-57755_master' of https://github.com/t-schroeder/moodle 2020-01-28 10:26:32 +01:00
David Mudrák 3f82b17927 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:18:25 +01:00
Adrian Greeve 3d1943b46d Merge branch 'MDL-67740-master-behatstepsfilter' of git://github.com/mudrd8mz/moodle 2020-01-28 15:05:45 +08:00
Adrian Greeve f9bc06ed16 Merge branch 'master_MDL-67746' of https://github.com/golenkovm/moodle 2020-01-28 13:11:41 +08:00
Adrian Greeve 2b45f8bbad Merge branch 'MDL-38511-bulk-actions' of https://github.com/brendanheywood/moodle 2020-01-28 11:10:17 +08:00
AMOS bot f487663f43 Automatically generated installer lang files 2020-01-28 00:11:35 +00:00
Adrian Greeve 067fbebf04 Merge branch 'MDL-67691' of https://github.com/stronk7/moodle 2020-01-28 07:52:21 +08:00
Shamim Rezaie 974db580df MDL-67721 mod_forum: See 'view grade' button on single discussion forums 2020-01-28 05:02:05 +11:00
Eloy Lafuente (stronk7) cefcb68f63 Merge branch 'MDL-64531-master-questiondeletejson' of git://github.com/mudrd8mz/moodle 2020-01-27 17:07:33 +01:00
Eloy Lafuente (stronk7) 58abdda2ea Merge branch 'MDL-67577-master' of git://github.com/bmbrands/moodle 2020-01-27 16:15:21 +01:00
Eloy Lafuente (stronk7) 8cc31f604d Merge branch 'MDL-67730-master' of git://github.com/rezaies/moodle 2020-01-27 12:21:21 +01:00
Eloy Lafuente (stronk7) 6e90244ac1 Merge branch 'm39_MDL-67414_Add_PostgreSQL_12x_Support_v2' of https://github.com/scara/moodle 2020-01-27 12:16:08 +01:00
Bas Brands 77e5b4462e 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:14:16 +01:00
Matteo Scaramuccia a8a4eac163 MDL-67414 database: Fixed PostgreSQL 12.x support 2020-01-26 09:37:17 +01:00
David Mudrák 7630b42232 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-25 05:39:01 +01:00
AMOS bot 68a14fac34 Automatically generated installer lang files 2020-01-25 00:11:31 +00:00
Luca Bösch 7287834c11 MDL-66875 calendar: allow the use of day, mon and year again. 2020-01-25 00:56:39 +01:00
Luca Bösch ee2bcf3645 MDL-63424 form: allow checkboxes to have req icon. 2020-01-24 17:34:48 +01:00
Dani Palou 887f7a96a1 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-24 15:53:21 +01:00
John Beedell 7aa3444d72 MDL-67545 Antivirus: new option for clam scan failure 2020-01-24 13:05:45 +00:00
Eloy Lafuente (stronk7) e46a9874a5 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-24 11:26:56 +01:00
Eloy Lafuente (stronk7) 7899cd4f6c 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-24 11:26:56 +01:00
Andrew Nicols 6a0cdf26ee MDL-67353 course: Fix more broken unit tests 2020-01-24 11:26:56 +01:00
Andrew Nicols 1d44ac9ec6 MDL-67353 course: Fix broken unit test 2020-01-24 11:26:56 +01:00
David Mudrák 933db17d1e 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:40:30 +01:00
David Mudrák 72c33dc8b1 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:40:30 +01:00
David Mudrák 8008cb3885 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:40:30 +01:00
David Mudrák 25d7262707 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:40:29 +01:00
Tim Schroeder 1ccc7e6600 MDL-57755 message: fix notificaiton read status when messaging disabled 2020-01-24 08:59:12 +01:00
Mikhail Golenkov 8dff481193 MDL-67746 Tasks: Cleanup task logs in chunks. 2020-01-24 13:53:34 +11:00
Adrian Greeve 4e41ace0be weekly release 3.9dev 2020-01-24 10:16:48 +08:00
Adrian Greeve fd7764deb8 NOBUG: Fixed file access permissions 2020-01-24 10:16:48 +08:00
Adrian Greeve 7b55fab97a Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-01-24 10:16:39 +08:00
Paul Holden b486073a9a MDL-56389 message_popup: less greedy marking of notifications as read.
Only mark those notifications that were returned in the last query as
read, based on the time they were requested.
2020-01-23 22:16:35 +00:00
Paul Holden df2544ee7b MDL-56389 message: allow marking notifications as read up to given time. 2020-01-23 22:16:30 +00:00
Eric Merrill 2d2189ae1f MDL-67690 block_myoverview: Update starred to favourites to fix prefs
Core libs use favourites, so need to use that consistently for user
preferences to be remembered properly.
2020-01-23 14:09:48 -05:00
Eloy Lafuente (stronk7) 84ba4b8feb Merge branch 'MDL-51225-master' of git://github.com/junpataleta/moodle 2020-01-23 11:13:33 +01:00
Jun Pataleta dfa6dcd80c MDL-51225 mod_forum: Revert @javascript tag removal
Put back the removed  @javascript tag to prevent random goutte
fails.
2020-01-23 15:26:56 +08:00
Jun Pataleta a762f048b8 Merge branch 'MDL-67118' of https://github.com/stronk7/moodle 2020-01-23 15:12:58 +08:00
Jun Pataleta 21b0f581e1 Merge branch 'MDL-67115' of https://github.com/stronk7/moodle 2020-01-23 15:12:56 +08:00
Adrian Greeve c3c0d06651 Merge branch 'MDL-67703-master' of git://github.com/lameze/moodle 2020-01-23 15:11:02 +08:00
Adrian Greeve e2c5315b5c Merge branch 'MDL-65775-master' of git://github.com/ferranrecio/moodle 2020-01-23 15:11:02 +08:00
Jun Pataleta 32113d7a9b Merge branch 'MDL-65952' of https://github.com/fabiendallet/moodle 2020-01-23 15:11:02 +08:00
Shamim Rezaie 206a3bfc9d MDL-67730 lib: Fix to make the library php74 compliant. 2020-01-23 15:04:11 +11:00
Eloy Lafuente (stronk7) cb701f77b4 Merge branch 'MDL-67296-master' of git://github.com/vmdef/moodle 2020-01-22 23:46:06 +01:00
Víctor Déniz Falcón e942844d76 MDL-67296 core_h5p: tests modified to use exttests 2020-01-22 20:40:12 +00:00
Jun Pataleta 1e38b94c8e Merge branch 'MDL-66897-master-1' of git://github.com/mihailges/moodle 2020-01-22 23:17:14 +08:00
Víctor Déniz Falcón d8fe1eddf9 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 14:48:16 +00:00
Brendan Heywood b2eec32733 MDL-38511 admin: Allow plugins to define custom bulk actions 2020-01-23 00:29:54 +11:00
Adrian Greeve dbeca9f5ca Merge branch 'MDL-67424-master' of git://github.com/rezaies/moodle 2020-01-22 13:56:33 +08:00
Mihail Geshoski 9f9a3ddebe MDL-66897 mod_assign: Properly display error messages in quick grading 2020-01-22 13:37:07 +08:00
Adrian Greeve f40115043c Merge branch 'MDL-67438' of https://github.com/stronk7/moodle 2020-01-22 13:29:01 +08:00
Adrian Greeve 595b52fda4 Merge branch 'MDL-67456' of https://github.com/stronk7/moodle 2020-01-22 13:12:27 +08:00
Adrian Greeve 66a8939518 Merge branch 'MDL-67653' of https://github.com/timhunt/moodle 2020-01-22 11:02:35 +08:00
Adrian Greeve e33b86507d Merge branch 'MDL-67660-master-v2' of https://github.com/TobiGa/moodle 2020-01-22 10:41:03 +08:00
Jun Pataleta 48298a9b3a Merge branch 'MDL-67684-master' of git://github.com/andrewnicols/moodle 2020-01-22 10:38:13 +08:00
Shamim Rezaie dba1d09e33 MDL-67730 lib: Upgrade ADODB to version 5.20.16 2020-01-22 13:34:20 +11:00
Adrian Greeve 67925e5b88 Merge branch 'MDL-67680-master' of git://github.com/marinaglancy/moodle 2020-01-22 10:28:23 +08:00
Colin Campbell eeca35e4ad MDL-52189 file: skip deleting temp files that appear during cleanup 2020-01-22 12:10:00 +10:00
Adrian Greeve 883687a9fd Merge branch 'MDL-67656-master' of git://github.com/andrewnicols/moodle 2020-01-22 09:44:17 +08:00
Eloy Lafuente (stronk7) 7d574d8af5 Merge branch 'MDL-66858' of https://github.com/stronk7/moodle 2020-01-22 01:57:18 +01:00
Michael Milette a75fe2f1b5 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:04:23 +01:00
Eloy Lafuente (stronk7) 703f2b625b Merge branch 'MDL-51225-master' of git://github.com/junpataleta/moodle 2020-01-21 23:33:19 +01:00
Adrian Greeve 790735f3e4 Merge branch 'MDL-66237-master' of git://github.com/mickhawkins/moodle 2020-01-21 11:08:27 +08:00
Jun Pataleta 13c5806a2f Merge branch 'MDL-66108' of https://github.com/paulholden/moodle 2020-01-21 09:51:24 +08:00
Eloy Lafuente (stronk7) 1c610609cc Merge branch 'MDL-66024' of https://github.com/paulholden/moodle 2020-01-20 22:47:17 +01:00
Eloy Lafuente (stronk7) a445417935 Merge branch 'MDL-66220-master' of git://github.com/junpataleta/moodle 2020-01-20 22:33:45 +01:00
Eloy Lafuente (stronk7) a05b402c12 Merge branch 'MDL-66712-master-selfautounenrol' of git://github.com/mudrd8mz/moodle 2020-01-20 22:27:20 +01:00
Eloy Lafuente (stronk7) f81d6fa319 Merge branch 'MDL-65884' of https://github.com/paulholden/moodle 2020-01-20 20:13:29 +01:00
David Mudrák 8c1d645351 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:57 +01:00
Tim Hunt 1d67458783 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 17:15:55 +01:00
Eloy Lafuente (stronk7) 70bc6d5e0c Merge branch 'MDL-67724-master' of git://github.com/junpataleta/moodle 2020-01-20 10:53:18 +01:00
Jun Pataleta 34cdacbfff Merge branch 'MDL-66883-master' of git://github.com/bmbrands/moodle 2020-01-20 16:36:40 +08:00
Sara Arjona a8638365af Merge branch 'MDL-67245' of https://github.com/paulholden/moodle 2020-01-20 08:18:49 +01:00
Simey Lameze c7027c037b MDL-67312 core_user: clean subs events on user deletion 2020-01-20 08:09:16 +01:00
Simey Lameze f35e360a3b MDL-67312 calendar: upgrade step to delete orphaned events 2020-01-20 08:08:56 +01:00
Simey Lameze 3364e18b46 MDL-67312 core: change db upgrade step to use get_fieldset_sql 2020-01-20 08:07:27 +01:00
Adrian Greeve 5a775f5703 Merge branch 'MDL-66761-master' of git://github.com/mickhawkins/moodle 2020-01-20 14:40:19 +08:00
Adrian Greeve 5608de8bf2 Merge branch 'MDL-67583-master' of https://github.com/KietChan/moodle 2020-01-20 13:34:31 +08:00
Adrian Greeve c282319a35 Merge branch 'MDL-59594-SIGINT' of https://github.com/brendanheywood/moodle 2020-01-20 10:39:20 +08:00
Adrian Greeve d29c986d9d Merge branch 'MDL-62815_mod_lti' of git://github.com/davosmith/moodle 2020-01-20 09:53:27 +08:00
Simey Lameze 858f41a113 MDL-67703 calendar: change manage subscription form to hideIf 2020-01-20 07:48:05 +08:00
Eloy Lafuente (stronk7) 881545513e 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:05:41 +01:00
Eloy Lafuente (stronk7) 87861d94e3 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:47:28 +01:00
Eloy Lafuente (stronk7) 9cdbacf387 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:47:28 +01:00
Eloy Lafuente (stronk7) 05f6cb9262 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:47:20 +01:00
Eloy Lafuente (stronk7) ee439d017e 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:47:07 +01:00
hanna 078705538c MDL-67456 admin: Update Maximum number of backups kept 2020-01-18 19:35:34 +01:00
Adrian Perez cec13638b6 MDL-67626 assign: fix view full/view summary control in IE 2020-01-18 14:15:24 +01:00
AMOS bot 74c6bc1a9b Automatically generated installer lang files 2020-01-18 00:10:41 +00:00
fdallet f6cd1cc153 MDL-65952 mod_scorm: Fix unwanted changes to require status 2020-01-17 17:19:55 +01:00
Paul Holden 47ff771e80 MDL-66108 course: fix false positives when bulk moving categories. 2020-01-17 16:19:07 +00:00
Pau Ferrer Ocaña d60b6af9b9 MDL-67727 behat: Reset ionic app properly 2020-01-17 15:30:23 +01:00
Paul Holden 7eeea538d2 MDL-67245 group: Behat updates to account for member identity fields. 2020-01-17 12:42:20 +00:00
Paul Holden 6e8ed1a8fb MDL-67245 group: observe viewfullnames capability. 2020-01-17 12:42:17 +00:00
Paul Holden 21253ed622 MDL-67245 group: display user identity fields for group members. 2020-01-17 12:41:10 +00:00
Eloy Lafuente (stronk7) a5e3c4e5f3 MDL-67438 wiki: Formating changes (file doc block + whitespace fixes)
Also:
- change 2 variable/property names, both internal.
- format empty function.

Towards getting it fully phpcs compliant. Note this does not
fix the missing (in all methods) phpdoc blocks.
2020-01-17 12:34:30 +01:00
Jun Pataleta 1ed7527b4c 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:49:58 +08:00
Tobias Garske 951b7d8fc5 MDL-67660 core_message: Messages search change input focus 2020-01-17 09:36:23 +01:00
Sara Arjona 43b995c490 Merge branch 'MDL-67372-master' of git://github.com/rezaies/moodle 2020-01-17 09:30:11 +01:00
Michael Hawkins 66fa0c91ff MDL-67722 mod_forum: Reduce wait time on time limit expires behat test 2020-01-17 15:44:15 +08:00
Jun Pataleta 7cce925f9b 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:44:26 +08:00
Jun Pataleta e68e49da01 MDL-51225 mod_forum: Create behat tests for forum recent activity 2020-01-17 14:44:22 +08:00
Michael Hawkins 5588922265 MDL-66761 forumreport_summary: Added groups filter behat testing 2020-01-17 10:34:07 +08:00
Michael Hawkins a967e56d2e MDL-66761 mod_forum: Behat support group ID in bulk discussion adding 2020-01-17 10:34:06 +08:00
Jun Pataleta 61a90c4510 MDL-51225 mod_forum: New behat step for creating question discussion 2020-01-17 10:25:22 +08:00
AMOS bot 68526623c5 Automatically generated installer lang files 2020-01-17 00:12:11 +00:00
Eloy Lafuente (stronk7) 011d55dd62 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:14 +01:00
Eloy Lafuente (stronk7) ba62f54ef2 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:14 +01:00
Eloy Lafuente (stronk7) 49d1ce3ac2 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:14 +01:00
Eloy Lafuente (stronk7) 988f9bf5b5 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:14 +01:00
Sara Arjona fd126006b0 weekly release 3.9dev 2020-01-16 17:19:10 +01:00
Sara Arjona 3a95e15de1 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-01-16 17:19:07 +01:00
David Mudrák 0845825659 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:35:01 +01:00
Jun Pataleta 3dfc8be974 MDL-66220 mod_forum: Prevent from replying to a post the user can't see 2020-01-16 14:32:20 +08:00
Jun Pataleta 49801df749 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 14:32:20 +08:00
Jun Pataleta bf7a6ff4d7 MDL-66220 mod_forum: Additional unit test for can_reply_to_post 2020-01-16 14:32:20 +08:00
Andrew Nicols 4aa4d44a41 Merge branch 'mdl-59562' of https://github.com/Peterburnett/moodle 2020-01-16 12:10:31 +08:00
Andrew Nicols 76810eb2c0 Merge branch 'wip-MDL-66918-master' of https://github.com/Beedell/moodle 2020-01-16 11:42:16 +08:00
Shamim Rezaie 28bc46092e MDL-67372 libraries: Upgrade HTML Purifier to version 4.12.0 2020-01-16 14:21:40 +11:00
Peter Burnett 72aac06304 MDL-59562 core: updated type hint of new function 2020-01-16 13:05:30 +10:00
Andrew Nicols 836060be8b Merge branch 'MDL-67384-master' of git://github.com/rezaies/moodle 2020-01-16 10:24:40 +08:00
Eloy Lafuente (stronk7) 1fe94722ae Merge branch 'MDL-67631' of git://github.com/timhunt/moodle 2020-01-16 00:29:09 +01:00
Eloy Lafuente (stronk7) caa722a04b Merge branch 'MDL-67625-master' of git://github.com/lucaboesch/moodle 2020-01-16 00:26:13 +01:00
Eloy Lafuente (stronk7) 2b12a3668f Merge branch 'MDL-67040_master' of git://github.com/dmonllao/moodle 2020-01-16 00:06:30 +01:00
Sara Arjona 6e2c4af47d Merge branch 'MDL-67379-master' of git://github.com/rezaies/moodle 2020-01-15 22:12:15 +01:00
Víctor Déniz Falcón 8f9bf12206 Merge branch 'MDL-67377-master' of git://github.com/ferranrecio/moodle 2020-01-15 20:51:41 +00:00
Eloy Lafuente (stronk7) 1586b3adf7 Merge branch 'MDL-67622_master' of git://github.com/dmonllao/moodle 2020-01-15 18:55:45 +01:00
Shamim Rezaie ff25eb0fb0 MDL-67424 mod_forum: error on complete report when no rating or grade 2020-01-16 03:16:58 +11:00
Shamim Rezaie 56d5a50483 MDL-67424 report_outline: behat user report with a no-grade forum 2020-01-16 03:15:42 +11:00
Shamim Rezaie af2c779418 MDL-67379 libraries: Upgrade scssphp to 1.0.6 2020-01-16 00:24:09 +11:00
Sara Arjona e278bd6f90 Merge branch 'MDL-67617-master' of git://github.com/lucaboesch/moodle 2020-01-15 12:43:00 +01:00
Sara Arjona daa7107bfb Merge branch 'MDL-67638_master' of https://github.com/nguyenphuctien/moodle 2020-01-15 12:19:34 +01:00
Andrew Nicols 2bdad64e48 Merge branch 'MDL-67486-swap-cron-lock' of https://github.com/brendanheywood/moodle 2020-01-15 13:53:22 +08:00
Andrew Nicols 30afac71d3 Merge branch 'mdl-59562' of https://github.com/Peterburnett/moodle 2020-01-15 13:51:04 +08:00
Peter Burnett 4fac690ace MDL-59562 core: changed branch behaviour during initial install. 2020-01-15 15:46:46 +10:00
Andrew Nicols 20a7746b1e Merge branch 'mdl-59562' of https://github.com/Peterburnett/moodle 2020-01-15 12:40:19 +08:00
[Peter Burnett] 147a895ad0 MDL-59562 upgrade: Plugins can declare supported moodle versions
* Plugins can now explicitly declare supported and incompatible Moodle
  versions in version.php
  - $plugin->supported[37,39];
    supported takes an array of ascending numbers, that correspond to a
    range of branch numbers of supported versions, inclusive. Moodle
    versions that are outside of this range will produce a message
    notifying at install time, but will allow for installation.

  - $plugin->incompatible = 36;
    incompatible takes a single int corresponding to the first incompatible
    branch. Any Moodle versions including and below this will be prevented
    from installing the plugin, and a message will be given when
    attempting installation.
2020-01-15 14:38:27 +10:00
Mark Johnson 96e440493b MDL-67674 Cache: Lock rebuilding of the course category tree cache 2020-01-15 00:00:54 +01:00
Rossco Hellmans 383b0f95ab MDL-64310 backup: allow session to be released during backup/restore
Amended to fix a wrong call to backup_controller() constructor,
originally not passing USER->id
2020-01-14 23:54:42 +01:00
Sara Arjona 8d529d0a2d Merge branch 'MDL-66213-master-fixcap' of github.com:sarjona/moodle 2020-01-14 19:50:58 +01:00
Eloy Lafuente (stronk7) 52d16feebe MDL-66253 update: bump version (missed that on the review) 2020-01-14 19:46:17 +01:00
Eloy Lafuente (stronk7) a756630e44 Merge branch 'MDL-66253' of https://github.com/NeillM/moodle 2020-01-14 19:44:27 +01:00
Sara Arjona 1962f743dc MDL-66213 roles: review new site:viewanonymousevents capability
Instead of PROHIBIT this capability for teachers, the
RISK_PERSONAL has been added.
2020-01-14 16:42:31 +01:00
Andrew Nicols 16d4515411 MDL-66213 report_loglive: Do not look up course 0 2020-01-14 13:20:02 +01:00
Sara Arjona f6fe70d075 Merge branch 'MDL-65573-master-2' of git://github.com/peterRd/moodle 2020-01-14 12:20:00 +01:00
Neill Magill 2fc2dfbb37 MDL-66253 calendar: New indexes to reduce full table scans
The eventtype index will stop full table scans when the Event API
retrieves events for a group or category and there are a large number
of groups or categories so it cannot use the groupid or categoryid
indexes efficiently.

The modulename-instance index will improve the performance of queries
used by activity backup, deletion and visibility changes where all
the events for an individual activity need to be found.
2020-01-14 08:47:32 +00:00
Andrew Nicols 6813b79f81 Merge branch 'MDL-64075' of https://github.com/OdyX/moodle 2020-01-14 14:15:46 +08:00
Andrew Nicols 47d18a7303 Merge branch 'MDL-66721-master' of git://github.com/bmbrands/moodle 2020-01-14 14:06:57 +08:00
Andrew Nicols 9c71a497c3 MDL-67684 core: Add missing li tag 2020-01-14 08:46:43 +08:00
Andrew Nicols ea990a38eb Merge branch 'MDL-35971-master' of git://github.com/junpataleta/moodle 2020-01-14 08:23:56 +08:00
AMOS bot 5a6dead4f9 Automatically generated installer lang files 2020-01-14 00:10:17 +00:00
Peter 18cd2efd44 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:34:18 +08:00
Eloy Lafuente (stronk7) f2e7a54f2a Merge branch 'MDL-65649' of https://github.com/paulholden/moodle 2020-01-13 18:56:38 +01:00
Eloy Lafuente (stronk7) 41fed86e18 Merge branch 'MDL-65987-master' of git://github.com/andrewnicols/moodle 2020-01-13 18:28:35 +01:00
Eloy Lafuente (stronk7) c8ba91cb12 Merge branch 'MDL-66833-master' of git://github.com/andrewnicols/moodle 2020-01-13 18:18:56 +01:00
Eloy Lafuente (stronk7) da700974d8 Merge branch 'MDL-65812-editable-timeout' of https://github.com/brendanheywood/moodle 2020-01-13 17:09:14 +01:00
Marina Glancy a79da4f1bb MDL-67680 core: Catch PHP exceptions in the after_config callback 2020-01-13 16:43:59 +01:00
Sara Arjona b758ba96e5 Merge branch 'MDL-59817-master' of git://github.com/andrewnicols/moodle 2020-01-13 14:26:41 +01:00
Kiet.Chan ed561c801e MDL-67583 themes: Popover placement should react to scroll event 2020-01-13 17:30:43 +07:00
Sara Arjona e3f29b01c0 Merge branch 'patch_view_anon_event_MDL-66213' of git://github.com/Dave-B/moodle 2020-01-13 10:10:10 +01:00
Bas Brands e097ddcd4f MDL-67472 theme_boost: configurable sass variable for drawer bgcolour 2020-01-13 09:12:47 +01:00
Andrew Nicols 48dffcb9e1 Merge branch 'MDL-67382-master' of git://github.com/vmdef/moodle 2020-01-13 12:59:28 +08:00
Tien Nguyen Phuc bc6efcb437 MDL-67638 Course: update course timemodified on bulk category move 2020-01-13 10:38:12 +07:00
Andrew Nicols 628604e69a Merge branch 'MDL-67204-master' of https://github.com/mwehr/moodle 2020-01-13 08:37:26 +08:00
Brendan Heywood b15c53f4fa MDL-59594 cron: Allow graceful exit of cron and adhoc task cli's 2020-01-12 01:24:03 +11:00
Brendan Heywood 176b5202e0 MDL-59594 cli: Introduce cli helpers for graceful exits
\core\local\cli\shutdown::script_supports_graceful_exit();

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

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

    Use this to check whether you should exit, often inside a long running loop.
2020-01-12 01:20:04 +11:00
Brendan Heywood 29e3a223f5 MDL-59594 core: Allow custom signal handlers 2020-01-12 01:20:04 +11:00
Brendan Heywood b0544ce211 MDL-67486 cron: Improve throughput by holding cron lock for less time 2020-01-12 01:02:57 +11:00
Brendan Heywood 859ed92f9d MDL-65812 session: Increase default timeout and allow larger periods 2020-01-11 23:17:35 +11:00
Tim Hunt 76a49e4a1e MDL-67653 questions: prevent the flag flickering as the page loads 2020-01-10 14:27:42 +00:00
David Balch 9cce07111e MDL-66213 report_loglive: Show anonymous events when capability allows. 2020-01-10 13:48:59 +00:00
David Balch 51c4efa29f MDL-66213 report_log: Show anonymous events when capability allows. 2020-01-10 13:48:59 +00:00
David Balch 50cc80fd3b MDL-66213 roles: Add capability for viewing anonymous events. 2020-01-10 13:48:51 +00:00
Neill Magill 28c30ffece MDL-66253 calendar: Allow event retrival queries to use indexes
Before this change in most cases the queries generated by the API
would not be able to use an index as the subquery would use
conditions that coulde not be satisfied by a signle index.

By changing it to use UNIONs the database will be able to use an
appropriate index for each query in most cases.
2020-01-10 08:27:10 +00:00
Andrew Nicols 43aa3cbe44 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 9b1e5805d9 MDL-67656 behat: Removed nested spin 2020-01-10 13:34:17 +08:00
Andrew Nicols c7807a10b4 MDL-67656 behat: Fix usleep call in spin 2020-01-10 13:34:12 +08:00
AMOS bot a4da8ad02a Automatically generated installer lang files 2020-01-10 00:12:04 +00:00
Ferran Recio 18f3df06dc MDL-67377 lib: Moodle changes to mustache upgrade 2020-01-09 17:32:56 +01:00
Ferran Recio d009801075 MDL-67377 lib: Update mustache to 2.13.0 2020-01-09 17:32:56 +01:00
Luca Bösch d4bca909c2 MDL-67625 quiz: only section titles should be large when editing. 2020-01-09 17:23:20 +01:00
Mario Wehr a3a1b61b03 MDL-67204 assign task: Use lastruntime from task_scheduled 2020-01-09 17:09:22 +01:00
John Beedell 2bb9afeaf7 MDL-66918 behat: Behat app step failing 2020-01-09 15:54:16 +00:00
Luca Bösch 8f2a32ed95 MDL-67617 gradereport_singleview: Style the form element with bs classes 2020-01-09 16:51:18 +01:00
Sara Arjona 77d1c41502 weekly release 3.9dev 2020-01-09 15:42:44 +01:00
Jun Pataleta 16f2eaec8a Merge branch 'MDL-67544-master' of git://github.com/andrewnicols/moodle 2020-01-09 15:22:27 +08:00
Andrew Nicols 3b1c8dfd67 MDL-67544f= mod_forum: Correct "for" attribute on private checkbox 2020-01-09 14:55:52 +08:00
Andrew Nicols 350edf7567 MDL-67544 mod_forum: Ensure post actions menu id is unique 2020-01-09 14:08:12 +08:00
Andrew Nicols 217a9b1ca0 Merge branch 'master_MDL-67485' of https://github.com/golenkovm/moodle 2020-01-09 12:39:28 +08:00
Mikhail Golenkov 6b2e15f6c5 MDL-67485 task: Release the task runner lock before throwing exception. 2020-01-09 14:29:58 +11:00
Andrew Nicols 452f568dca Merge branch 'MDL-67596-cron-ramp-up' of https://github.com/brendanheywood/moodle 2020-01-09 08:11:10 +08:00
Eloy Lafuente (stronk7) fd25850a8d Merge branch 'MDL-67544-master' of git://github.com/andrewnicols/moodle 2020-01-08 16:35:39 +01:00
Eloy Lafuente (stronk7) 1b987615d9 Merge branch 'MDL-67533-master' of git://github.com/junpataleta/moodle 2020-01-08 16:31:25 +01:00
Sara Arjona da5f054d6e Merge branch 'MDL-66752-master-2' of git://github.com/junpataleta/moodle 2020-01-08 14:40:01 +01:00
Jake Dallimore 4e80934653 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:09 +01:00
Davo Smith b791ed15e2 MDL-62815 mod_lti: fix error when clicking 'Select content' option 2020-01-08 09:46:41 +00:00
Davo Smith dcb0f01f58 MDL-62815 mod_lti: fix javascript error + bump version number 2020-01-08 09:46:38 +00:00
Davo Smith 3a69044fb3 MDL-62815 mod_lti: fix logic around content button and launch container 2020-01-08 09:45:06 +00:00
Jun Pataleta b93c99aa54 MDL-62815 mod_lti: Conditionally execute JS related to tool type 2020-01-08 09:45:05 +00:00
Davo Smith 477e87170b MDL-62815 mod_lti: adjust new capabilities
MDL-62815 mod_lti: improve lang strings + use clonepermissionsfrom

MDL-62815 mod_lti: prevent changing from manual instance without cap
2020-01-08 09:45:05 +00:00
yair.spielmann e3b82acdc1 MDL-62815 mod_lti: Capabilities for adding default and preconfigured 2020-01-08 09:45:05 +00:00
Jun Pataleta 85770120f6 MDL-67533 mod_forum: Remove duplicate Re in experimental view subject 2020-01-08 16:29:20 +08:00
Jun Pataleta 010a253a23 MDL-35971 mod_forum: Add proper discussion list table description 2020-01-08 15:37:42 +08:00
Sara Arjona f914f99a76 Merge branch 'MDL-67417-master' of https://github.com/KietChan/moodle 2020-01-08 08:26:37 +01:00
Andrew Nicols d0c026b563 MDL-67544 mod_forum: Ensure that private reply checkbox has unique id 2020-01-08 15:26:03 +08:00
Sara Arjona 9fea68644e Merge branch 'MDL-67510-master' of git://github.com/junpataleta/moodle 2020-01-08 08:10:52 +01:00
Brendan Heywood 286cc88c8c MDL-67596 cron: Allow runners to ramp up instantly 2020-01-08 15:03:56 +11:00
Andrew Nicols 1bb7d46966 Merge branch 'MDL-67378-master' of git://github.com/rezaies/moodle 2020-01-08 11:11:45 +08:00
Brendan Heywood 2d98ebb9de MDL-67635 file_storage: Speedup file storage cleanup cron 2020-01-08 14:00:48 +11:00
Andrew Nicols bc47535677 Merge branch 'MDL-67376-master' of git://github.com/rezaies/moodle 2020-01-08 10:40:25 +08:00
Andrew Nicols 379e26bfba Merge branch 'MDL-63734-master_hidepassword' of https://github.com/ledship/moodle 2020-01-08 09:39:06 +08:00
Andrew Nicols 5e34719d7e Merge branch 'MDL-65948-master' of git://github.com/junpataleta/moodle 2020-01-08 08:50:03 +08:00
Andrew Nicols 52aa532e64 Merge branch 'MDL-64764' of git://github.com/paulholden/moodle 2020-01-08 08:30:02 +08:00
Eloy Lafuente (stronk7) f28fab4e59 Merge branch 'MDL-67449-master' of git://github.com/andrewnicols/moodle 2020-01-07 23:43:43 +01:00
Eloy Lafuente (stronk7) 2aad3ce228 Merge branch 'MDL-67469-master' of git://github.com/junpataleta/moodle 2020-01-07 22:59:17 +01:00
Tim Hunt 74f3415483 MDL-67631 quiz editing: add random dialogue should offer all numbers 2020-01-07 13:59:39 +00:00
Marina Glancy 95dfd8e0de 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:23 +00:00
Didier 'OdyX' Raboud fba44e2fed MDL-64075 antivirus_clamav: refactor scan_file for tcpsocket
- Deprecate \antivirus_clamav\scanner::scan_file_execute_unixsocket()
2020-01-07 08:41:37 +01:00
Didier 'OdyX' Raboud 90c6f0cfea MDL-64075 antivirus_clamav: refactor scan_data for tcpsocket
- Fix whitespace accross scanner_test for codechecker
- Deprecate \antivirus_clamav\scanner::scan_data_execute_unixsocket()
2020-01-07 08:41:37 +01:00
Didier 'OdyX' Raboud 22b617569c MDL-64075 antivirus_clamav: separate socket destination in function 2020-01-07 08:41:36 +01:00
Didier 'OdyX' Raboud a0d871f3f3 MDL-64075 antivirus_clamav: Add TCP socket admin settings 2020-01-07 08:41:35 +01:00
Didier 'OdyX' Raboud 0acf1bae8b MDL-64075 antivirus_clamav: fix array_search usage
If 'unix' is the first element of the stream_get_transports() result
array, array_search() will return `0` as index result which, when
negated, will result as true.
2020-01-07 08:41:34 +01:00
Andrew Nicols 7bb70ad19b Merge branch 'MDL-65849-master' of git://github.com/rezaies/moodle 2020-01-07 13:17:08 +08:00
Andrew Nicols 032fbdc746 Merge branch 'MDL-66938-master' of https://github.com/grabs/moodle 2020-01-07 12:40:52 +08:00
Andrew Nicols 9d0192e9ce Merge branch 'MDL-58281-file-missing-500' of https://github.com/brendanheywood/moodle 2020-01-07 11:30:30 +08:00
Paul Holden 8725ac5f42 MDL-66237 message_popup: Get redirecturl from notification contexturl 2020-01-07 11:16:13 +08:00
Andrew Nicols e3bc4eb7a9 MDL-67114 mod_wiki: Whitespace fix 2020-01-07 11:04:41 +08:00
Andrew Nicols 1429ca06a4 Merge branch 'MDL-67114' of https://github.com/stronk7/moodle 2020-01-07 09:37:05 +08:00
Andrew Nicols 58618290fe Merge branch 'MDL-66871-master-v2' of git://github.com/lameze/moodle 2020-01-07 08:00:01 +08:00
Bas Brands a3f7695f07 MDL-66721 core_chooser: height correction for chooser modal 2020-01-06 10:07:16 +01:00
Andrew Nicols f04c327222 MDL-67544 form: Ensure that form errors have a unique id 2020-01-06 15:01:08 +08:00
Andrew Nicols 8092e7cfa2 MDL-67544 mod_forum: Add missing label for discussion move 2020-01-06 15:01:08 +08:00
Andrew Nicols 3cefa1b733 MDL-67544 mod_forum: Add missing menuitem roles 2020-01-06 15:01:08 +08:00
Andrew Nicols 10999d33e5 MDL-67544 mod_forum: Correct aria-labelledby node 2020-01-06 15:01:07 +08:00
Andrew Nicols 17133749ab MDL-67544 mod_forum: Correct aria-controls to point to valid node 2020-01-06 15:01:07 +08:00
Andrew Nicols 72622f240e MDL-67544 mod_forum: Add missing aria label for grade search 2020-01-06 15:01:07 +08:00
Andrew Nicols 87eba94faf MDL-67544 core: Ensure unique IDs for YUI dialogues 2020-01-06 15:01:07 +08:00
Andrew Nicols 37856e466e MDL-67544 theme: Ensure that search box is in valid li 2020-01-06 15:01:07 +08:00
Andrew Nicols 0726d7ea1e MDL-67544 mod_forum: Add default role for favourite toggle 2020-01-06 15:01:07 +08:00
Andrew Nicols 92c23c26b2 MDL-67544 mod_forum: Add missing aria label for discussion actions 2020-01-06 15:01:07 +08:00
Andrew Nicols 07662b4f4e MDL-67544 mod_forum: Correct aria-role => aria-live 2020-01-06 15:01:06 +08:00
Andrew Nicols 20d4ec87dd MDL-67544 mod_forum: Correct aria-role => role 2020-01-06 15:01:06 +08:00
David Monllaó 6429236fcf MDL-67040 mlbackend_python: Adapt python ML to small datasets 2020-01-06 13:41:17 +08:00
Andrew Nicols fca2851fce Merge branch 'MDL-67138-customlang-failures' of https://github.com/brendanheywood/moodle 2020-01-06 12:57:02 +08:00
David Monllaó e45b42cb3f MDL-67622 mlbackend_python: Fix f1score calculation 2020-01-06 12:54:43 +08:00
Jun Pataleta 12c1e8b2ff MDL-66752 tool_dataprivacy: Add automatic data request approval feature 2020-01-06 11:40:31 +08:00
Jun Pataleta a6b236326b MDL-67510 tool_dataprivacy: Fix the reply-to name of the privacy officer 2020-01-06 11:36:09 +08:00
Jake Dallimore dc3b14399b Merge branch 'master_MDL-64610' of https://github.com/golenkovm/moodle 2020-01-06 10:50:36 +08:00
Simey Lameze 26b683e798 MDL-66871 calendar: fix deprecated parameter in the phpDoc 2020-01-06 10:36:42 +08:00
Simey Lameze eaf623c5bf MDL-66871 calendar: add unit test coverage for ics importing 2020-01-06 10:36:35 +08:00
Simey Lameze 5b3b975e3f MDL-66871 calendar: fix ics importing logic 2020-01-06 09:49:59 +08:00
Luca Bösch 4870144cb2 MDL-65987 mod_forum: Add string 'Advanced' for the advanced editor.
AMOS BEGIN
    CPY [advanced,moodle],[showadvancededitor,moodle]
   AMOS END
2020-01-06 09:42:12 +08:00
Jake Dallimore d3383e635b Merge branch 'MDL-67336-master' of https://github.com/roland04/moodle 2020-01-06 09:36:36 +08:00
Andrew Nicols d7678ab3ce MDL-67449 grunt: Build ignorefiles from component list 2020-01-06 09:29:11 +08:00
Andrew Nicols 093be5c6e2 MDL-67449 grunt: Refactor CSS generation 2020-01-06 09:29:11 +08:00
Andrew Nicols ba8a53d030 MDL-67449 grunt: Refactor gherkinlint 2020-01-06 09:29:11 +08:00
Andrew Nicols b86930457f MDL-67449 grunt: Refactor YUI commands 2020-01-06 09:29:11 +08:00
Andrew Nicols a84d52363b MDL-67449 grunt: Refactor watch to use component list 2020-01-06 09:29:11 +08:00
Andrew Nicols a8109e759d MDL-67449 grunt: Refactor path calculation for AMD 2020-01-06 09:29:11 +08:00
Andreas Grabs 5385f5a8af MDL-66938 mod_feedback: Export includes unwanted html in field names 2020-01-05 19:33:35 +01:00
Eloy Lafuente (stronk7) 4621917c62 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:15 +01:00
Eloy Lafuente (stronk7) a6e544e825 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:15 +01:00
Eloy Lafuente (stronk7) 309912cfca 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:15 +01:00
Jake Dallimore c55402486b weekly release 3.9dev 2020-01-03 11:24:56 +08:00
Jake Dallimore 931fa40a66 NOBUG: Fixed file access permissions 2020-01-03 11:24:56 +08:00
Jake Dallimore e5876cc1f4 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-01-03 11:24:53 +08:00
Andrew Nicols 27b26d7035 MDL-66833 core: Make print_object play nice with WS 2020-01-03 08:23:12 +08:00
AMOS bot 9a918f64ae Automatically generated installer lang files 2020-01-03 00:12:04 +00:00
Adrian Greeve 741a3431c1 Merge branch 'MDL-67599-master' of https://github.com/snake/moodle 2020-01-02 15:15:00 +08:00
Jake Dallimore 00444b07c7 MDL-67599 behat: fix behat tests assuming Jan 2020 is a future date 2020-01-02 13:46:47 +08:00
Mikhail Golenkov 1d0b74b2a3 MDL-64610 task: Add support for per-task concurrency limits. 2020-01-02 16:05:47 +11:00
Jun Pataleta 88fbee25d9 Merge branch 'MDL-65835-master' of git://github.com/abgreeve/moodle 2020-01-02 11:52:10 +08:00
Adrian Greeve d0d65b498c MDL-65835 plagiarism: Initial deprecation of old functions.
This is the initial deprecation of:
* plagiarism_save_form_elements
* plagiarism_get_form_elements_module
* plagiarism_plugin::get_form_elements_module
* plagiarism_plugin::save_form_elements
2020-01-02 11:38:49 +08:00
Jake Dallimore bc1a06618c Merge branch 'MDL-67598' of https://github.com/stronk7/moodle 2020-01-02 10:19:07 +08:00
Brendan Heywood a8dd576608 MDL-67138 tool_customlang: Expose errors writing lang files 2020-01-02 12:17:09 +11:00
AMOS bot 5884dff4f9 Automatically generated installer lang files 2020-01-02 00:10:15 +00:00
Eloy Lafuente (stronk7) 5afac432f5 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:06:40 +01:00
Eloy Lafuente (stronk7) f1d12af73a Merge branch 'MDL-67403-x-redirect-by' of https://github.com/brendanheywood/moodle 2019-12-31 12:46:20 +01:00
Eloy Lafuente (stronk7) b3ee90ab4b Merge branch 'MDL-67385-master' of git://github.com/rezaies/moodle 2019-12-31 12:44:58 +01:00
Eloy Lafuente (stronk7) cba5cccebd Merge branch 'MDL-67593-master' of https://github.com/snake/moodle 2019-12-31 10:45:11 +01:00
Jake Dallimore dbf29da73f 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:34:06 +08:00
Jun Pataleta 53384db822 Merge branch 'MDL-63996-master' of git://github.com/andrewnicols/moodle 2019-12-31 15:19:24 +08:00
Jake Dallimore b145fe216c 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:01:51 +08:00
Jun Pataleta 629f6d7e70 Merge branch 'MDL-67487-master' of git://github.com/lucaboesch/moodle 2019-12-31 11:56:07 +08:00
Jun Pataleta a8ef370daf Merge branch 'MDL-67470-master' of git://github.com/junpataleta/moodle 2019-12-31 11:29:58 +08:00
Bas Brands 6dadb71bba 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:55:50 +08:00
Brendan Heywood 1fef1de592 MDL-58281 files: Correctly handle missing files in readfile_accel 2019-12-30 17:18:49 +11:00
Jun Pataleta e4e9e56882 MDL-65948 core_grade: Use category names as master checkbox labels
Use the name of the grade categories as label to distinguish master
checkboxes from regular ones.
2019-12-30 14:13:35 +08:00
Jun Pataleta 2f848616c7 MDL-65948 core_grade: Use new core/checkbox-toggleall 2019-12-30 14:13:35 +08:00
Adrian Greeve a67ca1e0de Merge branch 'MDL-67233-master' of git://github.com/peterRd/moodle 2019-12-30 12:50:52 +08:00
Jun Pataleta 33a9d82e81 Merge branch 'MDL-67491-master' of git://github.com/junpataleta/moodle 2019-12-30 12:41:49 +08:00
Adrian Greeve 02b0844de9 Merge branch 'MDL-67416' of https://github.com/stronk7/moodle 2019-12-30 10:48:35 +08:00
Jake Dallimore 92b9f472bc Merge branch 'MDL-67380-master' of git://github.com/aanabit/moodle 2019-12-30 10:40:28 +08:00
Jun Pataleta bb54bd1896 Merge branch 'MDL-63650-master' of git://github.com/aanabit/moodle 2019-12-30 10:39:05 +08:00
Jake Dallimore 857fabb618 Merge branch 'master-MDL-67467' of https://github.com/yao9394/moodle 2019-12-30 09:59:20 +08:00
Eloy Lafuente (stronk7) c5fb4dc40f Merge branch 'MDL-67523-master' of git://github.com/marinaglancy/moodle 2019-12-29 23:31:59 +01:00
Eloy Lafuente (stronk7) a0ba8feef6 Merge branch 'MDL-67527-master-enfix' of git://github.com/mudrd8mz/moodle 2019-12-29 23:26:52 +01:00
Adrian Greeve b970666610 Merge branch 'MDL-63107-master' of git://github.com/bmbrands/moodle 2019-12-27 16:32:59 +08:00
Adrian Greeve ae22b2a268 Merge branch 'MDL-65809-master-travisphpbump' of https://github.com/snake/moodle 2019-12-27 15:43:03 +08:00
Jake Dallimore c9c1654166 MDL-65809 core: travis min php version set to 7.2 to match requirements 2019-12-27 15:21:09 +08:00
Adrian Greeve 42d7f7f9e4 Merge branch 'MDL-65809-master' of git://github.com/sarjona/moodle 2019-12-24 14:53:03 +08:00
Jake Dallimore c39da484f2 Merge branch 'MDL-60985-master' of git://github.com/lucaboesch/moodle 2019-12-24 14:44:04 +08:00
Adrian Greeve f00542c485 Merge branch 'MDL-66999-master' of git://github.com/bmbrands/moodle 2019-12-23 14:26:39 +08:00
John Yao 9514c1ac35 MDL-67467 Reports: sortable date format in pregress csv report
date format in csv report should be sortable by date.
2019-12-23 15:39:41 +11:00
Adrian Greeve bd287fa694 Merge branch 'master-MDL-67524' of https://github.com/yao9394/moodle 2019-12-23 10:28:50 +08:00
Jake Dallimore 69eb5980b1 Merge branch 'MDL-67374-master' of git://github.com/rezaies/moodle 2019-12-23 10:12:01 +08:00
Alexander 6ed86eca7a MDL-63734 adminlib: Hide password when defined in config.php
This will hide the password on admin_setting_configpasswordunmask fields when it is already defined in config.php
2019-12-23 14:42:53 +13:00
Adrian Greeve 0c75251509 Merge branch 'MDL-59487' of https://github.com/brendanheywood/moodle 2019-12-23 09:41:04 +08:00
John Yao 978570637d 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:49:51 +11:00
AMOS bot 6d6dea612f Automatically generated installer lang files 2019-12-21 00:10:48 +00:00
Eloy Lafuente (stronk7) 78999d9c41 MDL-67416 composer: bump to moodle-behat-extension 3.39.1
that version already requires php72. The lock file has been
created using that php72 version.
2019-12-20 17:18:51 +01:00
Didier 'OdyX' Raboud b7d80e9450 MDL-67491 core_message: Primary'fy the contact request counts 2019-12-20 15:16:24 +01:00
Luca Bösch 3bd2e330ab MDL-60985 tool_usertours: Hide next on last, prev on first and primary. 2019-12-20 13:53:18 +01:00
Luca Bösch 4631f8b000 MDL-67487 forms: align "Custom" checkbox for course section name. 2019-12-20 13:50:32 +01:00
Sara Arjona a26cfe71d3 MDL-65809 upgrade: clean < 3.5.0 upgrade steps
This just deletes all the upgrade steps previous to 3.5.0. Some
small adjustments, like tweaking globals can also be applied
when needed.

Also includes an upgrade step to prevent upgrading from any
version < 2018051700 (v3.5.0) as anti-cheating measure.

Previous commits have removed/deprecated all the upgradelib functions
not used anymore in codebase. Deletion has been documented in corresponding
upgrade.txt files:

- upgrade_fix_block_instance_configuration()
- upgrade_theme_is_from_family(), upgrade_find_theme_location()
and linkcoursesectionsupgradescriptwasrun setting
- upgrade_block_positions
- upgrade_fix_config_auth_plugin_names()
 and upgrade_fix_config_auth_plugin_defaults()
- format_xxx_upgrade_remove_numsections(), format_xxx_upgrade_hide_extra_sections()
and format_xxx_upgrade_add_empty_sections()
- filter_mathjaxloader_upgrade_cdn_cloudflare()
and filter_mathjaxloader_upgrade_mathjaxconfig_equal()
- get_assignments_with_rescaled_null_grades()

These have been kept because continue being used by restore:

- \core\task\refresh_mod_calendar_events_task
2019-12-20 12:20:43 +01:00
Sara Arjona d2b7f6f556 MDL-65809 upgrade: remove get_assignments_with_rescaled_null_grades
This function was used only by deleted upgrade steps
so it's safe to proceed with straight deletion, considering
it internal. Deletion has been documented in corresponding
upgrade.txt files.
2019-12-20 12:20:43 +01:00
Sara Arjona 08bc1f11db MDL-65809 upgrade: remove filter_mathjaxloader_upgrade_xxx
These functions were used only by deleted upgrade steps
so it's safe to proceed with straight deletion, considering
them internal. Deletion has been documented in corresponding
upgrade.txt files:

    - filter_mathjaxloader_upgrade_cdn_cloudflare()
    - filter_mathjaxloader_upgrade_mathjaxconfig_equal()
2019-12-20 12:20:43 +01:00
Sara Arjona 3f224a1a41 MDL-65809 upgrade: remove format_xxx_upgrade_remove_numsections
These functions were used only by deleted upgrade steps
so it's safe to proceed with straight deletion, considering
them internal. Deletion has been documented in corresponding
upgrade.txt files:

    - format_topics_upgrade_remove_numsections()
    - format_topics_upgrade_hide_extra_sections()
    - format_topics_upgrade_add_empty_sections()
    - format_weeks_upgrade_remove_numsections()
    - format_weeks_upgrade_hide_extra_sections()
    - format_weeks_upgrade_add_empty_sections()
2019-12-20 12:20:43 +01:00
Sara Arjona 089e918033 MDL-65809 upgrade: remove upgrade_fix_config_auth_plugin_names
These functions were used only by deleted upgrade steps
so it's safe to proceed with straight deletion, considering
them internal. Deletion has been documented in corresponding
upgrade.txt files:

- upgrade_fix_config_auth_plugin_names()
- upgrade_fix_config_auth_plugin_defaults()
2019-12-20 12:20:43 +01:00
Sara Arjona 6f46aa2040 MDL-65809 upgrade: remove upgrade_block_positions
This function was used only by deleted upgrade steps
so it's safe to proceed with straight deletion, considering
it internal. Deletion has been documented in corresponding
upgrade.txt files.
2019-12-20 12:20:43 +01:00
Sara Arjona f0d3d50273 MDL-65809 upgrade: remove upgrade_theme_is_from_family
These functions and setting were used only by deleted upgrade steps
so it's safe to proceed with straight deletion, considering
them internal. Deletion has been documented in corresponding
upgrade.txt files:

- upgrade_theme_is_from_family()
- upgrade_find_theme_location()
- linkcoursesectionsupgradescriptwasrun setting
2019-12-20 12:20:43 +01:00
Sara Arjona c230306957 MDL-65809 upgrade: remove upgrade_fix_block_instance_configuration
The upgrade_fix_block_instance_configuration() function was used
only by deleted upgrade steps so it's safe to proceed with straight
deletion, considering it internal. Deletion has been documented in
corresponding upgrade.txt files.
2019-12-20 12:19:03 +01:00
Sara Arjona ad7fcff3b7 MDL-65809 environment: mbstring extension required 2019-12-20 12:19:02 +01:00
Sara Arjona 64f2200a7d MDL-65809 environment: PHP 7.2 required 2019-12-20 12:19:02 +01:00
Sara Arjona 2e151145e8 MDL-65809 environment: postgres requirement up to 9.5 2019-12-20 12:19:02 +01:00
Sara Arjona d83a2d7f55 MDL-65809 environment: mariadb requirement up to 10.2 2019-12-20 12:19:02 +01:00
Sara Arjona 70f279bec9 MDL-65809 environment: 3.5 (LTS) required 2019-12-20 12:19:02 +01:00
Sara Arjona 14557b5a84 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-20 12:19:02 +01:00
Amaia Anabitarte 23033ff48b MDL-63650 core_message: Final deprecation of mark_all_read_for_user 2019-12-20 11:52:45 +01:00
Amaia Anabitarte 650f0f0829 MDL-67380 lib: Upgrade GeoIP2 lib to 2.10.0 2019-12-20 11:42:00 +01:00
Amaia Anabitarte 04485c2404 MDL-67380 lib: Upgrade MixMind DB reader lib to 1.5.1 2019-12-20 11:42:00 +01:00
Amaia Anabitarte e0c03d919a MDL-67380 lib: Update GeoIP2 and MaxMind DB reader versions in Moodle 2019-12-20 11:42:00 +01:00
Eloy Lafuente (stronk7) 7850f76a93 weekly release 3.9dev 2019-12-20 11:01:55 +01:00
Eloy Lafuente (stronk7) 5c6813f151 NOBUG: Fixed SVG browser compatibility 2019-12-20 11:01:54 +01:00
Eloy Lafuente (stronk7) 25fbd365d7 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-12-20 11:01:52 +01:00
Eloy Lafuente (stronk7) c59f22da37 Merge branch 'MDL-67151-master' of git://github.com/rezaies/moodle 2019-12-19 23:01:10 +01:00
Shamim Rezaie 6d1eb00445 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:11:59 +11:00
Bas Brands becd940c6c MDL-66883 theme_boost: behat enable custom switches 2019-12-19 13:03:32 +01:00
Bas Brands dc38af73e6 MDL-66883 theme_boost: use bootstrap native switches 2019-12-19 13:03:24 +01:00
Marina Glancy 4e4e6311a5 MDL-67523 core_admin: do not require admin to view category
Revert changes from MDL-58439 (in this file only)
2019-12-19 10:13:38 +01:00
Jun Pataleta b369b9dae9 Merge branch 'master_MDL-63795_core_setting_defaults' of https://github.com/mattporritt/moodle 2019-12-19 11:17:47 +08:00
Jake Dallimore 24c2106293 Merge branch 'MDL-67483-qos-perf' of https://github.com/brendanheywood/moodle 2019-12-19 09:31:28 +08:00
Matt Porritt 4be93382eb 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:17:11 +11:00
Brendan Heywood c7ce7601a3 MDL-67483 tasks: Improvements to adhoc task queue at very high scale 2019-12-19 10:49:16 +10:00
Eloy Lafuente (stronk7) b4b4c895b2 Merge branch 'MDL-67151-master' of git://github.com/rezaies/moodle 2019-12-18 23:04:40 +01:00
Eloy Lafuente (stronk7) 8fa4764935 Merge branch 'MDL-54554-master' of git://github.com/abgreeve/moodle 2019-12-18 22:44:35 +01:00
Eloy Lafuente (stronk7) 8eb5cee15f Merge branch 'MDL-67244-master' of git://github.com/ferranrecio/moodle 2019-12-18 22:30:28 +01:00
David Mudrák 6aff025cad MDL-67527 lang: Propagate the string fixes to Behat and other places 2019-12-18 21:23:46 +01:00
Helen Foster 824c87f370 MDL-67527 lang: Import fixed English strings (en_fix) 2019-12-18 21:23:46 +01:00
Eloy Lafuente (stronk7) cc8e0d5074 Merge branch 'MDL-64695' of https://github.com/paulholden/moodle 2019-12-18 19:55:52 +01:00
Eloy Lafuente (stronk7) a9e4fa8e95 Merge branch 'master_MDL-66972_Streaming_file_types' of https://github.com/mattporritt/moodle 2019-12-18 19:39:18 +01:00
Eloy Lafuente (stronk7) b2e4577c61 Merge branch 'MDL-67388-master-2' of git://github.com/rezaies/moodle 2019-12-18 18:59:38 +01:00
Shamim Rezaie 11a799bbdf MDL-67388 lib: Upgrade babel polyfill to version 7.7.0 2019-12-19 04:12:07 +11:00
Eloy Lafuente (stronk7) 153fd2688c Merge branch 'MDL-66332-master' of git://github.com/ferranrecio/moodle 2019-12-18 17:53:00 +01:00
Eloy Lafuente (stronk7) 92302a6faa Merge branch 'master_MDL-67433' of https://github.com/golenkovm/moodle 2019-12-18 16:23:43 +01:00
Eloy Lafuente (stronk7) 077fa38a32 Merge branch 'MDL-67381-master' of git://github.com/rezaies/moodle 2019-12-18 16:19:57 +01:00
ferran.recio 178be88e97 MDL-66332 tool_capability: adding acceptance tests 2019-12-18 14:24:38 +01:00
ferran.recio e96bbb53af MDL-66332 too_capability: add show differences option 2019-12-18 14:23:41 +01:00
Brendan Heywood b07fdd1d6c MDL-67403 weblib: Add support for X-Redirect-By header 2019-12-18 15:02:32 +10:00
Andrew Nicols 0bc0fa8795 MDL-63996 core/tags: Pending JS for all tag code 2019-12-18 12:02:40 +08:00
Mikhail Golenkov 4234159ecd MDL-67433 tool_task: Add limits to adhoc CLI runner. 2019-12-18 11:58:43 +11:00
Eloy Lafuente (stronk7) 105de97f35 Merge branch 'MDL-60854-master' of git://github.com/aanabit/moodle 2019-12-18 00:29:02 +01:00
Eloy Lafuente (stronk7) 08f3363bd0 Merge branch 'MDL-60855-master' of git://github.com/aanabit/moodle
Amended a couple of "depecated" typos
2019-12-18 00:25:11 +01:00
Eloy Lafuente (stronk7) a12befdcf7 Merge branch 'MDL-67464-master' of git://github.com/sarjona/moodle 2019-12-17 19:34:39 +01:00
Ferran Recio 69d8c40c5b MDL-65775 atto_html: upgrade codemirror to 5.49.2 2019-12-17 16:24:11 +01:00
Mikel Martín e9049ac8e3 MDL-67336 mod_forum: Fixing forum inline reply filtering before saving 2019-12-17 13:20:14 +01:00
Eloy Lafuente (stronk7) acfba73137 Merge branch 'MDL-65722-no-lock-db' of https://github.com/brendanheywood/moodle 2019-12-17 10:10:15 +01:00
Jake Dallimore d170ca5f8b Merge branch 'MDL-67304_master' of git://github.com/dmonllao/moodle 2019-12-17 13:46:27 +08:00
Jake Dallimore 27ead4552f Merge branch 'master_MDL-67502' of https://github.com/golenkovm/moodle 2019-12-17 13:36:44 +08:00
Jake Dallimore ca78ab6a35 Merge branch 'MDL-65735' of https://github.com/paulholden/moodle 2019-12-17 13:25:02 +08:00
Jake Dallimore 79bd1e7fad Merge branch 'MDL-67165' of git://github.com/Chocolate-lightning/moodle_forum-project 2019-12-17 11:08:56 +08:00
Mathew May 97ba6091ab MDL-67165 core_grade: Add the grader name to webservices 2019-12-17 10:46:02 +08:00
Eloy Lafuente (stronk7) d4a13bb4b2 Merge branch 'MDL-67522-master' of git://github.com/marinaglancy/moodle 2019-12-17 00:22:01 +01:00
Eloy Lafuente (stronk7) 2beb0ddc7e Merge branch 'MDL-67410-master' of https://github.com/felicemcc/moodle 2019-12-16 19:18:03 +01:00
Bas Brands 5d80184dfd 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:26:53 +01:00
Shamim Rezaie c1c74c7562 MDL-67378 libraries: Add Moodle modifications for Mustache 2019-12-16 18:54:06 +11:00
Shamim Rezaie ce05b89997 MDL-67378 libraries: Upgrade mustache.js to 3.1.0 2019-12-16 18:52:14 +11:00
Jake Dallimore 70a19cc9dd Merge branch 'MDL-58827' of https://github.com/paulholden/moodle 2019-12-16 15:32:31 +08:00
Jake Dallimore a7710625c1 Merge branch 'MDL-67327-master' of git://github.com/andrewnicols/moodle 2019-12-16 15:11:23 +08:00
Shamim Rezaie 02c64a4c1b MDL-67385 libraries: Upgrde mongodb to version 1.5.1 2019-12-16 17:42:08 +11:00
Shamim Rezaie 5a28e4ec05 MDL-67385 libraries: Move readme_moodle.txt out of the library directory 2019-12-16 16:58:51 +11:00
Andrew Nicols 9b3343adc2 MDL-63996 behat: Fix multi-tag autocomplete usage 2019-12-16 13:57:00 +08:00
Shamim Rezaie 0a534718df MDL-67374 libraries: Update the upgrade instructions 2019-12-16 16:27:07 +11:00
Shamim Rezaie 0df71b23a2 MDL-67374 libraries: Upgrade SimplePie to version 1.5.3 2019-12-16 16:27:07 +11:00
Jake Dallimore a20b64aaef Merge branch 'MDL-63048-master' of git://github.com/abgreeve/moodle 2019-12-16 10:02:47 +08:00
Zig Tan 1395442474 MDL-54554 files: Improve unoconv error logging & sanity checks 2019-12-16 09:52:51 +08:00
Jake Dallimore 71e5dc3274 Merge branch 'MDL-66503-master' of git://github.com/abgreeve/moodle 2019-12-16 09:11:18 +08:00
AMOS bot 919de0d539 Automatically generated installer lang files 2019-12-14 00:10:46 +00:00
Marina Glancy 092acd53f2 MDL-67522 core_lock: fix mistype in config-dist 2019-12-13 19:34:44 +01:00
Víctor Déniz Falcón 1cfbaab373 MDL-67382 auth_cas: update phpCAS to 1.3.8 2019-12-13 12:34:06 +00:00
Jun Pataleta 41e7fe1d49 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:04:29 +08:00
AMOS bot a84fbcf103 Automatically generated installer lang files 2019-12-13 00:11:00 +00:00
Mikhail Golenkov 97324e082a MDL-67502 backup: Fix moodle_exception path. 2019-12-13 09:40:38 +11:00
Felice Candilio 4a4a73467c MDL-67410 Enrolments: Casting the perpage parameter to INT
On the course's Participants page, when manually enrolling users
the AJAX call might get excesively slow, due to the treatment
of the perpage parameter as a string, which gets concatenated with the
number 1 (perpage: parseInt(perpage) + 1) instead of performing a
numerical addition.

If there are for example 1500+ users on the site, the method
core_enrol_get_potential_users will be executed with a value of 15001
for the perpage parameter, rendering painfully slow.
2019-12-12 22:21:58 +01:00
Paul Holden d05078d023 MDL-65735 report_progress: reset URL start parameter in initials bars. 2019-12-12 18:23:56 +00:00
Paul Holden d7367ecafa MDL-64695 tool_dataprivacy: filter site fullname in outgoing messages. 2019-12-12 18:20:13 +00:00
Paul Holden 07dc0cad34 MDL-64695 privacy: filter site fullname in data export. 2019-12-12 18:20:13 +00:00
Amaia Anabitarte e9ec67dcad MDL-60854 general: Remove strings deprecated in 3.5 2019-12-12 18:13:36 +01:00
Amaia Anabitarte 2ead888f45 MDL-60855 general: Phase 2 in lib/deprecatedlib.php for 3.5 deprecations 2019-12-12 17:46:36 +01:00
Sara Arjona d273944857 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:03:52 +01:00
Eloy Lafuente (stronk7) 6aacd8d6d1 weekly release 3.9dev 2019-12-12 13:26:15 +01:00
Eloy Lafuente (stronk7) c6fc8e441b NOBUG: Fixed SVG browser compatibility 2019-12-12 13:26:12 +01:00
Eloy Lafuente (stronk7) 01b183a7b9 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-12-12 13:26:11 +01:00
Bas Brands 072fcde3ee MDL-66999 theme_boost: @extend phpunit fixes 2019-12-12 11:27:59 +01:00
Bas Brands 2b34870dbb MDL-66999 theme_boost: @extend extends from bs2compat 2019-12-12 11:27:59 +01:00
Bas Brands 55193f70d8 MDL-66999 theme_boost: @extend remove extends for users 2019-12-12 11:27:59 +01:00
Bas Brands aa100b767f MDL-66999 theme_boost: @extend remove extends for questions 2019-12-12 11:27:58 +01:00
Bas Brands cacf692578 MDL-66999 theme_boost: @extend remove extends for grades 2019-12-12 11:27:58 +01:00
Bas Brands 40ea67534c MDL-66999 theme_boost: @extend remove extends for tables 2019-12-12 11:27:56 +01:00
Andrew Nicols 5fc84028e9 MDL-67327 js: Make requirejs.php more fault tolerant 2019-12-12 15:58:19 +08:00
Ferran Recio f222c62d09 MDL-67154 theme_classic: fixing firefox printing 2019-12-12 09:04:10 +08:00
AMOS bot 69c3feb751 Automatically generated installer lang files 2019-12-11 13:49:59 +00:00
Shamim Rezaie 4bee39d31c MDL-67376 libraries: Upgrade loglevel.js to version 1.6.6 2019-12-11 21:28:52 +11:00
Kiet.Chan aa8a719049 MDL-67417 theme_boost: Tooltip icon stop working after closing using ESC 2019-12-11 15:01:35 +07:00
Andrew Nicols f316987483 Merge branch 'MDL-67458-master' of https://github.com/snake/moodle 2019-12-11 10:05:40 +08:00
Brendan Heywood cdf3fe7b7e MDL-65722 core_lock: Avoid DB calls in postgres lock by using a hash 2019-12-11 12:49:03 +11:00
Jake Dallimore ae0263de2b MDL-67458 core: removing stale cohortroles and role assignments 2019-12-11 09:34:29 +08:00
Jake Dallimore 94eabe36df MDL-67458 tool_cohortroles: remove role mapping for deleted roles
Before syncing anything, clean up records pointing to deleted roles.
2019-12-11 09:33:10 +08:00
Adrian Greeve 4d1d3eeade MDL-66503 themes: Set the embed page to display block. 2019-12-11 09:26:07 +08:00
Eloy Lafuente (stronk7) c865cceb6b Merge branch 'MDL-67371-master' of git://github.com/rezaies/moodle 2019-12-10 12:49:36 +01:00
Andrew Nicols d10d00a161 Merge branch 'MDL-67434-master' of git://github.com/junpataleta/moodle 2019-12-10 17:28:49 +08:00
Shamim Rezaie d2dcb0d082 MDL-67384 tool_policy: Upgrade jQuery EU Cookie Law popups to 1.1.3 2019-12-10 18:38:08 +11:00
Jake Dallimore 37588be383 Merge branch 'MDL-66936-master' of git://github.com/marinaglancy/moodle 2019-12-10 15:26:41 +08:00
Jake Dallimore 16beda9e63 Merge branch 'MDL-67179' of git://github.com/Chocolate-lightning/moodle 2019-12-10 15:01:40 +08:00
Andrew Nicols 9c18bff160 Merge branch 'MDL-67277-master-strongtopics' of git://github.com/mudrd8mz/moodle 2019-12-10 12:48:54 +08:00
Jake Dallimore 88c7484310 Merge branch 'MDL-67154-master' of git://github.com/ferranrecio/moodle 2019-12-10 11:53:29 +08:00
Jake Dallimore 25137ded9e Merge branch 'MDL-67362-antivirus-config-log' of https://github.com/brendanheywood/moodle 2019-12-10 11:21:49 +08:00
Jake Dallimore b42481597e Merge branch 'MDL-67451-master' of git://github.com/sarjona/moodle 2019-12-10 10:36:54 +08:00
Jake Dallimore 80c13fed94 Merge branch 'MDL-67432-master_quizaccess_settings' of https://github.com/catalyst/moodle 2019-12-10 09:30:36 +08:00
Jake Dallimore bf747f86c2 Merge branch 'MDL-66708-KeyGenCache' of https://github.com/Cengage/moodle 2019-12-10 09:11:56 +08:00
Andrew Nicols 56cabb839c Merge branch 'MDL-67373-master' of git://github.com/rezaies/moodle 2019-12-10 08:39:28 +08:00
Andrew Nicols fd58e6dc62 MDL-67152 calendar: Documentation fix 2019-12-10 08:19:12 +08:00
Andrew Nicols 349141c85b Merge branch 'MDL-67152-master' of git://github.com/rezaies/moodle 2019-12-10 08:12:31 +08:00
Paul Holden a679ae31a5 MDL-65649 backup: ensure valid course URL for async mode. 2019-12-09 23:34:18 +00:00
Andrew Madden e2c5d41a6b MDL-67432 quiz: Load all quiz subplugin settings from quiz settings.
Quiz quizaccess and report subplugins should have greater control over their own settings.
Remove the condition that they are only included when in the full admin tree which doesn't
include admin search page. The $ADMIN->fulltree condition should be handled by subplugin
settings.
2019-12-10 09:17:44 +11:00
Shamim Rezaie 0ab57f8128 MDL-67152 calendar: Rewrite core_calendar/view_manager using ES6 syntax 2019-12-10 06:46:38 +11:00
Shamim Rezaie eaa0439eca MDL-67152 calendar: Rewrite core_calendar/repository using ES6 syntax 2019-12-09 23:24:57 +11:00
Shamim Rezaie f046b70355 MDL-67152 calendar: The day view should start from the current day 2019-12-09 22:37:21 +11:00
Bas Brands 80465b8785 MDL-66999 theme_boost: @extend replace extends in forms
The css for .form-buttons, .path-admin... has been removed completely
The extend was used to add a grey container which is no longer works
2019-12-09 10:49:39 +01:00
Bas Brands 828a659728 MDL-66999 theme_boost: @extend use custom styles for filepicker buttons
The extended button classes can be replaced with custom styles
2019-12-09 10:49:39 +01:00
Bas Brands 6c4dbbf061 MDL-66999 theme_boost: @extend use .table classes in badges renderer
The table.collection class is not needed if the bootstrap classes
for tables are used in the badges renderer
2019-12-09 10:49:39 +01:00
Bas Brands 807e52442c MDL-66999 theme_boost: @extend remove .modal- styles for YUI modals
Use custom styles which will also fix the close button design in
MDL-67295
2019-12-09 10:49:39 +01:00
Bas Brands 5cb07eed0f MDL-66999 theme_boost: @extend remove page-enrol-users styles
The styles and the included @extend rules are no longer needed
The enrol users page was removed in MDL-59370
2019-12-09 10:49:39 +01:00
Bas Brands 4381739778 MDL-66999 theme_boost: @extend get colours from map 2019-12-09 10:49:39 +01:00
Bas Brands 4f77082d29 MDL-66999 theme_boost: @extend replace chat .p0 with css 2019-12-09 10:49:39 +01:00
Bas Brands 30b71a91fa MDL-66999 theme_boost: @extend remove .h2 from calendar
The calendar monthname is already in a <h2>, no additional .h2
styles are needed
2019-12-09 10:49:39 +01:00
Bas Brands 1714b6e7f0 MDL-66999 theme_boost: @extend remove .btn-block and .btn-link
Replace the extended .btn classes with custom css
Remove unused arrow_button styles
2019-12-09 10:49:39 +01:00
Bas Brands 9396731e94 MDL-66999 theme_boost: @extend replace .col-xs-*
Remove legacy col-xs-* classes. They are changed in upstream
Bootstrap 4 stable with just col-*.
2019-12-09 10:49:39 +01:00
Bas Brands 6ac38de8d0 MDL-66999 theme_boost: @extend .table-warning
Use .table-warning classes directly instead of using custom styles
2019-12-09 10:49:39 +01:00
Bas Brands 579ca95f1d MDL-66999 theme_boost: @extend replace .alert
use bs4 .alert .alert-type classes instead of extending .alert
2019-12-09 10:49:39 +01:00
Bas Brands 37949c189b MDL-66999 theme_boost: @extend remove .form-control-*
In MDL-56597 the .error and .warning classes were replaced with
.alert-error and alert-warning.
2019-12-09 10:49:39 +01:00
Bas Brands 098687e55d MDL-66999 theme_boost: @extend remove .small
Remove specific CSS and use bs4 classes in mustache instead
2019-12-09 10:49:39 +01:00
Bas Brands 6239d80855 MDL-66999 theme_boost: @extend text-muted
replace all instances of @extend .text-muted with
color: $text-muted
2019-12-09 10:49:39 +01:00
Bas Brands 2af7619b86 MDL-66999 theme_boost: @extend remove unused admin css 2019-12-09 10:49:38 +01:00
Bas Brands 275f690f11 MDL-66999 theme_boost: @extend for admin warnings 2019-12-09 10:49:38 +01:00
Shamim Rezaie 07cc70073b MDL-67381 atto_recordrtc: Fix the preview issue after recording 2019-12-09 20:28:32 +11:00
Shamim Rezaie 4fa17ba99b MDL-67381 lib: Upgrade to 7.3.0 2019-12-09 20:28:25 +11:00
Jake Dallimore d8b0718dc5 Merge branch 'MDL-67392-master' of git://github.com/rezaies/moodle 2019-12-09 14:46:35 +08:00
Adrian Greeve 1be93dffe1 MDL-63048 lib: Remove renamed classes. 2019-12-09 13:52:36 +08:00
Andrew Nicols 9423348ed4 Merge branch 'MDL-60975-master' of https://github.com/Kathrin84/moodle 2019-12-09 12:16:35 +08:00
Shamim Rezaie 5bd8f1dc4a MDL-67371 lib: Upgrade ADODB to version 5.20.15 2019-12-09 14:47:39 +11:00
Frédéric Massart ef1a9a2135 MDL-67434 javascript: Use static get_string after recycling promise 2019-12-09 10:04:18 +08:00
Matt Porritt bdf62bba35 MDL-66972 Files API: Add Streaming file mime type support
Adds file type support for the streaming .fmp4, .ts, .m3u8, and .mpd media formats,
so that correct mime type is stored in the database and sent in
headers when files are served. Also update existing mime types for
stored files.
2019-12-08 06:10:01 +11:00
David Monllaó b1a6b2def2 MDL-67304 analytics: Add missing png svg incorrect icon
Credit to jaked for the icons and the testing instructions
2019-12-06 10:19:08 +08:00
AMOS bot ecfa900fa8 Automatically generated installer lang files 2019-12-06 00:09:41 +00:00
Eloy Lafuente (stronk7) 8cf4c97217 weekly release 3.9dev 2019-12-05 13:24:04 +01:00
Eloy Lafuente (stronk7) 3978b8a1d4 NOBUG: Fixed SVG browser compatibility 2019-12-05 13:24:03 +01:00
Kathrin Osswald 4805a5b96f MDL-60975 behat tests: Added search for admin setting filepickers 2019-12-05 11:12:00 +01:00
Paul Holden 714343c06a MDL-66024 tool_uploadcourse: validate shortname/fullname field length. 2019-12-05 07:47:07 +00:00
Adrian Greeve 75890f29ed Merge branch 'MDL-65620-master' of git://github.com/aanabit/moodle 2019-12-05 09:25:16 +08:00
Eloy Lafuente (stronk7) 97d5eeda32 Merge branch 'MDL-41958-master' of git://github.com/lucaboesch/moodle 2019-12-04 23:24:46 +01:00
Sara Arjona d03d11095f MDL-67451 badges: use the site OB version as default 2019-12-04 21:01:09 +01:00
Eloy Lafuente (stronk7) baa833c667 Merge branch 'MDL-62757-master' of git://github.com/bmbrands/moodle 2019-12-04 20:25:59 +01:00
Bas Brands 8040fafaa8 MDL-62757 themes: validate theme preset files
Preset files need to be validated to ensure compiling SCSS does not
break.
2019-12-04 19:12:44 +01:00
Sara Arjona 04b52780eb Merge branch 'MDL-29693' of https://github.com/paulholden/moodle 2019-12-04 11:40:22 +01:00
Sara Arjona 8a685a3a3f Merge branch 'MDL-67404' of https://github.com/stronk7/moodle 2019-12-04 11:24:46 +01:00
Paul Holden fdd3ccaf07 MDL-29693 report_configlog: implement report search filtering. 2019-12-04 10:19:22 +00:00
Paul Holden a00801c071 MDL-29693 report_configlog: re-factor output to use renderers.
AMOS BEGIN
 MOV [value,report_configlog],[valuenew,report_configlog]
 MOV [oldvalue,report_configlog],[valueold,report_configlog]
AMOS END
2019-12-04 10:17:41 +00:00
Sara Arjona 03299347e7 Merge branch 'MDL-57635-38_tool_usertours_filter_shown' of https://github.com/tomdickman/moodle 2019-12-04 10:48:11 +01:00
Amaia Anabitarte 82ed7b3867 MDL-65620 core_message: Notification preferences behat tests 2019-12-04 10:30:36 +01:00
Amaia Anabitarte ebe53aca51 MDL-65620 core_message: User preference generator 2019-12-04 09:49:21 +01:00
Amaia Anabitarte f7af919bdf MDL-65620 core_message: Default notification preferences 2019-12-04 09:49:21 +01:00
Adrian Greeve 528b979a60 Merge branch 'master-MDL-65729' of https://github.com/yao9394/moodle 2019-12-04 14:11:51 +08:00
John Yao d0734df404 MDL-65729 Backup: Split individual backups into ad-hoc tasks
* refactor run automated backup
* new backup status of Queued
* adhoc task for backing up a course
* course locking for course backup adhoc task
* use Moodle locking instead of custom locking for run automated backup task
* add unit tests to extracted methods
2019-12-04 15:10:23 +11:00
Adrian Greeve 2311ae10a6 Merge branch 'MDL-40360-master' of git://github.com/lucaboesch/moodle 2019-12-04 11:49:11 +08:00
Andrew Nicols 96302b7aec Merge branch 'MDL-67359' of git://github.com/Chocolate-lightning/moodle_forum-project 2019-12-04 10:32:03 +08:00
Eloy Lafuente (stronk7) 26aff51b7a Merge branch 'MDL-46123' of https://github.com/stronk7/moodle 2019-12-03 23:15:28 +01:00
Tim Hunt 45c4d4aa8c MDL-46123 accesslib: improve get_component_string 2019-12-03 23:11:11 +01:00
David Mudrák 9446b17d88 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:36:05 +01:00
David Mudrák 3eb2ff093c 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:36:05 +01:00
David Mudrák 33eadfeccb 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:36:05 +01:00
David Mudrák 91a28c219a 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:36:05 +01:00
Ferran Recio e06f9a8385 MDL-67154 theme_boost: fixing firefox printing 2019-12-03 16:44:23 +01:00
Sara Arjona 7ad7505e2f Merge branch 'MDL-66925-adhoc-keep-alive' of https://github.com/brendanheywood/moodle 2019-12-03 14:29:19 +01:00
Marina Glancy 3b0168ce7f MDL-66936 mod_url: revert MDL-65024 adding fullurl to modinfo
This reverts commit cc56e409c3, reversing
changes made to 01cdf16c0e.
2019-12-03 12:24:25 +01:00
Jonathon Fowler ec0d17b543 MDL-66936 url: fix error when modinfo cache is rebuilt non-interactively 2019-12-03 12:23:47 +01:00
Sara Arjona d3b25ffaa0 Merge branch 'MDL-67363-adhoc-qos' of https://github.com/brendanheywood/moodle 2019-12-03 12:08:29 +01:00
Shamim Rezaie 83a7336f57 MDL-67373 lib: Upgrade PHPmailer to 6.1.3 2019-12-03 21:11:40 +11:00
Andrew Nicols 28ce554e10 Merge branch 'MDL-65229-stop-cron' of https://github.com/brendanheywood/moodle 2019-12-03 14:59:30 +08:00
Brendan Heywood 0bcc273f63 MDL-65229 cron: Add cli option --stop to notify all cron to stop 2019-12-03 17:51:56 +11:00
Andrew Nicols 45dfcd1755 Merge branch 'MDL-66087-master' of git://github.com/bmbrands/moodle 2019-12-03 14:35:39 +08:00
Shamim Rezaie 9173b83e58 MDL-67151 qtype_calculatedsimple: Support for the scientific format 2019-12-03 16:52:22 +11:00
Shamim Rezaie a1f10c5ec5 MDL-67151 qtype_calculated: Support for the scientific format 2019-12-03 16:52:22 +11:00
Shamim Rezaie bb8d19b885 MDL-67151 qtype_numerical: Support for the scientific format 2019-12-03 16:52:22 +11:00
Shamim Rezaie 35ca1475b5 MDL-67151 core_question: Support scientific format at question preview 2019-12-03 16:52:22 +11:00
Shamim Rezaie 2bfc16ad2a MDL-67151 forms: Support for the scientific format in the float element 2019-12-03 16:52:22 +11:00
Shamim Rezaie ac384d1d88 MDL-67151 core: format_float can auto detect number of decimal points 2019-12-03 16:52:17 +11:00
Andrew Nicols 47bede0d5d Merge branch 'MDL-67155' of https://github.com/timhunt/moodle 2019-12-03 12:12:28 +08:00
Jake Dallimore cdf835e9b5 Merge branch 'MDL-65693-http-head' of https://github.com/brendanheywood/moodle 2019-12-03 11:22:47 +08:00
Mathew May c7a7f88a0f MDL-67179 core: Add missing grading pix 2019-12-03 10:40:43 +08:00
Mathew May 6b55b28e38 MDL-67359 mod_forum: Relocate notification templates to reallign it 2019-12-03 10:35:33 +08:00
Adrian Greeve e6d8792369 Merge branch 'MDL-54799-master' of git://github.com/crazyserver/moodle 2019-12-03 09:35:53 +08:00
Brendan Heywood 4971da0bfa MDL-67363 task: Add adhoc task quality of service balancing 2019-12-03 12:21:10 +11:00
Sara Arjona 3cbede6e40 Merge branch 'wip-MDL-67339-master' of https://github.com/Beedell/moodle 2019-12-02 18:06:15 +01:00
John Beedell 82ee6f0d3c MDL-67339 behat: Enhance Behat exception message 2019-12-02 09:46:08 +00:00
Shamim Rezaie c15cd04c48 MDL-67392 mod_forum: Fix unescaped quotes issue in template 2019-12-02 20:44:44 +11:00
Jake Dallimore 842e0a027e Merge branch 'MDL-66581-master' of git://github.com/junpataleta/moodle 2019-12-02 16:12:00 +08:00
Jun Pataleta 658676adc0 MDL-66581 auth: Properly assign the link attribute 2019-12-02 15:28:23 +08:00
Iñigo Zendegi befbe2838f 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:20:44 +08:00
Jake Dallimore 398bda4f12 Merge branch 'MDL-67160' of git://github.com/Chocolate-lightning/moodle_forum-project 2019-12-02 11:25:08 +08:00
Jake Dallimore 9d06a24393 Merge branch 'MDL-66877-master' of git://github.com/jleyva/moodle 2019-12-02 10:01:53 +08:00
Luca Bösch 292b987c5c MDL-41958 import: Constistently showing progress steps. 2019-11-30 10:07:56 +01:00
Luca Bösch b7e3c2495f MDL-40360 gradingform_rubric: remove unused class 'label' for a label. 2019-11-30 09:42:44 +01:00
Brendan Heywood d46dba32d4 MDL-65693 files: Honor http HEAD requests for files 2019-11-30 16:02:23 +11:00
Brendan Heywood ad17190dc7 MDL-66925 cron: Add cli option to keep adhoc task runner alive 2019-11-30 16:01:01 +11:00
Shamim Rezaie 53b5c4f581 MDL-65849 mod_forum: Add course param to the author's profile url 2019-11-29 20:50:16 +11:00
Eloy Lafuente (stronk7) 784977de20 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-29 10:02:11 +01:00
Pau Ferrer Ocaña 4ed6010a61 MDL-54799 webservice: Handle exception in WS format ASAP 2019-11-29 09:44:09 +01:00
Eloy Lafuente (stronk7) 800563e415 weekly release 3.9dev 2019-11-29 00:45:41 +01:00
Juan Leyva f02178c481 MDL-66877 mod: Fix unfiltered activity names in page headings 2019-11-28 17:18:29 +01:00
Juan Leyva 62ff1b954f MDL-66877 mod: Fix WebServices returning unfiltered activity names 2019-11-28 17:18:29 +01:00
Bas Brands 9a6ff378d1 MDL-66087 themes: use variable color for dashboard background 2019-11-27 15:35:08 +01:00
Adrian Greeve f88437b468 Merge branch 'MDL-67348-master' of git://github.com/andrewnicols/moodle 2019-11-27 10:35:30 +08:00
Eloy Lafuente (stronk7) 21418c9942 Merge branch 'MDL-67300-master' of https://github.com/sammarshallou/moodle
(fix trailing whitespace case)
2019-11-26 22:30:05 +01:00
Jun Pataleta 9a37e86c6b Merge branch 'master_MDL-56886' of https://github.com/golenkovm/moodle 2019-11-26 22:32:48 +08:00
Sara Arjona ae2746b6b2 Merge branch 'MDL-67210-master' of git://github.com/lucaboesch/moodle 2019-11-26 08:29:45 +01:00
Jake Dallimore d0a4c05dda Merge branch 'MDL-67307' of https://github.com/stronk7/moodle 2019-11-26 14:14:50 +08:00
Jake Dallimore afc430c90b Merge branch 'MDL-67042-master' of git://github.com/sarjona/moodle 2019-11-26 11:59:08 +08:00
Jun Pataleta 7d9c97ae80 Merge branch 'MDL-66966' of https://github.com/stronk7/moodle 2019-11-26 11:42:25 +08:00
Brendan Heywood 10a1c1b577 MDL-67362 antivirus: Add enabling and order changes to config_log 2019-11-26 14:35:00 +11:00
Peter 4a27182b5c MDL-67233 mod_timeline: Allow events with only open dates in the future 2019-11-26 11:25:15 +08:00
Jake Dallimore 5906251ed2 Merge branch 'MDL-67222-master' of git://github.com/bmbrands/moodle 2019-11-26 10:12:29 +08:00
Mikhail Golenkov ac8e6f8e19 MDL-56886 navigation: Allow local plugins to modify navigation via AJAX. 2019-11-26 12:11:00 +11:00
Andrew Nicols d950843a6e MDL-67348 theme: Return CSS from localcache if available 2019-11-26 07:24:45 +08:00
Claude Vervoort 2a6ea30ef4 MDL-66708 lti adv: fix check for key in config 2019-11-25 14:14:33 -05:00
Sara Arjona f871370c55 Merge branch 'MDL-67342-master' of git://github.com/marinaglancy/moodle 2019-11-25 15:58:54 +01:00
Sara Arjona ad0a95cc47 Merge branch 'MDL-66627-master' of git://github.com/mickhawkins/moodle 2019-11-25 15:41:47 +01:00
Bas Brands cb4542b868 MDL-67222 tool_lp: update css classes for Bootstrap 4.3 2019-11-25 13:33:21 +01:00
Jun Pataleta 1eac44f128 Merge branch 'MDL-67217_master' of git://github.com/dmonllao/moodle 2019-11-25 16:13:01 +08:00
Sara Arjona c1bd4a6760 Merge branch 'MDL-67168-master' of git://github.com/andrewnicols/moodle 2019-11-25 08:54:51 +01:00
Jun Pataleta f05914739d Merge branch 'MDL-65956-master-1' of git://github.com/mihailges/moodle 2019-11-25 14:23:18 +08:00
Mihail Geshoski 68bd26ef2a MDL-65956 mod_assign: Add behat tests 2019-11-25 10:49:36 +08:00
Mihail Geshoski 8dc45b37b7 MDL-65956 mod_assign: Add proper capability checks and error handling 2019-11-25 10:49:21 +08:00
Adrian Greeve cab756604b Merge branch 'MDL-67285-master' of git://github.com/andrewnicols/moodle 2019-11-25 10:28:56 +08:00
Jake Dallimore d35fd6ee1b Merge branch 'MDL-67049' of https://github.com/stronk7/moodle 2019-11-25 09:33:42 +08:00
Luca Bösch 2e7f4fcefd MDL-67210 tool_uploadcourse: Allow only 0 and 1 for visible value. 2019-11-24 18:29:47 +01:00
Marina Glancy 4d2b8ece29 MDL-67342 theme_boost: Do not hardcode tooltip container 2019-11-24 13:42:48 +01:00
Syed Nayab Bukhari 55d0cd969c MDL-59487 task: Add run again button.
Co-authored-by: Brendan Heywood <brendan@catalyst-au.net>
2019-11-24 16:58:30 +11:00
Sara Arjona e49543e8e9 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-22 09:57:10 +01:00
Sara Arjona 5a119f31f4 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-22 09:10:52 +01:00
Eloy Lafuente (stronk7) 88d88bd92e 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-22 01:40:42 +01:00
Eloy Lafuente (stronk7) 8e98f82f12 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-22 01:40:18 +01:00
Eloy Lafuente (stronk7) 544924eb90 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-22 01:40:09 +01:00
Eloy Lafuente (stronk7) 59a97b235f 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-22 01:40:09 +01:00
Eloy Lafuente (stronk7) 034988a10c MDL-66966 tcpdf: Some more curly braces to fix
This is https://git.io/JeKfT
2019-11-22 01:40:09 +01:00
Eloy Lafuente (stronk7) 3dc2e85e7f MDL-66966 tcpdf: PHP 7.4 - cannot use array offset on integers
This is https://git.io/JeKfU
2019-11-22 01:40:09 +01:00
Eloy Lafuente (stronk7) fe503a3cfb MDL-66966 tcpdf: Bump to tcpdf 6.3.2
Bug fixes and php74 support.
2019-11-22 01:40:09 +01:00
David Monllaó e477e1350a MDL-67217 unittest: usleep and windows don't get along well 2019-11-22 07:41:07 +08:00
Eloy Lafuente (stronk7) a5f618d6a9 weekly on-sync release 3.9dev 2019-11-22 00:17:41 +01:00
sam marshall 584500d5ba 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:51:35 +00:00
Andrew Nicols 916d611684 MDL-67168 forum: Correct behaviour of viewfullnames 2019-11-21 15:42:42 +08:00
Jake Dallimore e9b0505720 Merge branch 'MDL-67035' of https://github.com/stronk7/moodle 2019-11-21 11:55:07 +08:00
Jun Pataleta d7fc8bda21 Merge branch 'MDL-66964' of https://github.com/stronk7/moodle 2019-11-21 11:36:33 +08:00
Tim Hunt 285c703685 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:18:35 +08:00
Jake Dallimore 6f407fba72 Merge branch 'MDL-67030' of https://github.com/stronk7/moodle 2019-11-21 08:18:46 +08:00
Eloy Lafuente (stronk7) c22af12f03 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-20 10:57:51 +01:00
Jake Dallimore 88b2d7b1a1 Merge branch 'MDL-67031' of https://github.com/stronk7/moodle 2019-11-20 16:21:47 +08:00
Jun Pataleta 6e35779a63 Merge branch 'MDL-67077' of https://github.com/stronk7/moodle 2019-11-20 16:08:30 +08:00
Michael Hawkins cb532f5c7e MDL-66627 forumreport_summary: Added content access behat tests 2019-11-20 14:53:49 +08:00
Jake Dallimore bfd43d4351 Merge branch 'MDL-67034' of https://github.com/stronk7/moodle 2019-11-20 13:16:28 +08:00
Jake Dallimore 364d927bc4 Merge branch 'MDL-67029' of https://github.com/stronk7/moodle 2019-11-20 11:45:10 +08:00
Adrian Greeve 230ed37d49 Merge branch 'MDL-67017' of https://github.com/stronk7/moodle 2019-11-20 09:57:50 +08:00
Eloy Lafuente (stronk7) 20d4ecc409 MDL-67034 lti_provider: php74 fix (curly braces) for LTI Provider lib 2019-11-19 10:03:12 +01:00
Jake Dallimore 48bec7814c Merge branch 'MDL-67274-master' of https://github.com/sammarshallou/moodle 2019-11-19 10:51:05 +08:00
Andrew Nicols 04e67878f9 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-19 07:40:36 +08:00
Mathew May 6ebf994c23 MDL-67160 mod_forum: Show the users grading status in the grader 2019-11-19 10:17:00 +13:00
Eloy Lafuente (stronk7) 7cccf31ce8 Merge branch 'MDL-67148-master' of git://github.com/junpataleta/moodle 2019-11-18 18:42:37 +01:00
sam marshall b4e2b99c85 MDL-67274 Tasks: Log display fails with memory errors 2019-11-18 13:46:32 +00:00
Jun Pataleta 3299602276 Merge branch 'MDL-67073-master' of git://github.com/marinaglancy/moodle 2019-11-18 16:02:05 +08:00
Jake Dallimore 36ad925edc Merge branch 'MDL-67284' of https://github.com/stronk7/moodle 2019-11-18 11:27:00 +08:00
Jake Dallimore d84bf35fd1 Merge branch 'MDL-67283' of https://github.com/stronk7/moodle 2019-11-18 11:20:28 +08:00
Eloy Lafuente (stronk7) 59540b861e MDL-67284 mod_feedback: Add missing file phpdoc block 2019-11-17 12:46:31 +01:00
Eloy Lafuente (stronk7) 953a5844ef MDL-67283 backup: Bump release to 3.9 2019-11-17 11:41:30 +01:00
Eloy Lafuente (stronk7) 492d047d11 MDL-67284 upgrade: add 3.8.0 separation line to all upgrade scripts 2019-11-17 11:40:19 +01:00
Eloy Lafuente (stronk7) 712a321db2 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-16 20:04:04 +01:00
Eloy Lafuente (stronk7) 6783adc239 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-16 20:03:47 +01:00
Eloy Lafuente (stronk7) b69028e626 MDL-67034 google: php74 fix (curly braces) for the Google-Client lib 2019-11-16 20:03:37 +01:00
Eloy Lafuente (stronk7) 15c8da60d4 MDL-67034 adodb: php74 fix (curly braces) for the AdoDB lib 2019-11-16 20:03:37 +01:00
Eloy Lafuente (stronk7) 6b83451251 MDL-67034 horde: php74 fix (curly braces) for the Horde lib 2019-11-16 20:03:37 +01:00
Eloy Lafuente (stronk7) 9e458d8fe8 MDL-67031 s3: php74 fixup for class S3 v0.5.1 2019-11-16 20:03:27 +01:00
Eloy Lafuente (stronk7) 30e5aca81d MDL-67030 htmlpurifier: add details to readme 2019-11-16 20:03:18 +01:00
Eloy Lafuente (stronk7) 9fbe33a6a2 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-16 20:03:18 +01:00
Eloy Lafuente (stronk7) f94b2e7ade MDL-67029 bennu: add details to readme 2019-11-16 20:03:08 +01:00
Eloy Lafuente (stronk7) ce17207715 MDL-67029 bennu: php74 fixup for bennu lib 0.1-custom 2019-11-16 20:03:08 +01:00
Eloy Lafuente (stronk7) ba5aa5fe19 MDL-67017 typo3: add details to readme 2019-11-16 20:02:59 +01:00
Eloy Lafuente (stronk7) 052a282ec4 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-16 20:02:59 +01:00
Eloy Lafuente (stronk7) c3d8c419e5 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-16 20:02:42 +01:00
Eloy Lafuente (stronk7) d547735f2f weekly back-to-dev release 3.9dev 2019-11-16 18:03:02 +01:00
Eloy Lafuente (stronk7) bc4c075960 NOBUG: Change travis.yml back to master 2019-11-16 17:54:08 +01:00
Eloy Lafuente (stronk7) f968cd44e8 Moodle release 3.8 2019-11-16 17:54:08 +01:00
Eloy Lafuente (stronk7) 4da834dcdc NOBUG: Change travis.yml to MOODLE_38_STABLE 2019-11-16 17:54:08 +01:00
Jun Pataleta dc51037136 Merge branch 'MDL-67281' of https://github.com/stronk7/moodle 2019-11-16 17:44:05 +08:00
Eloy Lafuente (stronk7) 12f310e545 MDL-67281 forum: don't show discussion creation time twice
The discussion creation time (or first post) is being shown
both in the "started by" and "last post" columns in forum
discussions list.

Just let's change the former to show the discussion modification
time (or last post) instead.
2019-11-15 19:11:34 +01:00
Eloy Lafuente (stronk7) 52d3d6f540 Moodle release 3.8rc1 2019-11-15 12:30:52 +01:00
Jun Pataleta e716c1ea9e Merge branch 'MDL-67269-master' of git://github.com/andrewnicols/moodle 2019-11-15 12:38:54 +08:00
Andrew Nicols fb803f8854 Merge branch 'MDL-67268-master' of git://github.com/mihailges/moodle 2019-11-15 12:08:33 +08:00
Mihail Geshoski c7cb3b297b MDL-67268 mod_forum: Group and label radio buttons in forum grader 2019-11-15 12:05:59 +08:00
Andrew Nicols 630a1b0e01 MDL-67269 mod_forum: Capture form submission in grading panel 2019-11-15 11:47:37 +08:00
Andrew Nicols f45a2860e5 Merge branch 'MDL-67265' of git://github.com/Chocolate-lightning/moodle_forum-project 2019-11-15 10:35:00 +08:00
Mathew May 4e796e2205 MDL-67265 core: Set max-height on toast wrapper 2019-11-15 09:21:06 +08:00
Jake Dallimore 891e027cf1 Merge branch 'MDL-67241-master' of git://github.com/lameze/moodle 2019-11-14 16:34:28 +08:00
Jake Dallimore 324258e5f5 Merge branch 'MDL-67144-integration' of git://github.com/Chocolate-lightning/moodle_forum-project 2019-11-14 15:17:24 +08:00
Mathew May fc741e030e MDL-67144 mod_forum: If no users exist do not show the grading interface 2019-11-14 15:00:30 +08:00
Jun Pataleta ff175fce22 Merge branch 'MDL-67246-master' of git://github.com/jleyva/moodle 2019-11-14 14:34:17 +08:00
Jake Dallimore 0460d21b28 Merge branch 'MDL-67207-master' of git://github.com/andrewnicols/moodle 2019-11-14 14:27:42 +08:00
Jun Pataleta e9f63f3fc0 Merge branch 'MDL-67116-master' of git://github.com/andrewnicols/moodle 2019-11-14 12:37:22 +08:00
Andrew Nicols c3777543a6 MDL-67116 course: Restore removed line
This line was inadvertently removed in a previous commit.
2019-11-14 11:43:37 +08:00
Andrew Nicols 8a0b9b1830 Merge branch 'MDL-67250-master-httpswwwroot' of git://github.com/mudrd8mz/moodle 2019-11-14 10:54:14 +08:00
Simey Lameze 0e287a0e7b MDL-67241 mod_forum: raise memory limit when exporting 2019-11-14 10:12:15 +08:00
Adrian Greeve b6343156f9 Merge branch 'MDL-67116-master' of git://github.com/andrewnicols/moodle 2019-11-14 09:03:31 +08:00
Andrew Nicols 0a5a2ca89b MDL-67116 course: Strict empty string check required
In PHP the following are true:

    assert('' == '');
    assert(0 == '');
    assert(null == '');

The options in the course completion settings are now:

    ''    => none selected
    [int] => itemnumber of activity course completion item.

In the case where the itemnumber was 0  this was being incorrectly
evaluated as an empty string due to the implicit cast to int of the
empty string:

    (int) '' === 0

As a result, the non-strict comparison means that the following are
identical:

    assert(0 == '');
    assert(0 == (int) '');
    assert(0 == '0');

Changing the comparison to a strict comparison is correct because it
ensures the type consitency between the empty string value, and the int
of itemnumber 0. It is safe because the value always comes from the
form, where an int is always returned, and not the DB, where a string is
returned.
2019-11-14 08:59:56 +08:00
Eloy Lafuente (stronk7) ccd5f606c3 Merge branch 'MDL-67248-master' of git://github.com/cescobedo/moodle 2019-11-14 01:12:01 +01:00
David Mudrák 469d4b7f35 MDL-67250 setup: Revert removal of the httpswwwroot setting
It is still used widely in the plugins that would stop working suddenly
without being warned via a debugging message. We must keep it forever as
an alias for the wwwroot.
2019-11-13 19:58:10 +01:00
cescobedo f12d708e61 MDL-67248 filter_displayh5p: Add new description on filter 2019-11-13 18:36:09 +01:00
Juan Leyva 666de97917 MDL-67246 admin: Return course color settings for external clients 2019-11-13 15:33:20 +01:00
Ferran Recio 8a664a65fa MDL-67244 filter_mediaplugin: fix html5 player width for lowres videos 2019-11-13 15:02:41 +01:00
Jun Pataleta f136aa1933 Merge branch 'MDL-67231-master' of git://github.com/andrewnicols/moodle 2019-11-13 16:00:16 +08:00
Jun Pataleta 289c9e14c4 Merge branch 'MDL-67116-master' of git://github.com/andrewnicols/moodle 2019-11-13 15:31:03 +08:00
Andrew Nicols 799418ad12 MDL-67207 forum: Reset focus after closing grade viewer 2019-11-13 14:30:54 +08:00
Andrew Nicols 21900f035e MDL-67207 forum: Return focus when closing expanded discussion 2019-11-13 14:30:54 +08:00
Andrew Nicols c50bc1bf7c MDL-67207 core: Use focus lock manager in modals 2019-11-13 14:30:54 +08:00
Andrew Nicols 4395ef464d MDL-67207 forum: Reset focus after closing grader 2019-11-13 14:30:54 +08:00
Andrew Nicols 7ede47b738 MDL-67207 forum: Lock focus in grader 2019-11-13 14:30:48 +08:00
Andrew Nicols dcdcc12cb2 MDL-67207 core: Add new ARIA focus locker
This is based on code and examples provided in the ARIA specification
https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/dialog.html
2019-11-13 14:30:32 +08:00
Adrian Greeve 23ac81e396 Merge branch 'MDL-67178' of git://github.com/Chocolate-lightning/moodle_forum-project 2019-11-13 14:30:06 +08:00
Andrew Nicols 8bd3e49cc9 MDL-67231 h5p: Correct naming of h5p unit test files 2019-11-13 14:24:28 +08:00
Jun Pataleta 783897e56f Merge branch 'MDL-67232-master' of git://github.com/lameze/moodle 2019-11-13 13:49:22 +08:00
Mathew May 2cac67a016 MDL-67178 mod_forum: Allow users to backup forum grades 2019-11-13 13:25:54 +08:00
Andrew Nicols c035141971 MDL-67116 course: Fix completion disabled for gradable items
The default value is an empty string (""), which in PHP evaluates to 0 when
cast to a string in our DML layer.

The fix is to forcibly make it null which is not cast to string in DML
for optional strings.
2019-11-13 12:49:59 +08:00
Jun Pataleta 2e08e15065 Merge branch 'MDL-67199' of https://github.com/stronk7/moodle 2019-11-13 11:20:02 +08:00
Jun Pataleta ec99ffd352 Merge branch 'MDL-67218-master' of git://github.com/andrewnicols/moodle 2019-11-13 11:00:22 +08:00
Simey Lameze e28388735c MDL-67232 mod_forum: remove initialuserid data attr from template 2019-11-13 10:33:55 +08:00
Jake Dallimore df8fff9f34 Merge branch 'MDL-66812-master' of git://github.com/bmbrands/moodle 2019-11-13 10:25:42 +08:00
Adrian Greeve c3044a19b9 Merge branch 'MDL-67215-master' of git://github.com/peterRd/moodle 2019-11-13 10:18:59 +08:00
Andrew Nicols fe795b59e4 MDL-67116 form: Require grade in multi-grade-item activities
AMOS BEGIN
  CPY [rating,rating],[grade_rating_name,rating]
AMOS END
2019-11-13 10:14:37 +08:00
Ryan Wyllie a492f69caf MDL-67116 course: allow grading completion for non ratings grade item 2019-11-13 10:11:44 +08:00
Andrew Nicols d21ba3f6a8 MDL-67218 form: Do not clear grade when rescaling not enabled 2019-11-13 10:11:44 +08:00
Andrew Nicols 09ab002746 Merge branch 'MDL-67194-master' of git://github.com/vmdef/moodle 2019-11-13 08:38:34 +08:00
Andrew Nicols 003c856a7e Merge branch 'wip_MDL-67205_master' of git://github.com/gjb2048/moodle 2019-11-13 08:31:25 +08:00
Eloy Lafuente (stronk7) adc5449399 MDL-67199 versions: main version bump 2019-11-12 17:58:42 +01:00
Eloy Lafuente (stronk7) d5be859063 MDL-67199 versions: bump all versions and requires near release
version = 2019111800 release version
requires= 2019111200 current beta (week7roll1) version
2019-11-12 17:57:08 +01:00
Eloy Lafuente (stronk7) 1633a6035d Moodle release 3.8beta 2019-11-12 16:50:55 +01:00
Jun Pataleta bbb7cb2173 Merge branch 'MDL-66906-master-fix' of git://github.com/andrewnicols/moodle 2019-11-12 22:01:37 +08:00
Andrew Nicols 49d5920ac6 MDL-66906 gradingform_rubric: Add back missing field 2019-11-12 21:04:54 +08:00
Jun Pataleta 134f11e15a Merge branch 'MDL-66906-integration-3' of git://github.com/Chocolate-lightning/moodle_forum-project 2019-11-12 16:38:58 +08:00
Mathew May 07d8669dbf MDL-66906 mod_forum: Show learners their grades in a Modal 2019-11-12 16:17:04 +08:00
Jun Pataleta fb99cef5f1 Merge branch 'MDL-66360-master-fix' of git://github.com/andrewnicols/moodle 2019-11-12 16:10:38 +08:00
Andrew Nicols 0e32b5ae41 MDL-66360 grading: Validate notifyuser 2019-11-12 16:00:50 +08:00
Andrew Nicols 656f2e5a38 MDL-66360 grade: Correct argument order in params 2019-11-12 15:59:53 +08:00
Andrew Nicols 3c150de283 MDL-67218 form: Do not clear grade when rescaling not enabled 2019-11-12 11:29:34 +08:00
Andrew Nicols 237ddb313f Merge branch 'MDL-66360-master-fix' of git://github.com/lameze/moodle 2019-11-12 10:16:12 +08:00
Simey Lameze 254fc008a7 MDL-66360 forum: rename sendstudentnotifications_forum to forum_grade_notify 2019-11-12 10:15:41 +08:00
Peter 5c137f610b MDL-67215 core: Revert update from lib upgrade 2019-11-12 09:55:18 +08:00
Víctor Déniz Falcón b7c307f33d MDL-67194 core_h5p: save core API version that content types require 2019-11-11 21:09:50 +00:00
Jun Pataleta 5f1307ef9a Merge branch 'MDL-67187_master' of git://github.com/dmonllao/moodle 2019-11-11 22:22:08 +08:00
Bas Brands f2ace4d45a MDL-66812 core_message: update custom checkbox for message dialogue 2019-11-11 15:06:47 +01:00
Gareth Barnard 6097e14b0f MDL-67205 themes: Incorrect information in theme/upgrade.txt. 2019-11-11 12:55:17 +00:00
Eloy Lafuente (stronk7) 25878b786a Merge branch 'MDL-66405-master-fix' of https://github.com/sarjona/moodle 2019-11-11 12:11:41 +01:00
Sara Arjona 9bb296deb0 MDL-66405 core_h5p: Fix behat tests 2019-11-11 12:01:47 +01:00
Eloy Lafuente (stronk7) 6b69013461 MDL-66360 grade: whitespace fix 2019-11-11 10:49:31 +01:00
Andrew Nicols 9359533972 MDL-66360 forum: Fix unit tests in integration 2019-11-11 17:38:02 +08:00
Andrew Nicols c2dc453f07 MDL-66360 forum: Add missing var from merge conflict 2019-11-11 17:27:35 +08:00
Andrew Nicols 63e3409bc2 Merge branch 'MDL-66360-master' of git://github.com/lameze/moodle 2019-11-11 17:16:48 +08:00
Simey Lameze c189319e9c MDL-66360 mod_forum: fix cibot issues 2019-11-11 16:08:08 +08:00
Simey Lameze d543b01b1f MDL-66360 mod_forum: change notifyuser parameter order 2019-11-11 16:08:07 +08:00
Simey Lameze 3f609c8a44 MDL-66360 grade: add missing gradenotifications defaults 2019-11-11 15:39:28 +08:00
Simey Lameze 6143a75136 MDL-66360 grade: fix unit tests failures and errors 2019-11-11 15:39:28 +08:00
Simey Lameze 86ea1d8375 MDL-66360 lang: fix typo on gradenotificationsubjects string 2019-11-11 15:39:28 +08:00
Simey Lameze 91946f8c7d MDL-66360 mod_forum: add missing notifyuser to doc block 2019-11-11 15:39:28 +08:00
Simey Lameze 66216aa052 MDL-66360 mod_forum: remove debug code from template 2019-11-11 15:37:19 +08:00
Simey Lameze 175fd687b4 MDL-66360 grade: fix user grade notification sending errors 2019-11-11 15:37:19 +08:00
Shamim Rezaie c67a54e619 MDL-66360 mod_forum: Notify the student when the marker choose to notify 2019-11-11 15:37:19 +08:00
Shamim Rezaie fff089e80d MDL-66360 gradingform_rubric: support sending grading notifications 2019-11-11 15:34:43 +08:00
Shamim Rezaie 62df27d2d5 MDL-66360 gradingform_guide: Support sending grading notifications 2019-11-11 15:30:27 +08:00
Shamim Rezaie f0744fa0ff MDL-66360 core_grade: grade notifications for scale-based marking 2019-11-11 15:27:05 +08:00
Shamim Rezaie 4fe3ce8f64 MDL-66360 core_grade: grade notifications for simple direct grading 2019-11-11 15:24:16 +08:00
Shamim Rezaie 9672c8aa08 MDL-66360 core_grade: New method to send grade notifications to students 2019-11-11 15:16:19 +08:00
Shamim Rezaie 9666372644 MDL-66360 core_grade: New message handler for grade notifications 2019-11-11 15:16:19 +08:00
Shamim Rezaie b6bf1e8e2a MDL-66360 mod_forum: display notification option pre-set to default 2019-11-11 15:16:19 +08:00
Shamim Rezaie aa73424c66 MDL-66360 mod_forum: Save the sendstudentnotifications setting 2019-11-11 15:12:33 +08:00
Shamim Rezaie de3e28635e MDL-66360 mod_forum: phpdoc fixes 2019-11-11 15:12:33 +08:00
Shamim Rezaie 77580567a3 MDL-66360 mod_forum: added settings for send notifications default val
AMOS BEGIN
 CPY [sendstudentnotifications, mod_assign],[sendstudentnotifications, mod_forum]
 CPY [sendstudentnotifications_help, mod_assign],[sendstudentnotifications_help, mod_forum]
AMOS END
2019-11-11 15:12:33 +08:00
Jake Dallimore 3ab419ad5a Merge branch 'MDL-67137-master' of git://github.com/andrewnicols/moodle 2019-11-11 14:56:52 +08:00
Andrew Nicols 1c997df371 Merge branch 'MDL-66958' of git://github.com/Chocolate-lightning/moodle_forum-project 2019-11-11 11:26:08 +08:00
Mathew May 8827e573db MDL-66958 core_grade: Add hasgrade to all external fetch webservices 2019-11-11 11:25:17 +08:00
Mathew May 63cd8d45db MDL-66958 core_grade: Add grade status abstract
Also implement the new abstract in Forum
2019-11-11 11:25:17 +08:00
Mathew May 8b04be120b MDL-66958 core_grade: Only save scale on form change 2019-11-11 11:25:17 +08:00
Mathew May 08f11b07b4 MDL-66958 core_grade: Only save point on form change 2019-11-11 11:25:17 +08:00
Mathew May e659dc651e MDL-66958 gradingform_guide: Only save on form change 2019-11-11 11:25:17 +08:00
Mathew May 9769ba08b3 MDL-66958 gradingform_rubric: Only save on form change 2019-11-11 11:25:17 +08:00
David Monllaó a461d36010 MDL-67187 analytics: Fix broken text comparison 2019-11-11 11:00:28 +08:00
Andrew Nicols 13965d30fe Merge branch 'MDL-66447' of https://github.com/Chocolate-lightning/moodle_forum-project 2019-11-11 10:55:46 +08:00
Michael Hawkins a25f9cc357 MDL-66447 forumreport_summary: Added event logging 2019-11-11 10:49:09 +08:00
Mathew May f418c08c31 MDL-66958 core_grade: Add comparison js for grade saves 2019-11-11 10:44:09 +08:00
Mathew May 80dcc83400 MDL-66958 core_grade: Correct documentation in normalise js 2019-11-11 09:57:53 +08:00
Adrian Greeve 65d053ec0d Merge branch 'MDL-67129-master-2' of git://github.com/bmbrands/moodle 2019-11-11 08:07:03 +08:00
Eloy Lafuente (stronk7) 9367922f09 MDL-66405 filter_h5p: fix trailing-lines gherkinlint problem 2019-11-11 00:58:03 +01:00
Eloy Lafuente (stronk7) a1e0f47fe9 Merge branch 'MDL-66405-master' of git://github.com/aanabit/moodle 2019-11-11 00:33:16 +01:00
Sara Arjona c9f0abc25a Merge branch 'MDL-67184-master' of git://github.com/cescobedo/moodle 2019-11-10 21:48:48 +01:00
cescobedo 64e97710a3 MDL-67184 filter_displayh5p: Move upper than urltolink & activityname 2019-11-10 21:40:25 +01:00
Sara Arjona f529720e07 Merge branch 'MDL-67196' of https://github.com/stronk7/moodle 2019-11-09 20:06:11 +01:00
Sara Arjona 1cb3493ab1 Merge branch 'MDL-67156-master' of git://github.com/vmdef/moodle 2019-11-09 19:53:27 +01:00
Sara Arjona 5e7d8b42ce Merge branch 'MDL-67158-master' of git://github.com/mihailges/moodle 2019-11-09 19:23:39 +01:00
Mihail Geshoski d68be5b209 MDL-67158 core_h5p: Unit test fixes 2019-11-10 01:37:44 +08:00
Eloy Lafuente (stronk7) 8585294d5c Merge branch 'MDL-67098-master' of git://github.com/junpataleta/moodle 2019-11-09 16:14:45 +01:00
Eloy Lafuente (stronk7) acfbb4bf44 Merge branch 'MDL-67146-master-enfix-2' of git://github.com/mudrd8mz/moodle 2019-11-09 16:11:39 +01:00
Sara Arjona b80c1e015a Merge branch 'MDL-67061-master' of https://github.com/aanabit/moodle 2019-11-09 13:22:03 +01:00
Amaia Anabitarte 2c679b6ea8 MDL-67061 core_h5p: Behat tests for H5P content-types admin settings 2019-11-09 11:11:07 +01:00
Bas Brands c43f99ca47 MDL-67061 core_h5p: List installed contenttypes/libraries 2019-11-09 11:11:07 +01:00
Sara Arjona 76b6e6ca08 Merge branch 'MDL-67174' of https://github.com/paulholden/moodle 2019-11-09 08:59:41 +01:00
Sara Arjona 3b381bd2da Merge branch 'MDL-67173-master' of git://github.com/cescobedo/moodle 2019-11-09 08:55:47 +01:00
Sara Arjona 75bf9a3ab8 Merge branch 'MDL-67167-master' of git://github.com/jleyva/moodle 2019-11-09 08:50:15 +01:00
David Mudrák cf36114501 MDL-67146 lang: Update behat scenario files with the new string wording 2019-11-09 06:36:25 +01:00
Helen Foster fda41f4588 MDL-67146 lang: Import fixed English strings (en_fix)
Significant string changes:

* configallowemojipicker,core_admin - including emoji picker button in
  Atto
* viewconversation,mod_forum - 'conversation' changed to 'discussion'
2019-11-09 06:35:22 +01:00
Eloy Lafuente (stronk7) 544f8625ba MDL-67196 behat: Increase allowed max report size 2019-11-09 01:11:14 +01:00
Víctor Déniz Falcón 47627abe9d MDL-67156 core_h5p: change DIRECTORY_SEPARATOR by slashes
In Windows, the value of DIRECTORY_SEPARATOR is "\", causing failures in
the tests when compared to the path strings that use "/".
2019-11-08 22:18:11 +00:00
Amaia Anabitarte ba70ec2666 MDL-66405 filter_h5p: Behat tests for H5P filter 2019-11-08 17:08:58 +01:00
Amaia Anabitarte 7d8af94f86 MDL-66405 atto_h5p: Behat tests for H5P atto button 2019-11-08 17:08:57 +01:00
Amaia Anabitarte 0d97e6103f MDL-66405 core_h5p: New behat steps and selectors for H5P tools 2019-11-08 17:08:57 +01:00
Sara Arjona f9db5892ec weekly release 3.8dev+ 2019-11-08 15:39:36 +01:00
Sara Arjona 7347347e84 NOBUG: Fixed SVG browser compatibility 2019-11-08 15:39:33 +01:00
Sara Arjona 71528112b9 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-11-08 15:39:33 +01:00
Andrew Nicols fc0ded848c MDL-67058 h5p: Correct PHPUNIT_LONGTEST usage 2019-11-08 15:48:58 +08:00
Andrew Nicols fd9333ca93 MDL-67058 h5p: Content fetch should use save_h5p API 2019-11-08 15:48:58 +08:00
Jun Pataleta 6846ba70a2 MDL-67098 forumreport_summary: Drop temp table at the end of processing 2019-11-08 15:28:23 +08:00
Andrew Nicols ab8f1c3b8c MDL-67058 h5p: System user has permission 2019-11-08 15:20:17 +08:00
Jun Pataleta 2e809ec27c Merge branch 'MDL-66893-master-3' of https://github.com/ryanwyllie/moodle 2019-11-08 11:59:44 +08:00
Andrew Nicols 8948ebb7ac Merge branch 'MDL-66297-master' of git://github.com/mickhawkins/moodle 2019-11-08 11:17:38 +08:00
Michael Hawkins d3ae8d42ea MDL-66297 mod_forum: Added word/char count column headings to export 2019-11-08 11:13:37 +08:00
Michael Hawkins 64da1d093a MDL-66297 forumreport_summary: Added filter data to forum export links
From/to date filter timestamps, as well as discussion IDs of any
filtered groups.
2019-11-08 11:13:36 +08:00
Michael Hawkins 2e7a16b954 MDL-66297 mod_forum: Prepared export to handle URL filters
Added the ability for discussion IDs and from/to timestamps to be
passed in via URL (to match filters available in the summary report,
which will link to the export). Also fixed a bug where "all users"
would fail as an optional array param.
2019-11-08 11:13:36 +08:00
Shamim Rezaie 1743d4a3e9 MDL-66297 forumreport_summary: add export links to the report 2019-11-08 11:13:36 +08:00
Shamim Rezaie 84ed2320dd MDL-66297 mod_forum: The export form can take params from URL 2019-11-08 11:13:36 +08:00
Adrian Greeve fee88f39c5 Merge branch 'MDL-67169' of https://github.com/stronk7/moodle 2019-11-08 10:43:05 +08:00
Jake Dallimore 9560facb35 Merge branch 'MDL-67016-master-user-profile-see-own-courses' of https://github.com/danowar2k/moodle 2019-11-08 10:22:02 +08:00
Andrew Nicols a50e27c7bd Merge branch 'MDL-67149-master' of https://github.com/sammarshallou/moodle 2019-11-08 10:09:58 +08:00
Jun Pataleta e2ba123d1c Merge branch 'MDL-67122-master' of https://github.com/mickhawkins/moodle 2019-11-08 09:57:20 +08:00
Andrew Nicols 1e96159444 Merge branch 'MDL-66404-master' of git://github.com/cescobedo/moodle 2019-11-08 09:24:10 +08:00
Andrew Nicols 284af93b5e MDL-67043 h5p: Whitespace fix 2019-11-08 08:27:13 +08:00
Andrew Nicols 6f1b145ea8 Merge branch 'MDL-67043-master' of git://github.com/cescobedo/moodle 2019-11-08 08:25:14 +08:00
Eloy Lafuente (stronk7) ed2fb5710f Merge branch 'MDL-67048_master' of https://github.com/adpe/moodle 2019-11-08 00:45:05 +01:00
Eloy Lafuente (stronk7) f34c8e86e7 Merge branch 'MDL-67058-master' of git://github.com/vmdef/moodle 2019-11-08 00:30:08 +01:00
cescobedo 3b85322940 MDL-67173 core_h5p: Translate non-localURL in WS to invalidurl
The WebService should return invalidurl when the coding error is
"Coding error detected, it must be fixed by a programmer: out_al_local_url called on a non-local URL"
So, we translate the error to be used by Mobile App.
2019-11-07 23:05:41 +01:00
Eloy Lafuente (stronk7) 9eda724470 Merge branch 'MDL-67153' of https://github.com/timhunt/moodle 2019-11-07 19:49:42 +01:00
Paul Holden afaf64b334 MDL-67174 core: update standard plugins list.
Add Forum summary report and Atto emoji picker.
2019-11-07 16:45:50 +00:00
Sara Arjona 3a9c515057 Merge branch 'MDL-66683-master' of git://github.com/cescobedo/moodle 2019-11-07 17:41:22 +01:00
cescobedo 5d69038bb6 MDL-66683 core: Revert MDL-66181 because created regressions
This reverts commit ed080a580f.
This issue reverts the behaviour modified in MDL-66181, as that change
negatively impacted course-creation workflows. As this appears to be
the intended functionality, the Security team has agreed to revert
this change.
2019-11-07 17:29:30 +01:00
Michael Hawkins 209cfe64fb MDL-67122 forumreport_summary: Fix template context eg and line length
The template context needed updating now it populates a single select
and the summary_table constructor params should be broken over 2 lines
2019-11-08 00:15:48 +08:00
Jake Dallimore 78d65acd54 MDL-66257 tool_cohortroles: unit test for users in multiple cohorts 2019-11-07 23:47:18 +08:00
cescobedo 7b5f4a62c1 MDL-66257 tool_cohortroles: Unassign the role on removal cohortroles. 2019-11-07 23:47:17 +08:00
Michael Hawkins 30fc34761b MDL-67122 forumreport_summary: Apply filters to report download 2019-11-07 23:42:34 +08:00
Sara Arjona 830eab425c Merge branch 'MDL-67166-master' of git://github.com/bmbrands/moodle 2019-11-07 16:30:18 +01:00
Bas Brands fda23bf7cd MDL-67129 atto_h5p: uneditable .h5p-placeholder container 2019-11-07 14:06:38 +01:00
Eloy Lafuente (stronk7) a5cd14e4d8 MDL-67169 phpunit: fix clear flaw in unit test provider
Basically the provider is ignoring the CRLF to LF normalization
results and loading the original file again.

This doesn't have any impact normally, because all moodle
files are LF ones and people using other systems have their
git configurations set to work that way (not modify or force LF).

But there may be checkouts out there (for example travis) where
the git configuration by defult is to convert to the OS, causing
windows runs to fail badly there. See the issue for more info
and links.
2019-11-07 13:44:06 +01:00
Juan Leyva ff490afbff MDL-67167 block: Force returned configuration values to be JSON encoded
Contributed plugins may set non-scalar values as valid instance configuration values (the core RSS client block does the same)
2019-11-07 13:29:52 +01:00
Jun Pataleta af9a491478 Merge branch 'MDL-67084-master' of git://github.com/junpataleta/moodle 2019-11-07 19:40:55 +08:00
Marina Glancy 9f2c665999 MDL-67084 core_form: duration element should export arrays 2019-11-07 19:21:16 +08:00
Jun Pataleta c4e1c9d167 MDL-66598 auth_oauth2: OAuth2 upgrade step
This basically does two things:
1. Updates all non-Facebook/Google/Microsoft issuers and sets their
'requireconfirmation' field to 1 so that future OAuth2 logins on these
issuers will always have an email confirmation sent to them.
2. Deletes the linked logins of users with non-Facebook/Google/Microsoft
OAuth2 issuers.
2019-11-07 18:42:07 +08:00
Jun Pataleta 8a3316bd9b MDL-66598 auth_oauth2: Add warning messages in confirm emails 2019-11-07 18:42:07 +08:00
Jun Pataleta df6092d65c MDL-66598 tool_oauth2: Make account confirmation required by default
* Only Facebook, Google, and Microsoft issuers can optionally offer to
require account confirmation via email. We will require email
confirmation for the rest of the issuers.
2019-11-07 18:42:07 +08:00
Bas Brands 5092133b8f MDL-67166 theme_classic: H5P embedded styles 2019-11-07 10:57:39 +01:00
cescobedo 0477e526e4 MDL-66404 core_h5p: Add new h5p_deleted event 2019-11-07 10:43:20 +01:00
cescobedo fba5bba829 MDL-66404 core_h5p: Add new h5p_viewed event 2019-11-07 10:43:13 +01:00
Amaia Anabitarte 21cb97560a MDL-67110 filter_h5p: Removing wildcard characters 2019-11-07 10:27:53 +01:00
Amaia Anabitarte b57e1c9590 MDL-67059 core_h5p: UI to manually upload H5P content type libraries
Co-authored by: Mihail Geshoski <mihail@moodle.com>
2019-11-07 16:54:28 +08:00
cescobedo 65ae2441f3 MDL-67043 core_h5p: Add new ws to get the H5P trusted file 2019-11-07 08:47:25 +01:00
Jun Pataleta cf29a4857a Merge branch 'MDL-66701_master' of git://github.com/dmonllao/moodle 2019-11-07 15:41:45 +08:00
David Monllaó d7d52aae15 MDL-66701 report_insights: Target's extra info on the insights report 2019-11-07 15:09:15 +08:00
emdalton 05b0e3158c MDL-66701 analytics: Insights report descriptions 2019-11-07 15:09:14 +08:00
Ryan Wyllie 2667acf121 MDL-66893 mod_forum: move grade button into region main 2019-11-07 14:53:38 +08:00
Ryan Wyllie 69848e719b MDL-66893 mod_forum: add nested v2 support to grader 2019-11-07 14:53:38 +08:00
Ryan Wyllie 8404c2b101 MDL-66893 mod_forum: update grader search 2019-11-07 14:53:38 +08:00
Ryan Wyllie 8a09616bc2 MDL-66893 mod_forum: add grader status to grader UI 2019-11-07 14:53:37 +08:00
Ryan Wyllie def5f14939 MDL-66893 mod_forum: update user picker in grader UI 2019-11-07 14:53:37 +08:00
Ryan Wyllie 035bd996cb MDL-66893 mod_forum: show expand conversation in nested view 2019-11-07 14:53:37 +08:00
Ryan Wyllie d9fedf3dc8 MDL-66893 mod_forum: update user content region in grader UI 2019-11-07 14:53:37 +08:00
Ryan Wyllie 4c98e56c96 MDL-66893 mod_forum: update navigation bar in grader UI 2019-11-07 14:53:37 +08:00
Ryan Wyllie 46d51c8ca9 MDL-66893 mod_forum: update grading panel UI in grader 2019-11-07 14:53:37 +08:00
Jun Pataleta ae05752048 Merge branch 'MDL-66372' of https://github.com/Chocolate-lightning/moodle_forum-project 2019-11-07 13:22:32 +08:00
Michael Hawkins cf8393be4b MDL-66372 forumreport_summary: Tidy up per page and bulk ops handling 2019-11-07 12:58:02 +08:00
Michael Hawkins 20b064beb0 MDL-66372 forumreport_summary: Added ability to select pagination size
This also includes some refactoring of the bulk actions menu, so both
elements are correctly position within the page, as well as fixing the
alignment of the bulk dropdown with the download dropdown.
2019-11-07 12:58:02 +08:00
Michael Hawkins d418bda8c7 MDL-66372 forumreport_summary: Improved generate with filters override
Previously this override simply appended any GET params from the
action it was overriding to the final action URL, now it can handle
overriding param values, so that they are updated or added as needed
2019-11-07 12:58:02 +08:00
Michael Hawkins 0d8cd4af31 MDL-66372 forumreport_summary: Report template cleanup 2019-11-07 12:58:02 +08:00
Adrian Greeve d5e303f8e3 Merge branch 'MDL-67057-master' of git://github.com/andrewnicols/moodle 2019-11-07 11:59:00 +08:00
Andrew Nicols 1c66ef98ed MDL-67057 h5p: Set framework file when saving package 2019-11-07 11:56:12 +08:00
Andrew Nicols 5730749f5d Merge branch 'MDL-66359-master' of git://github.com/Chocolate-lightning/moodle_forum-project 2019-11-07 10:48:33 +08:00
Mathew May 546bf3c68e MDL-66359 mod_forum: Restrict grader by groups 2019-11-07 10:47:45 +08:00
Mathew May e3bb3da406 MDL-66359 core_course: Modify get_enrolled_users_by_cmid
We need to also provide a user's group along with the current information
2019-11-07 10:47:45 +08:00
Jun Pataleta a65873c37d Merge branch 'MDL-66592_master' of git://github.com/dmonllao/moodle 2019-11-07 10:35:21 +08:00
Adrian Greeve 634485c56f Merge branch 'MDL-66890-master' of https://github.com/Chocolate-lightning/moodle_forum-project 2019-11-07 10:08:54 +08:00
Andrew Nicols 6f44f09495 Merge branch 'MDL-67076-master' of git://github.com/sarjona/moodle 2019-11-07 09:44:35 +08:00
Andrew Nicols 7edf0138fb MDL-67057 h5p: Language string fix 2019-11-07 09:37:27 +08:00
Andrew Nicols 884ba60a50 Merge branch 'MDL-67057-master' of git://github.com/andrewnicols/moodle 2019-11-07 09:20:27 +08:00
Andrew Nicols 021c180c83 MDL-67057 h5p: Remove unreachable code 2019-11-07 09:13:25 +08:00
Mihail Geshoski 6ac0f57073 MDL-66762 tool_dataprivacy: Sanitize the extra fields in the webservice 2019-11-07 09:00:19 +08:00
Paul Holden 7455b741c9 MDL-66762 user: escape extra/email user fields. 2019-11-07 09:00:19 +08:00
Paul Holden eb9f830604 MDL-66762 user: stricter email validation. 2019-11-07 09:00:19 +08:00
David Monllaó 9846b5f8c5 MDL-66592 analytics: Split text and link 2019-11-07 08:25:35 +08:00
David Monllaó 279f370b3f MDL-66592 report_insights: Help icon for indicator calculations desc 2019-11-07 08:25:35 +08:00
Tim Hunt 550599e001 MDL-67155 quiz: first attempt_step should record the student's userid 2019-11-07 00:08:49 +00:00
Sara Arjona c07f31ae2c MDL-67057 core_h5p: Add capability to update content-type libraries 2019-11-07 07:19:59 +08:00
Sara Arjona 7a0d9bd5e4 MDL-67057 core_h5p: New method to get latest library version 2019-11-07 07:19:59 +08:00
Sara Arjona 285976f1bd MDL-67057 core_h5p: Improve displaying errors 2019-11-07 07:19:59 +08:00
Sara Arjona 5a266a579c MDL-67057 core_h5p: Add helper class 2019-11-07 07:19:58 +08:00
Eloy Lafuente (stronk7) d6c704bf8e Merge branch 'MDL-42638-master' of https://github.com/lucaboesch/moodle 2019-11-06 22:32:56 +01:00
Eloy Lafuente (stronk7) c1f5154a10 Merge branch 'MDL-67127-master' of git://github.com/ferranrecio/moodle 2019-11-06 22:31:15 +01:00
Tim Hunt c9491626ab MDL-67153 question bank: let qtype add actions to the edit menu 2019-11-06 19:32:15 +00:00
Victor Deniz Falcon 5315acb47c MDL-67058 core_h5p: task to get latest content types version from H5P 2019-11-06 18:17:34 +00:00
Sara Arjona 56f6e1d970 Merge branch 'MDL-67140' of https://github.com/paulholden/moodle 2019-11-06 18:53:22 +01:00
sam marshall 81305c3bbe MDL-67149 Accessibility: Help popups fail WCAG 1.4.13 (Dismissable)
It must be possible to dismiss the help popups (popovers) with the
Escape key, without changing focus.
2019-11-06 16:24:30 +00:00
Jun Pataleta aaadb53649 MDL-67148 tool_mobile: Set auth_cas|auth_name config value in unit test
Thanks to Renaat Debleu for the fix suggestion!
2019-11-07 00:01:20 +08:00
Michael Hawkins 46fbfb98fe MDL-66890 forumreport_summary: Improved filter close keyboard response 2019-11-06 17:10:09 +08:00
Jun Pataleta 42001cdb91 Merge branch 'MDL-67097-master-2' of https://github.com/snake/moodle 2019-11-06 16:12:46 +08:00
Sara Arjona 43c584a7cc Merge branch 'MDL-66984-change_password_url-with-user' of https://github.com/brendanheywood/moodle 2019-11-06 08:30:41 +01:00
Michael Hawkins b2aa354d30 MDL-66890 forumreport_summary: Added the ability to close filters
Previously, filters could only be closed by saving/submitting them.
Now, you are able to close and reopen them by opening another filter,
using the escape key, or clicking outside of the filter.
As per UX recommendations, filters retain any changes until the page
is reloaded (either via refresh or by saving a different filter).
2019-11-06 15:27:51 +08:00
Ryan Wyllie 4e53672929 MDL-66893 grade: update rubric template for grader 2019-11-06 13:29:52 +08:00
Ryan Wyllie bf7018b6bd MDL-66893 grade: update marking guide template for grader 2019-11-06 13:29:52 +08:00
cescobedo c0c489bb06 MDL-67082 core_h5p: Add new contexts to check h5p file permissions 2019-11-06 12:51:04 +08:00
cescobedo 3f6c7446ff MDL-67082 core_h5p: Check component_callback called for right context 2019-11-06 12:51:04 +08:00
Jake Dallimore 827735ef26 Merge branch 'MDL-67074-master' of git://github.com/andrewnicols/moodle 2019-11-06 11:48:21 +08:00
Jake Dallimore b63cb5b496 MDL-67097 libraries: add unit test verifying rtl directive failure case
When a closing comment is used, such as when we wrap css with the
rtl:begin:ignore and rtl:end:ignore (the latter being the closing),
it is ignored in the following case:
- If the closing comment is the last item in a csslist like:
div {/*rtl:begin:ignore*/left:20px; text-align:left/*rtl:end:ignore*/}
in which case there is no css rule following the comment for it to be
associated with. It is therefore not seen and registered, meaning we
continue ignoring rtl (a bug).
In such cases, we should either:
- ensure the comment is not the final element in the css list
- use self-closing (/*rtl:ignore*/) comments for each rule instead.
- use a self-closing comment on the entire css list, if applicable.
2019-11-06 08:57:27 +08:00
Jake Dallimore e968eb1e8c MDL-67097 libraries: update upgrade notes for sabberworm/php-css-parser
Until the upstream patch is accepted, we need to patch this locally.
2019-11-06 08:57:27 +08:00
Jake Dallimore 88267b1c68 MDL-67097 libraries: fix comment parsing in php-css-parser library
This fixes a bug when parsing the following rule-level and list-level
comments.

div {/*rtl:ignore*/left:10px;/*rtl:ignore*/ display:inline;}
/*rtl:ignore*/div {left:10px;} /*rtl:ignore*/ a {left:10px}

The latter rtl directive was being swallowed by the parser in these
cases and was not being properly allocated as a property of the rule
or csslist.

This restores the correct behaviour of the rtlcss library, which depends
on php-css-parser.
2019-11-06 08:57:27 +08:00
Jake Dallimore 5aa7d19615 MDL-67097 libraries: add unit tests for the core_rtlcss class
The core_rtlcss class extends the \MoodleHQ\RTLCSS\RTLCSS class. This
upstream library had tests, but these were not included in core. This
change uses those test cases to test core_rtlcss, to make sure future
lib changes don't break the css parsing.
2019-11-06 08:57:26 +08:00
AMOS bot d6c1c81752 Automatically generated installer lang files 2019-11-06 00:16:18 +00:00
Adrian Perez a40cb785b0 MDL-67048 progressbar: use bootstrap component to fix invert colors 2019-11-05 22:33:27 +01:00
Tom Dickman 9d9e3a3da2 MDL-57635 tool_usertours: Restrict tours by user account details
This feature adds a filter for determining if a tour can be shown to a user based on when their account
was created, when they first accessed Moodle, when they last logged in to Moodle, or when the tour was
last updated.
This will allow the prevention of tour display to experienced Moodle users, allowing a tour to be
targetted at those who have been using Moodle for a shortened period and presumably require tour
information more.
2019-11-06 08:32:56 +11:00
Paul Holden dcab750551 MDL-67140 calendar: fix selector switching between days. 2019-11-05 16:41:12 +00:00
Luca Bösch c8f78f7106 MDL-42638 filters: Have emoticons respect <pre>. 2019-11-05 16:06:46 +01:00
Michael Hawkins aa86441b87 MDL-66161 output: Escaping fatal error message and URL strings 2019-11-05 13:44:37 +01:00
Juan Leyva 6d51e13f72 MDL-66377 user: Only allow active users to retrieve files via tokenpluginfile.php 2019-11-05 13:44:37 +01:00
Paul Holden 6330d48813 MDL-66228 mod_lesson: ensure return URL parameters are always local. 2019-11-05 13:44:37 +01:00
Eloy Lafuente (stronk7) 01aa126848 on-demand release 3.8dev+ 2019-11-05 13:34:51 +01:00
Eloy Lafuente (stronk7) d01d18cad8 NOBUG: Fixed SVG browser compatibility 2019-11-05 13:34:50 +01:00
Eloy Lafuente (stronk7) a42fec7739 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-11-05 13:34:49 +01:00
Ferran Recio fb2775c429 MDL-67127 mimetypes: add H5P to the default mime types list 2019-11-05 13:25:59 +01:00
Sara Arjona 40ea02e3ce Merge branch 'MDL-66399-master-fix' of git://github.com/andrewnicols/moodle 2019-11-05 11:06:14 +01:00
Andrew Nicols 2665f35cf0 MDL-67137 javascript: Add missing polyfills 2019-11-05 15:26:14 +08:00
Andrew Nicols 408eb5e0d9 MDL-66399 editor: Only set h5p settings if user can deploy 2019-11-05 14:19:08 +08:00
Adrian Greeve 2907f45106 Merge branch 'MDL-67047-master' of git://github.com/jleyva/moodle 2019-11-05 13:09:06 +08:00
Andrew Nicols b655690b04 MDL-67074 forum: Add a new toast region when in full screen mode 2019-11-05 12:10:51 +08:00
Andrew Nicols e943e7d56f Merge branch 'MDL-66381-master' of git://github.com/Chocolate-lightning/moodle_forum-project 2019-11-05 11:58:56 +08:00
Mathew May bdcf8908ae MDL-66381 mod_forum: User search and dropdown 2019-11-05 11:58:28 +08:00
Jake Dallimore 7296c718a1 Merge branch 'MDL-66455-master' of git://github.com/lameze/moodle 2019-11-05 11:42:48 +08:00
Paul Holden 8d09b8cab6 MDL-58827 user: add institution & department filters. 2019-11-05 00:16:13 +00:00
AMOS bot 3f59f2693b Automatically generated installer lang files 2019-11-05 00:10:17 +00:00
Eloy Lafuente (stronk7) ea07527210 Merge branch 'MDL-67117-master-2' of git://github.com/marinaglancy/moodle 2019-11-05 01:03:58 +01:00
Jun Pataleta 08636b8524 Merge branch 'MDL-66582-master' of git://github.com/jleyva/moodle 2019-11-04 19:39:24 +08:00
Adrian Greeve f025022d62 Merge branch 'MDL-66679-master' of https://github.com/sammarshallou/moodle 2019-11-04 19:21:42 +08:00
Jake Dallimore f33ea855bf Merge branch 'MDL-67093-master' of git://github.com/andrewnicols/moodle 2019-11-04 19:21:41 +08:00
Adrian Greeve b00b51aab6 Merge branch 'MDL-66770-master-2' of https://github.com/ryanwyllie/moodle 2019-11-04 19:21:41 +08:00
Jun Pataleta fd8c021447 Merge branch 'MDL-67039_master' of git://github.com/dmonllao/moodle 2019-11-04 19:21:41 +08:00
Jun Pataleta fcc1facdca Merge branch 'MDL-66373-master-2' of https://github.com/Chocolate-lightning/moodle_forum-project 2019-11-04 19:21:40 +08:00
Adrian Greeve 385d07f6af Merge branch 'MDL-43189-master' of git://github.com/snake/moodle 2019-11-04 19:21:40 +08:00
Eloy Lafuente (stronk7) fa6c694baf Merge branch 'MDL-66990-master-enfix' of git://github.com/mudrd8mz/moodle 2019-11-04 19:21:40 +08:00
Adrian Greeve 69ff7df008 Merge branch 'MDL-46779-master' of https://github.com/ryanwyllie/moodle 2019-11-04 19:21:40 +08:00
Adrian Greeve f87a2e6fa0 Merge branch 'MDL-46779-master' of https://github.com/ryanwyllie/moodle 2019-11-04 19:21:39 +08:00
Adrian Greeve 0de5da02eb Merge branch 'MDL-66770-master-2' of https://github.com/ryanwyllie/moodle 2019-11-04 19:21:39 +08:00
Andrew Nicols 691c570776 Merge branch 'MDL-67087-master' of git://github.com/marinaglancy/moodle 2019-11-04 19:21:39 +08:00
Ryan Wyllie 9cec5dcaae MDL-66770 mod_forum: fix subscription behat tests 2019-11-04 11:29:29 +08:00
Michael Hawkins a949653167 MDL-66373 forumreport_summary: Introduced dates filter
Added the dates data filter, and refactored summaryreport_table to
handle passing filter content into the base SQL. Previously it was only
possible to add filter content into a separate part of the query.
2019-11-04 10:04:57 +08:00
Michael Hawkins 23affd76c2 MDL-66373 calendar: Added datetimes to timestamps conversion web service 2019-11-04 10:04:57 +08:00
Elizabeth Dalton 7229c5e6b5 MDL-66592 analytics: Descriptions for indicator calculations 2019-11-04 09:49:59 +08:00
David Monllaó b92c764872 MDL-67039 analytics: Unit tests for unidimensional arrays 2019-11-04 09:33:50 +08:00
David Monllaó 47b506e2f7 MDL-67039 analytics: Unidimensional array if no predictions 2019-11-04 09:32:05 +08:00
Marina Glancy 553b17a2c0 MDL-67117 filter_mathjaxloader: do not position to hash 2019-11-03 14:48:23 +01:00
AMOS bot a1d18d0218 Automatically generated installer lang files 2019-11-02 00:09:21 +00:00
Helen Foster 7ac4c9c1f6 MDL-66990 lang: Import fixed English strings (en_fix)
Significant string changes:

* hidegrader_help,mod_assign - note about setting having no effect on
  comments box
* configdefaultrequestcategory, configenablecourserequests,
  configlockrequestcategory, lockrequestcategory, core_admin - clearer
  explanation
* configenablecompletion,core_completion - including reason for setting
  activity completion conditions
* emailstop,core - clearer wording
* setuplink_desc,tool_mobile - including where the app download page
  link is displayed and leaving the setting empty
2019-11-01 11:16:10 +01:00
Shamim Rezaie fffb043eae MDL-43189 core: improve validating db settings during cli install 2019-11-01 15:44:40 +08:00
Shamim Rezaie 6def9cd253 MDL-43189 core: Validate db prefix during installation 2019-11-01 15:44:40 +08:00
Ryan Wyllie ef2afe4c3d MDL-46779 editor: fix case of emoji picker lang string 2019-11-01 14:34:14 +08:00
Ryan Wyllie 667e5fd93f MDL-66770 mod_forum: put nested v2 display mode behind user preference 2019-11-01 13:17:24 +08:00
Ryan Wyllie 2602c7bfb5 MDL-66770 mod_forum: rename modern display mode to nested v2 2019-11-01 13:17:24 +08:00
Ryan Wyllie 787762b17a MDL-66770 mod_forum: move view selector out of settings drawer 2019-11-01 13:17:24 +08:00
Ryan Wyllie 1aac58b280 MDL-66770 mod_forum: move permalink into menu in modern display 2019-11-01 13:17:24 +08:00
Ryan Wyllie 1dced2a410 MDL-66770 theme: change switch styling from iOS to Material Design 2019-11-01 13:17:24 +08:00
Ryan Wyllie 9aa3a11d0e MDL-66770 mod_forum: change columns in discussion list table
Show the last post user, remove discussion author image, and fix
column widths to the size of the content.
2019-11-01 13:17:24 +08:00
Ryan Wyllie 454d76f689 MDL-66770 mod_forum: move subscription from menu into toggle 2019-11-01 13:17:24 +08:00
Ryan Wyllie 11786e6688 MDL-46779 editor: add emoji picker atto plugin 2019-11-01 12:43:34 +08:00
Mathew May 9d752481fc MDL-66381 core_course: Modify get_enrolled_users_by_cmid
We need to also provide a user's picture along with the current information
2019-11-01 11:46:37 +08:00
Andrew Nicols f18ab990f2 Merge branch 'MDL-67100-master' of git://github.com/sarjona/moodle 2019-11-01 11:07:40 +08:00
Andrew Nicols 760a745afc Merge branch 'MDL-66399-master-6' of git://github.com/bmbrands/moodle 2019-11-01 10:45:22 +08:00
Andrew Nicols cd0a9144b4 Merge branch 'MDL-66398-master' of git://github.com/aanabit/moodle 2019-11-01 10:39:08 +08:00
Jun Pataleta eb13152579 Merge branch 'MDL-67067-master' of git://github.com/mihailges/moodle 2019-11-01 10:07:13 +08:00
Ryan Wyllie 7a2d4f546f MDL-66770 mod_forum: general UI tweaks 2019-11-01 09:59:11 +08:00
Andrew Nicols f2a901173e MDL-67093 grading: Fetch cm with get_fast_modinfo 2019-11-01 08:49:12 +08:00
Eloy Lafuente (stronk7) 6e4cee745b Merge branch 'MDL-66807_master' of git://github.com/dmonllao/moodle 2019-11-01 00:08:16 +01:00
Daniel Poggenpohl a009aad404 MDL-67016 profile: current user should see his own courses 2019-10-31 14:35:56 +01:00
Juan Leyva 52e0935691 MDL-67047 block_myoverview: Return custom fields selector values 2019-10-31 14:24:25 +01:00
Eloy Lafuente (stronk7) e04a73ccc0 on-demand release 3.8dev+ 2019-10-31 13:35:27 +01:00
Eloy Lafuente (stronk7) c3f2976047 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-10-31 13:35:20 +01:00
Juan Leyva 62a08b1df8 MDL-66582 tool_mobile: Clean URLs from auth plugins
In order to avoid the WebService to break we must double check that URLs coming from auth plugins are valid.
2019-10-31 12:03:39 +01:00
Johan Dobbelstein 5b39bf184d MDL-66582 auth: Fix empty auth_logo in CAS/Shibboleth auth plugins
* set $idp['iconurl'] = null if no auth_logo
* lib/templates/loginform.mustache will skip NULL iconurls
* lib/ajax/service?info=tool_mobile_get_public_config will validate the NULL values
2019-10-31 12:03:39 +01:00
Simey Lameze 65137025ff MDL-66455 calendar: add coverage for event types in subscription page 2019-10-31 18:44:14 +08:00
Simey Lameze 19bea57b90 MDL-66455 calendar: show site level subscriptions 2019-10-31 18:44:14 +08:00
Jake Dallimore 817dee3337 MDL-67086 css: Reverting MDL-66982, causing global RTL problems
Revert "Merge branch 'MDL-66982_master' of https://github.com/nadavkav/moodle"

This reverts commit 7ddf5ab75e, reversing
changes made to 32b625b6de.
2019-10-31 11:13:30 +01:00
Sara Arjona ca7de4b6d7 MDL-67100 core_h5p: Add autoloader to the h5p_file_storage_test 2019-10-31 11:07:16 +01:00
Bas Brands 59e87e6274 MDL-66399 atto_h5p: allow h5p file uploads in atto 2019-10-31 10:58:37 +01:00
Adrian Greeve fcad5ca254 Merge branch 'MDL-66074-OCT28' of git://github.com/Chocolate-lightning/moodle_forum-project 2019-10-31 15:33:37 +08:00
Mathew May b1909eebed MDL-66074 mod_forum: Correct 0 length styles 2019-10-31 15:30:48 +08:00
Adrian Greeve be153c65d9 Merge branch 'MDL-66247-master' of git://github.com/andrewnicols/moodle 2019-10-31 14:34:52 +08:00
Adrian Greeve d0d78c36f8 Merge branch 'MDL-66074-OCT28' of git://github.com/Chocolate-lightning/moodle_forum-project 2019-10-31 13:38:49 +08:00
Mathew May fdf26fea78 MDL-66074 tool_dataprivacy: Raise the expected download file size 2019-10-31 12:55:55 +08:00
David Monllaó 87e5342a5b MDL-66807 analytics: Fix templates for gmail 2019-10-31 11:41:53 +08:00
Andrew Nicols 9bacc49d78 Merge branch 'MDL-67088-master' of git://github.com/marinaglancy/moodle 2019-10-31 11:07:56 +08:00
Andrew Nicols d1529dc66d MDL-66247 accessibility: Correct notification alert role support 2019-10-31 07:29:58 +08:00
Eloy Lafuente (stronk7) 61bf77ff9a Merge branch 'MDL-67038_master' of git://github.com/dmonllao/moodle 2019-10-31 00:28:45 +01:00
Marina Glancy 02282f8c49 MDL-67088 mod_assign: compare time without case for MacOS compat 2019-10-30 19:23:38 +01:00
Eloy Lafuente (stronk7) 54b3ffa0f5 MDL-66074 mod_forum: fix SQL whitespace causing oracle to fail 2019-10-30 19:19:12 +01:00
Marina Glancy bcfa5e248c MDL-67087 cachestore_redis: fix warning in phpunit 2019-10-30 18:52:22 +01:00
Marina Glancy 943e3f04d5 MDL-67073 core_course: fix capability context 2019-10-30 18:36:03 +01:00
sam marshall 225eb7b27e MDL-66679 Forms: Submit button remains disabled after file download
When you download a file directly from a Moodle form submit button,
the submit button disables when you click it, but you remain on that
page so we need to re-enable the button.

This commit causes it to re-enable once the file download finishes,
setting a temporary cookie to indicate this to the JavaScript code.

It also adds a method to disable the system on a given form by
setting data-double-submit-protection="off".
2019-10-30 16:36:28 +00:00
Amaia Anabitarte acae15c710 MDL-66398 filter_displayh5p: Enabled by default. Fixing Unit tests 2019-10-30 12:14:27 +01:00
Amaia Anabitarte 6d2c5025b2 MDL-66398 filter_h5p: Improve H5P filter to allow internal file URLs 2019-10-30 12:14:27 +01:00
Eloy Lafuente (stronk7) 9554d68ddf Merge branch 'MDL-66593-master' of git://github.com/cescobedo/moodle 2019-10-30 11:19:40 +01:00
Sara Arjona 743462111f MDL-67076 core_h5p: Add preventredirect parameter to embed 2019-10-30 10:04:26 +01:00
Mihail Geshoski ab02687e30 MDL-67067 core_h5p: Fix coding style issues and undocumented functions 2019-10-30 15:22:40 +08:00
Mihail Geshoski b54ab19093 MDL-67067 core_h5p: Remove unused method in framework implementation 2019-10-30 15:22:25 +08:00
Mihail Geshoski abf6d1c395 MDL-67067 core_h5p: Load cached assets by default 2019-10-30 15:21:57 +08:00
Jake Dallimore f3b08d9994 Merge branch 'MDL-64254-master' of git://github.com/jleyva/moodle 2019-10-30 14:35:42 +08:00
cescobedo e24f4a2ecd MDL-66593 core_backup: Replace h5p/embed.php url for H5PEMBED@$ 2019-10-30 06:46:35 +01:00
Adrian Greeve 51cc5e1789 Merge branch 'MDL-66074-OCT28' of git://github.com/Chocolate-lightning/moodle_forum-project 2019-10-30 13:44:59 +08:00
Mathew May c38eb13585 MDL-66074 mod_forum: Forum grading GDPR provider 2019-10-30 13:03:59 +08:00
Mathew May a62c68fb5f MDL-66074 mod_forum: Mustache and PHP documentation for grading 2019-10-30 13:03:59 +08:00
Mathew May 61d508be0a MDL-66074 mod_forum: Add sorting in WS for discussion fetching 2019-10-30 13:03:59 +08:00
Mathew May a3a3a4f80c MDL-66074 mod_forum: Grader module documentation 2019-10-30 13:03:59 +08:00
Mathew May cc1a7689cd MDL-66074 mod_forum: Grader interface documentation 2019-10-30 13:03:59 +08:00
Mathew May 046ebd3ac3 MDL-66074 mod_forum: Grader documentation 2019-10-30 13:03:59 +08:00
Mathew May 4ab14bbb00 MDL-66074 mod_forum: Documentation and hiding conversation elements 2019-10-30 13:03:59 +08:00
Mathew May e0bc21946a MDL-66074 core_toast: Documentation 2019-10-30 13:03:59 +08:00
Mathew May 072ee7f750 MDL-66074 core_form: Foce point value to always be 100 2019-10-30 13:03:59 +08:00
Mathew May 9f1195fa66 MDL-66074 core_grade: Documentation 2019-10-30 13:03:59 +08:00
Mathew May 47919bbe78 MDL-66074 gradingform_rubric: Documentation and selectors 2019-10-30 13:03:59 +08:00
David Monllaó ef05f29267 MDL-67038 analytics: Remove null strings from the DB 2019-10-30 12:40:32 +08:00
Jun Pataleta 0a0dfc4475 Merge branch 'MDL-67054' of https://github.com/stronk7/moodle 2019-10-30 10:38:20 +08:00
Mathew May 9c2c79f5fb MDL-66074 gradingform_guide: Documentation and selectors 2019-10-30 10:23:41 +08:00
Mathew May dc0145b19e MDL-66074 core_course: Correct documentation 2019-10-30 10:23:41 +08:00
Mathew May eb9df053eb MDL-66697 gradingform_rubric: Support new grading panel
Part of MDL-66074
2019-10-30 10:23:41 +08:00
Andrew Nicols ce1c470167 MDL-66841 forum: Display grade update errors to user
Part of MDL-66074

This change modifies the return val for all of the grading functions to
allow them to add additional information.
This means that a grading service can suppress a Grade saved message if
there were no changes, for example.

This also adds a distinction between:
- Errored (Exception thrown in the WS call)
- Failed (Warning in the output of the WS call)
- Success (Grade actually saved)
- None of the above (No save, no fail, no change)
2019-10-30 10:23:41 +08:00
Mathew May 18dd283a0e MDL-66074 mod_forum: Implement spinner for user change 2019-10-30 10:23:41 +08:00
Mathew May 1d709d7678 MDL-66074 mod_forum: Relocate the grader button
Also adding capability checks to the button.
2019-10-30 10:23:41 +08:00
Andrew Nicols aa04b722f3 MDL-66074 mod_forum: Make initial user id optional 2019-10-30 10:23:41 +08:00
Andrew Nicols eaee64778b MDL-66845 mod_forum: Hook up save button
Part of MDL-66074
2019-10-30 10:23:41 +08:00
Andrew Nicols 45c0584c55 MDL-66845 mod_forum: Convert user picker to class
Part of MDL-66074
2019-10-30 10:23:41 +08:00
Andrew Nicols c72f5e33c5 MDL-66845 core: YUI Dialogues should have the same zIndex as bootstrap
Part of MDL-66074

This change allows YUI Modals to sit in the same space above the
fullscreen modal and other such elements.
2019-10-30 10:23:41 +08:00
Mathew May 3d58c1be3d MDL-66365 mod_forum: Add a modal to show a selected post in context
Part of MDL-66074
2019-10-30 10:23:41 +08:00
Andrew Nicols 77ee8778a8 MDL-66828 mod_forum: Display notification on grade save
Part of MDL-66074
2019-10-30 10:23:41 +08:00
Andrew Nicols 224ea04e68 MDL-66828 core: Add toast-style notifications
Part of MDL-66074
2019-10-30 10:23:41 +08:00
Andrew Nicols b253a4f21d MDL-66809 core_grades: Implement scale-based marking
Part of MDL-66074
2019-10-30 10:23:41 +08:00
Andrew Nicols 38f3bd93af MDL-66700 gradingform_guide: Support new grading panel
Part of MDL-66074
2019-10-30 10:23:41 +08:00
Andrew Nicols 57732a1c8e MDL-66700 theme: Add form inset capabiity
Part of MDL-66074

This allows a button to be insert into the left or right of a form
element.
2019-10-30 10:23:40 +08:00
Simey Lameze d3b890f85e MDL-66362 mod_forum: Add forum name to the grading panel breadcrumb
Part of MDL-66074
2019-10-30 10:23:40 +08:00
Andrew Nicols f281c61642 MDL-66722 mod_forum: Pull grader into UI
Part of MDL-66074
2019-10-30 10:23:40 +08:00
Andrew Nicols 09f92d6644 MDL-66722 forum: Add the grading component information
Part of MDL-66074
2019-10-30 10:23:40 +08:00
Andrew Nicols 9adedccd2b MDL-66722 core_grades: Add simple direct grading to gradingpanel
Part of MDL-66074
2019-10-30 10:23:40 +08:00
Andrew Nicols f8da1b9353 MDL-66722 forum: Add gradeitem storage handler
Part of MDL-66074
2019-10-30 10:23:40 +08:00
Andrew Nicols 65903bd414 MDL-66722 grade: Add coverage files
Part of MDL-66074
2019-10-30 10:23:40 +08:00
Andrew Nicols 94d5227916 MDL-66696 forum: Add forum_grades table
Part of MDL-66074
2019-10-30 10:23:40 +08:00
Andrew Nicols 92b229c5f4 MDL-66079 mod_forum: Add forum grade support
Part of MDL-66074
2019-10-30 10:23:40 +08:00
Andrew Nicols dc86a0f1c6 MDL-66079 mod_forum: Add field to support whole forum grading
Part of MDL-66074
2019-10-30 10:23:40 +08:00
Andrew Nicols 629726dd3f MDL-66079 assign: Switch to new gradeitem API
Part of MDL-66074
2019-10-30 10:23:40 +08:00
Andrew Nicols 1adda7ada6 MDL-66079 workshop: Switch to new gradeitem API
Part of MDL-66074
2019-10-30 10:23:40 +08:00
Andrew Nicols fcc88fddba MDL-66079 core_grades: Add support for multiple grade items in an activity
Part of MDL-66074
2019-10-30 10:23:40 +08:00
Mathew May bae674695f MDL-66077 mod_forum: Basic forum grader implementation
Part of MDL-66074
2019-10-30 10:23:40 +08:00
Mathew May 34e6dd2475 MDL-66078 mod_forum: Add webservice to pull discussion data for user
Part of MDL-66074
2019-10-30 10:23:40 +08:00
AMOS bot 5b9b24dfee Automatically generated installer lang files 2019-10-30 00:10:46 +00:00
Eloy Lafuente (stronk7) 25676441b3 MDL-67054 upgrade: prevent potential PHP notice
In some sites $CFG->requestcategoryselection may be not defined.

So this just wraps the use within empty, keeping the spirit intact,
aka, invert whatever the precious setting was storing.

null, 0, false, '0' => 1
1, true, '1' => 0
2019-10-29 23:27:26 +01:00
Eloy Lafuente (stronk7) d7699706da on-demand release 3.8dev+ 2019-10-29 21:03:47 +01:00
Eloy Lafuente (stronk7) 9eebe2c0bd NOBUG: Fixed file access permissions 2019-10-29 21:03:47 +01:00
Eloy Lafuente (stronk7) 229ce2a754 NOBUG: Fixed SVG browser compatibility 2019-10-29 21:03:41 +01:00
Eloy Lafuente (stronk7) 2474ed002c Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-10-29 21:03:40 +01:00
Juan Leyva 0a063e6dea MDL-64254 mod_forum: New WS mod_forum_update_discussion_post 2019-10-29 13:52:07 +01:00
Juan Leyva 131bfaa8cd MDL-64254 mod_forum: New WS mod_forum_prepare_draft_area_for_post 2019-10-29 12:13:23 +01:00
Juan Leyva 9a023ef3b4 MDL-64254 mod_forum: New WS mod_forum_get_discussion_post 2019-10-29 12:13:20 +01:00
Jake Dallimore 82ed166c1f Merge branch 'MDL-66945' of git://github.com/stronk7/moodle 2019-10-29 14:55:43 +08:00
Jake Dallimore 72a5ab2130 Merge branch 'MDL-66965' of https://github.com/stronk7/moodle 2019-10-29 14:13:00 +08:00
Andrew Nicols b57c47ce2e MDL-66609 core_h5p: Trailing whitespace fix 2019-10-29 11:27:44 +08:00
Andrew Nicols 884670687f MDL-66609 core_h5p: Whitespacep fix 2019-10-29 11:23:07 +08:00
Andrew Nicols 6850374bf5 MDL-66609 core: Version bump for h5p 2019-10-29 10:45:55 +08:00
Andrew Nicols 08460f270f Merge branch 'MDL-66609-master' of git://github.com/andrewnicols/moodle 2019-10-29 10:44:31 +08:00
Sara Arjona 8fda136dc8 MDL-66609 core_h5p: Add capability to deploy H5P content 2019-10-29 10:22:44 +08:00
Amaia Anabitarte a3cdaa8dd9 MDL-66609 core_h5p: Autoload for H5P third party library classes 2019-10-29 10:22:44 +08:00
Mihail Geshoski df74cd4aea MDL-66609 core_h5p: Use factory methods instead of framework::instance() 2019-10-29 10:22:44 +08:00
Sara Arjona 5da7a7fc31 MDL-66609 core_h5p: Change core files when upgrading lib
This commit contains the changes required when upgrading the H5P
PHP library.
2019-10-29 10:22:44 +08:00
Sara Arjona 6415316646 MDL-66609 core_h5p: Upgrade H5P library to 1.24 2019-10-29 10:22:43 +08:00
Sara Arjona 810d7a3d2e MDL-66609: core_h5p: Add <component>_get_path_from_pluginfile method
This method has been added to all the components having some exceptions
with the way they treat the itemid in the pluginfile paths.
2019-10-29 10:22:43 +08:00
Andrew Nicols 9e67f5e366 MDL-66609 core_h5p: Make use of upstream change for getting itemid 2019-10-29 10:22:43 +08:00
Andrew Nicols 6faafc0c8e MDL-66609 core_h5p: Add getDependencyPath to H5P library 2019-10-29 10:22:43 +08:00
Amaia Anabitarte e96569cc1e MDL-66609 core_h5p: Unit test coverage 2019-10-29 10:22:43 +08:00
Sara Arjona f41a75f6f0 MDL-66609 core_h5p: Update the h5p-resizer.js in the filter 2019-10-29 10:22:43 +08:00
Sara Arjona 01923a07aa MDL-66609 core_h5p: Add new strings 2019-10-29 10:22:43 +08:00
Sara Arjona 35221a2e15 MDL-66609 core_h5p: Add some H5P styles to themes 2019-10-29 10:22:43 +08:00
Sara Arjona 360755cc56 MDL-66609 core_h5p: New capability h5p:setdisplayoptions 2019-10-29 10:22:43 +08:00
Sara Arjona 60bd7a8021 MDL-66609 core_h5p: Update phpunit.xml.dist 2019-10-29 10:22:43 +08:00
Sara Arjona b6fb5f0362 MDL-66609 core_h5p: Update the h5p-resizer.js reference in Atto 2019-10-29 10:22:43 +08:00
Mihail Geshoski 27fa4ba3d4 MDL-66609 core_h5p: Unit test framework interface implementation 2019-10-29 10:22:43 +08:00
Mihail Geshoski 09d8143d84 MDL-66609 core_h5p: Framework interface implementation 2019-10-29 10:22:43 +08:00
Sara Arjona 35b62d00b8 MDL-66609 core_h5p: Player and embed.php implementation 2019-10-29 10:22:43 +08:00
Adrian Greeve 9ea303e773 MDL-66609 core_h5p: Unit tests for file_storage. 2019-10-29 10:22:43 +08:00
Adrian Greeve e55cc513f4 MDL-66609 core_h5p: Implement the file_storage interface. 2019-10-29 10:22:43 +08:00
Amaia Anabitarte bb4f59f80f MDL-66609 core_h5p: Creating new H5P tables 2019-10-29 10:22:43 +08:00
Amaia Anabitarte 45899564b3 MDL-66609 core_h5p: New core_h5p subsystem
New H5P libraries have been added to Moodle core_h5p in /lib/h5p.
2019-10-29 10:22:43 +08:00
Andrew Nicols 501c568e3e Merge branch 'MDL-67027' of https://github.com/paulholden/moodle 2019-10-29 08:43:12 +08:00
Eloy Lafuente (stronk7) 7ddf5ab75e Merge branch 'MDL-66982_master' of https://github.com/nadavkav/moodle 2019-10-28 20:12:20 +01:00
Eloy Lafuente (stronk7) 32b625b6de Merge branch 'MDL-66956' of https://github.com/timhunt/moodle 2019-10-28 19:41:58 +01:00
Eloy Lafuente (stronk7) 9cc98e2af1 Merge branch 'MDL-66989-master' of git://github.com/mihailges/moodle 2019-10-28 19:34:56 +01:00
Andrew Nicols 7e50ca7645 MDL-66945 composer: Update behat extension
(using php71 for this branch)

This uses a new version of the moodlehq-behat-extension which ensures
that a node is visible and in the view port before it is clicked on.

This resolves an issue with Firefox on Ubuntu 18.04 whereby the node is
only brought into the viewport instead of clicked on.
2019-10-28 13:14:27 +01:00
Andrew Nicols 5123b5c9d7 MDL-66722 forum: Add grade capability
Part of MDL-66074
2019-10-28 13:55:50 +08:00
Andrew Nicols 1e8184f022 MDL-66370 mod_forum: Make a full screen layout
Part of MDL-66074
2019-10-28 13:55:13 +08:00
Mathew May 06e50afd5e MDL-66077 course: Add WS to get list of users in a cmid
Part of MDL-66074
2019-10-28 13:55:12 +08:00
Andrew Nicols af9ca2a658 MDL-66077 core: Loadingicon needs jQuery nodes
Part of MDL-66074
2019-10-28 13:55:12 +08:00
Andrew Nicols 373d43aef1 MDL-66074 core: Add a renderForPromise function
Promises only take a single argument so this makes it easier to chain
promises and use them with await.
2019-10-28 13:55:12 +08:00
Jun Pataleta 46f1284768 Merge branch 'm38_MDL-65811_Fix_Incorrect_ORDER_BY_Search' of https://github.com/scara/moodle 2019-10-28 11:37:27 +08:00
AMOS bot 1a96f38ad0 Automatically generated installer lang files 2019-10-28 00:09:09 +00:00
AMOS bot 4cd736ceec Automatically generated installer lang files 2019-10-27 00:09:06 +00:00
Matteo Scaramuccia aa0a602b10 MDL-65811 database: Fix subsetting in MSSQL 2019-10-25 23:00:32 +02:00
Paul Holden c0c9cf32f2 MDL-67027 calendar: fix event update form validation. 2019-10-25 17:30:47 +01:00
Eloy Lafuente (stronk7) 88d29a1bb8 MDL-66965 core: php74 curly 2 square braces changes
Note this only modified core files, still there are a lot
of curly brace uses but all them are within 3rd part
libraries and will be handled apart.
2019-10-25 17:41:10 +02:00
Eloy Lafuente (stronk7) 50a1d9372f on-demand release 3.8dev+ 2019-10-25 15:30:04 +02:00
Eloy Lafuente (stronk7) 5306a066d0 NOBUG: Fixed SVG browser compatibility 2019-10-25 15:30:02 +02:00
Eloy Lafuente (stronk7) db105a5fe6 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-10-25 15:30:01 +02:00
Mihail Geshoski 8cc2a8c780 MDL-66989 tool_uploaduser: Fix incorrect 'More help' link in help popup 2019-10-25 11:49:03 +08:00
Jake Dallimore 6cc1190638 Merge branch 'master_MDL-66973' of https://github.com/golenkovm/moodle 2019-10-25 11:09:49 +08:00
Jun Pataleta c23313f6e8 Merge branch 'MDL-66968' of https://github.com/stronk7/moodle 2019-10-25 10:20:05 +08:00
Adrian Greeve 7067db2847 Merge branch 'MDL-62485' of https://github.com/willianmano/moodle 2019-10-25 09:32:22 +08:00
Adrian Greeve b3e6241737 Merge branch 'MDL-65017-master-fix' of git://github.com/junpataleta/moodle 2019-10-25 08:58:48 +08:00
Jun Pataleta acdce3a0e4 MDL-65017 mod_forum: Test based on event type and not objectid
* Plus fix warning about \test_capability_manager::can_delete_post()
2019-10-25 08:39:32 +08:00
Jake Dallimore c5d333efe8 Merge branch 'MDL-66493-readstring_accel' of https://github.com/brendanheywood/moodle 2019-10-25 08:25:41 +08:00
Eloy Lafuente (stronk7) f4feabb83f MDL-66968 php74: array_key_exists() for objects is deprecated
Replace it for correct property_exists() when the element
being inspected is a property of object/class.

Amended and squased changes:
- keep mongo unmodified. The information is array, hence correct.
- fix a couple of messaging phpdocs that were incorrect.

Amended take#2:
- As far as mongo resturns BSONDocument that is ArrayObject, aka
implements ArrayAccess, we have decided to explicitly cast results
to array so existing array_key_exists() and other accesses will
continue working the same.
2019-10-25 00:49:04 +02:00
Willian Mano 7a27c90102 MDL-62485 enrol: Success message after enroll/unenroll user in a course 2019-10-24 13:43:27 -03:00
Jun Pataleta 9f1af3771d Merge branch 'MDL-66543-master' of git://github.com/tobiasreischmann/moodle 2019-10-24 23:08:43 +08:00
Tobias Reischmann 556c4f3309 MDL-66543 forms: Make (hard) frozen textareas readonly (or disabled) 2019-10-24 13:44:15 +02:00
Brendan Heywood d6f5fbb720 MDL-66493 filelib: readstring_accel should never use xsendfile 2019-10-24 21:30:46 +11:00
Eloy Lafuente (stronk7) 2ffdd72618 Merge branch 'MDL-66935-lock-clashes' of https://github.com/brendanheywood/moodle 2019-10-24 09:59:19 +02:00
Adrian Greeve 4c4413922f Merge branch 'MDL-66876-master' of git://github.com/jleyva/moodle 2019-10-24 15:14:45 +08:00
Adrian Greeve e1aebcfdd8 Merge branch 'MDL-65017-master' of git://github.com/jleyva/moodle 2019-10-24 13:53:01 +08:00
Jun Pataleta ff7cf74d6d Merge branch 'MDL-66927-run-new-adhoc' of https://github.com/brendanheywood/moodle 2019-10-24 13:45:27 +08:00
Brendan Heywood 7e086935e3 MDL-66935 core_lock: Fix resource key clashes in db and postgres locks 2019-10-24 15:04:56 +11:00
Jun Pataleta 68a65b0039 Merge branch 'MDL-65896-int-fix-1' of https://github.com/ryanwyllie/moodle 2019-10-24 12:00:45 +08:00
Ryan Wyllie 7b8d852929 MDL-65896 core: more IE11 fixes for emoji picker 2019-10-24 10:41:52 +08:00
Jake Dallimore ebca610a44 Merge branch 'MDL-65400-master' of git://github.com/jleyva/moodle 2019-10-24 09:28:31 +08:00
AMOS bot bf36f7defb Automatically generated installer lang files 2019-10-24 00:09:17 +00:00
Eloy Lafuente (stronk7) e0ad4189a5 Merge branch 'MDL-64298-master' of git://github.com/jleyva/moodle 2019-10-23 22:21:39 +02:00
Eloy Lafuente (stronk7) aedd166c67 Merge branch 'MDL-67001-master' of https://github.com/lucaboesch/moodle 2019-10-23 22:16:22 +02:00
Eloy Lafuente (stronk7) 2a724095bd Merge branch 'MDL-67004-master' of git://github.com/dpalou/moodle 2019-10-23 19:50:38 +02:00
Eloy Lafuente (stronk7) d020e1b779 Merge branch 'MDL-65349-profile-match-greedy' of https://github.com/brendanheywood/moodle 2019-10-23 18:35:46 +02:00
Juan Leyva 016cffb936 MDL-64298 gradereport_user: Fix WS returned parameter description
feedbackformat must be optional always
2019-10-23 17:56:09 +02:00
Sara Arjona 8321ecbfcd Merge branch 'master_MDL-66225_async_backup_state' of https://github.com/mattporritt/moodle 2019-10-23 17:39:10 +02:00
Juan Leyva e613b1ff43 MDL-66876 core_filter: Fix context in Web Service warning 2019-10-23 17:06:56 +02:00
Juan Leyva bc72a54cb1 MDL-65400 block: Support returning settings for core blocks 2019-10-23 15:33:56 +02:00
Juan Leyva c9acdfb6dc MDL-65400 block: Support getting block settings via WS 2019-10-23 15:33:56 +02:00
Dani Palou 187b11f40d MDL-67004 enrol: Include core_enrol_search_users in the mobile service 2019-10-23 12:59:34 +02:00
Sara Arjona 344bb67df3 Merge branch 'MDL-66676_master' of https://github.com/nadavkav/moodle 2019-10-23 12:07:24 +02:00
Luca Bösch f68616d750 MDL-67001 question: alignment and form spaces. 2019-10-23 10:59:24 +02:00
Ryan Wyllie 628b4ca262 MDL-65896 core: fix emoji picker IE11 support 2019-10-23 15:25:27 +08:00
Jun Pataleta b9b10b900d MDL-65896 admin: Fix checking for full unicode support
Instead of checking whether the charset is set to 'utf8' when
determining full unicode support, it should be checking whether the
charset is set to 'utf8mb4'.
2019-10-23 15:25:27 +08:00
Jun Pataleta b412069977 Merge branch 'MDL-66971-master' of git://github.com/peterRd/moodle 2019-10-23 14:55:46 +08:00
Matt Porritt 698222f6cb MDL-66225 Backup: fix irrecoverable state
Fix condition where if an asynchronous backup
completes via the UI and the user refreshes the
page a new backup was created with a mismatched
backup id.
This caused a permanently failing ad-hoc task
and blocked further backups for that course.
2019-10-23 04:20:00 +00:00
Jun Pataleta b6fcec009e Merge branch 'MDL-65896-master' of https://github.com/ryanwyllie/moodle 2019-10-23 11:13:27 +08:00
Adrian Greeve 3a8b78b19f Merge branch 'MDL-63125' of https://github.com/paulholden/moodle 2019-10-23 11:00:40 +08:00
Ryan Wyllie e0d798477a MDL-65896 core: add emoji data to thirdpartylibs 2019-10-23 10:59:59 +08:00
Ryan Wyllie 4060fcc662 MDL-65896 admin: add admin setting to show emoji picker
Added an admin setting to show/hide the emoji picker in messaging
because some versions of MySQL don't have full unicode support so
emojis won't save in the dabase.

If we detect that the site is running an unsupported version of MySQL
then the setting can not be enabled. Instead the admin will see a
message explaining that they will need to upgrade their database
before they can enable the emoji picker.
2019-10-23 10:59:59 +08:00
Ryan Wyllie 9f536ec696 MDL-65896 message: add emoji auto complete to message app 2019-10-23 10:59:59 +08:00
Ryan Wyllie 75962db917 MDL-65896 core: create emoji auto complete 2019-10-23 10:59:59 +08:00
Ryan Wyllie 8f80d18766 MDL-65896 message: add emoji picker to message app 2019-10-23 10:59:58 +08:00
Ryan Wyllie db65ba4564 MDL-65896 core: create emoji picker 2019-10-23 10:59:58 +08:00
Brendan Heywood 60dc024201 MDL-65349 xhprof: Removed greedy matching from wildcard parsing 2019-10-23 11:08:27 +11:00
Nadav Kavalerchik 96964edf0b MDL-66982 media_videojs: Fix RTL display issues (progress bar) 2019-10-23 01:34:24 +03:00
Sara Arjona 9f997f9bd7 on-demand release 3.8dev+ 2019-10-22 14:49:05 +02:00
Sara Arjona c6a11a31cf NOBUG: Fixed SVG browser compatibility 2019-10-22 14:49:03 +02:00
Sara Arjona 631aaad19f Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-10-22 14:49:03 +02:00
Jake Dallimore 6de90c84f4 Merge branch 'MDL-64739_master-fix' of git://github.com/dmonllao/moodle 2019-10-22 11:13:43 +08:00
David Monllaó 5da60daa1a MDL-64739 analytics: No need for a fully set model on edit 2019-10-22 10:48:29 +08:00
Brendan Heywood 319577dbbb MDL-66984 auth: Allow $USER to be used in change_password_url 2019-10-22 13:39:25 +11:00
Peter 0320040469 MDL-66971 core: Update the convenience date grade getter to allow nulls 2019-10-22 10:30:17 +08:00
Paul Holden d25223a5c4 MDL-63125 forms: Behat test for form autocomplete element. 2019-10-21 23:24:30 +01:00
Eloy Lafuente (stronk7) a188424bb4 Merge branch 'MDL-66970_master' of git://github.com/dmonllao/moodle 2019-10-21 23:59:18 +02:00
Eloy Lafuente (stronk7) 4019ae73f9 MDL-66954 filter_displayh5p: add it to the list of standard plugins 2019-10-21 23:34:19 +02:00
Eloy Lafuente (stronk7) be3d6c3f5f Merge branch 'MDL-66954-master' of git://github.com/aanabit/moodle 2019-10-21 23:31:37 +02:00
David Monllaó b4bb8688a5 MDL-66970 analytics: Extra testing for active enrolments
I sneaked in an unrelated change to enrol-partly-active-ends-afterwards
test case as the endtime and enrolment timestart values were swapped.
The case when the enrolment start is after the analysis end is already
tested in enrol-after-end test case.
2019-10-22 05:13:26 +08:00
David Monllaó b00d35a6fc MDL-66970 analytics: Fix incorrect use of ?? 2019-10-22 05:13:26 +08:00
Nadav Kavalerchik 22ae1807a5 MDL-66676 theme/boost: Fix form select element icon in RTL mode 2019-10-21 21:34:05 +03:00
Eloy Lafuente (stronk7) 3c75bfa457 Merge branch 'MDL-66980' of https://github.com/timhunt/moodle 2019-10-21 20:26:34 +02:00
Sara Arjona f3281837b8 Merge branch 'MDL-61121-master-5' of git://github.com/mihailges/moodle 2019-10-21 14:46:17 +02:00
Eloy Lafuente (stronk7) 7ba9c635c5 Merge branch 'MDL-64739_master' of git://github.com/dmonllao/moodle 2019-10-21 13:31:12 +02:00
Juan Leyva 56444a606c MDL-65017 forum: New WS mod_forum_delete_post 2019-10-21 13:09:56 +02:00
Juan Leyva b12dbcd4d5 MDL-65017 forum: Initial API refactor 2019-10-21 13:09:56 +02:00
Sara Arjona 78ee7b9a65 Merge branch 'MDL-66631-master-test' of git://github.com/rezaies/moodle 2019-10-21 12:18:19 +02:00
Tim Hunt 471c39b361 MDL-66980 question bank: fix load_many_for_cache missing record check 2019-10-21 11:18:12 +01:00
Eloy Lafuente (stronk7) 6b0374e510 Merge branch 'MDL-65774-master2' of git://github.com/peterRd/moodle 2019-10-21 10:48:12 +02:00
Eloy Lafuente (stronk7) 325a451018 Merge branch 'MDL-66808-master' of git://github.com/rezaies/moodle 2019-10-21 10:32:23 +02:00
Jun Pataleta 7769168f38 Merge branch 'MDL-66912-master' of https://github.com/snake/moodle 2019-10-21 16:26:28 +08:00
Jun Pataleta a5b431455a Merge branch 'MDL-66009-master' of https://github.com/grabs/moodle 2019-10-21 16:15:20 +08:00
Jake Dallimore c3f726a0e5 Merge branch 'MDL-66612-master' of git://github.com/crazyserver/moodle 2019-10-21 16:06:50 +08:00
Jake Dallimore d501428ff8 Merge branch 'MDL-66915-master' of https://github.com/MartinGauk/moodle 2019-10-21 15:54:12 +08:00
David Monllaó 06579b18cc MDL-64739 analytics: Contexts autocomplete with ajax 2019-10-21 15:33:29 +08:00
Pau Ferrer Ocaña 375d82cafc MDL-66612 calendar: Change global events to site events
AMOS BEGIN
 CPY [category,moodle],[category,calendar]
 CPY [site,notes],[eventtypesite,calendar]
 CPY [site,moodle],[site,calendar]
 MOV [typesite,moodle],[siteevent,calendar]
AMOS END
2019-10-21 09:33:01 +02:00
Mikhail Golenkov 17fed0d1cc MDL-66973 search: Reset Content writer after test. 2019-10-21 17:55:30 +11:00
Andrew Nicols 80cb0f6a1f Merge branch 'MDL-66962-master' of https://github.com/lucaboesch/moodle 2019-10-21 14:22:57 +08:00
Luca Bösch 19b1afd146 MDL-66962 questions: Question bank table T title non breaking. 2019-10-21 08:16:05 +02:00
Andrew Nicols 8edb6d15f1 Merge branch 'MDL-66944_master' of https://github.com/t-schroeder/moodle 2019-10-21 13:47:42 +08:00
Andrew Nicols 532b240244 Merge branch 'MDL-66946' of https://github.com/timhunt/moodle 2019-10-21 12:54:06 +08:00
Jake Dallimore d2982a1c11 Merge branch 'MDL-66930-master' of https://github.com/lucaboesch/moodle 2019-10-21 11:55:00 +08:00
Jake Dallimore 95852a343d Merge branch 'MDL-66960-master' of https://github.com/lucaboesch/moodle 2019-10-21 10:41:10 +08:00
David Monllaó 76b5ee4545 MDL-64739 tool_analytics: Restrict models to specific contexts 2019-10-21 09:54:39 +08:00
Mitxel Moriana c345aa721c MDL-64739 core_analytics: New db field for model contexts 2019-10-21 09:54:39 +08:00
David Monllaó 86a092b61d MDL-64739 tool_analytics: Remove filter option from evaluate CLI script
It can be considered that we replaced it with the new contexts field.
2019-10-21 09:54:39 +08:00
David Monllaó c22fb4bd4b MDL-64739 core_analytics: Contexts param for get_analysables_iterator 2019-10-21 09:54:34 +08:00
Jake Dallimore d76c433b3d Merge branch 'MDL-66816' of https://github.com/timhunt/moodle 2019-10-21 09:36:19 +08:00
AMOS bot ae5ee23622 Automatically generated installer lang files 2019-10-19 00:09:08 +00:00
Tim Hunt 4d32558974 MDL-66946 quiz reports: incorrectly show teachers sometimes 2019-10-18 17:37:49 +01:00
Luca Bösch 55c75f91e9 MDL-66960 questions: Top align all question bank titles exc "select all" 2019-10-18 16:32:43 +02:00
Amaia Anabitarte 826e76edc9 MDL-66954 filter_displayh5p: Rename filter_h5p to filter_displayh5p
We are renaming existing h5p_filter in 3.8dev to h5p_displayh5p to avoid collisions with filter_h5p plugin
in Moodle plugin directory.
Everybody having a 3.8dev installation with filter_h5p plugin should drop the old filter or re-install from scratch.
2019-10-18 15:35:15 +02:00
Tim Hunt c11c88928e MDL-66956 question bank: move edit menu to improve usability 2019-10-18 14:27:51 +01:00
Tim Hunt 701ae1eb4b MDL-66816 question bank: replace row of edit icons with an Edit menu 2019-10-18 14:27:50 +01:00
Sara Arjona 5d657c410b MDL-65774 mod_assign: Update FPDI class to inherit pdf 2019-10-18 20:34:23 +08:00
Luca Bösch 87174e0a92 MDL-66930 quiz: Question type icon size/alignment in Boost and Classic. 2019-10-18 13:54:29 +02:00
Eloy Lafuente (stronk7) aaff6692a1 on-demand release 3.8dev+ 2019-10-18 10:31:55 +02:00
Mihail Geshoski 6ddcb2122c MDL-61121 assign: Declare variables in the local scope 2019-10-18 13:57:56 +08:00
Mihail Geshoski 70b10bcd8c MDL-61121 assign: Improve accessibility in quick grading page tables 2019-10-18 13:57:56 +08:00
Mihail Geshoski d53a80d5e9 MDL-61121 assign: Improve accessibility - view full/view summary control 2019-10-18 13:57:56 +08:00
Andrew Nicols 2265397db6 Merge branch 'MDL-66767' of https://github.com/Chocolate-lightning/moodle_forum-project 2019-10-18 12:37:50 +08:00
Michael Hawkins a575ab1516 MDL-66767 forumreport_summary: Improved groups only SQL 2019-10-18 12:35:53 +08:00
Michael Hawkins 2970b8fa2e MDL-66767 forumreport_summary: Control groups filter content
Control the groups filter options based on forum groups mode and groups
visible to the user viewing the report.
2019-10-18 12:23:49 +08:00
Michael Hawkins 5e43937c7f MDL-66767 forumreport_summary: Updated groups filter to apply to data
Previously, the groups filter was only filtering by user, it now
filters the data by group, as well as limiting the users displayed
to those with access to the relevant combination.
2019-10-18 12:23:49 +08:00
Adrian Greeve 6d98de3fc1 Merge branch 'MDL-66740-master' of git://github.com/marinaglancy/moodle 2019-10-18 11:06:55 +08:00
Simey Lameze 8074b23f56 MDL-66631 mod_forum: unit tests for date filters 2019-10-18 12:37:58 +11:00
Simey Lameze 77c01b42c6 MDL-66631 mod_forum: unit tests refactoring 2019-10-18 12:37:58 +11:00
Simey Lameze 6e23f294b8 MDL-66631 mod_forum: make get_from_discussion_ids use new fn 2019-10-18 12:37:58 +11:00
Simey Lameze 718d7a43b9 MDL-66631 mod_forum: add date filters to export 2019-10-18 12:37:58 +11:00
Jun Pataleta 95946a3294 Merge branch 'MDL-66806_master' of git://github.com/dmonllao/moodle 2019-10-18 09:36:51 +08:00
Andrew Nicols b9da7233a1 Merge branch 'MDL-66919' of https://github.com/stronk7/moodle 2019-10-18 08:26:38 +08:00
Eloy Lafuente (stronk7) e0fa8a5140 Merge branch 'mdl-66173' of https://github.com/Peterburnett/moodle 2019-10-18 01:49:31 +02:00
Jun Pataleta 36a8ae571a Merge branch 'MDL-66625-master' of git://github.com/rezaies/moodle 2019-10-18 06:39:01 +08:00
Jun Pataleta 52f1b2ebfa Merge branch 'MDL-56549-master' of https://github.com/kabalin/moodle 2019-10-18 06:27:21 +08:00
Ruslan Kabalin d5d3c27ad1 MDL-56549 test: Add tests covering core_media_player_native 2019-10-17 22:15:48 +01:00
Ruslan Kabalin 5bc03f13db MDL-56549 medialib_test: Move fixture to dedicated subdir. 2019-10-17 22:15:48 +01:00
Ruslan Kabalin 12ce73a1a2 MDL-56549 media_html5video: Add test for native extensions support.
This is to verify that all files of html_video mime type extensions are
passing list_supported_urls method correctly.
2019-10-17 22:15:47 +01:00
Ruslan Kabalin 4d8b88fd63 MDL-56549 media_html5audio: Add test for native extensions support.
This is to verify that all files of html_audio mime type extensions are
passing list_supported_urls method correctly.
2019-10-17 22:15:47 +01:00
Ruslan Kabalin 043ba1b221 MDL-56549 lib: Add flac audio extension to html5 support list.
This is now supported by most browsers:
https://en.wikipedia.org/wiki/HTML5_audio
https://caniuse.com/#feat=flac
2019-10-17 22:15:46 +01:00
Eloy Lafuente (stronk7) 7d21639465 Merge branch 'MDL-64064' of https://github.com/NeillM/moodle 2019-10-17 23:08:58 +02:00
Shamim Rezaie f54cb5a708 MDL-66625 forumreport_summary: Adding behat 2019-10-18 05:46:39 +11:00
Tim Schroeder d9d041e867 MDL-66944 course: fixed copy-paste-error in comment 2019-10-17 18:15:08 +02:00
Jun Pataleta 8b2b47f733 Merge branch 'MDL-66694-master' of git://github.com/junpataleta/moodle 2019-10-17 22:48:16 +08:00
Jun Pataleta 10cc5e8100 MDL-66694 mod_forum: Fix unit test
* Set $forum1's displaywordcount to true in
  test_mod_forum_get_discussion_posts() so that the word and char counts
  will be returned.
* Use count_words() and count_letters() instead of hard coding the
  expected values for the word and char counts.
2019-10-17 22:39:36 +08:00
Michael Hawkins 97aeba56ba MDL-66694 mod_forum: Refactored post counts scheduled task 2019-10-17 17:07:05 +08:00
Pau Ferrer Ocaña e75b4e41b1 MDL-66612 calendar: Fix calendar icons 2019-10-17 10:34:34 +02:00
Michael Hawkins d21d6baac6 MDL-66694 mod_forum: Word/char count tidy ups & add task config option
The chunk size used by the existing post word/char count calculation
ad-hoc task can now be set as a $CFG parameter. Also improved the way
the ad-hoc task is re-queued and tidied up some redundant code.
2019-10-17 16:13:23 +08:00
Andreas Grabs ea100476d7 MDL-66009 mod_feedback: Nested dependency fails again 2019-10-17 09:19:55 +02:00
Michael Hawkins 3c36cdb150 MDL-66694 mod_forum: Updated adhoc task to requeue until completion
The adhoc task run during upgrade will now be requeued until no more
word/char counts require updating. Previously it was only run once,
so only the first 5000 posts would be updated.
2019-10-17 15:05:57 +08:00
David Monllaó 7d8f604b3c MDL-66694 mod_forum: Upgrade forum post word and char counts 2019-10-17 15:05:57 +08:00
Michael Hawkins 3eb0a82fef MDL-66694 mod_forum: Word & char count update consistency fixes
Charcount logic is now consistent with wordcount in the post exporter.
Counts update now called in forum_udpate_instance since it is updating
the data.
2019-10-17 15:05:57 +08:00
David Monllaó 591dd68790 MDL-66694 mod_forum: Update word & char counts on db save 2019-10-17 15:05:57 +08:00
Michael Hawkins 68f2d677ae MDL-66694 forumreport_summary: String update and method tidy up
Replaced 'Char' with full word 'Character' in the charcount string.
Also tidied up show_word_char_counts code and set to protected instead
of private.
2019-10-17 15:05:57 +08:00
David Monllaó 74f94dfc26 MDL-66694 mod_forum: Word count and char count columns 2019-10-17 15:05:57 +08:00
Ryan Wyllie a81651afa1 MDL-65896 javascript: add throttle and debounce util functions 2019-10-17 13:51:05 +08:00
Andrew Nicols bcce0270fe MDL-66496 mod_data: Fixes during integration 2019-10-17 12:20:54 +08:00
Andrew Nicols a7139f7600 Merge branch 'MDL-66496-master' of git://github.com/tobiasreischmann/moodle 2019-10-17 11:05:34 +08:00
Shamim Rezaie bfe6cfc9ab MDL-66808 mod_forum: set the format col to FORMAT_PLAIN when it is plain 2019-10-17 13:21:05 +11:00
Shamim Rezaie c98f448866 MDL-66808 mod_forum: Added export options 2019-10-17 12:47:11 +11:00
Brendan Heywood 4e7dcd01a8 MDL-66927 cron: Process new adhoc tasks immediately 2019-10-16 20:25:02 +11:00
[Peter Burnett] dc25b71d8b MDL-66173 login: Added form injection, validation and post action hooks 2019-10-16 15:01:56 +10:00
Shamim Rezaie 354cbf48b8 MDL-66625 forumreport_summary: Handling private replies 2019-10-16 12:00:51 +11:00
Jake Dallimore 7591d8c498 Merge branch 'MDL-66020-master' of git://github.com/marinaglancy/moodle 2019-10-16 08:37:07 +08:00
Eloy Lafuente (stronk7) d1729ce196 Merge branch 'MDL-66790-master' of git://github.com/junpataleta/moodle 2019-10-16 00:55:48 +02:00
Eloy Lafuente (stronk7) ab74c7ad56 Merge branch 'MDL-66705-master' of git://github.com/abgreeve/moodle 2019-10-16 00:52:52 +02:00
Eloy Lafuente (stronk7) f8038edd3a MDL-66919 behat: fix typo in error message
Also fix a couple of phpdocs that were incorrect.
2019-10-16 00:48:35 +02:00
Eloy Lafuente (stronk7) c77052fb2b on-demand release 3.8dev+ 2019-10-15 23:01:00 +02:00
Eloy Lafuente (stronk7) df089ac562 NOBUG: Fixed SVG browser compatibility 2019-10-15 23:00:54 +02:00
Martin Gauk 8d5b7fc6cd MDL-66915 assign: Notify only if grade was updated in past 24 hours
Send notifications only if a grade was updated in the past 24 hours,
whether marking workflow is enabled or not.
2019-10-15 17:06:03 +02:00
Eloy Lafuente (stronk7) e7fad4ac6a Merge branch 'MDL-66553-master-fix' of git://github.com/junpataleta/moodle 2019-10-15 16:42:15 +02:00
Jun Pataleta 0aa17f2631 MDL-66553 question: Behat fixes
1. Fix sortable key for the qname/idnumber/tags column
2. Fix the default sort
3. Fix Behat test for sorting by idnumber. Added ID numbers for both
question A and question C in order for us to get consistent sorting
across DBs.
2019-10-15 20:22:12 +08:00
Jun Pataleta 80d7651534 MDL-66790 quizreport: Prevent sorting for checkbox column 2019-10-15 17:25:16 +08:00
Jake Dallimore 3f7382aa73 MDL-66912 core_message: improve media matching js for content previews
Rather than matching 'src' string, use a dummy node and check for a src
attribute.
2019-10-15 14:37:51 +08:00
Jun Pataleta c2e4e6d588 Merge branch 'MDL-66226-master-2' of https://github.com/snake/moodle 2019-10-15 11:56:05 +08:00
Adrian Greeve 56ad15fc06 MDL-66705 tool_uploaduser: Add an example csv file. 2019-10-15 10:56:29 +08:00
Jake Dallimore 164e879156 Merge branch 'MDL-66796' of git://github.com/timhunt/moodle 2019-10-15 10:52:45 +08:00
Jun Pataleta d75eb57daa Merge branch 'MDL-66821' of https://github.com/timhunt/moodle 2019-10-15 07:35:36 +08:00
Andrew Nicols f124a49259 Merge branch 'MDL-66335' of https://github.com/stronk7/moodle 2019-10-15 07:21:52 +08:00
Eloy Lafuente (stronk7) c461c96d25 MDL-66335 behat: Avoid double processing the page type
resolve_page_instance_helper() already processes the type, returning
the correct context that should be processing the navigation URL.

With that extra call to parse_page_name() the 2nd call always returns
"core", ultimately leading to tons of behat failures because "core" is
not aware of those (plugin, quiz for now) pages typology.
2019-10-14 23:52:28 +02:00
Eloy Lafuente (stronk7) 82d71a5c83 Merge branch 'MDL-66335' of https://github.com/timhunt/moodle 2019-10-14 18:53:44 +02:00
Paul Holden 9cbeaec26f MDL-63125 forms: allow item removal from single-select autocomplete. 2019-10-14 17:07:59 +01:00
Eloy Lafuente (stronk7) 1b8a7f86d5 Merge branch 'MDL-66559-master' of git://github.com/andrewnicols/moodle 2019-10-14 16:33:46 +02:00
Tim Hunt 468d7ead0a MDL-66796 question bank: fix more bugs with category editing 2019-10-14 15:29:53 +01:00
Tim Hunt 9c4f0fa746 MDL-66796 question bank: 0 is a valid question category idnumber 2019-10-14 14:33:36 +01:00
Sara Arjona 5b91deed2c Merge branch 'MDL-63349-Master' of github.com:tuanngocnguyen/moodle 2019-10-14 13:58:09 +02:00
Tim Hunt 9c14b28d0b MDL-66821 question behat: new step for acting on questions in the bank
There is a proposed change MDL-66816 which will change the question
bank UI. This will break any Behat tests which uses low-level steps
like

    When I click on "Duplicate" "link" in the "Test question" "table_row"

to perform an action on a question in the question bank. This commit
introduces a new step:

    When I choose "Duplicate" action for "Test question" in the question bank

This commit also converts all core Behat tests to use the new step.
2019-10-14 11:36:12 +01:00
Sara Arjona ef2f26b8b1 Merge branch 'MDL-66836-master' of https://github.com/sammarshallou/moodle 2019-10-14 12:26:49 +02:00
Marina Glancy 959e4f0e97 MDL-66740 core_course: change defaults for course request settings 2019-10-14 12:22:16 +02:00
Tim Hunt 4e1ebf8cde MDL-66335 quiz behat: using the new generic navigation steps
This converts all the navigation to quiz pages when that is not
the thing under test. Also, I decided that the Quiz settings form
belonged to the course, so did not do that here.
2019-10-14 11:21:22 +01:00
Tim Hunt 9bcc357107 MDL-66335 behat: new step to log in and go straight to a particular page
I did not think thought through if this new URL parameter would be a
potential security hole. The simple cop-out option is to make it only
work on Behat sites for now.
2019-10-14 11:21:22 +01:00
Tim Hunt 4024556b98 MDL-66335 behat: generic step for navigating direct to specific pages 2019-10-14 11:19:13 +01:00
Marina Glancy 3e15abe500 MDL-66740 core_course: Add context to capabilities to request course 2019-10-14 11:38:13 +02:00
Eloy Lafuente (stronk7) 25494613f4 Merge branch 'MDL-66304' of https://github.com/golenkovm/moodle 2019-10-14 10:53:24 +02:00
Eloy Lafuente (stronk7) 70d33bc399 Merge branch 'MDL-66874-master' of git://github.com/junpataleta/moodle 2019-10-14 10:05:27 +02:00
Jake Dallimore 050f048e26 Merge branch 'MDL-66659' of https://github.com/paulholden/moodle 2019-10-14 15:33:10 +08:00
Andrew Nicols e99a3cca93 MDL-66559 behat: Register component selectors earlier 2019-10-14 14:24:05 +08:00
Andrew Nicols cd5382b298 MDL-66559 behat: Update running suite 2019-10-14 14:17:47 +08:00
Jun Pataleta 8da83f6c51 Merge branch 'MDL-66796-master-fix' of https://github.com/snake/moodle 2019-10-14 13:48:34 +08:00
Jake Dallimore f79a974435 MDL-66796 mod_quiz: only update the id number if changed
If the idnumber is present in the DB, it's set to null. In this case,
don't update the value.
2019-10-14 13:38:20 +08:00
Jun Pataleta 5a85b7fc13 MDL-66874 mod_feedback: Use correct option attribute 'classes' 2019-10-14 11:27:19 +08:00
Jun Pataleta 4f71255e61 MDL-66874 mod_data: Explicitly add btn-secondary class to select all
* Plus use correct option attribute 'classes' for the slave
  checkboxes
2019-10-14 11:27:19 +08:00
Jun Pataleta bc003428bc MDL-66874 mod_choice: Explicitly add btn-secondary class to select all 2019-10-14 11:27:19 +08:00
Jun Pataleta 0b0527cced MDL-66874 core: Allow master button checkbox toggle to be customisable
* Plus, add labelclasses data for template context in master and slave
checkbox templates.
2019-10-14 11:26:47 +08:00
Jake Dallimore e7ac8db8a1 Merge branch 'MDL-66768-master' of git://github.com/rezaies/moodle 2019-10-14 11:21:03 +08:00
Jake Dallimore 7f518ce451 Merge branch 'MDL-66559-master' of git://github.com/andrewnicols/moodle 2019-10-14 11:09:44 +08:00
Shamim Rezaie bf2e1bec4e MDL-66768 forumreport_summary: remove the select column when downloading 2019-10-14 13:07:17 +11:00
Shamim Rezaie a90b8056ba MDL-66768 forumreport_summary: move back bulk action menu to the bottom 2019-10-14 13:07:16 +11:00
Simey Lameze 850ce97425 MDL-66768 forumreport_summary: add ability to download report 2019-10-14 13:05:04 +11:00
Jun Pataleta 75c49ad291 Merge branch 'MDL-66553' of https://github.com/timhunt/moodle 2019-10-14 09:42:03 +08:00
Jake Dallimore df09316ebd Merge branch 'MDL-66796' of git://github.com/timhunt/moodle 2019-10-14 07:41:19 +08:00
Eloy Lafuente (stronk7) 88e0d75b93 Merge branch 'MDL-66792' of https://github.com/paulholden/moodle 2019-10-13 17:08:31 +02:00
Eloy Lafuente (stronk7) 847848909e Merge branch 'MDL-66851-master' of git://github.com/mihailges/moodle 2019-10-13 16:34:50 +02:00
Eloy Lafuente (stronk7) 4e202d91e7 Merge branch 'MDL-65243-master' of git://github.com/mihailges/moodle 2019-10-13 16:31:14 +02:00
Eloy Lafuente (stronk7) 1069a44975 Merge branch 'MDL-65515-master' of git://github.com/mihailges/moodle 2019-10-13 16:12:47 +02:00
Eloy Lafuente (stronk7) 1eb34211f7 Merge branch 'MDL-66779-master' of git://github.com/andrewnicols/moodle 2019-10-13 02:11:38 +02:00
Eloy Lafuente (stronk7) 0b30d47973 Merge branch 'master_MDL-66864' of https://github.com/golenkovm/moodle 2019-10-13 02:08:10 +02:00
Eloy Lafuente (stronk7) 266591de00 Merge branch 'MDL-65584' of https://github.com/paulholden/moodle 2019-10-13 01:49:19 +02:00
Eloy Lafuente (stronk7) 8111abc331 on-demand release 3.8dev+ 2019-10-11 22:44:39 +02:00
Eloy Lafuente (stronk7) 0a23dd8c57 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-10-11 22:44:24 +02:00
Tim Hunt 5aacd5e70e MDL-66553 questions: add $CFG->questionbankcolumns to config-dist.php 2019-10-11 13:59:26 +01:00
Tim Hunt c2200bd5dc MDL-66553 quiz/questions: show idnumber and tags when adding from qbank 2019-10-11 13:59:26 +01:00
Tim Hunt 61cc1e6494 MDL-66553 question bank: show tags and idnumbers in question list 2019-10-11 13:59:26 +01:00
Tim Hunt d4b47c5442 MDL-66553 question bank: show idnumbers on the edit categories screen 2019-10-11 13:59:26 +01:00
Tim Hunt a3f42f998c MDL-66553 question bank: show idnumbers in category drop-down 2019-10-11 13:59:26 +01:00
Neill Magill af9a834d74 MDL-64064 block_timeline: Confusing when event is not in this year
If an event is not in the current year it can be confusing as the
months and days may appear to be in the wrong order.

This change adds the year to the displayed date to make the reason
for the order clear.
2019-10-11 08:37:31 +01:00
Tim Hunt 33da028c27 MDL-66559 behat: Documentation for component selectors 2019-10-11 12:58:16 +08:00
Andrew Nicols 5c783f140e MDL-66559 message: Move behat selectors to message subsystem 2019-10-11 12:58:16 +08:00
Andrew Nicols 61832faefd MDL-66559 behat: Allow per-component selectors and replacements 2019-10-11 12:58:16 +08:00
Nathan Nguyen 4a6edc5767 MDL-63349 assignfeedback_editpdf: Rotate submitted image automatically 2019-10-11 15:26:53 +11:00
Jun Pataleta ad01d8bed5 Merge branch 'MDL-66076-master-2' of git://github.com/junpataleta/moodle 2019-10-11 11:16:37 +08:00
Jake Dallimore b663c71560 Merge branch 'MDL-66804' of https://github.com/paulholden/moodle 2019-10-11 11:16:17 +08:00
Jun Pataleta ce8a2d11d8 MDL-66076 forumreport_summary: filter JS and template optimisations 2019-10-11 11:09:50 +08:00
Michael Hawkins fb599f32d6 MDL-66076 message: Add copy of template plus JS comment fix 2019-10-11 11:09:50 +08:00
Michael Hawkins aa4b62baac MDL-66076 forumreport_summary: Filter styles update 2019-10-11 11:09:50 +08:00
Michael Hawkins 9523f0e040 MDL-66076 forumreport_summary: Added missing SQL group by fields
Also removed a redundant variable declaration.
2019-10-11 11:09:50 +08:00
Michael Hawkins d4d9b8c67c MDL-66076 forumreport_summary: Template example context fixes 2019-10-11 11:09:50 +08:00
Michael Hawkins b9669dd319 MDL-66076 forumreport_summary: Always show viewcount column
Previously this was hidden if filtering by groups, but will now be
visible, along with a disclaimer that the data is not filtered
(since the groups cannot be determined from the logs used).
2019-10-11 11:09:50 +08:00
Michael Hawkins cc15134c7b MDL-66076 forumreport_summary: Groups filter made accessible 2019-10-11 11:09:50 +08:00
Shamim Rezaie 14f92164f1 MDL-66076 forumreport_summary: Minor cleanup of report code
Removed some unnecessary code and added the current page to breadcrumbs
2019-10-11 11:09:50 +08:00
Shamim Rezaie 0942e58c91 MDL-66298 forumreport_summary: Added ability to bulk message users
Part of MDL-66076.
2019-10-11 11:09:50 +08:00
Shamim Rezaie cc97038258 MDL-66298 forumreport_summary: Moved table generation out of renderer
Part of MDL-66076.
2019-10-11 11:09:50 +08:00
Shamim Rezaie 8ffe06b9aa MDL-66298 javascript: Introduced new core AMD for sending bulk messages
Part of MDL-66076.
2019-10-11 11:09:50 +08:00
Shamim Rezaie 806d634359 MDL-66298 forumreport_summary: Display full names consistently
Part of MDL-66076. Display full names and profile links consistent
with other areas of Moodle.
2019-10-11 11:09:50 +08:00
Michael Hawkins 9eebd58aa2 MDL-66695 forumreport_summary: Added handling for all groups view count
Part of MDL-66076.
2019-10-11 11:10:41 +08:00
David Monllaó 235a6db7fb MDL-66695 forumreport_summary: New viewcount column
Part of MDL-66076.
2019-10-11 11:10:33 +08:00
Michael Hawkins b29de56dd7 MDL-66268 forumreport_summary: Add filters handling incl groups filter
Part of MDL-66076.
2019-10-11 11:10:27 +08:00
Michael Hawkins 90f2b0a905 MDL-66268 forumreport_summary: Introduce filter scss
Part of MDL-66076.
2019-10-11 11:10:17 +08:00
Michael Hawkins 382168a0aa MDL-66594 forumreport_summary: Added first/last post date columns
Part of MDL-66076.
2019-10-11 11:10:14 +08:00
Michael Hawkins d0e125cfc7 MDL-66299 forumreport_summary: Added attachments count column
Part of MDL-66076.
2019-10-11 11:10:10 +08:00
Michael Hawkins 90107b6f38 MDL-66299 mod_forum: Created new behat steps for bulk post creation
New behat steps created for adding bulk discussions and
replies in forums. Also includes private methods to prepare the
required information.

Part of MDL-66076.
2019-10-11 11:10:06 +08:00
Michael Hawkins 6388b6572c MDL-66153 mod_forum: Introduced summary report sub-plugin
Part of MDL-66076.
2019-10-11 11:09:50 +08:00
AMOS bot 7eb95ad2e5 Automatically generated installer lang files 2019-10-11 00:11:27 +00:00
Eloy Lafuente (stronk7) 212764c4af Merge branch 'master-MDL-66805-search' of https://github.com/kristian-94/moodle 2019-10-11 00:55:36 +02:00
Eloy Lafuente (stronk7) d58331eaaf Merge branch 'MDL-66815' of https://github.com/timhunt/moodle 2019-10-11 00:50:31 +02:00
Davo Smith 629699355c MDL-66017 block_myoverview: Oracle compatibility fix 2019-10-11 00:09:56 +02:00
Sara Arjona b968900509 Merge branch 'MDL-66017_course_filter_rebase' of git://github.com/davosmith/moodle 2019-10-10 08:33:07 +02:00
Jake Dallimore d979e33acc Merge branch 'MDL-65585_master' of git://github.com/dmonllao/moodle 2019-10-10 10:20:09 +08:00
David Monllaó f589788af1 MDL-66806 analytics: No predictions for hidden courses 2019-10-10 10:09:10 +08:00
David Monllaó bf25fb166c MDL-65585 analytics: Global on/off switch 2019-10-10 10:06:31 +08:00
AMOS bot 9edb97268c Automatically generated installer lang files 2019-10-10 00:09:17 +00:00
sam marshall cb0656a5ff MDL-66836 Behat: Reset unknown config variables between scenarios
In the Behat CLI run (not in the individual web requests), if you
modified an existing $CFG variable then this would be reset at the
start of the next scenario. However, if you added a completely new
one, it would not be reset. This change removes those variables.
2019-10-09 17:48:36 +01:00
Davo Smith 8d166d7745 MDL-66017 block_myoverview: filter by custom course field 2019-10-09 14:25:52 +01:00
Jun Pataleta 108bc23b70 Merge branch 'MDL-66835' of https://github.com/timhunt/moodle 2019-10-09 20:44:45 +08:00
Jun Pataleta c628e6021a Merge branch 'MDL-66450-master' of git://github.com/bmbrands/moodle 2019-10-09 20:40:28 +08:00
Tim Hunt 7ba73d16a0 MDL-66553 tags: option to accesshide label when displaying a taglist 2019-10-09 13:26:12 +01:00
Bas Brands 86ea9e6392 MDL-66450 themes: form autocomplete truncate listitems 2019-10-09 14:26:12 +02:00
Tim Hunt d30c6cdc17 MDL-66553 question bank: fix lots of phpdoc and other warnings 2019-10-09 13:26:12 +01:00
Tim Hunt 920a3500dc MDL-66835 behat: steps for setting/checking fields in containers 2019-10-09 13:26:05 +01:00
Sara Arjona 137befc2bd Merge branch 'MDL-66852-master' of github.com:lucaboesch/moodle 2019-10-09 12:58:00 +02:00
Jake Dallimore 2cee7e2dfc Merge branch 'MDL-64745-master-1' of git://github.com/mihailges/moodle 2019-10-09 15:58:50 +08:00
Jake Dallimore 9b0cf01d47 Merge branch 'MDL-66371-master' of git://github.com/rezaies/moodle 2019-10-09 13:33:17 +08:00
Shamim Rezaie 4f3d1266e3 MDL-66371 mod_forum: Improving behat tests 2019-10-09 15:19:11 +11:00
Andrew Nicols d31b5c431d Merge branch 'MDL-66753-master' of git://github.com/abias/moodle 2019-10-09 12:00:57 +08:00
Damyon Wiese b0213770d2 MDL-65243 badges: Use real time api
Never add or subtract timestamps - use the time api to do it correctly.
2019-10-09 11:51:45 +08:00
Simey Lameze 3222469ca8 MDL-66371 mod_forum: add behat coverage for export
Part of MDL-66075.
2019-10-09 14:46:56 +11:00
Mihail Geshoski 9ad5cff41f MDL-65515 badges: Split install/upgrade
Use badges/upgradelib.php for functions that only affect install/upgrade.

All credit goes to Damyon Wiese.
2019-10-09 11:15:28 +08:00
Andrew Nicols 5dc69b9bbe Merge branch 'MDL-66166' of https://github.com/brendanheywood/moodle 2019-10-09 11:14:09 +08:00
Adrian Greeve d50978de2c Merge branch 'MDL-66011-master' of git://github.com/andrewnicols/moodle 2019-10-09 10:40:02 +08:00
Jun Pataleta fa278f052b Merge branch 'MDL-66725-master' of https://github.com/snake/moodle 2019-10-09 10:31:18 +08:00
Andrew Nicols bfdeae2afd MDL-66779 phpunit: Correct component name for core_grades 2019-10-09 09:34:47 +08:00
Andrew Nicols 13ef95e3de Merge branch 'MDL-66118-master-byebyemoodlenet' of git://github.com/mudrd8mz/moodle 2019-10-09 07:43:33 +08:00
Eloy Lafuente (stronk7) c35f47d8ed Merge branch 'MDL-66428_master' of git://github.com/markn86/moodle 2019-10-09 00:28:30 +02:00
Eloy Lafuente (stronk7) d693378bf9 Merge branch 'MDL-63127_master' of git://github.com/markn86/moodle 2019-10-08 23:50:14 +02:00
Alexander Bias 8471a0db42 MDL-61804 admin: Add setting for course visibility sorting 2019-10-08 11:58:39 +02:00
Luca Bösch 57987d7088 MDL-66852 quiz: Style "Try another question like this one" button. 2019-10-08 11:28:39 +02:00
Eloy Lafuente (stronk7) a31719f91a on-demand release 3.8dev+ 2019-10-08 10:43:51 +02:00
Eloy Lafuente (stronk7) 796db6cbc8 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-10-08 10:43:45 +02:00
Mihail Geshoski 0b802432ca MDL-66851 block_starredcourses: Hide 'hidden' courses from students
Thanks to Mark Sharp for the bug report and fix suggestion.
2019-10-08 09:52:37 +08:00
AMOS bot d63e8ee703 Automatically generated installer lang files 2019-10-08 00:09:56 +00:00
Eloy Lafuente (stronk7) 38417fa421 Merge branch 'MDL-66801' of https://github.com/timhunt/moodle 2019-10-08 01:16:46 +02:00
Paul Holden d95812cb39 MDL-65584 blog: safer deletion of associations in privacy provider.
It's possible that the given context list contains no posts, which caused
an exception to be thrown when passing an empty array to get_in_or_equal.
2019-10-08 00:12:32 +01:00
Eloy Lafuente (stronk7) af59994f4f Merge branch 'MDL-66628_master' of git://github.com/dmonllao/moodle 2019-10-08 00:54:03 +02:00
Eloy Lafuente (stronk7) 10ab0770ab Merge branch 'MDL-66764' of https://github.com/timhunt/moodle 2019-10-07 22:50:57 +02:00
Eloy Lafuente (stronk7) 9c5796a3f0 Merge branch 'MDL-66754' of https://github.com/timhunt/moodle 2019-10-07 22:33:02 +02:00
Eloy Lafuente (stronk7) c29715f3d7 Merge branch 'MDL-66743' of https://github.com/timhunt/moodle 2019-10-07 22:26:53 +02:00
Eloy Lafuente (stronk7) ec829c6070 Merge branch 'MDL-66709' of https://github.com/timhunt/moodle 2019-10-07 22:25:12 +02:00
Eloy Lafuente (stronk7) f3bb36720b Merge branch 'MDL-66749-master' of git://github.com/bmbrands/moodle 2019-10-07 22:03:08 +02:00
Eloy Lafuente (stronk7) d4f52fc831 Merge branch 'MDL-66750' of https://github.com/timhunt/moodle 2019-10-07 21:55:32 +02:00
Mark Nelson de0b6d938c MDL-66428 cachestore_redis: add Zstd compression support 2019-10-07 19:03:43 +01:00
Mark Nelson 493295e326 MDL-63127 cachestore_redis: dont use compression unless specified 2019-10-07 18:23:10 +01:00
Eloy Lafuente (stronk7) f232409e13 MDL-63127 cachestore_redis: cover combinations without compressor
To verify that, internally, everything is stored as expected
and there aren't hidden regressions
2019-10-07 18:23:10 +01:00
Sara Arjona 9ee83d1d98 Merge branch 'MDL-66775-master' of git://github.com/jleyva/moodle 2019-10-07 16:14:43 +02:00
Mark Nelson 182a0698e1 MDL-63127 cachestore_redis: clean up compressor_test.php 2019-10-07 12:12:48 +01:00
Mark Nelson 4ccbb67474 MDL-63127 cachestore_redis: do not return early without unserialisation 2019-10-07 12:12:48 +01:00
Mark Nelson 3ad56eee9f MDL-63127 cachestore_redis: add check before using igbinary_serialize
Redis::SERIALIZER_IGBINARY is undefined if redis is not compiled
with this option.
2019-10-07 12:12:48 +01:00
Mark Nelson 54a659a5bd MDL-63127 cachestore_redis: delegate functionality to specific areas
These functions should not have to worry about compression logic.
2019-10-07 12:12:48 +01:00
Mark Nelson ac19c888b0 MDL-63127 cachestore_redis: set pair value correctly 2019-10-07 12:12:48 +01:00
Daniel Thee Roperto cda3e431ca MDL-63127 cachestore_redis: Implemented compression 2019-10-07 12:12:48 +01:00
Alexander Bias 1ce19cc3ed MDL-66753 blocks: Remove references in core to block_participants 2019-10-07 08:34:20 +02:00
Alexander Bias 7ce941a455 MDL-66753 blocks: Remove block_participants from core 2019-10-07 08:34:20 +02:00
Adrian Greeve 1b70f4c1d5 Merge branch 'master-MDL-66794' of https://github.com/golenkovm/moodle 2019-10-07 14:28:59 +08:00
Mikhail Golenkov 9c7a5526ba MDL-66864 upgrade: Delete non-mutual contacts in chunks. 2019-10-07 16:32:20 +11:00
Adrian Greeve 3ae7d678fa Merge branch 'MDL-65187-master' of git://github.com/marinaglancy/moodle 2019-10-07 11:12:21 +08:00
Mihail Geshoski 0a9150c009 MDL-64745 block_online_users: Add behat tests 2019-10-07 09:00:33 +08:00
Mihail Geshoski e94de2d6d3 MDL-64745 block_online_users: Add unit tests 2019-10-07 09:00:33 +08:00
Mihail Geshoski e1fb8e4aec MDL-64745 block_online_users: Option to disable users to set visibility 2019-10-07 09:00:33 +08:00
David Mudrák 254b579375 MDL-66118 hub: Replace the unregister form with a confirmation
Now that unpublishalladvertisedcourses and unpublishalluploadedcourses
became irrelevant, there is no reason for an empty form.
2019-10-04 21:23:11 +02:00
David Mudrák 3d2aa2ebef MDL-66118 hub: Remove the mentions of moodle.net
This is an update of the site registration admin page and some relevant
backend code to remove the mentions of moodle.net.

AMOS BEGIN
 CPY [registerwithmoodleorg,core_admin],[registerwithmoodleorg,core_hub]
AMOS END
2019-10-04 21:23:11 +02:00
David Mudrák ecc9960ead MDL-66118 hub: Stop using the hub URL as the setting name suffix
Site indicators shared with the registration hub used to have the hub
URL in the relevant setting names - such as site_name_httpsmoodlenet.
This upgrade step converts all such settings and drops the URL suffix
because we do not support alternative hubs any more.

Additionally the upgrade step renames the official hub and updates its
URL so that existing registrations with https://moodle.net are still
valid.
2019-10-04 21:23:11 +02:00
David Mudrák ffecbefb06 MDL-66118 hub: Drop support for the hub's display_homepage callback
There should never be any exceptional hacks like this for any particular
plugin. The hub sites can make use of a wide range of other and cleaner
mechanisms - such as a custom theme or the customfrontpageinclude
directive - to implement a customized front page.

Plus, we've dropped support for alternative hubs anyway.
2019-10-04 21:17:06 +02:00
David Mudrák 6d015e29cc MDL-66118 hub: Define the new sites directory URL
The Moodle sites now register with stats.moodle.org so use that as a new
official hub's URL. Beside that, allow for the alternative value be
provided in config.php for development and testing purposes.
2019-10-04 21:17:06 +02:00
David Mudrák a08c238f9e MDL-66118 hub: Remove legacy constants, not relevant any more
Both the following constants are no longer needed as Moodle does not
support multiple hubs any more.

* HUB_HUBDIRECTORYURL is no longer valid as Moodle no longer supports
  the listing of community hubs.
* HUB_OLDMOODLEORGHUBURL was used in the past for the transition
  purposes.
2019-10-04 21:17:06 +02:00
Tobias Reischmann d9b8e3554b MDL-66496 mod_data: Add tests for import functionality 2019-10-04 19:35:18 +02:00
Tobias Reischmann 8bb0d5fb5f MDL-66496 mod_data: Make import functionality testable 2019-10-04 19:34:53 +02:00
Justus Dieckmann ba2fc8bd94 MDL-66496 mod_data: Import author information on csv import 2019-10-04 19:33:54 +02:00
Eloy Lafuente (stronk7) 6ec1078469 on-demand release 3.8dev+ 2019-10-04 16:02:03 +02:00
Eloy Lafuente (stronk7) f7b87e1a79 NOBUG: Fixed file access permissions 2019-10-04 16:02:02 +02:00
Eloy Lafuente (stronk7) 2aa5e7e892 NOBUG: Fixed SVG browser compatibility 2019-10-04 16:01:57 +02:00
Ryan Wyllie 7754fa54d6 MDL-66226 core_message: convert formatMessagePreview to async function
Uses the nicer syntax of sync/await, removing some of the promises
clutter.
2019-10-04 16:50:30 +08:00
Jake Dallimore f11b8ec5a0 MDL-66226 core: add fallback pixicons for the messagecontent fa icons
If $THEME->iconsystem is not set to font awesome, we need to fall back
to either svg or png images.
2019-10-04 16:49:48 +08:00
Jake Dallimore c11baac4b4 MDL-66226 core_message: wrap promise chains in pending for behat
Fixes random failures by forcing behat to wait for the pane to render.
2019-10-04 14:37:25 +08:00
Jake Dallimore 545e8988c3 MDL-66226 core_message: don't display html as text in overview section
Instead of displaying the source code, as text, display a content
indicator which tells the user what sort of content the message might
contain.
2019-10-04 14:34:19 +08:00
Ryan Wyllie f9d76e4905 MDL-66477 core: only render region main settings if no settings block
We added a change to allow the region main settings menu to be
rendered in the header rather that the top of the body however
this also meant that the settings were shown on themes (e.g. Classic)
that didn't otherwise show the region main settings.

The simplest solution seems to be to not render the region main
settings in the header if the settings block is on the page.
2019-10-04 11:31:14 +08:00
Jun Pataleta e5277f0a7f Merge branch 'MDL-65315-master' of git://github.com/peterRd/moodle 2019-10-04 10:25:16 +08:00
Andrew Nicols fe0944987e MDL-66011 test: remove magic @covers lines 2019-10-04 09:40:34 +08:00
Andrew Nicols 8847ec4791 MDL-66011 tests: Stop forcing coverage annoation 2019-10-04 09:39:50 +08:00
Eloy Lafuente (stronk7) c41f4e56d3 Merge branch 'MDL-66476_master' of git://github.com/dmonllao/moodle 2019-10-04 01:59:14 +02:00
Eloy Lafuente (stronk7) 04c0050dcc Merge branch 'MDL-66397-master-embed' of git://github.com/vmdef/moodle 2019-10-03 23:25:21 +02:00
David Monllaó f5c65ba37f MDL-66476 mlbackend: Use F1 as the main accuracy metric 2019-10-04 05:20:49 +08:00
David Monllaó ebec727cd3 MDL-66004 mlbackend_python: Purge testing output dirs properly 2019-10-04 05:19:45 +08:00
Eloy Lafuente (stronk7) ef7aded996 Merge branch 'MDL-56649-master' of git://github.com/bmbrands/moodle 2019-10-03 19:37:05 +02:00
Eloy Lafuente (stronk7) 40763810d9 Merge branch 'MDL-65327_master' of https://github.com/marxjohnson/moodle 2019-10-03 19:27:49 +02:00
Eloy Lafuente (stronk7) 0036173459 Merge branch 'MDL-66004_master-delete_fix' of git://github.com/dmonllao/moodle 2019-10-03 18:41:36 +02:00
Adrian Greeve 8515fbfbaa Merge branch 'MDL-65919-master' of git://github.com/marinaglancy/moodle 2019-10-03 15:59:03 +08:00
Jun Pataleta 27c648a095 Merge branch 'MDL-61450-master' of git://github.com/lameze/moodle 2019-10-03 15:42:19 +08:00
Jun Pataleta ec720611d5 MDL-61450 calendar: Unit test for calendar_view_event_allowed()
* Unit test for calendar_view_event_allowed() when dealing with course
events.
2019-10-03 15:38:43 +08:00
Juan Leyva 12a289c7a4 MDL-66775 tool_mobile: Return additional app data
We need this information for creating a link to the app store listing for updating.
2019-10-03 09:29:38 +02:00
Juan Leyva 4bf08f5b4d MDL-66775 tool_mobile: New force minimum app version setting 2019-10-03 09:29:38 +02:00
Simey Lameze ec482557a8 MDL-61450 calendar: fix course event type permissions 2019-10-03 13:20:33 +08:00
David Monllaó 63c15f6c58 MDL-66004 mlbackend_python: Purge testing output dirs properly 2019-10-03 09:45:57 +08:00
Peter 8c95b7d9bb MDL-65774 mod_assign: Updated pdf to include FPDI upgrades 2019-10-03 07:47:11 +08:00
Peter 68713f585f MDL-65774 mod_assign: Update fpdi library to 2.2.0 2019-10-03 07:47:11 +08:00
Eloy Lafuente (stronk7) aab2b2103e Merge branch 'MDL-66774-master-macedonia' of git://github.com/mudrd8mz/moodle 2019-10-03 00:57:21 +02:00
Eloy Lafuente (stronk7) 846521d817 Merge branch 'MDL-63453-38_media_videojs_upgrade' of https://github.com/mattporritt/moodle 2019-10-03 00:48:56 +02:00
Eloy Lafuente (stronk7) 5260feb506 Merge branch 'MDL-66197-master' of git://github.com/marinaglancy/moodle 2019-10-03 00:45:31 +02:00
Eloy Lafuente (stronk7) 20502fa30c Merge branch 'MDL-66004_master' of git://github.com/dmonllao/moodle 2019-10-02 20:53:24 +02:00
Eloy Lafuente (stronk7) 35da660ab0 Merge branch 'MDL-66254_master' of git://github.com/dmonllao/moodle 2019-10-02 17:00:39 +02:00
Eloy Lafuente (stronk7) d25ece5ed9 Merge branch 'MDL-65957-master' of git://github.com/mihailges/moodle 2019-10-02 16:49:30 +02:00
Eloy Lafuente (stronk7) 637707bcb0 Merge branch 'MDL-64588-master-2' of git://github.com/snake/moodle 2019-10-02 16:39:44 +02:00
Jun Pataleta 31b4ff1db3 Merge branch 'MDL-62191_master' of git://github.com/dmonllao/moodle 2019-10-02 16:35:50 +08:00
Adrian Greeve 8fec1626d0 Merge branch 'MDL-66477-master' of git://github.com/junpataleta/moodle 2019-10-02 16:15:13 +08:00
Jun Pataleta 83e1b0e7f1 MDL-66477 mod_forum: Enclose setting switch in div 2019-10-02 16:12:44 +08:00
Jake Dallimore 0c3eaf9ee6 MDL-64588 core_comment: fix unnecessary type check in add_comments
We should rely on the return type, else an exception with be thrown.
2019-10-02 09:23:43 +08:00
Jake Dallimore 93ea6612bd MDL-64588 core_comment: make external test code use helper method
Instead of using setUp to create testing objects, use a helper.
2019-10-02 09:23:43 +08:00
Jake Dallimore ae94d477a6 MDL-64588 core_comment: fix get_comment ordering when timestamps match
Include id in the sorting, to be sure that we always get the correct
record in cases where the comment timestamps are the same.
2019-10-02 09:23:43 +08:00
Jake Dallimore 6cd3d398a9 MDL-64588 core_comment: use comment structure in external get_comments
Other minor changes include:
- added the since tag to newly added external functions
- Changed 'web service' to 'external function' in comment/upgrade.txt
2019-10-02 09:23:33 +08:00
David Monllaó 463b63db2a MDL-66004 analytics: mlbackend_python tested just once
Either running locally from the web server or using a server if
TEST_MLBACKEND_* vars are set. The tests will still be skipped if
the python backend is not available in the web server.
2019-10-02 08:41:14 +08:00
David Monllaó fea66a0854 MDL-66004 mlbackend_python: Bump the required python package version 2019-10-02 08:41:14 +08:00
David Monllaó aa5b705607 MDL-66004 mlbackend_python: Package installed on a separate server 2019-10-02 08:41:14 +08:00
David Monllaó 7bde26ed9f MDL-66254 analytics: Requires active enrolments for most of analysis 2019-10-02 08:12:56 +08:00
David Monllaó ea30943119 MDL-66254 course: Unit tests for the new restrictions 2019-10-02 08:12:56 +08:00
Eloy Lafuente (stronk7) 5e58b43ca7 Merge branch 'MDL-65096-m' of https://github.com/micaherne/moodle 2019-10-02 00:01:37 +02:00
Eloy Lafuente (stronk7) 7dbc1041b3 Merge branch 'MDL-65335_master' of https://github.com/marxjohnson/moodle 2019-10-01 23:21:51 +02:00
Tim Hunt 6e73157a3c MDL-66815 behat: question category generator must find right parent id
This is implemented in a bit of a hacky way, because the only other
alternative would be a large rewrite of the whole class, which is
not feasible for me right now. Note that many other types of thing
that can be generated suffer from the same issue. (E.g. if you ever
wanted to generate two groups with the same name in two different
courses and then add group memebers.)

It is worth doing a special-case fix for question categories, because
way Moodle works, it is inevitable that we end up with many categories
called 'top' in the database.
2019-10-01 16:43:25 +01:00
Eloy Lafuente (stronk7) ba9110e1c8 Merge branch 'MDL-65522' of https://github.com/NeillM/moodle 2019-10-01 16:09:57 +02:00
Eloy Lafuente (stronk7) 13b85c61c6 Merge branch 'MDL-66542_master' of https://github.com/t-schroeder/moodle 2019-10-01 15:56:08 +02:00
Marina Glancy 57876874c3 MDL-66020 core_form: add date selector js only when rendered 2019-10-01 12:20:24 +02:00
Paul Holden d99bbd8e80 MDL-66659 core: observe viewfullnames capability in flexible_table. 2019-10-01 10:07:29 +01:00
Jake Dallimore 9a820e0af9 MDL-66725 core: fix language in str.js
When ommitted from the get_string() or get_strings() calls, it should be
inferring from the page language.
2019-10-01 13:53:59 +08:00
Kristian Ringer 5bd72dd661 MDL-66805 search: Close session early during searches 2019-10-01 12:30:13 +10:00
Mihail Geshoski e8edca25b8 MDL-65957 repository_upload: Throw exception if @_file_upload is missing 2019-10-01 09:35:53 +08:00
Mihail Geshoski 56932a19b4 MDL-65957 mod_imscp: Add required @file_upload tag in behat scenarios 2019-10-01 09:35:53 +08:00
Juan Leyva 09899abc55 MDL-64588 comment: New WebService core_comment_delete_comment 2019-10-01 09:26:01 +08:00
Juan Leyva 8e4a9ed854 MDL-64588 comment: New WebService core_comment_add_comment 2019-10-01 09:26:01 +08:00
Juan Leyva 2234b6c9dc MDL-64588 comment: Return whether the user can post in a comments area 2019-10-01 09:25:36 +08:00
Paul Holden aa5e150172 MDL-66792 tool_dataprivacy: correct fa classes in privacy registry. 2019-09-30 23:49:14 +01:00
Eloy Lafuente (stronk7) 12c377bbb6 Merge branch 'MDL-65876-master' of https://github.com/lucaboesch/moodle 2019-10-01 00:07:30 +02:00
Paul Holden 8208292f65 MDL-66804 user: consistent user access times in privacy export. 2019-09-30 23:02:50 +01:00
Tim Hunt e247068d72 MDL-66801 questions: XML import/export should include category idnumbers 2019-09-30 18:59:23 +01:00
Brendan Heywood 3bc082dd07 MDL-66166 core_useragent: Update MoodleBot UA and treat as web crawler 2019-09-30 23:30:20 +10:00
Tim Hunt e740085116 MDL-66796 question bank: 0 is a valid question category idnumber 2019-09-30 14:18:35 +01:00
Marina Glancy ec8453c122 MDL-65187 core_hub: truncate registration request, use post 2019-09-30 13:05:19 +02:00
Marina Glancy 04645f4e9b MDL-65187 core_hub: send more important info first to moodle.net
Rumor has it that some browsers may truncate the GET request to 2000 characters,
make sure that all important info is sent first
Everything else will be updated on the first registration update request.
2019-09-30 13:05:19 +02:00
Marina Glancy b51bfaf594 MDL-65919 core: add test for table download 2019-09-30 12:00:37 +02:00
Alberto Lara Hernández 40a6b502ae MDL-65919 core: Skip send headers during phpunit exec in dataformats 2019-09-30 12:00:33 +02:00
Tim Schroeder f8f04b773d MDL-66542 lib: Fix quote escaping in JS quote helper 2019-09-30 10:09:07 +02:00
Neill Magill b3a0f15444 MDL-65522 block_social_activities: Improve behat steps documentation
The documentation for these steps was not helpful in the Acceptance
testing admin tool page.
2019-09-30 08:56:31 +01:00
Mikhail Golenkov 15136147ba MDL-66794 core_customfield: Reset Course handler after unit tests run. 2019-09-30 10:56:04 +10:00
Mikhail Golenkov 1a15925240 MDL-66304 files: Allow xsendfile support in alternative file system. 2019-09-30 09:00:57 +10:00
Luca Bösch b284ab6935 MDL-65876 forum: same arrows forum/activity navigation 2019-09-27 14:20:17 +02:00
Victor Deniz Falcon e83fd27717 MDL-66397 filter_h5p: converts H5P URLs to embed code 2019-09-27 11:01:12 +01:00
Ryan Wyllie 49f5b16c61 MDL-66477 mod_forum: remove duplicate listeners in settings drawer 2019-09-27 15:50:03 +08:00
Ryan Wyllie b53f15b111 MDL-66477 theme: add some core styling
Add a generic colour-inherit class and fix styling for icon
buttons and reset-style class.
2019-09-27 15:46:15 +08:00
Ryan Wyllie b17bb71e88 MDL-66477 javascript: add toggle functionality to drawer 2019-09-27 15:46:15 +08:00
Ryan Wyllie 6d9c93560b MDL-66477 core: remove snakeCase block regions from drawer.mustache 2019-09-27 15:46:15 +08:00
Jun Pataleta 959b996c50 MDL-66477 mod_forum: Create the discussion settings drawer 2019-09-27 15:46:13 +08:00
Ryan Wyllie c77d1ae40f MDL-66477 mod_forum: move region main settings menu to header
Add a generic way to render actions in the page content header
and then moved the region main settings menu there for the forum.
2019-09-27 15:38:54 +08:00
Jun Pataleta 8aca1807ae MDL-66477 message: Use the generic drawer for the message drawer 2019-09-27 15:38:54 +08:00
Jun Pataleta a2517225dc MDL-66477 core: Create a generic drawer template 2019-09-27 15:38:54 +08:00
David Monllaó 386d109172 MDL-62191 analytics: Support for bulk actions 2019-09-27 14:13:52 +08:00
David Monllaó af29098a2e MDL-62191 course: Remove predictiondetails leftover
The no_teaching model initially had just 1 indicator, the removed
code was deleting the action using an unexisting key.
2019-09-27 14:12:48 +08:00
David Monllaó 95fcf8769b MDL-62191 output: No secondary buttons trigger if no buttons 2019-09-27 14:12:48 +08:00
David Monllaó ca81e906e0 MDL-62191 output: New extra attributes for single_button
Useful for data- attributes.
2019-09-27 14:12:48 +08:00
David Monllaó 4463a4ae92 MDL-66628 tool_analytics: Effectiveness report to insights report 2019-09-27 14:05:36 +08:00
Jun Pataleta 9528b1ff5b weekly release 3.8dev 2019-09-27 11:12:09 +08:00
Jun Pataleta 46a8d27028 NOBUG: Fixed SVG browser compatibility 2019-09-27 11:12:09 +08:00
Jun Pataleta 725151ad4c Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-09-27 11:12:08 +08:00
Jun Pataleta 2e72a52145 Merge branch 'MDL-66075-master-fix' of https://github.com/snake/moodle 2019-09-27 10:11:44 +08:00
Jake Dallimore f5e6bcf026 MDL-66075 mod_forum: reduce DB reads in forum settings generation
Instead of fetching the DB record AND then fetching it again (as
part of the vault->get_from_id() call, just use the legacy data
mapper and remove the DB call.
2019-09-27 09:50:23 +08:00
Jake Dallimore d310bf92b2 Merge branch 'MDL-64821' of https://github.com/stronk7/moodle 2019-09-27 09:40:23 +08:00
Ruslan Kabalin a742b03d8c MDL-63453 media_videojs: Use media_source mimetype group in the player. 2019-09-27 00:13:29 +00:00
Ruslan Kabalin 037124bf1c MDL-63453 filetypes: Introduce media_source mimetype group.
This is required to group together media streaming techniques that are
handled by Media Source Extensions (MSE) in the browser.

https://developer.mozilla.org/en-US/docs/Web/API/Media_Source_Extensions_API
2019-09-27 00:13:09 +00:00
Eloy Lafuente (stronk7) cc28bff60e MDL-64821 mod_forum: increase data privacy export expected size
Some new styles added have caused the resulting zip
file to go beyond that accepted limit of 135000. So
increasing to 140000.
2019-09-26 19:35:54 +02:00
Eloy Lafuente (stronk7) c2c1cbd40a Merge branch 'MDL-66570-master' of git://github.com/andrewnicols/moodle 2019-09-26 15:56:38 +02:00
David Mudrák f5155c7526 MDL-66774 lang: Update the list of countries as per ISO 3166-1
Source: https://www.iso.org/obp/ui/

Two significant changes are:

* North Macedonia
* Eswatini

All other changes are formal, such as changing the letter case of the
"And" (the current ISO uses the lower case "and").  Our own existing
modifications of the list (such as having just "United States" and
"United Kingdom" instead of the full long name) were kept.
2019-09-26 09:49:16 +02:00
Jake Dallimore 57054fc66b Merge branch 'MDL-66481-master-6' of git://github.com/junpataleta/moodle 2019-09-26 11:57:51 +08:00
Jun Pataleta 8dc1505374 Merge branch 'MDL-66262' of git://github.com/stronk7/moodle 2019-09-26 11:34:45 +08:00
Jun Pataleta 0f3e5a9b8d MDL-66481 forum: Show notification on toggled subscription
For usability, after selecting the subscription toggle action menu item,
a notification message will be shown to the user.
2019-09-26 10:47:05 +08:00
Jun Pataleta 5132de054c MDL-66481 forum: Remove the YUI subscribe link
* Remove the subscribe link that's powered by YUI and
  subscribe_ajax.php. This will be replaced by the subscribe action
  menu item which utilises the subscription toggle template
  and calls the proper WS function for toggling discussion subscription.
* Nuke YUI module for toggling subscription and subscribe_ajax.php
  (about time!)
2019-09-26 10:47:05 +08:00
Jun Pataleta 2b8e4f2e4b MDL-66481 mod_forum: Peer review fixes 2019-09-26 10:47:05 +08:00
Jun Pataleta dff565b32c MDL-66481 mod_forum: Move "Mark as read" into the discussion menu 2019-09-26 10:47:05 +08:00
Jun Pataleta bc23cbaf54 MDL-66481 mod_forum: Implement additional column sorting
Implement sorting for the following columns:
* Discussion name
* Discussion starter name
* Group
2019-09-26 10:47:05 +08:00
Jun Pataleta a78070aa1b MDL-66481 mod_forum: Move timed discussion indicator
* Move it under the discussion column.
* Change it to look like a label
* Plus limit the group name to 15 characters
* Plus some accessibility fixes:
  - Add labels to column headings.
  - Set discussion name as a row heading.
2019-09-26 10:47:05 +08:00
Jun Pataleta 1a9e5cb230 MDL-66481 mod_forum: Update discussion list UI
* Remove striped table row style
* Move subscribe icon to the action menu
* Update the action menu icon
* Remove the Last post column
* Removed the "Created" column and moved the date under "Started by"
* Added "Locked" and "Subscribed" indicators under discussion names.
* Added group name with the group picture. For groups without pictures,
  a default placeholder picture is now shown.
2019-09-26 10:47:05 +08:00
Jun Pataleta 5bfde48125 MDL-66481 mod_forum: Switch action menu trigger to <a> tag
* This is how the usual moodle action menu is built.
* Removed the 'type="button"' attribute as it is not necessary.
* Added template context so it renders in the template library.
2019-09-26 10:47:05 +08:00
Jun Pataleta 0aba625a9c MDL-66481 lang: Add additional date display formats
* Day, abbreviated month, and year (e.g. 28 Aug 2019)
* Day and abbreviated month (e.g. 28 Aug)
2019-09-26 10:47:05 +08:00
Jake Dallimore c3122dfcf5 Merge branch 'MDL-64821-master-2' of https://github.com/ryanwyllie/moodle 2019-09-26 10:45:44 +08:00
Eloy Lafuente (stronk7) 07fd11f488 Merge branch 'MDL-66106-master' of https://github.com/snake/moodle 2019-09-26 00:54:36 +02:00
Eloy Lafuente (stronk7) e8a2d532fa Merge branch 'MDL-66169-master' of https://github.com/snake/moodle 2019-09-26 00:47:23 +02:00
Eloy Lafuente (stronk7) 31b822ee2f Merge branch 'MDL-66653-master' of git://github.com/andrewnicols/moodle 2019-09-26 00:29:07 +02:00
Eloy Lafuente (stronk7) dd52ef0b64 Merge branch 'MDL-51327-master' of git://github.com/mihailges/moodle 2019-09-26 00:04:33 +02:00
Eloy Lafuente (stronk7) d910c26e69 Merge branch 'MDL-66685' of https://github.com/timhunt/moodle 2019-09-25 23:57:42 +02:00
Eloy Lafuente (stronk7) b57e984398 Merge branch 'MDL-66675-master' of git://github.com/andrewnicols/moodle 2019-09-25 20:05:21 +02:00
Marina Glancy 54f2d0c49e MDL-66197 core: correct get parent language 2019-09-25 16:49:11 +02:00
Bas Brands 736faf86c5 MDL-66749 core_message: remove background from notifications 2019-09-25 12:46:32 +02:00
Tim Hunt b04b6ae1ab MDL-66764 quiz: redo question should not repeat random questions
Before this fix, it was only considering questions seen in previous attempts.

It should avoid the questions in the current attmept too.
2019-09-25 11:04:38 +01:00
Bas Brands 61085ebfda MDL-56649 themes: filepicker file exists buttons spacing 2019-09-25 12:03:37 +02:00
Jun Pataleta ba623918f6 Merge branch 'MDL-66354-master' of http://github.com/dravek/moodle 2019-09-25 16:43:15 +08:00
Ryan Wyllie 15ecfac435 MDL-64821 mod_forum: fix modern view in single discussion forum 2019-09-25 15:36:51 +08:00
Ryan Wyllie a5f88ccca2 MDL-64821 theme_classic: disable some boost general page styling
Disable the reset and fixed width content styling from the Boost
theme for the classic theme because it doesn't work well with
blocks.
2019-09-25 15:36:51 +08:00
Ryan Wyllie 23e0ceca16 MDL-64821 mod_forum: don't show name of deleted user
When a user account is deleted don't render the user's name in
the forum. Instead we render "Deleted user".
2019-09-25 15:36:51 +08:00
Ryan Wyllie b97622a01c MDL-64821 mod_forum: fix keyboard nav for discussion 2019-09-25 15:36:51 +08:00
Ryan Wyllie 7902e4dc55 MDL-64821 mod_forum: add show/hide reply toggle for modern view 2019-09-25 15:36:51 +08:00
David Matamoros 21ad9531d0 MDL-66354 core_calendar: Notices in error.log on calendar events 2019-09-25 09:08:41 +02:00
Jun Pataleta 84e66f0932 Merge branch 'MDL-66644-master-versionrequires' of git://github.com/mudrd8mz/moodle 2019-09-25 14:54:29 +08:00
Jun Pataleta e5e95d913f Merge branch 'MDL-66710-master' of git://github.com/abgreeve/moodle 2019-09-25 14:38:23 +08:00
Ryan Wyllie 38d96b6540 MDL-64821 mod_forum: add in page reply to modern display mode 2019-09-25 14:35:59 +08:00
Matt Porritt 411bbe6ba0 MDL-63453 media_videojs: Upgrade Video.JS to 7.6.5.
Upgrade videojs media player to version 7.6.5 as well
as a general update this adds MPEG-DASH and HLS playlist
support to the Video.JS media player.
2019-09-25 05:52:38 +00:00
Ryan Wyllie fe8e8ad4c4 MDL-64821 mod_forum: render new forum display mode when selected 2019-09-25 13:12:53 +08:00
Adrian Greeve 91577e2d54 Merge branch 'wip_MDL-66656_master' of git://github.com/gjb2048/moodle 2019-09-25 11:39:57 +08:00
Adrian Greeve 0417f5429c Merge branch 'MDL-65406-master_navmenu_list_accessibility' of https://github.com/andrewmadden/moodle 2019-09-25 11:22:50 +08:00
Adrian Greeve 1b84061049 Merge branch 'MDL-66388-master-2' of git://github.com/bmbrands/moodle 2019-09-25 11:08:50 +08:00
Ryan Wyllie 7255378b0a MDL-64821 mod_forum: add templates for modern display mode 2019-09-25 10:47:56 +08:00
Ryan Wyllie b7c27c2158 MDL-64821 mod_forum: add modern display mode option
Add the "modern" display mode option to the view selector.
2019-09-25 10:42:19 +08:00
Ryan Wyllie 4dd2570dd7 MDL-64821 output: add wrapping class for ratings label
Add a span tag with a class that wraps the ratings label and popup
link so that it can be styled.
2019-09-25 10:42:19 +08:00
Ryan Wyllie e81be9a8b1 MDL-64821 files: increase icon image size for stored file exporter
The default size for the stored file icon was only 16px by 16px which
wasn't suitable for display in the new forum layout. I've increased
the default size to 128px by 128px so that it looks better scaled up.
2019-09-25 10:42:19 +08:00
Ryan Wyllie 060da692b6 MDL-64821 theme_boost: enable bootstrap tooltips 2019-09-25 10:42:19 +08:00
Ryan Wyllie 5ca0958d2f MDL-64821 theme_boost: add general core styling
Added some classes to reset the content styling to a flatter
look and fix the content width.

Also fixed up the toggle styling which was previously broken.
2019-09-25 10:42:19 +08:00
Eloy Lafuente (stronk7) 4544d9dc46 Merge branch 'MDL-66748-master' of git://github.com/andrewnicols/moodle 2019-09-24 23:26:51 +02:00
Andrew Nicols 14d8cdcc35 MDL-66748 core_grading: Use new gradingform data providers 2019-09-24 21:04:14 +08:00
Andrew Nicols d6576ca229 MDL-66748 gradingform_rubric: Add data generators 2019-09-24 21:04:14 +08:00
Andrew Nicols c71d5bbbba MDL-66748 gradingform_guide: Add data generators 2019-09-24 21:04:14 +08:00
Tim Hunt 824d1f8f52 MDL-66754 question engine: fix lots of PHPdoc errors
This fixes essentially all the things PHPstorm was warning about in
question/engine/datalib.php and question/engine/questionusage.php.
2019-09-24 10:25:29 +01:00
Andrew Madden 1ea3940c62 MDL-65406 theme_boost: Add list markup to nav drawer for accessibility
To take advantage of native accessibility features of lists such as counting
the number of items in the list for screen readers, the nav menu should
wrap it's links in unordered list markup.
2019-09-24 14:46:21 +10:00
Jun Pataleta 844d27b2cd Merge branch 'MDL-65968-master' of git://github.com/jleyva/moodle 2019-09-24 12:01:10 +08:00
Andrew Nicols 62b45c66ad MDL-66748 core_grading: Add generator 2019-09-24 11:26:41 +08:00
Mihail Geshoski efe8c3c663 MDL-51327 core_course: Allow subdirs in edit section form 2019-09-24 09:08:14 +08:00
Peter e6445c5bd9 MDL-65315 badges: Update the class and issuer OBv2.0 url 2019-09-24 07:33:13 +08:00
Eloy Lafuente (stronk7) ef6a958dfb Merge branch 'MDL-66733-master' of git://github.com/andrewnicols/moodle 2019-09-23 23:35:42 +02:00
Eloy Lafuente (stronk7) 08a6375507 Merge branch 'MDL-65588_master' of git://github.com/dmonllao/moodle 2019-09-23 22:51:10 +02:00
Tim Hunt c7a6488fad MDL-66743 backup: reports should be able to backup module-level data 2019-09-23 19:24:33 +01:00
Tim Hunt e05d99b94f MDL-66709 backup: move question attempt data helpers to a trait
This lets plugins other than activity modules backup and restore
question attempt data.

The old backup_questions_activity_structure_step and
restore_questions_activity_structure_step base classes still exist
and work exactly the same way they did before (because they use the
trait) so this change is completely backwards compatible.

To make this work fully, a few other things in the code had to be tweaked:

* Adding restore path elements had to consider the possibility of grouped
  parents in more places.

* I needed to add protected get_task() to the restore_plugin class.
  I don't think that is a problem.

* In the restore trait, the process_question_... methods needed to be
  changed to public for some reasons to do with PHP traits that I don't
  fully understand. However, I don't think this change is a problem.

* The way question_usage restore got the new contextid had to be changed
  (or it did not work in activity contexts), but the new code looks like
  a better way to do it anyway so that is good.
2019-09-23 19:24:32 +01:00
Tim Hunt 118d62a266 MDL-66709 quiz: add a Behat test for backup/restore of quiz attempts 2019-09-23 19:21:36 +01:00
Tim Hunt a6a4034b38 MDL-66709 backup: improve some PHPdoc type hints
I hope these are right. They seem to be, and made the autocomplete
better in some backup/restore code I was writing.
2019-09-23 19:21:09 +01:00
Tim Hunt 7b1b478761 MDL-66754 question engine: make $slots argument optional
Sometimes there is not a fixed list of slots, and you just want all data.
2019-09-23 18:03:23 +01:00
Bas Brands 297f7e411c MDL-66388 h5p: add h5p atto button 2019-09-23 16:32:23 +02:00
Tim Hunt 36f90f3ef0 MDL-66750 formslib selects: handle size attribute properly 2019-09-23 12:14:11 +01:00
Jake Dallimore 74e9aeca79 Merge branch 'MDL-66075-master' of git://github.com/lameze/moodle 2019-09-23 14:14:55 +08:00
Simey Lameze 0d2b3212d6 MDL-66075 mod_forum: unit tests for get_from_discussion_ids_and_user_ids 2019-09-23 13:48:48 +08:00
Simey Lameze 6d76fc107a MDL-66075 enrol: add unit tests for search_users webservice 2019-09-23 13:07:40 +08:00
Simey Lameze 1de4baf1f1 MDL-66075 core: various fixes & code polishing
* Removes unnecessary comment in search_users() WS.
* Replaces DB call by get_course() in search_users() WS.
* Fix discussionids handling on export.php.
* Coding style fix in test_search_users unit test.
* Add missing version bump.
* phpDOc fixes in post vault.
* Fix in the dataformat callback to handle different data types.
2019-09-23 13:07:30 +08:00
Jun Pataleta 8b09690540 Merge branch 'MDL-66645' of git://github.com/stronk7/moodle 2019-09-23 11:58:43 +08:00
AMOS bot f58b8a0162 Automatically generated installer lang files 2019-09-22 00:09:11 +00:00
Gareth Barnard f254cef989 MDL-66656 format_social: Edit Summary Icon leads to 'File not found'. 2019-09-20 21:44:33 +01:00
Eloy Lafuente (stronk7) d1e051d0c7 MDL-66645 install: update the list of stale files for 3.8 2019-09-20 16:16:31 +02:00
Sara Arjona c2b4ebe9cf Merge branch 'MDL-46978-Master' of github.com:tuanngocnguyen/moodle 2019-09-20 13:07:27 +02:00
Sara Arjona 1445f82315 Merge branch 'MDL-66090_master' of git://github.com/dmonllao/moodle 2019-09-20 12:46:16 +02:00
Mark Johnson d91aa1e760 MDL-65327 performance: Lazy-load module name strings 2019-09-20 08:59:34 +01:00
Mark Johnson f3c9599e1f MDL-65335 auth: Make oauth2 enabled check more efficient 2019-09-20 08:54:40 +01:00
Jake Dallimore 564a6e8650 Merge branch 'MDL-65970-master' of git://github.com/jleyva/moodle 2019-09-20 14:27:57 +08:00
Jake Dallimore 24ddc6dc64 MDL-66075 mod_forum: add more coverage of get_from_discussion_ids
Specifically, this is now testing the $canseeprivatereplies param for
different users and over a more complete range of cases.
2019-09-20 12:16:18 +08:00
Andrew Nicols 4bb39eabc7 MDL-66733 grade: Add helper to get correct user date for grade 2019-09-20 09:50:17 +08:00
Tom Dickman 4487612c4a MDL-63453 media_videojs: Upgrade Video.JS to 7.5.5.
Upgrade Video.JS to 7.5.5
Upgrade videojs-youtube plugin to 2.6.0
Upgrade videojs-flash plugin to 2.2.2

Added additional AMD modules for bootstrapping the DOM
window and document objects to Video.JS in line with the
updates made to Video.JS.
2019-09-20 01:29:19 +00:00
Jake Dallimore 5120087808 MDL-66106 core_form: fix client side validation bug caused by MDL-65217
Forms with randomised ids need to support client side validation.
2019-09-20 09:03:25 +08:00
Jake Dallimore cddbdb20b2 MDL-66169 admin: properly set debugsmtp, which is a config.php only var
This may not be set, so care must be taken to conditionally reinstate
the value, once the test email has been sent.
2019-09-20 09:01:13 +08:00
Simey Lameze babc6bf707 MDL-66075 mod_forum: coverage for ordering in test_get_from_discussion_ids 2019-09-20 08:29:47 +08:00
Simey Lameze d72d47c115 MDL-66443 mod_forum: fix error when exporting in pdf format
Part of MDL-66075.
2019-09-20 08:19:01 +08:00
Simey Lameze 30eeb2a528 MDL-66604 mod_forum: add missing exportforum lang string
Part of MDL-66075.
2019-09-20 08:19:01 +08:00
Shamim Rezaie 90093eecc1 MDL-66269 mod_forum: filter export based on user and discussion ids
Part of MDL-66075.
2019-09-20 08:19:01 +08:00
Shamim Rezaie ff0c5bbed9 MDL-66269 mod_forum: added get_from_discussion_ids_and_user_ids
Part of MDL-66075.
2019-09-20 08:19:01 +08:00
Shamim Rezaie 1ff734a47d MDL-66269 mod_forum: refactor post vault class to remove duplications
Part of MDL-66075.
2019-09-20 08:19:01 +08:00
Shamim Rezaie e61a41b425 MDL-66269 mod_forum: added filters to the export form
Part of MDL-66075.
2019-09-20 08:19:01 +08:00
Shamim Rezaie 32e4c582f0 MDL-66269 mod_forum: AMD module to fetch and format users
Part of MDL-66075.
2019-09-20 08:19:01 +08:00
Shamim Rezaie 0f308fcda7 MDL-66269 enrol: A new webservice to search course participants
Part of MDL-66075.
2019-09-20 08:19:01 +08:00
Shamim Rezaie 151ef39cd8 MDL-66269 enrol: added search_users method to course_enrolment_manager
Part of MDL-66075.
2019-09-20 08:19:01 +08:00
Shamim Rezaie c3ac38129d MDL-66269 mod_forum: removed the unnecessary hidden element
Part of MDL-66075.
2019-09-20 08:19:01 +08:00
Shamim Rezaie 078ac3aa3c MDL-66269 mod_forum: Cancelling the export should take us back to forum
Part of MDL-66075.
2019-09-20 08:19:01 +08:00
Shamim Rezaie a0185ef7b3 MDL-66269 mod_forum: the export form to use automatic class loading
Part of MDL-66075.
2019-09-20 08:19:01 +08:00
Simey Lameze fbdef95112 MDL-66314 mod_forum: fix error when exporting forum in HTML table
Part of MDL-66075.
2019-09-20 08:19:01 +08:00
Simey Lameze 75af28c73f MDL-9469 mod_forum: add exportforum capability and checks
Part of MDL-66075
2019-09-20 08:19:01 +08:00
Simey Lameze f7b7f4e679 MDL-9469 mod_forum: create basic forum export structure
Part of MDL-66075
2019-09-20 08:19:01 +08:00
Simey Lameze 357d74fda9 MDL-9469 mod_forum: add export node to settings menu
Part of MDL-66075
2019-09-20 08:19:01 +08:00
David Monllaó 2d9280e0df MDL-65588 analytics: New models for student accesses 2019-09-20 08:14:13 +08:00
David Monllaó 7d8ed90757 MDL-65588 analytics: Unit tests for any_course_access 2019-09-20 08:14:13 +08:00
David Monllaó 7b8a5bfd50 MDL-65588 tool_analytics: Alternative method to pass data to JS
The more time-splitting methods we have in core the more data we pass to
the amd module as an argument. There is a limit of 1024 characters and
a debugging message is triggered by js_call_amd if we surpass it.
2019-09-20 08:14:13 +08:00
Sara Arjona 6735197cc2 weekly release 3.8dev 2019-09-19 21:19:12 +02:00
Huong Nguyen 0fd6032ce8 MDL-66633 Quiz: Improve preview user checking 2019-09-19 16:20:42 +02:00
Nathan Nguyen 2aaac3f670 MDL-46978 core_grades: preserve category total visibility 2019-09-19 14:05:01 +10:00
Adrian Greeve f05c426357 MDL-66710 privacy: Update to template to reference js file right. 2019-09-19 10:42:48 +08:00
Andrew Nicols 1162e2c958 MDL-66675 behat: Fix typo in step function name 2019-09-19 07:30:15 +08:00
Andrew Nicols 0b07ea423b MDL-66675 behat: Add option to pause on behat failures 2019-09-19 07:30:15 +08:00
Eloy Lafuente (stronk7) 5a14a1c422 Merge branch 'MDL-66548-master' of git://github.com/bmbrands/moodle 2019-09-19 01:00:59 +02:00
Eloy Lafuente (stronk7) 0059a5e52e Merge branch 'MDL-40669' of https://github.com/paulholden/moodle 2019-09-18 23:15:13 +02:00
Paul Holden 51539ba383 MDL-40669 tool_uploaduser: set emailstop during upload Behat test. 2019-09-18 21:41:28 +01:00
Eloy Lafuente (stronk7) 502639bd3c Merge branch 'MDL-66641' of https://github.com/timhunt/moodle 2019-09-18 20:29:53 +02:00
Eloy Lafuente (stronk7) 699a12eeca Merge branch 'MDL-65878-master' of https://github.com/lucaboesch/moodle 2019-09-18 20:07:48 +02:00
Huong Nguyen 8dc015050e MDL-66633 quiz: allow to create attempts for different users
By adding a new optional param to quiz_prepare_and_start_new_attempt()
it can be used by the surrounding code to create an attempt for anybody
else (different from current $USER)

quiz attempt API should let you create an attempt for a different user
2019-09-18 19:52:09 +02:00
Eloy Lafuente (stronk7) 74241346c0 Merge branch 'MDL-65323-master' of https://github.com/snake/moodle 2019-09-18 18:15:19 +02:00
Eloy Lafuente (stronk7) 6f278d21b9 Merge branch 'MDL-63895-master' of git://github.com/vmdef/moodle 2019-09-18 17:33:17 +02:00
Eloy Lafuente (stronk7) 0fd2fd7442 Merge branch 'MDL-66536_master' of git://github.com/dmonllao/moodle 2019-09-18 16:51:40 +02:00
Eloy Lafuente (stronk7) 402966c77c Merge branch 'MDL-66091_master' of git://github.com/dmonllao/moodle 2019-09-18 16:46:51 +02:00
Sara Arjona d62447ee91 Merge branch 'MDL-63293' of https://github.com/paulholden/moodle 2019-09-18 13:39:55 +02:00
Eloy Lafuente (stronk7) 0709dfcf8b Merge branch 'MDL-40669' of https://github.com/paulholden/moodle 2019-09-18 13:13:15 +02:00
Sara Arjona 84d613deee Merge branch 'MDL-64438-master-4' of git://github.com/mihailges/moodle 2019-09-18 12:52:12 +02:00
Sara Arjona 286f876114 Merge branch 'MDL-66156-master' of https://github.com/snake/moodle 2019-09-18 12:25:36 +02:00
Mihail Geshoski 60983cc2a6 MDL-64438 block_starredcourses: Optionally show course category
AMOS BEGIN
CPY [displaycategories,block_myoverview],[displaycategories,block_starredcourses]
AMOS END
2019-09-18 17:58:24 +08:00
Mihail Geshoski d0b237b306 MDL-64438 block_recentlyaccessedcourses: Optionally show course category
AMOS BEGIN
CPY [displaycategories,block_myoverview],[displaycategories,block_recentlyaccessedcourses]
AMOS END
2019-09-18 17:57:47 +08:00
Mihail Geshoski 93ad530e8f MDL-64438 block_myoverview: Optionally display course category 2019-09-18 17:55:46 +08:00
Mihail Geshoski 704f93f46f MDL-64438 core_course: Optionally display course category 2019-09-18 17:52:20 +08:00
Jake Dallimore 61de432241 MDL-66156 block_myoverview: remove orphaned course favourite records 2019-09-18 14:33:06 +08:00
Jake Dallimore 2ab6f8a87e MDL-66156 block_myoverview: purge course favourites on course deletion. 2019-09-18 14:30:54 +08:00
David Monllaó 3581813348 MDL-66536 course: No teaching model renamed 2019-09-18 13:07:21 +08:00
David Monllaó 41db25935c MDL-66536 course: Custom message for students at risk
AMOS BEGIN
    MOV [insightinfomessage,analytics],[insightinfomessageplain,analytics]
AMOS END
2019-09-18 13:07:21 +08:00
David Monllaó 16cb4f32a0 MDL-66536 analytics: Indicators can add extra data for targets 2019-09-18 13:07:21 +08:00
David Monllaó b024720499 MDL-66536 analytics: Bulk-fetch samples data
For one_sample_per_analysable models.
2019-09-18 13:04:30 +08:00
David Monllaó 93e71c712d MDL-66091 report_insights: Unify contextwithinsights cache sets 2019-09-18 13:00:06 +08:00
Eloy Lafuente (stronk7) 1b22fec64f Merge branch 'MDL-65026-master' of git://github.com/jleyva/moodle 2019-09-18 00:49:21 +02:00
Juan Leyva 57e4faa094 MDL-65970 airnotifier: Set lower timeout for Push curl requests 2019-09-17 16:50:53 +02:00
Juan Leyva dcadc8c54c MDL-65968 notifications: Use f1 size avatars for Push notifications 2019-09-17 16:29:02 +02:00
Eloy Lafuente (stronk7) facf2f80b0 Merge branch 'MDL-62915' of https://github.com/paulholden/moodle 2019-09-17 16:21:41 +02:00
Sara Arjona 2bad312ada Merge branch 'MDL-66113-master' of git://github.com/jleyva/moodle 2019-09-17 12:03:42 +02:00
Andrew Nicols 3b4717ea4b MDL-66675 CLI: Add ANSI formatting options 2019-09-17 14:38:32 +08:00
Andrew Nicols e044c3debe MDL-66570 admin: Add setting to hide captured cron log output 2019-09-17 14:03:31 +08:00
David Monllaó 486e797c5f MDL-66091 analytics: Targets choose if there should be a report or not 2019-09-17 13:58:55 +08:00
David Monllaó 21202090f7 MDL-66091 report_insights: Usability improvements
- More feedback provided for the user once they click on useful/notuseful from the email.
- Replace the indicator calculations table headers for the table caption and
  replace the text by just "Indicators"
- Replace "System" for the site name for insights generated at system
  level
- Replace "$modelname prediction" for "$modelname" in report/insights/prediction.php
  heading

MDL-66091
2019-09-17 13:57:36 +08:00
David Monllaó d3d1615eee MDL-66090 analytics: Support user for notifications 2019-09-17 07:54:01 +08:00
Eloy Lafuente (stronk7) 37b017af3d Merge branch 'MDL-65025-master' of git://github.com/jleyva/moodle 2019-09-17 00:01:51 +02:00
Eloy Lafuente (stronk7) 164597248c Merge branch 'MDL-66293-master' of git://github.com/rezaies/moodle 2019-09-16 20:34:23 +02:00
Bas Brands 3c336f516c MDL-66548 theme_classic: secure layout block position fixes
- the secure layout for theme classic used an icorrect layout for blocks
and content. A fix has been submitted by G J Barnard.
2019-09-16 16:02:30 +02:00
Tim Hunt a3624fdf0f MDL-66685 questions: should able to save an empty question usage 2019-09-16 14:35:18 +01:00
Juan Leyva dfd4881589 MDL-65026 course: Fix modules intro formatting in WS
The Web Service seems to be doing excessive text cleaning.
2019-09-16 13:04:26 +02:00
Juan Leyva 0b9f2215d0 MDL-66113 assign: Apply user overrides in get_submission_status WS 2019-09-16 12:05:55 +02:00
Paul Holden b15bb419ba MDL-63293 enrol_manual: observe user paging config in enrol dialog. 2019-09-15 21:48:03 +01:00
Paul Holden c4e79fc604 MDL-40669 tool_uploaduser: allow emailstop to be set during upload. 2019-09-15 21:43:55 +01:00
Paul Holden 3903a26896 MDL-62915 tool_dataprivacy: don't let primary admin delete themselves. 2019-09-15 21:36:07 +01:00
Eloy Lafuente (stronk7) c2617a2878 MDL-66262 env: Moodle 3.6.x and 3.7.x do not support PHP 7.4 2019-09-13 17:41:53 +02:00
Luca Bösch 7b525dd73d MDL-65878 core_output: Move button not sticky to select field. 2019-09-13 17:21:43 +02:00
Jake Dallimore 1c3efe48f8 weekly release 3.8dev 2019-09-13 11:30:09 +08:00
Jake Dallimore c83656a6fd Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-09-13 11:30:08 +08:00
Jake Dallimore 35500af896 MDL-65323 core_favourites: replace use of deprecated phpunit methods 2019-09-13 10:21:06 +08:00
Eloy Lafuente (stronk7) ecfac20187 Merge branch 'MDL-66550-master' of git://github.com/andrewnicols/moodle 2019-09-12 15:28:06 +02:00
Andrew Nicols 419b269c9e MDL-66550 admin: The execute wrapper MUST be used in behat 2019-09-12 20:58:10 +08:00
Andrew Nicols 5034f0a12b MDL-66550 theme: Wrap JS calls in pendingJS 2019-09-12 20:58:10 +08:00
Víctor Déniz Falcón a98192b8c0 MDL-63895 user: Hide suspended enrolments to user without capability
Users without course:viewsuspendedusers capability should not view suspended
users on the participant list
2019-09-12 12:04:43 +01:00
Shamim Rezaie 74051d3b4b MDL-66293 javascript: set maximum paging bar size to 10 2019-09-12 14:23:56 +10:00
Shamim Rezaie ffa329986c MDL-66293 javascript: Added support to set bar size for paging bars 2019-09-12 14:23:56 +10:00
Andrew Nicols 82704b0d2e Merge branch 'MDL-66498_master' of git://github.com/dmonllao/moodle 2019-09-12 11:15:21 +08:00
Jake Dallimore b75e563777 Merge branch 'MDL-64917-Master' of https://github.com/tuanngocnguyen/moodle 2019-09-12 09:27:45 +08:00
Nathan Nguyen 5b54a1c726 MDL-64917 filepicker: change event dispatch 2019-09-12 10:57:21 +10:00
AMOS bot 2bf9f55af2 Automatically generated installer lang files 2019-09-12 00:09:11 +00:00
Andrew Nicols dd3e427d88 Merge branch 'MDL-66489-master' of git://github.com/rezaies/moodle 2019-09-12 07:05:50 +08:00
Eloy Lafuente (stronk7) 99c0463c0c MDL-55751 themes: document the removal of the css chunker in upgrade.txt 2019-09-11 23:25:56 +02:00
Eloy Lafuente (stronk7) 6cbc3be766 Merge branch 'MDL-55751-master' of git://github.com/bmbrands/moodle 2019-09-11 23:16:51 +02:00
Eloy Lafuente (stronk7) 61e82de3ee Merge branch 'MDL-65205-master' of git://github.com/bmbrands/moodle 2019-09-11 22:55:01 +02:00
Eloy Lafuente (stronk7) 3e9a7db3bd Merge branch 'MDL-66563' of https://github.com/timhunt/moodle 2019-09-11 20:10:33 +02:00
Andrew Nicols 76e0b6315a Merge branch 'MDL-66552-master' of https://github.com/snake/moodle 2019-09-11 21:19:51 +08:00
Shamim Rezaie 3919150d37 MDL-66489 enrol: prevent warning when the duration field is disabled 2019-09-11 20:18:43 +10:00
Shamim Rezaie 2d4ce64dde MDL-66489 enrol: Send all form data to WS and do all busines logic there
It is discouraged to use JS Date functions. We should pass all raw data to PHP.
2019-09-11 20:18:26 +10:00
Andrew Nicols 15f13cb74c Merge branch 'MDL-65429-master' of git://github.com/peterRd/moodle 2019-09-11 14:21:42 +08:00
Andrew Nicols 78b0a0c201 MDL-66653 javascript: Support ES6 dynamic imports 2019-09-11 14:06:32 +08:00
Jake Dallimore 6739739100 Merge branch 'MDL-65493-master' of git://github.com/andrewnicols/moodle 2019-09-11 13:45:19 +08:00
David Monllaó abc745fbd0 MDL-66498 analytics: get_samples() with no params limit 2019-09-11 12:44:55 +08:00
David Monllaó 4fd74fba6f MDL-66498 analytics: Avoid get_in_or_equal for big arrays
Also, join directly with context table.
2019-09-11 12:44:55 +08:00
David Monllao 500111c5d3 MDL-66498 analytics: SQL IN in chunks 2019-09-11 12:44:55 +08:00
Andrew Nicols 5f6ac2017a Merge branch 'MDL-66328' of https://github.com/timhunt/moodle 2019-09-11 12:21:14 +08:00
Andrew Nicols 20cc24e684 Merge branch 'MDL-65935-master' of git://github.com/junpataleta/moodle 2019-09-11 12:16:57 +08:00
Jake Dallimore 28be82a6a6 Merge branch 'MDL-66550-master' of git://github.com/andrewnicols/moodle 2019-09-11 10:39:17 +08:00
Eloy Lafuente (stronk7) 3c96a88cb4 Merge branch 'MDL-66436-master' of https://github.com/lucaboesch/moodle 2019-09-11 01:21:16 +02:00
Eloy Lafuente (stronk7) 6511a64fa5 Merge branch 'MDL-65310-master' of https://github.com/tsmilan/moodle 2019-09-11 00:41:22 +02:00
David Mudrák ac0a4b568b MDL-66644 admin: Display required moodle version only when declared
The minimum required Moodle version specified in the plugin's
version.php file is not a mandatory field. If it is not declared, do not
display "Moodle {$a}".
2019-09-10 18:11:09 +02:00
Andrew Nicols bb6315f281 MDL-66550 forum: Target fields in a fieldset for behat test 2019-09-10 21:29:03 +08:00
Andrew Nicols 2920155a31 MDL-66550 behat: Transform fields to search in a fieldset 2019-09-10 21:29:03 +08:00
Andrew Nicols d10ed4d240 MDL-66550 behat: Standardise finding in core functionality 2019-09-10 21:29:03 +08:00
Andrew Nicols b983ae4ab8 MDL-66550 behat: Add ability to transform a specific selector 2019-09-10 21:29:00 +08:00
Andrew Nicols 700682dc40 MDL-66550 behat: Normalise selectors better 2019-09-10 21:28:47 +08:00
Tim Hunt 287134e1dd MDL-66641 quiz stats: discriminativeefficiency is already out of 100 2019-09-10 12:11:27 +01:00
Jake Dallimore dd68a81958 Merge branch 'MDL-64094' of https://github.com/NeillM/moodle 2019-09-10 14:42:58 +08:00
Jake Dallimore 42bce7a965 Merge branch 'MDL-58992_master' of git://github.com/dmonllao/moodle 2019-09-10 13:40:23 +08:00
Jake Dallimore 527595f3f8 Merge branch 'MDL-66409-edit-numerical/master' of https://github.com/RaAstons/moodle 2019-09-10 13:34:36 +08:00
Andrew Nicols add66da52d Merge branch 'MDL-63250-master' of https://github.com/Kathrin84/moodle 2019-09-10 12:33:20 +08:00
Andrew Nicols 158df6275e Merge branch 'MDL-66537-master' of git://github.com/peterRd/moodle 2019-09-10 12:18:16 +08:00
Jake Dallimore e524921353 Merge branch 'MDL-66599_master' of git://github.com/dmonllao/moodle 2019-09-10 10:46:28 +08:00
Peter 44ad3e5171 MDL-66537 assign: Force rotate buttons to keep positioning in RTL langs 2019-09-10 10:23:13 +08:00
Andrew Nicols 95d3a87dd4 Merge branch 'MDL-66502-master' of git://github.com/junpataleta/moodle 2019-09-10 09:35:08 +08:00
Tim Hunt f1f3101b4e MDL-66328 groups: overview page can require lots of memory 2019-09-09 11:18:23 +01:00
Bas Brands 8ea1e39f4c MDL-55751 themes: remove the css chunker
The css chunker is a workaround a browser bug for old IE versions
2019-09-09 11:18:05 +02:00
Frédéric Massart f3847964b6 MDL-66502 javascript: Remove extension from AMD module names 2019-09-09 16:25:17 +08:00
Raphaël Santos 21d6123fbd MDL-66409 mod_lesson: Fix editing of numerical pages
This avoids using the "magic" `isset` function implemented
within the lesson_base class (which returns the `empty` function).
In the case of the answer beeing `0`, the test fails and the answer
is considered to be deleted.
2019-09-09 09:39:34 +02:00
Andrew Nicols 259467d283 Merge branch 'MDL-66488' of https://github.com/willob99/moodle 2019-09-09 09:07:07 +08:00
Vlad Apetrei 8cb90066d4 MDL-58992 analytics: add multi-classification to predictors
Adds multi-class capabilities to prediction processors
as well as multi-classification unit tests
2019-09-09 08:49:56 +08:00
David Monllaó f5583e9718 MDL-66599 analytics: New index for analytics_used_analysables 2019-09-09 08:30:50 +08:00
Jun Pataleta 0aa833de2e MDL-65935 mod_feedback: Use new core/checkbox_toggleall
Plus:
* Add labels for each nonrespondent's checkbox to improve
accessibility.
* Remove the now-unused mod/feedback/feedback.js
2019-09-08 10:01:05 +08:00
Will O'Brien 163750f3e5 MDL-66488 mod_assign: make submission comments textarea expandable
Allow submission comments textarea on assignment "View all submissions"
page to expand both ways, rather than just vertically.
2019-09-06 23:15:52 +01:00
Neill Magill d2262ecea5 MDL-64094 dashboard: Remove unnecesary behat steps
We do not need to explicitly log out at the end of a behat test, the
browser session is killed automatically during the scenario teardown.
2019-09-06 08:59:18 +01:00
Neill Magill 74d7ab50fd MDL-64094 dashboard: Improve the nomenclature
The use of hidden for the course tiles on the course overview is
causing some users to confuse it with course visibility to students
this change aims to make it clear that the functionality only affects
the user's own instance of the block.
2019-09-06 08:59:18 +01:00
Trisha Milan ff649d7bd4 MDL-65310 block_timeline: Hide activities without due date 2019-09-06 13:46:19 +10:00
Andrew Nicols 05abf2cf2f MDL-65493 core: Add pendingJS around pubsub.publish 2019-09-06 08:40:56 +08:00
Andrew Nicols 2cd63188aa MDL-65493 message: The execute wrapper MUST be used 2019-09-06 08:40:56 +08:00
Andrew Nicols 11970d0a7f MDL-65493 message: JS fixes for random behat fails 2019-09-06 08:40:56 +08:00
Luca Bösch fd5903ef8d MDL-66436 glossary: Edit and delete categories form styles. 2019-09-05 18:03:52 +02:00
Eloy Lafuente (stronk7) a672f021ea weekly release 3.8dev 2019-09-05 17:14:21 +02:00
Eloy Lafuente (stronk7) 245cc67078 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-09-05 17:14:18 +02:00
Jake Dallimore a7e33b03a4 Merge branch 'MDL-56223-master' of git://github.com/lameze/moodle 2019-09-05 17:20:03 +08:00
Simey Lameze 1db417c2f2 MDL-56223 calendar: fix wrong create_calendar_events WS phpdoc 2019-09-05 17:15:17 +08:00
Simey Lameze 2d132fda75 MDL-56223 calendar: show the number of deleted events 2019-09-05 17:15:14 +08:00
Bas Brands a4ae06306d MDL-65205 themes: message interface message styles
* change shadow for hovering over messages
* remove dependancy on the sass secondary color
2019-09-05 10:47:43 +02:00
Simey Lameze d5727ed3ba MDL-56223 calendar: skip events updating if nothing has changed 2019-09-05 16:18:37 +08:00
Andrew Nicols 413172521a Merge branch 'MDL-65550-master' of git://github.com/jleyva/moodle 2019-09-05 11:38:36 +08:00
Jake Dallimore cd1bdc7946 Merge branch 'MDL-66551-master' of git://github.com/lameze/moodle 2019-09-05 11:12:35 +08:00
Andrew Nicols 506a0f4bc0 MDL-66340 setup; Whitepace fix 2019-09-05 10:50:25 +08:00
Andrew Nicols bca45d08fd Merge branch 'MDL-66340' of https://github.com/brendanheywood/moodle 2019-09-05 10:45:55 +08:00
Simey Lameze 8c07d7d760 MDL-66551 core_user: remove orphaned calendar subscriptions 2019-09-05 10:21:05 +08:00
Andrew Nicols 3af598c75c Merge branch 'MDL-66391-master' of https://bitbucket.org/isprynt/moodle 2019-09-05 09:59:01 +08:00
Jake Dallimore 2796356278 Merge branch 'MDL-66367_master' of git://github.com/markn86/moodle 2019-09-05 09:26:28 +08:00
Eloy Lafuente (stronk7) 9533156775 Merge branch 'MDL-66072-master-3' of git://github.com/peterRd/moodle 2019-09-05 02:48:00 +02:00
Eloy Lafuente (stronk7) 1e248a654e Merge branch 'MDL-66560-master' of https://github.com/lucaboesch/moodle 2019-09-05 02:15:15 +02:00
AMOS bot cf39122c79 Automatically generated installer lang files 2019-09-05 00:11:50 +00:00
Mahmoud.Kassaei 1d89daf329 MDL-66563 Questions: Drag and Drop qtypes in high-contrast 2019-09-04 15:32:16 +01:00
Segun Babalola 85d142f56a MDL-66391 core_course: Fix to send correct Ajax parameter for userid 2019-09-04 12:10:53 +01:00
Mark Nelson af8a70756f MDL-66367 core: don't cache templates if templaterev is invalid 2019-09-04 12:54:02 +02:00
Mark Nelson 9e5edc7f68 MDL-66367 core: use templaterev as the cache key when getting templates 2019-09-04 12:54:02 +02:00
Mark Nelson 988482f077 MDL-66367 core: make templaterev available in JS 2019-09-04 12:54:02 +02:00
Mark Nelson e63395bbed MDL-66367 core: added templaterev variable 2019-09-04 12:54:02 +02:00
Mark Nelson 5beb388516 MDL-66367 core: added new cachetemplates setting 2019-09-04 12:54:02 +02:00
Andrew Nicols eb70a00163 Merge branch 'MDL-66137-38_mod_assign_marking_workflow_incorrect_grade_display' of https://github.com/tomdickman/moodle 2019-09-04 13:44:49 +08:00
Tom Dickman 028c5ed5f9 MDL-66137 mod_assign: fixed marking workflow incorrect grade display
Aligned logic between quick grading changes and set marking workflow state changes to accurately
finalise or remove final grade from the gradebook, depending on the marking workflow state if
being used.
2019-09-04 14:29:30 +10:00
Andrew Nicols f37035cb04 Merge branch 'MDL-66554-master' of git://github.com/jleyva/moodle 2019-09-04 12:24:02 +08:00
Andrew Nicols 38d2c992e4 Merge branch 'MDL-66500-master-unoconvwarning' of git://github.com/mudrd8mz/moodle 2019-09-04 12:14:00 +08:00
Ryan Wyllie 3fb0cbd4bb MDL-62284 javascript: prevent nested JS mustache handler calls
Prevent the JS mustache helper from being executed from within
the render call of another mustache helper because it can allow
users to inject JS into the page.
2019-09-04 11:22:51 +08:00
Ryan Wyllie f9664b0c19 MDL-62284 output: prevent nested JS mustache handler calls
Prevent the JS mustache helper from being executed from within
the render call of another mustache helper because it can allow
users to inject JS into the page.
2019-09-04 11:22:51 +08:00
Jake Dallimore 52a74c46ba Merge branch 'MDL-66265-master' of git://github.com/andrewnicols/moodle 2019-09-04 11:02:27 +08:00
Andrew Nicols 324f76308d MDL-66265 javascript: More specific overrides in eslintrc 2019-09-04 10:47:21 +08:00
AMOS bot 8fca8c140c Automatically generated installer lang files 2019-09-04 00:10:59 +00:00
Eloy Lafuente (stronk7) 9483886459 Merge branch 'MDL-66265-master' of git://github.com/andrewnicols/moodle 2019-09-04 02:07:42 +02:00
Eloy Lafuente (stronk7) 700e5ca69c Merge branch 'MDL-66532-master' of git://github.com/andrewnicols/moodle 2019-09-04 01:46:11 +02:00
Peter 14db737452 MDL-66072 core: Remove ancillary sharing functions and code 2019-09-04 07:09:43 +08:00
Peter 020bad738a MDL-66072 core: Remove course sharing and related capabilities 2019-09-04 07:09:05 +08:00
Andrew Nicols 9ec0cbe9ee MDL-66265 javascript: Ignore camelcase in Gruntfile 2019-09-04 06:48:11 +08:00
Andrew Nicols f59ac4166c MDL-66265 javascript: Add jshint ignore for ES6 files in root dir 2019-09-04 06:48:11 +08:00
Andrew Nicols b5fbca8f4a MDL-66265 javascript: Add basic jshint ignores 2019-09-04 06:48:11 +08:00
Andrew Nicols ad2574f770 MDL-66265 javascript: Bump jshint version 2019-09-04 06:48:11 +08:00
Andrew Nicols d2c0f54cea MDL-66532 javascript: Lock NPM version for NVM 2019-09-04 06:45:51 +08:00
Eloy Lafuente (stronk7) 3085a5843a Merge branch 'MDL-63315-master' of https://github.com/sammarshallou/moodle 2019-09-04 00:14:53 +02:00
Eloy Lafuente (stronk7) 3213963f96 MDL-66120 block_community: make upgrade steps match current version 2019-09-03 12:32:13 +02:00
Eloy Lafuente (stronk7) ea1283ddca Merge branch 'MDL-66120-master' of git://github.com/peterRd/moodle 2019-09-03 12:27:34 +02:00
Andrew Nicols 9bb085dd1a Merge branch 'MDL-66434-master' of https://github.com/lucaboesch/moodle 2019-09-03 12:40:38 +08:00
Andrew Nicols fce4664899 Merge branch 'MDL-62161' of https://github.com/paulholden/moodle 2019-09-03 11:26:19 +08:00
Jake Dallimore 3f64863d22 Merge branch 'MDL-38555-master' of https://github.com/sammarshallou/moodle 2019-09-03 11:07:10 +08:00
Peter 1d6f041a2e MDL-66120 block_community: Remove community block and related caps
With the sunsetting of moodle.net, the community block will no longer
be functional, so removing the block and related caps
2019-09-03 09:30:50 +08:00
Andrew Nicols ebd30140dc Merge branch 'MDL-65042-master' of git://github.com/jleyva/moodle 2019-09-03 09:29:00 +08:00
AMOS bot b453627935 Automatically generated installer lang files 2019-09-03 00:11:24 +00:00
AMOS bot ecf1234950 Automatically generated installer lang files 2019-09-03 00:11:23 +00:00
Andrew Nicols 76b5fd3e11 Merge branch 'MDL-66504' of git://github.com/stronk7/moodle 2019-09-03 07:04:18 +08:00
Andrew Nicols 932d89250d Merge branch 'MDL-66229-master' of git://github.com/jleyva/moodle 2019-09-03 07:02:40 +08:00
Eloy Lafuente (stronk7) 5795785472 Merge branch 'MDL-66457-master' of git://github.com/andrewnicols/moodle 2019-09-03 00:54:42 +02:00
Eloy Lafuente (stronk7) 1bf2b6d52a MDL-66504 lang: Apply cantblockuser changes to behat tests 2019-09-02 19:00:28 +02:00
Juan Leyva d4985a7739 MDL-66501 tool_mobile: Prevent URLs in custom scheme 2019-09-02 17:04:35 +02:00
Jun Pataleta b4c92fb75b MDL-66187 format_singleactivity: Make sure available types is not empty 2019-09-02 17:04:35 +02:00
Andrew Nicols 208397c120 MDL-66187 course: Respect :addinstance in single activity format 2019-09-02 17:04:35 +02:00
Andrew Nicols ed080a580f MDL-66181 course: Only assign roles that the user is allowed to assign 2019-09-02 17:04:35 +02:00
Andrew Nicols 8cb4578de8 MDL-66181 behat: You check checkboxes, not click them 2019-09-02 17:04:35 +02:00
Michael Hawkins 32e2e06a87 MDL-55451 mod_forum: Limit subscription redirect to internal URLs 2019-09-02 17:04:35 +02:00
David Monllaó d3253b73c4 MDL-66069 mlbackend_python: Bump to a new version of the package 2019-09-02 17:04:35 +02:00
sam marshall 46875866c6 MDL-63315 DB: Postgres - Clear cursors in persistent connection
If there is a PHP fatal error and destructors do not run (this can
happen in out-of-memory errors, and maybe if there is an error in a
previous destructor) then Postgres cursors may be left open.

Usually this does not cause a problem because the connection is
closed anyway, but if using persistent connections, a future
request may reuse the connection with a cursor open. It then gets
errors when it tries to create a new cursor with the same name.

This change closes all cursors at the start of a persistent
connection.
2019-09-02 14:08:57 +01:00
sam marshall 109c77d37d MDL-38555 Forms: Prevent multiple clicking of submit button 2019-09-02 11:46:12 +01:00
Jake Dallimore b9679e69ec MDL-66552 core: move and rename relativedatestimediffformat string
AMOS BEGIN
    MOV [relativedatestimediffformat,moodle],[dateintervaldayshoursmins,langconfig]
AMOS END
2019-09-02 10:55:37 +08:00
Simey Lameze 5a1fd6e854 MDL-66551 core_user: delete_user() should remove users calendar subs 2019-09-02 10:24:06 +08:00
Eloy Lafuente (stronk7) 563888202e Merge branch 'MDL-66575-master' of https://github.com/snake/moodle 2019-09-01 16:52:34 +02:00
Jake Dallimore d2c09e8ffd MDL-66575 mod_assign: fix first day of current month behat edge case
What we really want to test in this behat test is the 2 extremes:
the user who started a long time ago and doesn't have access any more
and the user who started recently, who does have access. To fix all
problems with datetime clashes, it's probably better to just use
'yesterday' for the current student's enrolment start time.
2019-09-02 13:11:49 +08:00
Andrew Nicols 867dc0b4a2 Merge branch 'MDL-33087' of https://github.com/paulholden/moodle 2019-09-02 10:47:42 +08:00
Jake Dallimore 726a8284af Merge branch 'MDL-66376-master' of git://github.com/jleyva/moodle 2019-09-02 10:32:28 +08:00
David Mudrák da0dbeeb99 MDL-66504 lang: Use the new strings in the Behat scenario 2019-09-01 12:33:24 +02:00
Helen Foster 7ee90659ee MDL-66504 lang: Import fixed English strings (en_fix)
Significant string changes:

- configgeneralfiles,core_backup - includes explanation of implications
  of settings
- mobilenotificationsdisabledwarning,tool_mobile - location corrected
- statsreport14,core - 'views/posts' corrected to 'posts/views'
- err_nousers,core_completion - explanation of who completion
- information is displayed for errorcourselisting,block_community - note
  about sunsetting moodle.net
2019-09-01 12:31:15 +02:00
Paul Holden d19a7b2794 MDL-62161 user: preserve all selected users between searches. 2019-08-30 14:37:11 +01:00
Paul Holden 580ed1a252 MDL-33087 tool_capability: correct role override link. 2019-08-30 14:34:25 +01:00
Luca Bösch 5b48fefa56 MDL-66560 import: Format course search UI elements. 2019-08-30 11:25:17 +02:00
Andrew Nicols 605550a2d8 MDL-66457 behat: simplify selector search 2019-08-30 15:13:07 +08:00
Luca Bösch 20f166cf55 MDL-66434 mod_data: Align 'Field description' field as all other fields. 2019-08-30 07:58:52 +02:00
Jake Dallimore 310d6901f9 weekly release 3.8dev 2019-08-30 13:12:04 +08:00
Adrian Greeve f69543d741 Merge branch 'MDL-66558-master' of https://github.com/snake/moodle 2019-08-30 10:41:45 +08:00
Jake Dallimore cb14d4d811 MDL-66558 core_course: fix edge case in relative dates behat feature 2019-08-30 10:19:42 +08:00
Peter 474a96d707 MDL-65429 mod_forum: Indicate subs fetch completion with no subs
Unit tests updated to make sure only a single query is executed after
multiple reads
2019-08-30 09:07:22 +08:00
Eloy Lafuente (stronk7) 78168d7c9b MDL-66326 Global search: Unit test fix for Oracle 2019-08-30 00:17:12 +02:00
Juan Leyva 7a30377dc0 MDL-66554 mod_scorm: Set module viewed in WS 2019-08-29 20:45:43 +01:00
Juan Leyva cd43240d77 MDL-66376 webservice: Return user private access key for fetching files 2019-08-29 20:02:48 +01:00
Jake Dallimore 9e93b2f20e Merge branch 'MDL-66139' of https://github.com/stronk7/moodle 2019-08-29 11:51:06 +08:00
Adrian Greeve 5872c4d43e Merge branch 'MDL-65969-master' of git://github.com/jleyva/moodle 2019-08-29 11:14:07 +08:00
Netica Informática d17bf23e8a MDL-66139 cachestore_redis: Fix connection problems when port is not set
Due to some changes in Redis 5 php extension Moodle fails to connect via TCP when
no port is set. It's fixed upstream in phpredis repo (version 5.0.0, 5.0.1 and
5.0.2 affected so far), but with this patch we'll send the right port anyway.
2019-08-28 20:57:40 +02:00
Eloy Lafuente (stronk7) 998f605d5c Merge branch 'MDL-66133-master' of git://github.com/abias/moodle 2019-08-28 17:38:25 +02:00
Eloy Lafuente (stronk7) fd3e11a6de Merge branch 'MDL-66326-master' of https://github.com/sammarshallou/moodle 2019-08-28 17:24:35 +02:00
Eloy Lafuente (stronk7) e15f301404 Merge branch 'master_MDL-65116' of https://github.com/yao9394/moodle 2019-08-28 16:39:49 +02:00
Eloy Lafuente (stronk7) 84c2a4ec54 Merge branch 'MDL-60341_master' of git://github.com/markn86/moodle 2019-08-28 15:46:09 +02:00
Jake Dallimore abe72d078e Merge branch 'MDL-66244-master' of git://github.com/jleyva/moodle 2019-08-28 17:42:07 +08:00
Juan Leyva 47138d9157 MDL-66244 message: Include group sender images in payload
Android 9 notifications now displays two image icons in conversations.
The group and the sender.
2019-08-28 10:33:59 +01:00
Adrian Greeve 34859ec08e Merge branch 'MDL-66230' of https://github.com/paulholden/moodle 2019-08-28 14:54:36 +08:00
Mark Nelson 8e86a8d2db MDL-60341 core_cache: show cache definitions that can use local store 2019-08-28 14:00:38 +08:00
Adrian Greeve 06888cfef9 Merge branch 'MDL-66374-master' of git://github.com/jleyva/moodle 2019-08-28 13:54:03 +08:00
Adrian Greeve db0fb28b4a Merge branch 'MDL-66375-master' of git://github.com/jleyva/moodle 2019-08-28 13:33:05 +08:00
Adrian Greeve ed06cb4ecf Merge branch 'MDL-66458-master' of git://github.com/crazyserver/moodle 2019-08-28 11:25:16 +08:00
Adrian Greeve 1e9040f239 Merge branch 'MDL-66461-master' of git://github.com/jleyva/moodle 2019-08-28 11:15:28 +08:00
Adrian Greeve ef848e0aa8 Merge branch 'MDL-66468-master' of git://github.com/jleyva/moodle 2019-08-28 08:54:26 +08:00
Eloy Lafuente (stronk7) 1f1c48047f Merge branch 'MDL-66446-master' of git://github.com/junpataleta/moodle 2019-08-28 00:24:51 +02:00
Adrian Greeve a08fb2388c Merge branch 'MDL-65653-master' of git://github.com/jleyva/moodle 2019-08-27 15:07:50 +08:00
Brendan Heywood 4ed105a9fd MDL-66340 setup: Add after_config for after setup.php is loaded 2019-08-27 13:24:15 +10:00
Adrian Greeve 1084baf811 Merge branch 'MDL-66016-master' of git://github.com/abias/moodle 2019-08-27 09:32:42 +08:00
Eloy Lafuente (stronk7) 0b5990ab60 MDL-66184 core: Update composer to apply for php 7.1.0 as min
With behat extension v3.38.2 we started requiring php 7.1.0
(same requirement than core 3.8.x). This bumps all the components
in the lock file to suit that requirement.

Generated with php 7.1.x.
2019-08-27 00:42:30 +02:00
David Mudrák b49bf4299c MDL-66500 lang: Add the unoconvwarning string back
It has been deprecated and removed by mistake.
2019-08-26 21:26:38 +02:00
Eloy Lafuente (stronk7) 40e0d6c4a7 Merge branch 'MDL-66309-master' of https://github.com/sammarshallou/moodle 2019-08-26 20:15:11 +02:00
Eloy Lafuente (stronk7) 6d6431fa23 Merge branch 'MDL-66312-master' of git://github.com/andrewnicols/moodle 2019-08-26 19:38:45 +02:00
Eloy Lafuente (stronk7) 4ae788399e Merge branch 'MDL-66061-master' of git://github.com/jleyva/moodle 2019-08-26 16:29:16 +02:00
Alexander Bias 8196aa4437 MDL-66016 block_myoverview: Improve settings page 2019-08-23 20:44:19 +02:00
Alexander Bias 2276614cd8 MDL-66016 block_myoverview: Make course filter options configurable 2019-08-23 20:44:19 +02:00
Alexander Bias cd4abbc740 MDL-66016 block_myoverview: Add 'All' course filter 2019-08-23 20:44:19 +02:00
Alexander Bias ee47c8fd96 MDL-66016 block_myoverview: Add missing template example context items 2019-08-23 20:44:19 +02:00
Alexander Bias 535cec788e MDL-66016 block_myoverview: Rename 'all courses except hidden' in AMOS
AMOS BEGIN
 MOV [allexcepthidden,block_myoverview],[all,block_myoverview]
 MOV [aria:allcoursesexcepthidden,block_myoverview],[aria:allcourses,block_myoverview]
AMOS END
2019-08-23 20:44:19 +02:00
Alexander Bias 5345004301 MDL-66016 block_myoverview: Rename unused 'all courses' in AMOS
AMOS BEGIN
 MOV [all,block_myoverview],[allincludinghidden,block_myoverview]
 MOV [aria:allcourses,block_myoverview],[aria:allcoursesincludinghidden,block_myoverview]
AMOS END
2019-08-23 20:44:19 +02:00
Alexander Bias 7e00bfd9f1 MDL-66133 user: Fix code style for existing comments 2019-08-23 20:43:27 +02:00
Alexander Bias a292ed5472 MDL-66133 user: Add setting to configure user filters 2019-08-23 20:43:26 +02:00
Eloy Lafuente (stronk7) 0dca957716 weekly release 3.8dev 2019-08-23 19:16:21 +02:00
Jun Pataleta d602fc0de1 Merge branch 'MDL-66483' of git://github.com/stronk7/moodle 2019-08-23 20:15:45 +08:00
sam marshall 7ba2a20166 MDL-66326 Global search: Delete from index when courses are deleted
Adds new API support within search engines for optional methods to
delete data for courses and contexts, and implements this for the
two core search plugins (simpledb and solr).

The new API is automatically called when courses or contexts are
deleted. When a whole course is deleted, it only sends the course
delete rather than sending 1,000 separate context deletions as
each activity/block is deleted.
2019-08-23 11:51:50 +01:00
sam marshall b174e5d03b MDL-66309 block_recentlyaccesseditems: Improve upgrade performance 2019-08-23 11:34:32 +01:00
Eloy Lafuente (stronk7) 9900a6dd47 MDL-66483 lib: remove recent xmlize dep on setuplib/CFG
This removes the dependency added by MDL-66110 (aiming to fix
a CI job). So we keep things as they were and will fix the
CI job separately.
2019-08-23 11:21:28 +02:00
Jun Pataleta 50987d04ea MDL-66446 course: Make sure tags are on when logging updated settings 2019-08-23 15:57:52 +08:00
Pau Ferrer Ocaña 2ddbc651df MDL-66458 forum: Fix noviewdiscussionspermission string 2019-08-23 08:31:11 +02:00
Adrian Greeve 9e4178a465 weekly release 3.8dev 2019-08-23 12:55:05 +08:00
Adrian Greeve ebbf41f9f8 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-08-23 12:54:56 +08:00
John Yao 62f1640df2 MDL-65116 mod_assign : Assignment due date does not update for groups.
This commit fixes the assignment due date not showing correctly according to groups selected by users who can view grades
2019-08-23 13:08:53 +10:00
Jun Pataleta 6e40de2d46 Merge branch 'MDL-66110-master-fix' of git://github.com/junpataleta/moodle 2019-08-23 10:21:17 +08:00
Jun Pataleta 343ffc1000 MDL-66110 core: Require setuplib.php once as it's required by xmlize.php 2019-08-23 10:14:38 +08:00
Juan Leyva 418a86c660 MDL-66468 file: Return text content when using IGNORE_FILE_MERGE 2019-08-22 13:10:39 +01:00
Jun Pataleta 191d4bc191 Merge branch 'MDL-66110-master-fix' of git://github.com/junpataleta/moodle 2019-08-22 16:24:10 +08:00
Jun Pataleta 669de78352 MDL-66110 dml: Undo table name fix when table name's used as parameter 2019-08-22 16:16:08 +08:00
Ryan Wyllie f12c591807 MDL-66110 dml: use fix_table_name for all mysql table names
Changed all of the places that were manually prefixing the table
name to instead fix the table name with the fix_table_name
function.
2019-08-22 16:03:33 +08:00
Adrian Greeve 2c0d8377a6 Merge branch 'MDL-66378-master' of git://github.com/andrewnicols/moodle 2019-08-22 09:27:57 +08:00
Andrew Nicols 519e17a763 MDL-66378 behat: Increase window size for rubric tests 2019-08-22 07:56:19 +08:00
Andrew Nicols dbcbee4133 MDL-66378 behat: Change screen size to small to work around UI bugs 2019-08-22 07:56:19 +08:00
Jun Pataleta ad534481f8 Merge branch 'MDL-66336_master' of https://github.com/marxjohnson/moodle 2019-08-21 22:41:41 +08:00
Juan Leyva 10b1b82911 MDL-66461 forum: Use correct component for forum strings 2019-08-21 13:21:32 +01:00
Jun Pataleta 74a9ee3277 Merge branch 'MDL-66241_master' of git://github.com/dmonllao/moodle 2019-08-21 19:52:03 +08:00
Juan Leyva b0c785e271 MDL-66461 forum: Use correct notification class 2019-08-21 12:50:30 +01:00
Jun Pataleta 7c50f31dad Merge branch 'MDL-66210_master' of git://github.com/dmonllao/moodle 2019-08-21 19:48:10 +08:00
Jun Pataleta 2b29298f92 Merge branch 'MDL-65993_master' of git://github.com/dmonllao/moodle 2019-08-21 19:32:03 +08:00
Juan Leyva 20570e5d9f MDL-65550 webservice: Return in get_site_info WS if user is admin 2019-08-21 12:31:49 +01:00
Adrian Greeve 0052d1b666 Merge branch 'MDL-65443' of https://github.com/NeillM/moodle 2019-08-21 16:35:34 +08:00
Neill Magill 1f445d1625 MDL-65443 core: Improve class descriptions for locking events 2019-08-21 09:02:03 +01:00
Adrian Greeve 6f35cc69a0 Merge branch 'MDL-66369-master' of git://github.com/aanabit/moodle 2019-08-21 13:53:15 +08:00
Adrian Greeve 4ca1664c9f Merge branch 'MDL-66384-master' of git://github.com/andrewnicols/moodle 2019-08-21 13:25:35 +08:00
Jun Pataleta ff6a7345f7 Merge branch 'MDL-66110-master' of https://github.com/ryanwyllie/moodle 2019-08-21 09:57:49 +08:00
Adrian Greeve 148620381c Merge branch 'MDL-66311-master' of git://github.com/vmdef/moodle 2019-08-21 09:47:44 +08:00
Adrian Greeve 700adfb9cf Merge branch 'MDL-66378-master' of git://github.com/andrewnicols/moodle 2019-08-21 08:54:34 +08:00
Andrew Nicols 6fd975cc07 MDL-66378 behat: Correct grammar of resize step 2019-08-21 08:39:51 +08:00
Andrew Nicols 8a0d0cb4b1 MDL-66378 grade: Set window size to large for rubric tests 2019-08-21 08:39:28 +08:00
Andrew Nicols a6df6800d4 MDL-66378 behat: All args are required for document.evaluate 2019-08-21 08:24:08 +08:00
AMOS bot e36a1d4bdd Automatically generated installer lang files 2019-08-21 00:11:07 +00:00
Víctor Déniz Falcón 93c539d220 MDL-66311 core_analytics: better handling of action menus in behat tests 2019-08-20 22:58:33 +01:00
Jun Pataleta 089d387a31 Merge branch 'MDL-66148-master' of https://github.com/ryanwyllie/moodle 2019-08-20 17:07:59 +08:00
Adrian Greeve aabd022d2a Merge branch 'MDL-65972-master' of git://github.com/bmbrands/moodle 2019-08-20 16:49:34 +08:00
Neill Magill e3ec42093a MDL-65443 core: Log when a context is locked or unlocked 2019-08-20 08:52:35 +01:00
Jun Pataleta d9c910a76f Merge branch 'MDL-64437-master' of git://github.com/mihailges/moodle 2019-08-20 14:19:34 +08:00
Adrian Greeve 5074882e13 Merge branch 'MDL-66378-master' of git://github.com/andrewnicols/moodle 2019-08-20 13:43:11 +08:00
Jun Pataleta fa8be3f4fb Merge branch 'MDL-65507-master' of git://github.com/mihailges/moodle 2019-08-20 11:57:30 +08:00
Adrian Greeve f9faab7779 MDL-65404 core_user: Removal of additional empty line. 2019-08-20 10:27:02 +08:00
Adrian Greeve 0ee9c67dfb Merge branch 'MDL-65404-master' of https://github.com/aanabit/moodle 2019-08-20 10:13:31 +08:00
Adrian Greeve 98d1ac3caf Merge branch 'MDL-65083-master' of git://github.com/bmbrands/moodle 2019-08-20 10:03:25 +08:00
Amaia Anabitarte 6ba44c5f49 MDL-65404 tool_uploaduser: Changing When and Then steps 2019-08-20 10:01:44 +08:00
Adrian Greeve 6e6cfab790 Merge branch 'MDL-65561-master' of git://github.com/bmbrands/moodle 2019-08-20 09:36:11 +08:00
AMOS bot 10194bb830 Automatically generated installer lang files 2019-08-20 00:10:35 +00:00
François Moreau 6ab44bdbc6 MDL-65404 tool_uploaduser: Add a column for enrolment time start. 2019-08-19 14:25:24 -04:00
Jun Pataleta 11b05b07c9 Merge branch 'MDL-46317-master' of git://github.com/rezaies/moodle 2019-08-19 23:32:41 +08:00
Juan Leyva 48f5ca7bee MDL-66061 comments: Support pagination and sorting in get_comments WS 2019-08-19 10:42:25 +01:00
Adrian Greeve d9ae0fdd96 Merge branch 'MDL-65604-master' of git://github.com/andrewnicols/moodle 2019-08-19 16:26:34 +08:00
Bas Brands b14d92a844 MDL-65972 course: add a bigger margin above the activity navigation
* this will help making it easier to distinguish between form and
activity navigation
2019-08-19 08:28:04 +02:00
Bas Brands 549a45808d MDL-65561 themes: user date filters display fixes 2019-08-19 08:24:04 +02:00
Bas Brands d470c68b1f MDL-65083 theme_boost: update uses of pull-xs-right 2019-08-19 08:16:47 +02:00
Adrian Greeve 52070868a8 Merge branch 'MDL-65886-MOODLE-master' of https://github.com/kristian-94/moodle 2019-08-19 14:13:45 +08:00
Mihail Geshoski 5efafb8d2d MDL-64437 assignment: Fix element overlaping in low screen resolution 2019-08-19 13:31:01 +08:00
Mihail Geshoski c8a14cb8ba MDL-65507 mod_data: Remove unnecessary record created event 2019-08-19 13:26:36 +08:00
Adrian Greeve ee8f44db8c Merge branch 'MDL-66327-master' of git://github.com/andrewnicols/moodle 2019-08-19 10:32:39 +08:00
Andrew Nicols dafa2c6aa5 MDL-66378 competency: Add pending promises to competency chooser 2019-08-19 08:16:41 +08:00
Andrew Nicols 460a0a74c4 MDL-66378 behat: JS does not work with newlines in an xpath 2019-08-19 08:16:40 +08:00
Andrew Nicols 221bfed37b MDL-66378 behat: Fix use of before/after selectors 2019-08-19 08:16:40 +08:00
Andrew Nicols 989f380089 MDL-66378 behat: Add partial named selector for whole autocomplete field 2019-08-17 11:44:48 +08:00
Andrew Nicols 7d6d23294f MDL-66378 behat: Before/after detection should be constrainable
The default before/after detection checks the entire body. Any match of
the text will therefore be found.

Add support for specification of a container for the nodes.
2019-08-17 11:44:48 +08:00
Andrew Nicols 17a7dc9da5 MDL-66378 behat: Add non-JS fallback for before/after 2019-08-17 11:44:48 +08:00
sam marshall 5298a6bc11 MDL-66378 Behat: Speed up 'before/after' step in Chrome
On some Chrome versions the xpath used for before/after is slow
and (sometimes) uses a lot of memory. This change uses pure
JavaScript to do the before/after calculation, which should always
be fast.
2019-08-17 11:44:48 +08:00
Andrew Nicols 44de5278a5 MDL-66378 behat: Correct invalid uses of selection from dropdown 2019-08-17 11:44:48 +08:00
Andrew Nicols beae3feb54 MDL-66378 report_participation: Correct label for target 2019-08-17 11:44:48 +08:00
Andrew Nicols db89a31d2e MDL-66378 gradereport_singleview: Add missing label for dropdown 2019-08-17 11:44:48 +08:00
Juan Leyva a927fcdc7b MDL-65042 rating: Fix incorrect image generated for user in rating 2019-08-16 15:41:21 +01:00
Juan Leyva 29cc69f3c0 MDL-65025 forum: Fix text formatting (check messagetrust) in WS 2019-08-16 12:58:47 +01:00
Mark Johnson 3b75d14315 MDL-66336 courses: Show an error when no course categories are visible 2019-08-16 08:24:48 +01:00
Kristian Ringer 8aaa2b5de7 MDL-65886 assign: Reset numfiles to 0 when removing a file submission 2019-08-16 15:04:42 +10:00
Amaia Anabitarte c0375ba73f MDL-66369 libraries: Remove [modname]_scale_used functions
These functions were only used by the deprecated function
which was deprecated in 3.1, and removed in 3.6.
2019-08-16 11:56:17 +08:00
Andrew Nicols 3d18e5cfd6 MDL-66378 behat: Update screen sizes to Y2K standards 2019-08-16 11:42:45 +08:00
Andrew Nicols 5a44daadf9 MDL-66378 behat: Update dependencies for chrome webdriver fix 2019-08-16 11:42:45 +08:00
Andrew Nicols 6654ac1151 MDL-66312 js: Autocomplete promises were inside out
The pending promise should nott be resolved until the changes are
complete.
Previously the resolution of the pendingPromise was triggering the other
changes.
2019-08-16 11:40:16 +08:00
Andrew Nicols 7e16c70b52 weekly release 3.8dev 2019-08-16 11:06:51 +08:00
Andrew Nicols 4cb6508adb Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-08-16 11:06:49 +08:00
Juan Leyva 62b40d2743 MDL-65969 course: Indicate when the module is not linking to a new page 2019-08-15 20:33:08 +01:00
Juan Leyva d0342c8ec9 MDL-65653 book: Display hidden chapters in the structure content 2019-08-15 14:01:27 +01:00
Mihail Geshoski 89d8dec35f MDL-65653 book: Update unit tests 2019-08-15 13:39:54 +01:00
Mihail Geshoski 794604db6d MDL-65653 book: Display hidden chapters in WS when user has capability 2019-08-15 13:39:36 +01:00
Juan Leyva 77cfbb626e MDL-66229 tool_mobile: New return field "disabled" in get_content WS 2019-08-15 13:29:16 +01:00
Juan Leyva 88932e49df MDL-66375 tool_mobile: Add new option in the disabled features selector
We must allow site admins to remotely disable that feature in the mobile app
2019-08-15 12:08:43 +01:00
Juan Leyva 578586703f MDL-66374 group: Add existing WS to the mobile service 2019-08-15 11:55:57 +01:00
Andrew Nicols 3d46346094 Merge branch 'MDL-35939-master' of git://github.com/rezaies/moodle 2019-08-15 12:02:11 +08:00
Jun Pataleta 5611d0cb1a Merge branch 'm38_MDL-66140_Mitigate_PECL_Solr_issue_Ref_72740' of https://github.com/scara/moodle 2019-08-15 10:59:29 +08:00
Shamim Rezaie c7a5ffc483 MDL-35939 mod_quiz: deprecate unused strings 2019-08-15 12:07:38 +10:00
Shamim Rezaie eaa1d6aad7 MDL-35939 mod_quiz: use descriptive titles for pages 2019-08-15 12:07:38 +10:00
Shamim Rezaie 5641b98133 MDL-35939 mod_quiz: phpdoc fix 2019-08-15 12:07:38 +10:00
Shamim Rezaie 41bfed56fc MDL-35939 mod_quiz: new functions to generate title for attempt pages 2019-08-15 12:07:34 +10:00
AMOS bot bbd1409821 Automatically generated installer lang files 2019-08-15 00:12:44 +00:00
Jun Pataleta 4d56b58787 Merge branch 'MDL-65129-master-2' of git://github.com/peterRd/moodle 2019-08-14 15:31:07 +08:00
Jun Pataleta 7da3ab8359 Merge branch 'MDL-65925-grade-page-broken-for-deleted-submission-master' of https://github.com/ilya-catalyst/moodle 2019-08-14 15:28:14 +08:00
Peter 87c71d18de MDL-65129 mod_forum: Behat test for favourited search 2019-08-14 14:59:35 +08:00
Peter dd223096b8 MDL-65129 mod_forum: Ability to search based on favourite status 2019-08-14 14:59:30 +08:00
Adrian Greeve 523e51ff4d Merge branch 'MDL-65621-dimmed-courses' of https://github.com/stopfstedt/moodle 2019-08-14 14:56:07 +08:00
David Monllaó 2bbe76bf06 MDL-66210 analytics: Unit test for reuseprevanalysed 2019-08-14 14:31:54 +08:00
David Monllaó ca61e4d4f0 MDL-66210 analytics: Update references to ->options 2019-08-14 14:31:54 +08:00
David Monllaó d1af71c35d MDL-65993 analytics: Fix --filter option for by_course models 2019-08-14 14:30:20 +08:00
David Monllaó 6981d823a2 MDL-66241 analytics: Verify that activities_due works on at-risk 2019-08-14 14:29:16 +08:00
David Monllaó d7ef852c83 MDL-66241 analytics: activities_due compatible with at-risk models 2019-08-14 14:29:16 +08:00
Andrew Nicols 9311a83b45 Merge branch 'patch-1' of https://github.com/aspark21/moodle 2019-08-14 11:33:57 +08:00
Ryan Wyllie c872ec0cbd MDL-66148 mod_assign: update override page for relative dates mode 2019-08-14 10:40:55 +08:00
Andrew Nicols 59008247db Merge branch 'MDL-60916-master_replace_course_search_wth_global_search' of https://github.com/gmrsagar/moodle 2019-08-14 10:35:22 +08:00
Andrew Nicols d120bbcef6 Merge branch 'MDL-65950-master' of git://github.com/junpataleta/moodle 2019-08-14 10:17:00 +08:00
Adrian Greeve 0a28a2f074 Merge branch 'MDL-52849-master' of git://github.com/peterRd/moodle 2019-08-14 09:03:37 +08:00
Jun Pataleta 1648b5ac6e Merge branch 'MDL-66147-master' of https://github.com/snake/moodle 2019-08-13 16:34:34 +08:00
Jun Pataleta 1cac0870b8 MDL-65950 core_user: Add hidden labels for the user checkboxes
* And update Behat tests accordingly and nuke the steps that are using
xpath.
2019-08-13 16:02:02 +08:00
Jun Pataleta df92be9d67 MDL-65950 core_user: Use new core/checkbox-toggleall 2019-08-13 15:21:34 +08:00
Jake Dallimore 9ce55a8668 MDL-66147 mod_assign: behat test covering relative due date field
Tests that each student has a fixed amount of time, relative to their
course start date, in which to submit the assignment, and that teachers
are shown the dates relative to each student when grading.
2019-08-13 15:09:13 +08:00
Jake Dallimore d0cff2367a MDL-66147 mod_assign: external get_participant supports relative dates 2019-08-13 15:09:13 +08:00
Jake Dallimore c0bb682756 MDL-66147 mod_assign: grading table duedate column updates
Couple of changes:
- The duedate, cutoffdate and allowsubmissionsfromdate are now always
shown for relative dates courses.
- When relative dates mode is enabled, calculate and apply the enrolment
start offset to the due date in SQL. No changes to col_duedate needed.
Sorting is supported.
2019-08-13 15:09:13 +08:00
Jake Dallimore 9bf91ea832 MDL-66147 mod_assign: grading table status col shows relative dates
The 'Status' column is sorted using 'status ASC/DESC, userid ASC',
where status does not contain the due date. Overdue assignments
have additional information displayed, but this is unrelated to
the sort, meaning we don't need to change anything with sorting.
2019-08-13 15:09:13 +08:00
Jake Dallimore 9e719b81d4 MDL-66147 mod_assign: submissions overview page shows time interval
Use get_time_interval_string() on the teacher only page, to show how
long after the course start the assignment is due for each user.
2019-08-13 15:09:11 +08:00
Andrew Nicols 9abc0ed875 Merge branch 'MDL-65949-master' of git://github.com/junpataleta/moodle 2019-08-13 14:39:48 +08:00
Adrian Greeve 2217ca91ee Merge branch 'MDL-57623' of git://github.com/Chocolate-lightning/moodle 2019-08-13 14:27:30 +08:00
Mathew May 09dedee2e1 MDL-57623 behat: Remove deprecated step from 3.3 2019-08-13 14:24:34 +08:00
Jun Pataleta 29c5579db9 Merge branch 'MDL-62034-master' of git://github.com/andrewnicols/moodle 2019-08-13 14:20:42 +08:00
Andrew Nicols 24d2a49e21 MDL-62034 assign: Add hint for user tour reset 2019-08-13 14:12:29 +08:00
Andrew Nicols c188ddfe93 Merge branch 'MDL-59524-master' of git://github.com/cescobedo/moodle 2019-08-13 12:56:32 +08:00
Andrew Nicols 0bbdef98ea MDL-66384 core: Limit explode to allow subdirs in template names 2019-08-13 11:29:40 +08:00
Adrian Greeve 5918473134 Merge branch 'MDL-66008-master-fix' of https://github.com/lameze/moodle 2019-08-13 10:27:31 +08:00
Simey Lameze 4d98566939 MDL-66008 core_calendar: fix behat failures 2019-08-13 09:50:48 +08:00
Ryan Wyllie 30d2b9cd31 MDL-66110 dml: Fix MySQL v8 compatibility with groups table
MySQL v8 has added "groups" to the reserved word list. That is used
as a table name in Moodle so we have to quote it with backticks in the
SQL so that MySQL knows it's being used as an identifier.
2019-08-13 09:35:19 +08:00
Jun Pataleta 1946261fb3 Merge branch 'MDL-66288-master' of git://github.com/lameze/moodle 2019-08-12 15:15:14 +08:00
Andrew Nicols 92afad61ae Merge branch 'MDL-65937-master' of git://github.com/junpataleta/moodle 2019-08-12 14:54:20 +08:00
Jun Pataleta a7faa3f1c5 Merge branch 'MDL-66104' of git://github.com/stronk7/moodle 2019-08-12 14:51:59 +08:00
Simey Lameze bcd0583e68 MDL-66008 calendar: Remove duplicated call to library funciton
A duplicated call to calendar_get_allowed_event_types has
been removed.
2019-08-12 14:49:40 +08:00
Shamim Rezaie 9175a97822 MDL-46317 admin: minor coding style fixes 2019-08-12 14:44:12 +10:00
Shamim Rezaie 7a8dd5664f MDL-46317 admin: deprecating configuserquota,core_admin lang string 2019-08-12 14:44:12 +10:00
Shamim Rezaie e945b883fa MDL-46317 admin: convert userquota config from text to filesize widget 2019-08-12 14:44:10 +10:00
Shamim Rezaie e2d97a4659 MDL-46317 admin: Added admin\local\settings\filesize class 2019-08-12 13:22:24 +10:00
Peter d439fac53c MDL-52849 core: Focus reader onto popup with ajax errors 2019-08-12 10:45:08 +08:00
Jake Dallimore 612b210d76 MDL-66147 core: add get_time_interval_string()
Returns a formatted string representation of the difference between two
timestamps, defaulting to 'Xd Xh Xm' format, but supporting custom
format strings containing any chars from:
https://www.php.net/manual/en/dateinterval.format.php.
2019-08-12 09:35:51 +08:00
Jake Dallimore db381d5c87 MDL-66147 mod_assign: Change assign to return calculated instance data
Changes include:
- Added a private method calculate_properties(), which calculates
per-user instance properties and stores them in an instance var.
- get_instance() now takes a userid param, and calls the
calculate_properties() method, allowing per-user instances to be
returned.
- Added a public method get_default_instance(), which returns the
non-augmented instance data (no per-user properties), so we can
still get back the raw instance data when needed.
- The get_course method has been changed to make sure we always have an
object property, not a string - which happened in some cases (when
commenting on the assign submission page, for example).
2019-08-12 09:35:51 +08:00
Simey Lameze e4b1c14a37 MDL-66288 dataformat: prettify exported JSON data 2019-08-12 07:29:31 +08:00
Ilya Tregubov 64ce596f8c MDL-65925 assign: Grade page broken if submission was deleted. 2019-08-12 09:28:50 +10:00
cescobedo 0504254f1d MDL-59524 general: Remove strings deprecated in 3.4 2019-08-12 00:13:08 +02:00
Matteo Scaramuccia 463421144f MDL-66140 search: Mitigate PECL solr extension regression
Refs:
- https://bugs.php.net/bug.php?id=72740
- https://bugs.php.net/bug.php?id=75631
- https://github.com/php/pecl-search_engine-solr/pull/16
2019-08-11 20:03:25 +02:00
Andrew Nicols f75cb25c86 MDL-65604 repository: Kill off missing param errors
The file picker template included an img with a src of "#". When the
template was loaded into the modal, the browser fetches the img src, but
it's immediately removed as that section is only used as an in-place
template. The src tag does not need to be present.
2019-08-11 14:51:18 +08:00
AMOS bot 3d9aa96892 Automatically generated installer lang files 2019-08-10 00:11:06 +00:00
AMOS bot ad52b7de3f Automatically generated installer lang files 2019-08-10 00:11:05 +00:00
Jun Pataleta 8e9e9a5f7e weekly release 3.8dev 2019-08-09 16:23:53 +08:00
Jun Pataleta e2e7fdb4df Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-08-09 16:23:51 +08:00
Jun Pataleta a6489fabbf Merge branch 'MDL-65679-master-fix' of git://github.com/andrewnicols/moodle 2019-08-09 11:38:59 +08:00
Andrew Nicols 7be52eb255 MDL-65679 assignfeedback_editpdf: Adjust z-indexes for editpdf 2019-08-09 08:34:29 +08:00
Andrew Nicols 66fa73d84e MDL-66327 pgsql DML: Update get_records_sql to consume less memory
It's more memory efficient to use `pg_fetch_assoc` for each row than to
call `pg_fetch_all` and release memory immediately. This is because we
can treat the assoc fetch like an iterator and it only fetches the
current record into memory one at a time, whilst the all fetch fetches
all records and never unsets them. Attempting to unset them is extremely
time consuming.
2019-08-08 15:48:12 +08:00
Jun Pataleta 7f18f22fac Merge branch 'MDL-66272-master' of git://github.com/vmdef/moodle 2019-08-08 12:43:51 +08:00
Amaia Anabitarte 82ca410f23 MDL-60636 behat: Fixing modified xpath 2019-08-08 11:58:03 +08:00
Andrew Nicols 419a67aad3 Merge branch 'MDL-65933-master' of git://github.com/junpataleta/moodle 2019-08-08 11:41:50 +08:00
Jun Pataleta d3455c0da1 Merge branch 'MDL-59470' of https://github.com/Chocolate-lightning/moodle 2019-08-08 10:40:51 +08:00
Mathew May 7456bf413b MDL-59470 admin: Add Behat test for duplicating a tour 2019-08-08 10:30:12 +08:00
Andrew Nicols 9f0cf3e855 Merge branch 'MDL-65595-master' of git://github.com/peterRd/moodle 2019-08-08 10:28:15 +08:00
Jun Pataleta 07d00f0548 Merge branch 'MDL-64032-master-fix' of https://github.com/andrewnicols/moodle 2019-08-08 10:23:10 +08:00
Andrew Nicols b6a226f96f MDL-64032 user: Comment out failing behat tests
These are failing because of an unrelated issue which is possibly quite
an edge case.
2019-08-08 09:31:00 +08:00
Mathew May 71fd7b1139 MDL-59470 behat: Add a element comtains x occurrences step 2019-08-08 09:16:19 +08:00
Mathew May c48fbb6c9b MDL-59470 admin: A user tour can now be duplicated 2019-08-08 09:16:17 +08:00
Jun Pataleta 7fda7cf71b Merge branch 'MDL-57239' of https://github.com/timhunt/moodle 2019-08-08 08:49:56 +08:00
Jun Pataleta 30c8bf169e Merge branch 'MDL-50346-master' of git://github.com/andrewnicols/moodle 2019-08-07 17:11:31 +08:00
Andrew Nicols 08bec34297 Merge branch 'MDL-66039-master' of git://github.com/bmbrands/moodle 2019-08-07 15:31:43 +08:00
Brendan Heywood 32f805e079 MDL-66278 core: Add callback to show other password checks on signup 2019-08-07 14:12:04 +08:00
Jun Pataleta 9897d03d95 Merge branch 'MDL-56789-master' of git://github.com/rezaies/moodle 2019-08-07 14:01:39 +08:00
Sara Arjona 96d497204f Merge branch 'MDL-61649-master' of git://github.com/aanabit/moodle 2019-08-07 13:33:04 +08:00
Shamim Rezaie f73b22a3ac MDL-56789 core: Improve unit tests 2019-08-07 15:25:16 +10:00
Shamim Rezaie 36272110ba MDL-56789 core: Recycle bin warn only if a grade item is being deleted 2019-08-07 15:25:11 +10:00
Shamim Rezaie 6cdf0207ff MDL-56789 core: Added unit test for course_modules_pending_deletion 2019-08-07 14:18:11 +10:00
Andrew Nicols 0261d1effa MDL-50346 core: Allow sub-directories in template names 2019-08-07 11:44:49 +08:00
Jun Pataleta cb6e7dc70c Merge branch 'MDL-59639-master' of git://github.com/bmbrands/moodle 2019-08-07 11:29:32 +08:00
Amaia Anabitarte c7f88457cd MDL-61649 email: Send plain/html format emails based on user preference 2019-08-07 11:20:02 +08:00
Sara Arjona ab1fa2dbac Merge branch 'MDL-63198-master' of git://github.com/rezaies/moodle 2019-08-07 11:07:50 +08:00
Andrew Nicols 638097810d Merge branch 'mdl-66280' of https://github.com/Peterburnett/moodle 2019-08-07 10:22:04 +08:00
Sara Arjona 600d8df255 Merge branch 'MDL-60636-master' of git://github.com/bmbrands/moodle 2019-08-07 10:00:44 +08:00
Alistair Spark fa3f8625e1 MDL-66071 user: username is required with non-internal auth method 2019-08-07 00:55:10 +02:00
Andrew Nicols 91d50e2eda Merge branch 'MDL-57618-master' of git://github.com/cescobedo/moodle 2019-08-06 15:56:07 +08:00
Sara Arjona a12718673a Merge branch 'MDL-64598-master' of https://github.com/lucaboesch/moodle 2019-08-06 15:29:52 +08:00
Bas Brands fbd99bbb00 MDL-59639 theme_boost: remember last visited tab 2019-08-06 08:54:23 +02:00
Andrew Nicols c0535be52a Merge branch 'MDL-66234_master' of git://github.com/dmonllao/moodle 2019-08-06 14:25:20 +08:00
Sara Arjona e9fc5a7381 Merge branch 'MDL-65786-master' of git://github.com/rezaies/moodle 2019-08-06 14:19:17 +08:00
Jun Pataleta 9744897d27 Merge branch 'MDL-66306-master' of git://github.com/lameze/moodle 2019-08-06 14:03:17 +08:00
Simey Lameze 02523182f9 MDL-66306 lib: upgrade moodle lib docs 2019-08-06 13:59:37 +08:00
Simey Lameze f0f88f7f2b MDL-66306 lib: update phpmailer to 6.0.7 2019-08-06 13:48:28 +08:00
Andrew Nicols c79835aef9 Merge branch 'MDL-64953' of https://github.com/Chocolate-lightning/moodle 2019-08-06 13:20:54 +08:00
Andrew Nicols f6666a7064 Merge branch 'MDL-65679-master' of git://github.com/mihailges/moodle 2019-08-06 13:17:43 +08:00
Andrew Nicols 9a74e4008a Merge branch 'MDL-65651-master' of https://github.com/lucaboesch/moodle 2019-08-06 11:57:56 +08:00
Mathew May 28cbff4a2d MDL-64953 templates: Add example contexts & documentation
This is a follow up from CiBot warnings from MDL-58428
2019-08-06 10:56:16 +08:00
Andrew Nicols 1108ccba62 Merge branch 'MDL-66034-master' of git://github.com/lameze/moodle 2019-08-06 09:30:14 +08:00
Andrew Nicols f8c927a25b Merge branch 'MDL-66178' of https://github.com/paulholden/moodle 2019-08-06 09:17:29 +08:00
Andrew Nicols 8b6e767094 Merge branch 'MDL-65992' of git://github.com/Chocolate-lightning/moodle 2019-08-06 09:13:15 +08:00
Eloy Lafuente (stronk7) 0e5f6317c1 Merge branch 'MDL-66307' of https://github.com/timhunt/moodle 2019-08-05 13:30:46 +02:00
Eloy Lafuente (stronk7) 09287bf893 Merge branch 'MDL-64757-38_core_output_nested_template_block_string_language' of https://github.com/tomdickman/moodle 2019-08-05 13:13:33 +02:00
Andrew Nicols 6bfdb36e0b Merge branch 'MDL-33884' of https://github.com/timhunt/moodle 2019-08-05 14:33:11 +08:00
Sagar Ghimire 36667548b5 MDL-60916 core_course: Replace course search with global search 2019-08-05 16:05:10 +10:00
Sara Arjona 1c49217088 Merge branch 'MDL-66281-master' of git://github.com/junpataleta/moodle 2019-08-05 13:41:12 +08:00
Simey Lameze 2d526dcb33 MDL-66034 core_role: improve role events php unit coverage 2019-08-05 13:09:19 +08:00
Simey Lameze 3a18032dbf MDL-66034 core: delete role_capabilities_updated event triggers 2019-08-05 13:09:19 +08:00
Simey Lameze e9b88bcb73 MDL-66034 core: deprecate role_capabilities_updated event 2019-08-05 13:09:19 +08:00
Simey Lameze 32306e8390 MDL-66034 core_role: add more detail to role allow event classes 2019-08-05 13:09:19 +08:00
Simey Lameze de4dc81b24 MDL-66034 core_role: implement role updated event 2019-08-05 13:09:19 +08:00
Simey Lameze a98bafa163 MDL-66034 core_role: implement capability unassigned event 2019-08-05 13:09:18 +08:00
Simey Lameze 7b0afca816 MDL-66034 core_role: implement capability assigned event 2019-08-05 13:09:18 +08:00
Andrew Nicols 6047801767 Merge branch 'MDL-64032-master' of https://github.com/HuongNV13/moodle 2019-08-05 12:55:35 +08:00
Andrew Nicols 0fdef2d2cf Merge branch 'MDL-66279-master' of git://git.cameron1729.xyz/moodle 2019-08-05 11:48:13 +08:00
Shamim Rezaie e75bf41538 MDL-63198 forms: click on scrollbar should not close the suggestions box 2019-08-05 13:13:45 +10:00
Paul Holden 90ce66a9ce MDL-66178 user: filter course participants for users with no roles. 2019-08-02 16:42:10 +01:00
Tim Hunt 1f60ddcebc MDL-57239 qbehaviour_interactive: fix Try again button when reviewing 2019-08-02 11:44:51 +01:00
Luca Bösch 766bb9a563 MDL-65651 forum: Middle align last post column entries. 2019-08-02 12:01:57 +02:00
Luca Bösch 41432a2d30 MDL-64598 pix: Adding width/height information to emoji SVG images. 2019-08-02 11:56:14 +02:00
cescobedo 959457c392 MDL-57618 general: Remove strings deprecated in 3.3 2019-08-02 11:06:32 +02:00
Jun Pataleta e274f1b29e MDL-65933 mod_data: Use new core/checkbox_toggleall 2019-08-02 16:30:39 +08:00
Jun Pataleta e773533258 MDL-65949 report_participation: Use new core/checkbox-toggleall 2019-08-02 16:30:26 +08:00
Jun Pataleta 32c7889212 MDL-65937 mod_lesson: Replace concatenated strings with lang strings 2019-08-02 16:24:56 +08:00
Jun Pataleta ae612a5334 MDL-65937 mod_lesson: Use new core/checkbox_toggleall
Plus some refactoring on the cell of the attempts column.
2019-08-02 16:24:56 +08:00
[Peter Burnett] d82b6004bf MDL-66280 core: Added unit tests for print_password_policy 2019-08-02 11:34:23 +10:00
[Peter Burnett] e40ea418f4 MDL-66280 core: Added checks for empty password minimum length 2019-08-02 11:34:23 +10:00
AMOS bot 009206154d Automatically generated installer lang files 2019-08-02 00:11:13 +00:00
AMOS bot 749062fad1 Automatically generated installer lang files 2019-08-02 00:11:13 +00:00
Mihail Geshoski bda31461db MDL-65679 assign: Collapsing comments
The comments should appear above everything else when expanded, and expanding/collapsing comments
should not affect the position of anything else in the page.

All credit goes to Damyon Wiese.
2019-08-02 07:39:27 +08:00
Eloy Lafuente (stronk7) 764167136f MDL-66104 output: HTMLPurifier to allow <nolink> tags everywhere
Before the patch, HTMLPurifier was instructed to handle <nolink>
tags in block mode. That implies that any block tag enclosing it
had to be closed for HTML compliance.

But <noscript> tags are not part of the final output (they are
removed) but just internally used to skip filtering certain areas.

So they can be virtually everywhere, HTMLPurifier just should allow
them without any change, both to parent or children tags.
2019-08-01 17:52:33 +02:00
Eloy Lafuente (stronk7) 414eca8923 weekly release 3.8dev 2019-08-01 17:06:55 +02:00
Eloy Lafuente (stronk7) adcad4ead2 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-08-01 17:06:51 +02:00
Tim Hunt ac1a91bf47 MDL-66307 js: fix path handling on Windows 2019-08-01 14:54:05 +01:00
Andrew Nicols 2c28ba8888 MDL-66307 js: Add missing plugintypes structure in subplugin read 2019-08-01 20:52:02 +08:00
Adrian Greeve 4e569b1b98 Merge branch 'MDL-65093' of git://github.com/stronk7/moodle 2019-08-01 16:07:26 +08:00
Sara Arjona c5f3e92498 MDL-66123 core: update upgrade.txt with check_password_policy changes 2019-08-01 10:08:03 +08:00
Sara Arjona 117d2fd56e Merge branch 'mdl_66123' of https://github.com/Peterburnett/moodle 2019-08-01 09:59:08 +08:00
Sara Arjona ac7505be43 Merge branch 'MDL-42451' of git://github.com/Chocolate-lightning/moodle 2019-08-01 09:53:05 +08:00
Adrian Greeve f1cb94488e Merge branch 'MDL-58974-master' of git://github.com/vmdef/moodle 2019-08-01 09:02:52 +08:00
Eloy Lafuente (stronk7) b119595510 Merge branch 'MDL-50472' of git://github.com/Chocolate-lightning/moodle 2019-08-01 00:27:31 +02:00
Eloy Lafuente (stronk7) 1ccc9461aa Merge branch 'MDL-66192-master' of git://github.com/andrewnicols/moodle 2019-08-01 00:22:14 +02:00
Eloy Lafuente (stronk7) d8b3c365ab Merge branch 'MDL-57342' of git://github.com/Chocolate-lightning/moodle 2019-07-31 18:49:21 +02:00
Eloy Lafuente (stronk7) 22c95e393a Merge branch 'MDL-65766-master' of git://github.com/mihailges/moodle 2019-07-31 18:38:39 +02:00
Tim Hunt b65db96d8c MDL-33884 question export: raise memory limit
Question exports can be quite big, just like imports can. Therefore, we
should raise memory limits in the same way.

(Of course, eventually we should change the API, so that it writes one
questoin at a time, rather than building the whole export file contents
in RAM first, but that would be a much bigger change, and we need a
quick fix now.)
2019-07-31 16:18:16 +01:00
Victor Deniz Falcon a9e58c14f9 MDL-58974 core_analytics: Add behat tests
Behat testing to cover model management and predictions generation
and visualization.
2019-07-31 11:13:05 +01:00
Mathew May 65fd840be8 MDL-42451 installation: Allow enter key to proceed 2019-07-31 14:22:42 +08:00
Mathew May e0f0f76344 MDL-65992 travis: Migrate to Xenial distro and default MySQL service 2019-07-31 12:56:39 +08:00
Jun Pataleta 3c84d36f94 Merge branch 'MDL-65831-master' of git://github.com/aanabit/moodle 2019-07-31 10:55:58 +08:00
Sara Arjona 408689d5ae Merge branch 'MDL-57208' of https://github.com/paulholden/moodle 2019-07-31 10:25:04 +08:00
Peter 02754b5165 MDL-65595 core: Remove the nowrap from the form's radio template 2019-07-31 08:15:00 +08:00
AMOS bot a18439bc6f Automatically generated installer lang files 2019-07-31 00:09:06 +00:00
Victor Deniz Falcon 6097d3e7ff MDL-66272 core_renderer: fix favicon method PHPDoc 2019-07-30 16:01:38 +01:00
Eloy Lafuente (stronk7) eaaef6d621 MDL-65093 core_message: remove some "dupe" tests
With the deprecation of can_post_message() in favor of
can_send_message() all the new test_can_send_message_xxx()
were created from the original test_can_post_message_xxx() ones.

So, really we don't need all the old ones. Just ensure that
debugging is being called and done. New tests are already covering
the new method.

Note this is not strictly needed but in practice is allowing
MySQL + PHP 7.3 to stop segfaulting (because of some sort of limit /
overflow happening somewhere else). So this is just a practical
fix to avoid that while all the messaging tests are reorganizaed
@ MDL-63670. There are some good things to fix there.
2019-07-30 12:37:27 +02:00
Paul Holden 719f76313c MDL-57208 user: select default homepage from user preferences page. 2019-07-30 08:53:18 +01:00
Paul Holden a1ab8ec216 MDL-66230 tool_usertours: account for deleted tours in privacy export. 2019-07-30 07:58:40 +01:00
Sara Arjona fd59fa7494 Merge branch 'MDL-64860-38_block_myoverview_improve_pagination' of https://github.com/tomdickman/moodle 2019-07-30 14:52:20 +08:00
Cameron Ball 315e4342f1 MDL-66279 task: Test if logger is_a database_logger 2019-07-30 14:49:27 +08:00
Jun Pataleta 91a8e1894b MDL-66281 tool_dataprivacy: Set sensitive data processing default value 2019-07-30 13:58:36 +08:00
Sara Arjona b5b11a1543 Merge branch 'MDL-63458' of https://github.com/rlorenzo/moodle 2019-07-30 11:59:18 +08:00
David Monllaó c430def90d MDL-66234 analytics: Extra GC during analysis 2019-07-29 18:36:42 +02:00
Adrian Greeve 647c6da2b8 Merge branch 'MDL-66174-master' of git://github.com/peterRd/moodle 2019-07-29 14:38:35 +08:00
Adrian Greeve 6aa6d5b113 Merge branch 'mdl-66119' of https://github.com/Peterburnett/moodle 2019-07-29 14:06:32 +08:00
[Peter Burnett] ad9c96e531 MDL-66123 core: check_password_policy takes $user argument 2019-07-29 14:37:50 +10:00
Jake Dallimore a12f9f93c4 Merge branch 'MDL-46267-master' of git://github.com/junpataleta/moodle 2019-07-29 11:37:56 +08:00
Mathew May c5d1c2dcf8 MDL-50472 auth: Add maintenance message to the login page. 2019-07-29 10:45:28 +08:00
Adrian Greeve 9f236d63e6 Merge branch 'MDL-65093_master-deprecate' of git://github.com/markn86/moodle 2019-07-29 10:43:52 +08:00
Mark Nelson 386634bab3 MDL-65093 core_message: show 'OK' dialogue 2019-07-29 10:39:57 +08:00
Mark Nelson 66fffdbce5 MDL-65093 core_message: dont show users with cap as blocked
It is possible that before this patch the user blocked a
teacher from messaging them, even though this would have
no effect. It is also possible for a user to block a user,
then that user gets 'promoted' to a teacher role and the
block becoming ineffective. In these cases we dont show the
user's status as blocked.
2019-07-29 10:39:57 +08:00
Mark Nelson 90403c5d9d MDL-65093 core_message: users can't block any user they want
If blocking will have no effect (ie. you are attempting to block
the admin) the 'Block' button will not be shown and instead a
message will be shown explaining why you can not block the user.
2019-07-29 10:39:57 +08:00
Mark Nelson 06d046c1ff MDL-65093 core_message: deprecate can_post_message() 2019-07-29 10:39:57 +08:00
Adrian Greeve dcc3f54e24 Merge branch 'MDL-64887-master-3' of git://github.com/bmbrands/moodle 2019-07-29 10:16:01 +08:00
Amaia Anabitarte c9469fb488 MDL-65831 behat: New steps to switch offline mode for moodle app behats 2019-07-29 09:50:41 +08:00
Mihail Geshoski 3d980e5be7 MDL-65766 libraries: Upgrade WebRTC to 6.4.0 2019-07-29 09:05:01 +08:00
Tom Dickman c0add7c713 MDL-64860 block_myoverview: added additional pagination options
Added additional pagination options based on the amount of courses the user is enrolled in.
This will allow the user to display all courses on one page if they wish, and scale based on their total
courses up to pages of 96 courses, now defaults to `All` if they have less than 12 courses and hides the
dropdown menu as there is only one choice.
2019-07-29 09:12:07 +10:00
Jake Dallimore d4fc7d756a Merge branch 'MDL-35773_master' of git://github.com/markn86/moodle 2019-07-26 17:32:29 +08:00
Mark Nelson 56e28c3bf1 MDL-35773 core_backup: controller has full responsibility for files 2019-07-26 17:00:40 +08:00
Jake Dallimore 1f16f4115d Merge branch 'MDL-65219-master' of https://github.com/ryanwyllie/moodle 2019-07-26 15:20:10 +08:00
Mark Nelson 9bfdfbb389 MDL-35773 tool_recyclebin: ensure backups always contain files 2019-07-26 11:59:57 +08:00
Mark Nelson 2124100194 MDL-35773 core_backup: ensure we restore with new itemid 2019-07-26 11:59:57 +08:00
Mark Nelson 7c1a42adb4 MDL-35773 core_backup: only include files when necessary 2019-07-26 11:59:56 +08:00
Mark Nelson 420384ae36 MDL-35773 core_backup: removed unnecessary set_samesite_notification() 2019-07-26 11:59:56 +08:00
Mark Nelson 8e83e54815 MDL-35773 core_backup: removed introduction of 'set_mode' 2019-07-26 11:59:56 +08:00
Mark Nelson 94c71056a3 MDL-35773 core_backup: use existing API to recover files 2019-07-26 11:59:56 +08:00
Mark Nelson 88031d35de MDL-35773 core: revert introduction of new recover_file() method
Also -

1. Reverted recover_file() in file_system_filedir back to its
   original state.
2. Removed no longer needed method create_recovery_record().
2019-07-26 11:59:56 +08:00
Mark Nelson 8490a4ab7b MDL-35773 core: move 'backup_auto_files' for consistency 2019-07-26 11:59:56 +08:00
Matt Porritt d7e4481e98 MDL-35773 Backup: API should have option to not backup files
Allow both UI and automated backups to be created without
including files.  Instead include only file references.
This is essentially implementing "SAMESITE" to backup files
instead of only for import and export functionality.
A new backup setting to include files (defaults to yes)
has been included.

The restore process will also look for and attempt to
restore files from the trashdir as part of restoring
backups.  Additionally to support this process the
ammount of time files are kept in trashdir before they
are cleaned up via cron is also adjustable via admin
setting.
2019-07-26 11:59:56 +08:00
Jake Dallimore 795baec988 Merge branch 'MDL-65918-master' of git://github.com/junpataleta/moodle 2019-07-26 10:57:01 +08:00
David Monllaó e38c016f80 MDL-58974 tool_analytics: Adding missing absolute paths 2019-07-26 00:50:29 +01:00
[Peter Burnett] 442eeac33c MDL-66119 core: Add check for uninstalling plugins from the admin gui 2019-07-26 09:27:32 +10:00
Andrew Nicols 9ea892d216 MDL-66192 javascript: Allow subdirs in AMD module names 2019-07-26 07:04:08 +08:00
Bas Brands 9f08292f4f MDL-64887 theme_boost: prevent drop downs from flipping up 2019-07-25 15:24:03 +02:00
Eloy Lafuente (stronk7) f622ee97e3 weekly release 3.8dev 2019-07-25 13:44:42 +02:00
Jake Dallimore 506fc5178b Merge branch 'MDL-65858_master' of git://github.com/markn86/moodle 2019-07-25 14:51:54 +08:00
Adrian Greeve 852bf8fa58 Merge branch 'MDL-65078-master' of git://github.com/peterRd/moodle 2019-07-25 14:49:40 +08:00
Eloy Lafuente (stronk7) 8b9c0616b3 Merge branch 'MDL-65994-master' of git://github.com/junpataleta/moodle 2019-07-25 14:49:12 +08:00
Eloy Lafuente (stronk7) 857431ed72 Merge branch 'MDL-65946-master' of git://github.com/junpataleta/moodle 2019-07-25 14:41:15 +08:00
Eloy Lafuente (stronk7) 2db07ee59c Merge branch 'MDL-65938-master' of git://github.com/junpataleta/moodle 2019-07-25 14:41:15 +08:00
Adrian Greeve 57d42d0598 Merge branch 'MDL-65633_master' of git://github.com/dmonllao/moodle 2019-07-25 14:41:15 +08:00
Adrian Greeve 700baa8409 Merge branch 'MDL-65740-master' of git://github.com/peterRd/moodle 2019-07-25 14:41:14 +08:00
Adrian Greeve a35b6a775a Merge branch 'MDL-66021-master' of git://github.com/peterRd/moodle 2019-07-25 14:41:14 +08:00
Damyon Wiese bde97497ef MDL-65078 competencies: webservices
The webservice list_course_module_competencies calls a function that does not exist and
is not exposed as a webservice.
2019-07-24 09:14:28 +08:00
Huong Nguyen 0fc30827dc MDL-64032 enrol_manual: Make consistent the UI for setting enrolment
Add end date/duration for the UI for setting enrolment should be consistent
2019-07-23 14:21:43 +07:00
Mathew May 0c18745424 MDL-57342 admin: confightml will check if returned data is empty 2019-07-23 13:35:14 +08:00
Ryan Wyllie 5d61b3b331 MDL-65219 message: default disable contact request notifications for web
Set the default state to disabled for message contact request
notifications for the web process. The user is notified about contact
requests in the message drawer so it's unnecessary to also generate
a notification in the notification popover for them.
2019-07-23 13:24:09 +08:00
Ryan Wyllie 6cb33ce774 MDL-65219 message: add message/pendingcontactrequests.php page back
We previously had this page when contact requests were first introduced
and unfortunately we created a bunch of notifications that reference
this URL directly which now won't work because the page has been removed.

I've added it back but set it to redirect to the message/index.php page
and load the contact requests page there.
2019-07-23 11:37:55 +08:00
Jun Pataleta 09267294bd MDL-65918 auth_oauth2: Require profile library once
Thanks to Jason Grimes for the bug report and fix suggestion!
2019-07-23 10:11:17 +08:00
Eloy Lafuente (stronk7) 9da4b1821f Merge branch 'MDL-65788' of git://github.com/Chocolate-lightning/moodle 2019-07-22 21:38:20 +02:00
Eloy Lafuente (stronk7) 797ef87344 Merge branch 'MDL-66132-master' of https://github.com/sammarshallou/moodle 2019-07-22 20:56:29 +02:00
Jake Dallimore c5b9f7fd70 Merge branch 'MDL-66144-master' of https://github.com/ryanwyllie/moodle 2019-07-22 15:19:17 +08:00
Bas Brands 10425e7347 MDL-64887 theme_boost: update bootstrap to 4.3.1 2019-07-22 08:57:04 +02:00
Jake Dallimore e255959e76 Merge branch 'MDL-66143-master' of git://github.com/junpataleta/moodle 2019-07-22 13:47:17 +08:00
Mark Nelson e1c484c745 MDL-65858 core_backup: increase the delay with each fail 2019-07-22 13:20:49 +08:00
Matt Porritt 133c131fc0 MDL-65858 core_backup: added timeout to ajax calls 2019-07-22 13:20:06 +08:00
Matt Porritt 00d214bca2 MDL-65858 backup: Improve behaviour of ajax calls
When a backup (or restore) is in progress and the user
has another tab open that is taking time to generate and
holding the session lock, a condition arises where
multiple ajax calls are "queued" because the long page
is holding the session lock. When this lock is released,
the queued ajax requests complete.  However, as the ajax
requests also lock this can block other requests until they
complete. This patch decreases the frequency of ajax calls
and stops them from holding the session lock.
2019-07-22 12:54:10 +08:00
Jun Pataleta b850ddfdd5 MDL-66143 course: Integration review fixes 2019-07-22 11:52:41 +08:00
Jun Pataleta a676250f97 MDL-66143 course: Behat tests for the relative dates mode field 2019-07-22 11:52:41 +08:00
Jun Pataleta f96623cb74 MDL-66143 course: Relative dates mode handling
* On course creation, make sure that we can enable relative dates mode
  only when the site setting is enabled.
* On course update, make sure that the relative dates mode setting
  cannot be changed.
2019-07-22 11:52:41 +08:00
Jun Pataleta 9d8cdb9ba8 MDL-66143 course: Add relativedatesmode course setting 2019-07-22 11:52:38 +08:00
Jun Pataleta afc87005cb MDL-66143 admin: Create setting for courses to support relative dates 2019-07-22 11:14:51 +08:00
Jun Pataleta 9320787005 MDL-46267 core: Remove $CFG->httpswwwroot
* It's unnecessary since $CFG->loginhttps has already been removed and
  it's no longer being used in core anymore.
2019-07-22 10:59:42 +08:00
Jun Pataleta b6e465c870 MDL-46267 core: https_required, verify_https_required final deprecation 2019-07-22 10:59:38 +08:00
Adrian Greeve 70f1d11338 Merge branch 'MDL-66136-master' of git://github.com/mihailges/moodle 2019-07-22 10:40:30 +08:00
Mihail Geshoski b7e4229187 MDL-66136 assign: Verify presence of resources in online text submission 2019-07-22 07:55:54 +08:00
Mihail Geshoski 911d164dcb MDL-66136 assignfeedback_comments: Extend testcase 2019-07-22 07:55:54 +08:00
Andrew Nicols de2976e548 MDL-62497 js: Pass strings through get_string 2019-07-21 15:06:25 +08:00
Eloy Lafuente (stronk7) 81aaf369b6 Merge branch 'MDL-50733' of git://github.com/stronk7/moodle 2019-07-20 00:24:27 +02:00
Mathew May 3373a429d4 MDL-50733 core: Update composer to updated behat-extension 2019-07-19 16:06:34 +02:00
Andrew Nicols 05d940a8ee Merge branch 'MDL-62497-master-final' of git://github.com/andrewnicols/moodle 2019-07-19 14:22:44 +08:00
Ryan Wyllie 3e5811aff2 MDL-62497 javascript: npm-shrinkwrap change 2019-07-19 14:12:49 +08:00
Andrew Nicols 73d3dfecc6 MDL-62497 javascript: lazy load js modules when cachejs is disabled 2019-07-19 14:12:49 +08:00
Ryan Wyllie 3095c3f6b0 MDL-62497 admin_tool: change user tours from third party lib to core 2019-07-19 14:12:49 +08:00
Ryan Wyllie 6466e89946 MDL-62497 javascript: rewrite core/str using ES6 syntax 2019-07-19 14:12:49 +08:00
Ryan Wyllie 38d4f754ca MDL-62497 javascript: add watchman support to grunt watch command 2019-07-19 14:12:49 +08:00
Ryan Wyllie 78610b53c7 MDL-62497 javascript: fix truncate.js
There was some code in the charLengthAt function which was requiring
that the "this" context not be null however it was unnecessary
because it never uses "this" and for some reason it was being set to
null after the ES6 transpiling.
2019-07-19 14:12:49 +08:00
Ryan Wyllie 195ea4480b MDL-62497 javascript: build AMD modules with new transpiler 2019-07-19 14:12:49 +08:00
Ryan Wyllie c53f86d408 MDL-62497 javascript: add babel transpiling to Grunt for ES6 support 2019-07-19 14:12:48 +08:00
Ryan Wyllie 67b2262938 MDL-62497 javascript: add babel polyfill for es6 support 2019-07-19 14:12:48 +08:00
Jun Pataleta 62e72577b5 MDL-65938 mod_quiz: Use new core/checkbox-toggleall
Plus:
* On the attempts report pages, the "Regrade selected attempts"
and "Delete selected attempts" buttons are now only enabled when
there's at least one item selected.
* Behat fixes for quiz edit feature after this patch
2019-07-19 13:14:11 +08:00
Jun Pataleta cbd8641a8a MDL-65994 question: Convert checkboxes to checkbox-toggleall element 2019-07-19 10:29:18 +08:00
Jun Pataleta 0b88a8bccc MDL-65946 mod_scorm: Use new core/checkbox-toggleall 2019-07-19 10:21:30 +08:00
David Monllaó 5ef49c591a MDL-65633 tool_analytics: Notification for invalid analysis intervals 2019-07-18 18:38:13 +02:00
David Monllaó 3cb0aaaa8c MDL-65633 analytics: New interfaces for time-splitting methods 2019-07-18 18:38:13 +02:00
Eloy Lafuente (stronk7) 8d9614b341 weekly release 3.8dev 2019-07-18 17:11:32 +02:00
Eloy Lafuente (stronk7) 8cc72cc764 NOBUG: Fixed file access permissions 2019-07-18 17:11:32 +02:00
Eloy Lafuente (stronk7) 2629c3d3a9 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-07-18 17:11:30 +02:00
Kathrin Osswald 3b7ef98824 MDL-63250 mediaplugin: Fixed video player size in specific tables 2019-07-18 13:51:59 +02:00
Peter 9573f50ad1 MDL-66174 mod_assign: Remove the strict widths on the annotation menu 2019-07-18 12:55:40 +08:00
Mathew May 90117cefb8 MDL-65788 tool_policy: Move accept_policy JS call into an array 2019-07-18 10:47:18 +08:00
Andrew Nicols e2142cec0c Merge branch 'MDL-65757-master' of git://github.com/lameze/moodle 2019-07-18 09:20:38 +08:00
Andrew Nicols 23f2f3d8eb Merge branch 'MDL-65768-master' of git://github.com/lameze/moodle 2019-07-18 09:08:52 +08:00
Andrew Nicols 201c689b20 Merge branch 'MDL-59911-conv_cleanup_check' of git://github.com/leonstr/moodle 2019-07-18 08:25:07 +08:00
AMOS bot f8f249f0c7 Automatically generated installer lang files 2019-07-18 00:08:56 +00:00
Andrew Nicols 9b5b40031c Merge branch 'MDL-66163-master' of git://github.com/marinaglancy/moodle 2019-07-18 07:44:54 +08:00
Eloy Lafuente (stronk7) efbd73b91c Merge branch 'MDL-66115_master' of https://github.com/dvdcastro/moodle 2019-07-17 23:08:53 +02:00
Eloy Lafuente (stronk7) bcaf538116 Merge branch 'MDL-65742-master' of git://github.com/mihailges/moodle 2019-07-17 22:45:12 +02:00
Eloy Lafuente (stronk7) d637fc7238 Merge branch 'MDL-65753' of git://github.com/Chocolate-lightning/moodle 2019-07-17 19:40:28 +02:00
Bas Brands b101ce581e MDL-60636 themes: form autocomplete chevron down on mobile 2019-07-17 12:28:13 +02:00
Ryan Wyllie 48272cb849 MDL-66144 course: make course format weeks show relative dates 2019-07-17 15:52:51 +08:00
Ryan Wyllie 00a66396c7 MDL-66144 course: add function to calculate user course dates 2019-07-17 15:52:51 +08:00
Andrew Nicols 9b12c927aa Merge branch 'MDL-63612-master' of git://github.com/bmbrands/moodle 2019-07-17 15:47:41 +08:00
Andrew Nicols 3e35647f3f Merge branch 'MDL-65751-master' of git://github.com/mihailges/moodle 2019-07-17 15:22:27 +08:00
Andrew Nicols d744d8fd2c Merge branch 'MDL-65758' of git://github.com/Chocolate-lightning/moodle 2019-07-17 15:20:15 +08:00
Jake Dallimore 400eb6af80 Merge branch 'MDL-60405-master' of git://github.com/peterRd/moodle 2019-07-17 13:11:43 +08:00
Tom Dickman a8561c38b8 MDL-64757 core_output: fixed incorrect string language mustache blocks
Mustache blocks nested in parent templates where incorrectly rendering the default language Moodle.
This fix correctly passes the current language preference to all nested mustache templates such as blocks
which are children of another template.
2019-07-17 14:28:29 +10:00
Andrew Nicols 8958115663 Merge branch 'MDL-65538-master' of git://github.com/sarjona/moodle 2019-07-17 10:55:43 +08:00
Peter 1a9699012f MDL-66021 restore: Additional restore unit tests with async mode 2019-07-17 10:52:53 +08:00
Andrew Nicols 4f320d1d7f Merge branch 'MDL-65762-master' of git://github.com/abgreeve/moodle 2019-07-17 10:34:20 +08:00
Andrew Nicols e68e7280c4 Merge branch 'MDL-65928-master-2' of git://github.com/junpataleta/moodle 2019-07-17 10:21:37 +08:00
Andrew Nicols bd056d1e4b Merge branch 'MDL-65750-master' of git://github.com/lameze/moodle 2019-07-17 10:10:52 +08:00
Mihail Geshoski a6c735031a MDL-65751 lib: Replace deprecated jQuery functions 2019-07-17 09:59:44 +08:00
Jun Pataleta ea382408ce MDL-65928 mod_choice: Use correct options attribute
* Should be 'classes', not 'class'.
2019-07-17 09:54:03 +08:00
Andrew Nicols e8136fe3ca Merge branch 'MDL-65357-master' of git://github.com/bmbrands/moodle 2019-07-17 09:39:58 +08:00
Andrew Nicols 4165860739 Merge branch 'MDL-65769-master' of git://github.com/lameze/moodle 2019-07-17 09:30:43 +08:00
Andrew Nicols 4de3b06d4b Merge branch 'MDL-65763-master' of git://github.com/mihailges/moodle 2019-07-17 09:21:33 +08:00
Jake Dallimore fa2d9e57dc Merge branch 'MDL-60013-master-fix' of git://github.com/andrewnicols/moodle 2019-07-17 09:12:57 +08:00
Andrew Nicols 8f3f25e21a MDL-60013 report_progress: Stop using deprecated modal type 2019-07-17 08:26:27 +08:00
Eloy Lafuente (stronk7) c010001b90 Merge branch 'MDL-66032-master_awarded_badges_criteria' of https://github.com/andrewmadden/moodle 2019-07-17 01:31:46 +02:00
Eloy Lafuente (stronk7) 23e357f1a0 Merge branch 'MDL-65908-master' of git://github.com/peterRd/moodle 2019-07-17 01:04:33 +02:00
Marina Glancy da501ae93d MDL-66163 mod_forum: Add component to unittest sql queries
files from other components may exist in the files table
2019-07-16 20:36:05 +03:00
Leon Stringer 50960244d8 MDL-59911 fileconverter_unoconv: Fix: test PDF fails after upgrade
When generating the PDF of unoconv_test.docx this file's previous conversions
are removed from mdl_file_conversion.  But these may also be removed by
\core_files\task\conversion_cleanup_task in which case an error occurs as
delete() is invoked with a NULL id.  Added check for non-NULL id prior to
invoking delete().
2019-07-16 16:44:09 +01:00
Eloy Lafuente (stronk7) d764acc2cf Merge branch 'MDL-65555-Master' of https://github.com/tuanngocnguyen/moodle 2019-07-16 12:34:23 +02:00
Eloy Lafuente (stronk7) 62f4e8b60b Merge branch 'MDL-65761' of git://github.com/Chocolate-lightning/moodle 2019-07-16 12:27:43 +02:00
Eloy Lafuente (stronk7) 415ce83bcb Merge branch 'MDL-65744' of git://github.com/Chocolate-lightning/moodle 2019-07-16 11:20:58 +02:00
Mathew May f305ffc933 MDL-65744 lib: Modify minify test to check properly 2019-07-16 17:06:06 +08:00
Mathew May ad4d9cf745 MDL-65744 lib: Modify minify test to check properly 2019-07-16 17:05:33 +08:00
Mathew May b4e39ff24e MDL-65744 lib: Update minify pathconverter lib 2019-07-16 17:05:33 +08:00
Mathew May 0918e156a0 MDL-65744 lib: Update minify minify lib 2019-07-16 17:05:33 +08:00
Andrew Nicols e752e12971 Merge branch 'MDL-65954-master' of git://github.com/junpataleta/moodle 2019-07-16 15:13:41 +08:00
Andrew Nicols c8898e74a1 Merge branch 'MDL-65794_master' of git://github.com/markn86/moodle 2019-07-16 14:26:55 +08:00
Mark Nelson e81107fa25 MDL-65794 core: use themerev as the cache key when getting font icons 2019-07-16 14:23:34 +08:00
Mark Nelson 76669f0f51 MDL-65794 core: use langrev as the cache key when getting strings 2019-07-16 14:23:34 +08:00
Mark Nelson f88e607429 MDL-65794 core: make langrev available in JS 2019-07-16 14:23:34 +08:00
Mark Nelson 3f7360f07d MDL-65794 core: use themerev as the cache key when getting templates 2019-07-16 14:23:34 +08:00
Mark Nelson 6a1ad7c677 MDL-65794 core: allow ajax calls to specify a cache key
This allows for better caching capabilities on servers. If a
cache key is passed and the web service call does not require
the user to be logged in we will attempt to use GET for the
request. This allows for things like proxy caching on URLs.
The cache key must be changed if we do not want to retrieve
what has been cached and want to perform the request again.
2019-07-16 14:23:34 +08:00
Andrew Nicols ce4e052209 Merge branch 'MDL-60013-master' of git://github.com/junpataleta/moodle 2019-07-16 14:21:18 +08:00
Andrew Nicols 94d9aeade7 Merge branch 'MDL-65744' of git://github.com/Chocolate-lightning/moodle 2019-07-16 12:57:24 +08:00
Andrew Nicols d42df9f5a7 Merge branch 'master_MDL-65517' of https://github.com/yao9394/moodle 2019-07-16 11:50:58 +08:00
Andrew Nicols 417e334b91 Merge branch 'MDL-65409-master' of git://github.com/mihailges/moodle 2019-07-16 11:35:23 +08:00
Jake Dallimore e83765bcf1 Merge branch 'MDL-66158-master' of git://github.com/andrewnicols/moodle 2019-07-16 10:30:52 +08:00
Andrew Nicols 444f85aaa9 MDL-66158 calendar: Events should be space separated not an array 2019-07-16 09:46:02 +08:00
Mathew May d7b43fd9cf MDL-65761 lib: Update scssphp to 1.0.2 2019-07-16 09:29:37 +08:00
Mathew May f619e305a0 MDL-65761 lib: Update scssphp to 1.0.0 2019-07-16 09:16:44 +08:00
Nathan Nguyen a81f5d0b1a MDL-65555 mod_lesson: fix group override backup and restore 2019-07-16 11:16:03 +10:00
Nathan Nguyen 4d3bc85866 MDL-65555 mod_quiz: fix group override backup and restore 2019-07-16 11:16:03 +10:00
Mathew May 358d571156 MDL-65761 lib: Update scssphp to 0.8.3 2019-07-16 09:15:21 +08:00
Andrew Madden 7599223a1c MDL-66032 badges: Prevent empty awarded badges criteria being created.
When creating or editing the awarded badges criteria, the select element should be
required to prevent empty criteria from being created. In addition, if there are
already badges created with the empty criteria, there should be not be an exception
thrown when assessing whether the criteria has been completed.
2019-07-16 09:31:25 +10:00
Andrew Nicols a21f471e12 Merge branch 'MDL-65928-master-2' of git://github.com/junpataleta/moodle 2019-07-16 07:18:17 +08:00
Eloy Lafuente (stronk7) c4e14e535e Merge branch 'MDL-62836-master' of git://github.com/sarjona/moodle 2019-07-15 23:56:39 +02:00
Sara Arjona 3e8f9b2869 MDL-65538 competency: fix behat errors with firefox
There is a random behat error when executing the "Go to the competency
course competencies page." scenario: "Moodle exception: A required parameter
(courseid) was missing More information about this error".
It happens because sometimes the form is sent before the JS and it hasn't
the needed parameters defined. So they have been added as hidden to the
form to avoid the error (which I couldn't reproduce manually).
2019-07-15 13:48:56 +02:00
Eloy Lafuente (stronk7) e9514b4df9 Merge branch 'MDL-58026-master' of https://github.com/MartinGauk/moodle 2019-07-15 13:38:44 +02:00
Bas Brands c5b2ab4786 MDL-63612 core_admin: make course card colours configurable 2019-07-15 11:01:20 +02:00
David Monllaó 2ffdcd78d3 MDL-66026 analytics: No notification if not necessary 2019-07-15 14:24:21 +08:00
Jun Pataleta c5681f7ff1 MDL-60013 amd: Final removal of core/modal_confirm 2019-07-15 13:37:01 +08:00
Peter ee1062686c MDL-66021 backup: Clear course if required before restore 2019-07-15 13:16:50 +08:00
Jun Pataleta b3f4d77e00 MDL-65954 dataformat_pdf: Convert object records to array
* count() doesn't work quite as expected when the record being written
to the PDF is an object. So make sure to convert the record to an array.
* In addition, instead of comparing the total vs the current cell
counter, it would be more reliable to determine whether we're at the
last element of the array by getting the key for the last element and
comparing it with the key for the element that's currently being
processed.
2019-07-15 10:29:59 +08:00
Mihail Geshoski 88d2bc81c8 MDL-65751 lib: Update jQuery version in Moodle files 2019-07-15 08:45:34 +08:00
Mihail Geshoski c40548366b MDL-65751 lib: Upgrade jQuery lib to 3.4.1 2019-07-15 08:45:34 +08:00
Mihail Geshoski 324aa89ac4 MDL-65742 lib: Update HTMLPurifier version in Moodle related files 2019-07-15 08:43:16 +08:00
Mihail Geshoski e80855b0da MDL-65742 lib: Upgrade HTMLPurifier lib to 4.10.0 2019-07-15 08:43:16 +08:00
Peter e35cc9fea9 MDL-65908 mod_assign: Remove scroll repositioning.
Absolute positioned elements do not require repositioning on scroll as long as
their immediate parent is relatively positioned.
2019-07-15 08:35:58 +08:00
Mathew May 25d31d43b7 MDL-65788 tool_policy: Prevent two modals rendering for guests.
With the Guest registration calling policyactions.js the [data-action="view"]
was having two click handlers set on the inital policy modal trgger.
With this commit we state what we want the click event to be set on.
2019-07-14 18:52:27 +08:00
AMOS bot bf11226094 Automatically generated installer lang files 2019-07-14 00:08:42 +00:00
David Castro 39260e3ead MDL-66115 qtype_ddimageortext: Fixing choice deletion.
Summarising responses fails when question choices have been removed.

AMOS BEGIN
CPY [deletedchoice,qtype_match],[deletedchoice,qtype_ddimageortext]
AMOS END

(cherry picked from commit f0265e6db16caa6d13f8bce291e7da91b0eabb53)
2019-07-12 14:36:32 -05:00
Silvia Pinheiro ae1556ad93 MDL-62836 badges: Add behat test for the new group selector 2019-07-12 18:13:37 +02:00
Silvia Pinheiro b1e63fc7e2 MDL-62836 badges: Potential badge recipients by group
This affects the case when a badge is setup with the criteria "manual issue by role".
The non-editing teacher can see all participants of the course, when awarding a badge, even with SEPARATE GROUPS mode enabled.
With this change, when the non-editing teacher chooses a group, and searches for a user, the results are filtered for that group.
The same happens for "Existing badge recipients by group" when revoking a badge.
2019-07-12 18:13:37 +02:00
sam marshall ed73ff2b0e MDL-66132 Search: Behat tests should use simpledb, fix mock count
When searching using mock results (the 'global search expects the
query' step), the result count is not correctly set. As a result, the
page incorrectly reports that there are no results and doesn't
correctly show the first page of multi-page results.

Additionally, some of the core Behat tests can now be moved to use
real searching with the simpledb engine, rather than using mock
results at all. This gives better tests.

Unfortunately it was not possible to move all of the core Behat tests
and deprecate the mock step, because some of the tests are related to
the UI for 'special' features searching by user or group, neither of
which are supported by the simpledb engine.
2019-07-12 15:31:30 +01:00
Jun Pataleta 622d83d7bc MDL-65928 mod_choice: Use proper string for 'select/deselect all' labels
* Because string concatenation is bad!
2019-07-12 16:33:35 +08:00
Jun Pataleta 05b25140d0 MDL-65928 core: Use 'starts with' for non-exact toggle group matching
* Use the 'starts with' selector when matching toggle groups by name in
  non-exact mode to avoid potential conflicts with other toggle groups.
* Note down the required data attributes for JS in the template
  documentations.
* Add a note of this output component in upgrade.txt.
* Add doc blocks for the core/checkbox-toggleall attributes and methods.
2019-07-12 16:33:29 +08:00
Jun Pataleta 71eadbec62 MDL-65928 mod_choice: Add select/deselect all master button 2019-07-12 14:36:35 +08:00
Jun Pataleta c7ad9f3439 MDL-65928 mod_choice: Use core/checkbox_toggleall 2019-07-12 14:36:35 +08:00
Jun Pataleta 2abd969cc5 MDL-65928 core: Split toggle-all elements into separate templates
For cleaner templates, split checkbox toggle-all elements into three
templates:
* master checkbox (master control rendered as a checkbox)
* master button (master control rendered as a button)
* slave checkbox
2019-07-12 14:36:35 +08:00
Jun Pataleta 5943fc3f95 MDL-65928 core: Render master element as button too 2019-07-12 14:36:35 +08:00
Jun Pataleta 6259a9d065 MDL-65928 core: Create a checkbox_toggleall renderable 2019-07-12 14:36:35 +08:00
Jun Pataleta 0a3d306358 MDL-65928 core_amd: Let checkboxes belong to multiple toggle groups 2019-07-12 14:36:35 +08:00
Jun Pataleta 686ab8cc74 MDL-65928 core_amd: Add support for action elements
Enable/disable action elements that are associated with the toggle
group.
2019-07-12 14:36:35 +08:00
Mark Nelson 7fa4e41052 MDL-65794 core: no need for sesskey when login not required 2019-07-12 13:03:43 +08:00
Peter e349db4b4a MDL-65908 assign: Overflow and positioning updates
Draw all annotation within the drawing canvas instead of the region
2019-07-12 09:56:31 +08:00
Peter 2269b06cbc MDL-65908 assign: Revert overflow scroll fix
Revert "MDL-65484 assign: Scrolling overflow CSS"

This reverts commit 5bda066caa.
2019-07-12 09:56:31 +08:00
Damyon Wiese 27b67f6b5a MDL-65409 files: Allow location header
Allow incorrect capitals in location header response.
2019-07-12 08:42:20 +08:00
Mihail Geshoski 247206c970 MDL-65763 lib: Update GeoIP2 and MaxMind DB reader versions in Moodle 2019-07-12 08:17:46 +08:00
Mihail Geshoski b55260fcfb MDL-65763 lib: Upgrade MixMind DB reader lib to 1.4.1 2019-07-12 08:17:46 +08:00
Mihail Geshoski e952e8a425 MDL-65763 lib: Upgrade GeoIP2 lib to 2.9.0 2019-07-12 08:17:46 +08:00
John Yao 96e444665e MDL-65517 block_timeline: Hide completed course modules in Timeline
When some activities are manually completed by students, some are still showing in students' timeline.
This commit fix that for module assign,chat,choice,feedback,lesson,quiz,scorm and workshop.
2019-07-12 09:16:40 +10:00
David Monllaó b209893dd0 MDL-65769 mlbackend_php: Proper algo init & unit test fix 2019-07-12 06:28:31 +08:00
Simey Lameze 3e99b44088 MDL-65769 lib: update PHP-ML thirdpartylibs.xml 2019-07-12 06:28:31 +08:00
Simey Lameze e6c25fb057 MDL-65769 lib: update PHP-ML to 0.8.0 2019-07-12 06:28:31 +08:00
Eloy Lafuente (stronk7) f7e108438f weekly release 3.8dev 2019-07-11 23:33:29 +02:00
Eloy Lafuente (stronk7) f795e2008f NOBUG: Fixed file access permissions 2019-07-11 23:33:29 +02:00
Eloy Lafuente (stronk7) 2cb2a818e2 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-07-11 23:33:27 +02:00
Jun Pataleta 42255de5bc Merge branch 'MDL-65926-master_lowercase_username_sql_query' of https://github.com/andrewmadden/moodle 2019-07-11 20:57:29 +02:00
Bas Brands 8c2bbe5caa MDL-66039 themes: remove duplicate css
* removed duplicate #page { margin-top: 50px };
2019-07-11 14:52:40 +02:00
Simey Lameze da99fb56f6 MDL-65757 lib: update moodle thirdpartylibs.xml 2019-07-11 16:18:43 +08:00
Simey Lameze 9e3dca0a55 MDL-65757 lib: upgrade loglevel.js to 1.6.2 2019-07-11 16:18:04 +08:00
AMOS bot ddb3755c35 Automatically generated installer lang files 2019-07-11 00:08:53 +00:00
Eloy Lafuente (stronk7) 65b10696c5 Merge branch 'MDL-65931-master' of https://github.com/sammarshallou/moodle 2019-07-11 00:33:57 +02:00
sam marshall 107ab4b97b MDL-65931 Web services: get_courses_by_field minor inefficiency
When called with a list of course IDs, this change makes it preload
the contexts and categories before further processing. This saves a
number of queries, depending on how many courses you call it for.

(Typically the function is called with a list of all your enrolled
courses.)

The change may also improve performance for other web services that
call the validate_courses function.
2019-07-10 18:27:42 +01:00
Eloy Lafuente (stronk7) e6bfe3f32b Merge branch 'MDL-66114-master-fix' of git://github.com/marinaglancy/moodle 2019-07-10 12:42:04 +02:00
Marina Glancy de08f8b2ba MDL-66114 core_calendar: normalise categoryid value 2019-07-10 11:28:26 +02:00
Andrew Nicols 2c860ec20e Merge branch 'MDL-65747' of git://github.com/Chocolate-lightning/moodle 2019-07-10 14:33:10 +08:00
Andrew Nicols aeac7a10bc Merge branch 'MDL-66114-master-2' of git://github.com/marinaglancy/moodle 2019-07-10 14:28:27 +08:00
Jun Pataleta 1b81ed2f97 Merge branch 'MDL-66012-master' of git://github.com/lameze/moodle 2019-07-10 12:17:44 +08:00
Simey Lameze 7bfe4a52a3 MDL-66012 calendar: fix no event message on calendar views
Ahhh Jun. Thanks legend :)
2019-07-10 11:34:35 +08:00
Jun Pataleta b17040fdfc Merge branch 'MDL-64002-master-rebased' of git://github.com/ryanwyllie/moodle 2019-07-10 11:01:51 +08:00
Simey Lameze 9ed1114f27 MDL-65750 lib: update of moodle documentation
Update of readme_moodle.txt and thirdpartylibs.xml
with information about the update to 1.5.2
2019-07-10 08:48:22 +08:00
Simey Lameze 4155b7a40b MDL-65750 lib: update simplepie to 1.5.2 2019-07-10 08:48:22 +08:00
Mathew May 062dc67e4e MDL-65747 libraries: Remove the pear/CHAP library 2019-07-10 08:42:19 +08:00
Andrew Nicols 3034726dc9 Merge branch 'MDL-65562_master' of git://github.com/dmonllao/moodle 2019-07-10 08:09:25 +08:00
Andrew Nicols 511edea98f Merge branch 'MDL-65741-master' of git://github.com/sarjona/moodle 2019-07-10 08:07:43 +08:00
Eloy Lafuente (stronk7) 884bd3da36 Merge branch 'MDL-56835_master-coursetimecreated' of git://github.com/markn86/moodle 2019-07-10 00:07:46 +02:00
Eloy Lafuente (stronk7) d0df20d88b Merge branch 'MDL-64811_group_submission_warning' of git://github.com/davosmith/moodle 2019-07-09 17:57:37 +02:00
Marina Glancy 1f37e37356 MDL-66114 core_calendar: events without category 2019-07-09 17:52:07 +02:00
David Monllaó 1d5cb38292 MDL-65562 analytics: New get_prediction_actions API 2019-07-09 13:36:11 +02:00
David Monllaó 4de032eba3 MDL-65562 tool_analytics: Effectiveness report base 2019-07-09 13:36:11 +02:00
Jun Pataleta 28ebbfd77e Merge branch 'MDL-66081-master' of git://github.com/lameze/moodle 2019-07-09 17:11:41 +08:00
Davo Smith 07aafc9f80 MDL-64811 mod_assign: add webservice return type change to upgrade.txt 2019-07-09 09:01:44 +01:00
Andrew Nicols b25bcc45dc Merge branch 'MDL-64258-master' of https://github.com/HuongNV13/moodle 2019-07-09 14:26:13 +08:00
Ryan Wyllie 18cb44460b MDL-64002 message: add error handling for failed messages
Add inline error messages when messages fail to send. Also add
support for deleting messages that failed to send.
2019-07-09 13:49:24 +08:00
Andrew Nicols b6bbcd6ecb Merge branch 'MDL-65936' of git://github.com/Chocolate-lightning/moodle 2019-07-09 13:29:42 +08:00
Andrew Nicols c30d15814a Merge branch 'MDL-65965-master-fix' of git://github.com/junpataleta/moodle 2019-07-09 10:59:14 +08:00
Jun Pataleta 5fb766da14 MDL-65965 behat: Do not fetch grouping IDs for empty grouping idnumbers 2019-07-09 10:47:53 +08:00
Mark Nelson 11362b4aaf MDL-56835 report_participation: remove unreachable if condition 2019-07-09 09:14:15 +08:00
Andrew Nicols dbeada6f27 Merge branch 'MDL-65772-master' of git://github.com/vmdef/moodle 2019-07-09 08:44:48 +08:00
Mark Nelson 2604998150 MDL-56835 report_participation: initialise action variables 2019-07-09 08:27:17 +08:00
Mark Nelson 5a9e1bc18e MDL-56835 report_participation: use course timecreated as minlog 2019-07-09 08:27:17 +08:00
Eloy Lafuente (stronk7) d94c54f092 Merge branch 'MDL-66054-master' of git://github.com/rezaies/moodle 2019-07-09 00:57:07 +02:00
Eloy Lafuente (stronk7) b062e4c4cb Merge branch 'MDL-65965-master' of git://github.com/junpataleta/moodle 2019-07-09 00:54:56 +02:00
Eloy Lafuente (stronk7) 33b511bbc7 Merge branch 'MDL-60949_master' of git://github.com/dmonllao/moodle 2019-07-09 00:52:49 +02:00
Eloy Lafuente (stronk7) cb153cfe80 Merge branch 'MDL-65915' of https://github.com/timhunt/moodle 2019-07-09 00:51:12 +02:00
Martin Gauk 09fd8aec27 MDL-58026 question: fix regrading in progress attempt
Do not convert autosave steps to true steps when regrading.

Thanks Eric Merrill for providing the unit test code.
2019-07-08 09:35:34 +00:00
David Monllaó 35b10d09eb MDL-60949 analytics: Sort models by name 2019-07-08 08:19:47 +02:00
Mathew May 9193075486 MDL-65936 libraries: Remove duplicate fontawesome scss 2019-07-08 11:07:13 +08:00
AMOS bot 76fb9df69b Automatically generated installer lang files 2019-07-08 00:09:57 +00:00
AMOS bot d315eb9956 Automatically generated installer lang files 2019-07-07 00:08:47 +00:00
Stefan Topfstedt 1606fb6812 MDL-65621 block_myoverview: tag courses as "hidden from students"
This is intended to visually separate hidden course from open
courses in the course overview block
by applying a "Hidden from students" tag to the various views in
this block.
To achive this, the course summary exporter's output must be
augmented with a "visiblity" attribute,
carrying the given course's corresponding visibility setting.
Since the exporter now expects this data point as part of its input,
the output of the course_get_recent_courses()
function had to also be augmented with the course visibility setting
to provide this value.
2019-07-05 14:41:46 -07:00
Sara Arjona fe3bec8a5e MDL-65741 libraries: Fix coding style errors in Excel lib 2019-07-05 15:59:37 +02:00
Sara Arjona 0238ea21c4 MDL-65741 libraries: Replace PHPExcel with PHPSpreadsheet 2019-07-05 15:59:36 +02:00
Simey Lameze 316412beb4 MDL-66081 calendar: fix typo in attribute description 2019-07-05 17:04:13 +08:00
Matt Porritt d00715e410 MDL-56835 report_participation: release session lock 2019-07-05 10:33:13 +08:00
Ryan Wyllie 485ebc9b67 MDL-64002 message: buffer send messages in UI for slow connections 2019-07-05 10:10:08 +08:00
AMOS bot 05eb5122dc Automatically generated installer lang files 2019-07-05 00:09:35 +00:00
Andrew Madden 907be50c42 MDL-65926 moodlelib: Convert username to lowercase prior to SQL query
Within a very large project, it was found that searching for a user with their username in the user table using a case insensitive
search was inefficient. Instead it is proposed that the username input is made to be lowercase prior to executing a database query
as the username for each user in the database must be lowercase. This allows for a case sensitive query to find the user data.
Essentially we are moving a case insensitive search for a user from SQL into PHP to increase performance.
2019-07-05 09:02:56 +10:00
Eloy Lafuente (stronk7) fac49f8f72 weekly release 3.8dev 2019-07-04 16:50:36 +02:00
Eloy Lafuente (stronk7) 6855aeda7c Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-07-04 16:50:31 +02:00
AMOS bot 56398bc1fc Automatically generated installer lang files 2019-07-04 00:08:30 +00:00
Shamim Rezaie 5018a004ef MDL-61114 mod_assign: Check if the teacher can access the override 2019-07-03 18:00:11 +02:00
Shamim Rezaie 9cb135db20 MDL-61114 mod_assign: assignment overrides to observe group membership 2019-07-03 18:00:11 +02:00
Shamim Rezaie eb70df6f4b MDL-61115: mod_lesson: Check if the teacher can access the override 2019-07-03 15:17:22 +02:00
Shamim Rezaie b392686a65 MDL-61115 mod_lesson: Lesson overrides to observe group membership 2019-07-03 15:17:22 +02:00
Sara Arjona f7b0d0fe7f Merge branch 'MDL-65105-master' of git://github.com/bmbrands/moodle 2019-07-03 15:05:32 +02:00
Sara Arjona 3eb551e809 Merge branch 'MDL-65958-master-v3' of git://github.com/lameze/moodle 2019-07-03 14:53:17 +02:00
Simey Lameze da6ed25999 MDL-65958 calendar: cover students default event type visibility 2019-07-03 20:39:58 +08:00
Simey Lameze 26d6404315 MDL-65958 calendar: students should not see course event type 2019-07-03 20:28:09 +08:00
Simey Lameze 47177cd6bc MDL-65958 calendar: add behat to test calendar_adminseesall behaviour 2019-07-03 20:27:59 +08:00
Sara Arjona 8a2ec04df3 Merge branch 'MDL-64794' of https://github.com/stronk7/moodle 2019-07-03 11:15:30 +02:00
Huong Nguyen afcc7a723d MDL-64258 Group: Performance problem on the enrol group members page 2019-07-03 15:08:51 +07:00
Huong Nguyen 53f796b91a MDL-64258 Group: Unit Test for find_users function 2019-07-03 15:08:49 +07:00
Simey Lameze 7abf78fc41 MDL-65958 calendar: fix adminseesall logic in the event form 2019-07-03 16:05:55 +08:00
Eloy Lafuente (stronk7) 843618cecd Merge branch 'MDL-65845_master' of git://github.com/dmonllao/moodle 2019-07-03 02:25:22 +02:00
Eloy Lafuente (stronk7) 5daeae8867 Merge branch 'MDL-65656-master-2' of git://github.com/andrewnicols/moodle 2019-07-03 02:16:35 +02:00
AMOS bot 9848f7391f Automatically generated installer lang files 2019-07-03 00:08:38 +00:00
AMOS bot 489ab2de53 Automatically generated installer lang files 2019-07-03 00:08:38 +00:00
Eloy Lafuente (stronk7) 45a8249431 Merge branch 'MDL-63268-master' of https://github.com/lucaboesch/moodle 2019-07-03 00:02:07 +02:00
Sara Arjona a1f0042e06 Merge branch 'MDL-64614' of git://github.com/stronk7/moodle 2019-07-02 21:21:18 +02:00
Luca Bösch d4beb21162 MDL-63268 tool_uploadcourse: Keep source course section number. 2019-07-02 19:44:22 +02:00
Eloy Lafuente (stronk7) b56dad81b7 Merge branch 'MDL-65707-master' of git://github.com/lameze/moodle 2019-07-02 16:40:02 +02:00
Sara Arjona 492b51a349 Merge branch 'MDL-66062' of git://github.com/stronk7/moodle 2019-07-02 15:15:49 +02:00
Sara Arjona ec089cc4f7 Merge branch 'MDL-65101_master' of git://github.com/markn86/moodle 2019-07-02 14:50:04 +02:00
Eloy Lafuente (stronk7) 3b07f13d52 MDL-66062 travis: Force PHP 7.1.30 to avoid some unit test failures
Make this sticky because current default version (7.1.11)
has a bug with redis-extension outputting information and breaking
tests.
2019-07-02 12:57:52 +02:00
Eloy Lafuente (stronk7) 7384dd3e2c Merge branch 'MDL-65728-master' of git://github.com/rezaies/moodle 2019-07-02 12:13:46 +02:00
Sara Arjona aa6a50cccc Merge branch 'MDL-65839_master' of git://github.com/dmonllao/moodle 2019-07-02 10:41:35 +02:00
Eloy Lafuente (stronk7) ca79f78948 Merge branch 'MDL-65853_master' of git://github.com/gjb2048/moodle 2019-07-02 10:25:23 +02:00
Shamim Rezaie 1ba1235eb1 MDL-34411 mod_quiz: Check if the teacher can access the override 2019-07-02 08:54:36 +02:00
Shamim Rezaie cb64dfbeb1 MDL-34411 groups: copy/paste error in test_groups_user_groups_visible 2019-07-02 08:54:36 +02:00
Shamim Rezaie ce1fd00203 MDL-34411 mod_quiz: quiz overrides to observe group membership 2019-07-02 08:54:36 +02:00
Damyon Wiese 043b38d580 MDL-64623 glossary: Check the entry id
The entry must match the glossary before you can do any action on it.
2019-07-02 08:54:36 +02:00
Damyon Wiese ea1ac3c7ef MDL-53689 xmldb: Require a sesskey to load xml
Loading and unloading xml files is not protected from XSS with a sesskey.
2019-07-02 08:54:36 +02:00
Sara Arjona af1fce5cb9 Merge branch 'MDL-48610-master_always_visible_alphabet_filter' of https://github.com/gmrsagar/moodle 2019-07-02 08:45:56 +02:00
Sara Arjona 7576bcbe9a Merge branch 'MDL-66049-master-workshopnamespace' of git://github.com/mudrd8mz/moodle 2019-07-02 08:28:53 +02:00
Sara Arjona a3729cbf6b Merge branch 'MDL-65901-master' of https://github.com/lucaboesch/moodle 2019-07-02 08:10:11 +02:00
Jun Pataleta 3e287c3bee Merge branch 'MDL-66022-master-fix' of git://github.com/andrewnicols/moodle 2019-07-02 15:58:51 +10:00
Andrew Nicols 7fdefd3184 MDL-66022 core: subplugins.php moved to json 2019-07-02 15:55:12 +10:00
AMOS bot 1433a8b03a Automatically generated installer lang files 2019-07-02 00:09:18 +00:00
Eloy Lafuente (stronk7) 671313b32d Merge branch 'MDL-64935-master' of git://github.com/bmbrands/moodle 2019-07-02 00:05:03 +02:00
Eloy Lafuente (stronk7) d1f430d160 Merge branch 'MDL-66022' of git://github.com/Chocolate-lightning/moodle 2019-07-01 23:55:14 +02:00
Shamim Rezaie 1d26a183bb MDL-66054 behat: typo fix 2019-07-02 04:04:28 +10:00
Eloy Lafuente (stronk7) 6e990b0c6b Merge branch 'MDL-64511' of https://github.com/paulholden/moodle 2019-07-01 18:52:06 +02:00
Sara Arjona 90f59ece67 Merge branch 'MDL-65297' of https://github.com/paulholden/moodle 2019-07-01 18:34:38 +02:00
Sara Arjona 2233fcbedd Merge branch 'MDL-65892-master-inlinereply' of git://github.com/mudrd8mz/moodle 2019-07-01 15:49:54 +02:00
David Mudrák 2bb03c59e8 MDL-66049 workshop: Fix the fully qualified class name
Because of the missing slash, the class 'workshop' was not found in the
current namespace and the cron failed to work.
2019-07-01 14:48:45 +02:00
Víctor Déniz Falcón 8b7d951046 MDL-65772 cachestore_mongodb: fix the version number of the library 2019-07-01 12:40:59 +01:00
Sara Arjona 3ee94b8dee Merge branch 'MDL-65973-master' of git://github.com/jleyva/moodle 2019-07-01 13:13:26 +02:00
Davo Smith 8773296b77 MDL-64811 mod_assign: fix webservice return type 2019-07-01 11:22:57 +01:00
Dan Marsden 22dfa6d31d MDL-60347 core: debugsmtp should be a developer only setting. 2019-07-01 12:15:05 +02:00
Sara Arjona 7d12c365ca Merge branch 'MDL-57884' of https://github.com/timhunt/moodle 2019-07-01 09:57:34 +02:00
AMOS bot 008bb06ece Automatically generated installer lang files 2019-06-30 00:09:09 +00:00
AMOS bot 069bc65d61 Automatically generated installer lang files 2019-06-30 00:09:08 +00:00
Eloy Lafuente (stronk7) a993013a33 MDL-64614 environment: mssql requirement up to 2012 (11.0) 2019-06-29 16:26:36 +02:00
Eloy Lafuente (stronk7) 502d2c8a48 MDL-64614 environment: 3.8 base information
This is a direct copy of the 3.7 branch to have
changes under control easier for next commits.
2019-06-29 11:52:00 +02:00
AMOS bot 86aca4f8b3 Automatically generated installer lang files 2019-06-29 00:09:09 +00:00
AMOS bot 693f54d0b5 Automatically generated installer lang files 2019-06-29 00:09:08 +00:00
David Monllaó a5d8d2ce9f MDL-65845 mod_lesson: Fix wrong pointer to an object
We should be pointing to the array of timecreated values instead.
2019-06-28 21:06:00 +02:00
David Monllaó 39db57c3ee MDL-65839 core_analytics: New indicator instances for each analysable 2019-06-28 21:00:04 +02:00
Paul Holden b4d999a5a6 MDL-64511 privacy: encode data URL when loading content.
Previously paths that included ? or # characters would break loading.
2019-06-28 13:16:16 +01:00
Paul Holden 8e7b3d4ede MDL-65297 atto_managefiles: improve filename decoding.
Filenames containing # character would previously be missed.
2019-06-28 13:12:04 +01:00
Sara Arjona 5528d03217 Merge branch 'MDL-65506-master' of git://github.com/rezaies/moodle 2019-06-28 12:16:14 +02:00
Mark Nelson 4ad162667d MDL-65101 core_message: add Behat test 2019-06-28 18:12:05 +08:00
Mark Nelson a9fd9c7909 MDL-65101 core_message: 'canmessage' should trump 'requirescontract' 2019-06-28 14:58:24 +08:00
AMOS bot 267a6475ef Automatically generated installer lang files 2019-06-28 00:09:39 +00:00
Gareth Barnard 5f3d948aaf MDL-65853 format_base: Labels counted in section activity summary. 2019-06-27 23:32:35 +01:00
Luca Bösch 242dad037f MDL-65901 forum: Style advanced search form properly. 2019-06-27 22:00:05 +02:00
Eloy Lafuente (stronk7) 7ec1804935 weekly release 3.8dev 2019-06-27 18:54:22 +02:00
Eloy Lafuente (stronk7) 730e779b0c Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-06-27 18:54:19 +02:00
Jake Dallimore c0cc1ebe85 Merge branch 'MDL-65995' of git://github.com/stronk7/moodle 2019-06-27 13:37:50 +08:00
Andrew Nicols bf2d94e3c9 Merge branch 'MDL-53778' of https://github.com/stronk7/moodle 2019-06-27 08:35:56 +08:00
Mathew May e63a35dcff MDL-66022 core: Remove unused subplugin files 2019-06-27 08:18:24 +08:00
Eloy Lafuente (stronk7) 4421d3d127 Merge branch 'MDL-59502-master' of git://github.com/aanabit/moodle 2019-06-27 01:25:13 +02:00
Eloy Lafuente (stronk7) f88261eb49 Merge branch 'MDL-57632-master' of git://github.com/sarjona/moodle 2019-06-27 01:23:09 +02:00
Eloy Lafuente (stronk7) ee47095dbb MDL-53778 quiz: ensure completion deps are fulfilled by behat
Behat backgrounds and scenarios must observe the new
interdependencies between quiz completion settings.

This commits just applies that to the tests missing it.
2019-06-27 01:11:43 +02:00
Eloy Lafuente (stronk7) dcb8f5fefb MDL-53778 quiz: ensure completion deps are fulfilled by generator uses
There are some mod_quiz generator issues where the new chain
of dependencies between completion settings was not being observed.

This patch just ensures that the now 3 chained settings are
enabled together (or new quiz options logic will proceed to
disable them).
2019-06-27 01:11:43 +02:00
Eloy Lafuente (stronk7) 6f5990024c Merge branch 'MDL-66003-master-enfix' of git://github.com/mudrd8mz/moodle 2019-06-26 23:04:18 +02:00
Nicolas Dunand 713934f9b4 MDL-63458 core_user: Remove send message if messaging is disabled 2019-06-26 11:24:08 -07:00
Sara Arjona bdc12b0bd8 Merge branch 'MDL-65996' of git://github.com/stronk7/moodle 2019-06-26 19:16:07 +02:00
Sara Arjona d6c15a77a2 Merge branch 'MDL-60088' of git://github.com/Chocolate-lightning/moodle 2019-06-26 18:10:58 +02:00
Eloy Lafuente (stronk7) 3de633589c Merge branch 'MDL-59525' of git://github.com/Chocolate-lightning/moodle 2019-06-26 17:57:23 +02:00
Eloy Lafuente (stronk7) 504d1ee098 Merge branch 'MDL-57617' of git://github.com/Chocolate-lightning/moodle 2019-06-26 17:55:15 +02:00
Eloy Lafuente (stronk7) 51208845bf Merge branch 'MDL-53778' of https://github.com/anieminen/moodle 2019-06-26 17:49:53 +02:00
Bas Brands 33389741a3 MDL-65357 themes: position enrolment icons in course listing 2019-06-26 15:25:24 +02:00
Shamim Rezaie 706c5b3acd MDL-65506 forms: get the correct value for advcheckbox fields in js 2019-06-26 20:56:42 +10:00
Eloy Lafuente (stronk7) 61cd6fe9b0 Merge branch 'MDL-65249-master-fix' of https://github.com/snake/moodle 2019-06-26 10:28:08 +02:00
Jake Dallimore 93872a9a2f MDL-65249 session: use redis host constant in unit tests 2019-06-26 16:26:19 +08:00
Jake Dallimore 9b879d0bb7 Merge branch 'MDL-65249-redis-catch-exception-after-retry-master' of https://github.com/ilya-catalyst/moodle 2019-06-26 14:48:03 +08:00
Jake Dallimore ea64059672 Merge branch 'MDL-60978-master' of git://github.com/andrewnicols/moodle 2019-06-26 13:16:36 +08:00
AMOS bot 46f9914b31 Automatically generated installer lang files 2019-06-26 00:09:16 +00:00
Eloy Lafuente (stronk7) 56b66b1449 Merge branch 'MDL-65181' of https://github.com/paulholden/moodle 2019-06-26 00:37:56 +02:00
Eloy Lafuente (stronk7) b25890aa13 Merge branch 'MDL-65797-Master' of https://github.com/tuanngocnguyen/moodle 2019-06-26 00:31:39 +02:00
David Mudrák d201dba655 MDL-66003 lang: Use the updated strings in the tests 2019-06-25 18:05:03 +02:00
Helen Foster 08a114cf40 MDL-66003 lang: Import fixed English strings (en_fix)
Significant string changes:

* moodleorghubname,core_admin and
  sitemustberegistered,message_airnotifier - 'Moodle.net' changed to
  'Moodle'

* registration_help,core_admin and registermoochtips,core_hub - removed
  erroneous 'access to Moodle.net our course sharing platform'

* trackingtype_help,mod_forum and formnotavailable,core_grading and
  showgrades_help,core and rolewarning_help,core_rating -
  'Administration block' changed to 'Actions menu or admin block',
  'navigation block' changed to 'navigation drawer or block'
2019-06-25 18:00:51 +02:00
David Mudrák 703ad1a84e MDL-65892 forum: Fix styling of the inline reply textarea 2019-06-25 14:48:10 +02:00
Arto Nieminen 9147273640 MDL-53778 quiz settings: Ensure that disabled checkboxes have value 0 2019-06-25 13:23:12 +03:00
Ilya Tregubov 4120908e19 MDL-65249 Session: Throw exception if number of attempts exceeded. 2019-06-25 15:09:42 +10:00
Simey Lameze ce715ce556 MDL-65707 calendar: behat scenario to test default event type 2019-06-25 09:50:27 +08:00
Simey Lameze 419b868ae7 MDL-65707 calendar: set the correct event type on site calendar 2019-06-25 09:50:22 +08:00
Jake Dallimore 567289e29a Merge branch 'MD-64901-master-fix' of https://github.com/andrewnicols/moodle 2019-06-25 09:36:05 +08:00
Andrew Nicols a3f254053e MDL-64901 block_myoverview: Correct CSS selector in behat 2019-06-25 09:17:22 +08:00
AMOS bot 57ca66d594 Automatically generated installer lang files 2019-06-25 00:09:11 +00:00
Eloy Lafuente (stronk7) a1c3ebd3eb Merge branch 'MDL-64340-master' of git://github.com/rezaies/moodle 2019-06-25 00:53:52 +02:00
Eloy Lafuente (stronk7) c5390ec39c Merge branch 'MDL-65922-master' of https://github.com/dmitriim/moodle 2019-06-25 00:35:28 +02:00
Bas Brands df92689612 MDL-64935 theme: prevent activitynavigation link overflowing container 2019-06-24 14:45:25 +02:00
Bas Brands 987c70f544 MDL-65105 theme_classic: use $dark variable for navbar-dark 2019-06-24 11:42:58 +02:00
Shamim Rezaie 8a0f2e954e MDL-65728 tool_customlang: Escape html on the original translation field 2019-06-24 18:23:59 +10:00
Sagar Ghimire a57a585cd2 MDL-48610 tablelib: Always show alphabet filter in grader report 2019-06-24 14:51:01 +10:00
Jake Dallimore 4a4a3e0e27 Merge branch 'MDL-65893-master' of https://github.com/nicoroeser/moodle 2019-06-24 11:41:37 +08:00
Andrew Nicols 760938e39e Merge branch 'MDL-64998' of git://github.com/Chocolate-lightning/moodle 2019-06-24 08:16:14 +08:00
Mathew May cddcfccc36 MDL-64998 libraries: Remove references to lessphpc 2019-06-24 08:13:43 +08:00
AMOS bot 0b939813d6 Automatically generated installer lang files 2019-06-24 00:08:09 +00:00
Andrew Nicols 60f3e0f61d Merge branch 'MDL-64901-37_block_myoverview_layout_settings' of https://github.com/tomdickman/moodle 2019-06-24 06:44:11 +08:00
Eloy Lafuente (stronk7) 3a1522b1a4 MDL-65995 components: Too early to use debugging()
components are loaded very early in Moodle bootstrap/warmup
process. So, basically, core_component must be vanilla php
and moodlelib/weblib facilitites are not available yet.

So, changing debugging() call to error_log(), to make it
consistent with the rest of the calls in the method.
2019-06-22 12:06:25 +02:00
Eloy Lafuente (stronk7) df272345ba MDL-65996 exceptions: Make exception handler early-errors compliant
Some errors can happen really early in Moodle bootstrap/warmup
(basically when executing setup.php stuff, before general libraries
are loaded and available).

That's called "early errors" and there are good parts within
setuplib.php that must be able to run without any dependency
other than vanilla php code.

It seems that, along the years, some dependencies have been
added (calls to debugging(), to s()....) and they worked mostly
ok because early errors are rare.

This commit just makes all those dependencies conditional so,
if an early error is detected... the exception handler will
return real information about he error happening and not
handler own errors (like it's happening now).
2019-06-22 11:38:43 +02:00
Sara Arjona c2c5f08c09 MDL-57632 core_media: final deprecation core_media_manager::setup 2019-06-21 12:10:36 +02:00
Jun Pataleta e2b0e62f6e MDL-65965 behat: Map grouping for activity data generator 2019-06-21 15:38:28 +08:00
Jun Pataleta f512a662f5 MDL-65965 availability: Behat test for activity grouping restriction 2019-06-21 15:36:35 +08:00
Mathew May d3e61fdf72 MDL-60088 travis: add dist:trusty to travis
We are doing this because travis changed its default release to xenial.
So this is a stop gap and we will add xenial support moving forward.
2019-06-21 14:50:29 +08:00
Andrew Nicols e9aaf755d2 MDL-60978 travis: Re-enable Redis session tests 2019-06-21 14:36:13 +08:00
Andrew Nicols 96161a706b MDL-60978 session: Run redis tests in isolation 2019-06-21 14:36:13 +08:00
Andrew Nicols fc1785b086 MDL-60978 testing: Support ability to run phpunit in isolated process 2019-06-21 14:36:13 +08:00
Mathew May 655b994a4a MDL-64998 libraries: Remove PHP LESSc 2019-06-21 07:18:59 +08:00
Mathew May db9f122fbc MDL-59525 libraries: Throw errors on functions deprecated in 3.4 2019-06-21 07:12:48 +08:00
Mathew May 27607e6ac8 MDL-57617 Libraries: Throw errors on functions deprecated in 3.3 2019-06-21 07:08:21 +08:00
Dmitrii Metelkin f82931c169 MDL-65922 core: add grade_item_updated event 2019-06-21 08:54:37 +10:00
Shamim Rezaie 3840540790 MDL-64340 mod_quiz: not display "add random question" when no permission 2019-06-21 08:52:14 +10:00
Amaia Anabitarte c5b2f2b306 MDL-59502 Global Search: deprecate add_documents 4 arg implementation
In MDL-59039 we introduced changes to add_documents and should return an extra $partial boolean.
We still supported implementations returning 4 elements since then,
but  this issue is about removing this 4 returned elements compatibility.
2019-06-20 18:58:17 +02:00
Eloy Lafuente (stronk7) f1a8db6911 weekly release 3.8dev 2019-06-20 17:42:54 +02:00
Eloy Lafuente (stronk7) 96fdfb2b2e Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-06-20 17:42:50 +02:00
Juan Leyva bb0ce4793e MDL-65973 calendar: Avoid sesskey checks in WS
External function submit_create_update_form should avoid any sesskey checks.
2019-06-20 15:02:33 +02:00
Eloy Lafuente (stronk7) b84d2d6e04 Merge branch 'MDL-65759' of git://github.com/Chocolate-lightning/moodle 2019-06-20 11:41:00 +02:00
Jake Dallimore 98e54827d0 Merge branch 'MDL-65084' of https://github.com/NeillM/moodle 2019-06-20 09:37:42 +08:00
Jake Dallimore 7e72fd7b9f Merge branch 'MDL-65883-master' of git://github.com/lameze/moodle 2019-06-20 09:12:46 +08:00
Mathew May c04b8fbe40 MDL-65759 library: Add patch #115 for php-css-parser
Patch taken from Sabberworm/PHP-CSS-Parser#115 as specified in
moodle_readme.txt
2019-06-20 08:20:17 +08:00
Mathew May 376eb15617 MDL-65759 library: Update php-css-parser to 8.3.0 2019-06-20 08:16:13 +08:00
Andrew Nicols ab4324f42e Merge branch 'MDL-61319-master' of git://github.com/bmbrands/moodle 2019-06-20 08:09:24 +08:00
Eloy Lafuente (stronk7) 21406f66e0 Merge branch 'MDL-65646-master' of git://github.com/andrewnicols/moodle 2019-06-20 00:29:56 +02:00
Eloy Lafuente (stronk7) 0f7e873c30 Merge branch 'MDL-65770' of git://github.com/Chocolate-lightning/moodle 2019-06-20 00:26:06 +02:00
Eloy Lafuente (stronk7) 734c113027 Merge branch 'MDL-64975-master' of https://github.com/nicoroeser/moodle 2019-06-20 00:10:46 +02:00
Eloy Lafuente (stronk7) 90b01a0015 Merge branch 'MDL-57487-master' of git://github.com/sarjona/moodle 2019-06-19 23:05:50 +02:00
Eloy Lafuente (stronk7) 3831934241 Merge branch 'MDL-65151-master' of git://github.com/aanabit/moodle 2019-06-19 22:52:32 +02:00
Eloy Lafuente (stronk7) 094ac2d51a Merge branch 'MDL-65910-master' of git://github.com/junpataleta/moodle 2019-06-19 20:54:28 +02:00
Eloy Lafuente (stronk7) 1824ffab0d Merge branch 'MDL-65752' of git://github.com/Chocolate-lightning/moodle 2019-06-19 20:49:43 +02:00
Eloy Lafuente (stronk7) db339012f5 Merge branch 'MDL-65665-master-2' of git://github.com/mihailges/moodle 2019-06-19 20:29:09 +02:00
Eloy Lafuente (stronk7) 5759f72d8b Merge branch 'MDL-65666-master' of git://github.com/rezaies/moodle 2019-06-19 18:37:56 +02:00
Eloy Lafuente (stronk7) 220d29d46e Merge branch 'MDL-65806-master' of https://github.com/sammarshallou/moodle 2019-06-19 18:27:05 +02:00
Eloy Lafuente (stronk7) 59cfb582f6 Merge branch 'MDL-65864' of git://github.com/timhunt/moodle 2019-06-19 18:08:19 +02:00
Eloy Lafuente (stronk7) b3bbf6adf8 Merge branch 'MDL-55821-master' of git://github.com/damyon/moodle 2019-06-19 18:05:10 +02:00
Neill Magill 8b78e4cf49 MDL-65084 recent items: Handle deleted courses
The method should not cause errors when a course with activities
that the user has visited no longer exists.

Ensuring that we only get records for courses still in the database
will stop any course not found erros from get_fast_modinfo()
2019-06-19 09:07:34 +01:00
Neill Magill 29a0e5c4a4 MDL-65084 recent items: Test handling of deleted courses 2019-06-19 09:07:31 +01:00
Jake Dallimore 1d73e8c3be Merge branch 'MDL-65904-master' of git://github.com/merrill-oakland/moodle 2019-06-19 14:56:11 +08:00
Simey Lameze 58e601bf8b MDL-65883 mod_quiz: replace all hardcoded urls to proper params 2019-06-19 14:48:06 +08:00
Simey Lameze 6970450643 MDL-65883 mod_quiz: change attemptlib_test to use data generators 2019-06-19 14:48:01 +08:00
Tim Hunt b3c6c89b35 MDL-57884 quiz: autosave should not send the value of submit buttons 2019-06-18 17:46:47 +01:00
Bas Brands da26d7b6ea MDL-61319 themes: prevent using @extend rules for complex classes
* the settings and navigation blocks scss extended .fa which caused
issues with native fontawesome classes like fa-pull-left.
2019-06-18 13:37:07 +02:00
Tim Hunt dd6efc8b7b MDL-65915 quiz regrading: refactor some almost duplicate code 2019-06-18 11:37:15 +01:00
Tim Hunt 9a3af544ff MDL-65915 quiz regrading: better progress information
This makes it easier to diagnose problems if the regrade fails in the
middle.

Along the way, I added one un-declared field to the class, and
converted some SQL-construction code to $DB->get_in_or_equal().

I also added the ability to set attributes on the label in
html_writer::checkbox.
2019-06-18 11:37:12 +01:00
Simey Lameze d6884bb3d5 MDL-65768 auth_cas: update of moodle documentation
Update of readme_moodle.txt and thirdpartylibs.xml
with information about the update to 1.3.7
2019-06-18 13:54:27 +08:00
Simey Lameze 97133133cd MDL-65768 auth_cas: update phpCAS to 1.3.7 2019-06-18 13:49:48 +08:00
Peter 0e5f79e80c MDL-65740 lib: Adodb library update 2019-06-18 10:05:17 +08:00
Andrew Nicols 4e85b8b367 Merge branch 'MDL-65840' of https://github.com/mkassaei/moodle 2019-06-18 09:43:52 +08:00
Andrew Nicols dcab557adf Merge branch 'MDL-65469' of git://github.com/stronk7/moodle 2019-06-18 09:17:35 +08:00
AMOS bot 4234722cdb Automatically generated installer lang files 2019-06-18 00:08:29 +00:00
Eloy Lafuente (stronk7) ca582dc947 Merge branch 'MDL-65869-master' of git://github.com/aanabit/moodle 2019-06-18 00:14:03 +02:00
Eloy Lafuente (stronk7) 0307a98545 Merge branch 'MDL-64383-master' of git://github.com/damyon/moodle 2019-06-17 23:02:41 +02:00
Eloy Lafuente (stronk7) e7bf69e057 MDL-65469 mod_forum: Check for existence before operating 2019-06-17 17:14:55 +02:00
Davo Smith 74ddcaaa6f MDL-64811 mod_assign: warn about 'Default group' submissions 2019-06-17 16:01:47 +01:00
Andrew Nicols 0f2b29242e Merge branch 'MDL-65469-master' of git://github.com/peterRd/moodle 2019-06-17 14:18:40 +08:00
Peter 9c3e3a904b MDL-65469 mod_forum: Use the formchange checker initializer 2019-06-17 12:29:48 +08:00
Peter dfd0021749 MDL-65469 core: Expose formchecker to initialize current form state 2019-06-17 11:55:56 +08:00
Andrew Nicols e29530fe3c Merge branch 'MDL-65888-master' of git://github.com/mudrd8mz/moodle 2019-06-17 10:48:34 +08:00
Adrian Greeve 54968b15ec MDL-65762 lib: Update of Spout wrapper and docs. 2019-06-17 09:57:35 +08:00
Adrian Greeve 8f94f447f9 MDL-65762 lib: Upgrade the spout library to 3.0.1 2019-06-17 08:42:31 +08:00
AMOS bot d7557b791b Automatically generated installer lang files 2019-06-15 00:08:06 +00:00
Sara Arjona c128ccc142 MDL-57487 course: final deprecation external::get_activities_overview 2019-06-14 17:41:18 +02:00
Sara Arjona f65075f10f MDL-57487 mod_scorm: deprecate strings used in xxx_print_overview 2019-06-14 17:41:18 +02:00
Sara Arjona 9e2101a206 MDL-57487 mod_scorm: final deprecation xxx_print_overview 2019-06-14 17:41:18 +02:00
Sara Arjona c023ce5873 MDL-57487 mod_quiz: deprecate strings used in xxx_print_overview 2019-06-14 17:41:18 +02:00
Sara Arjona a1bf1b04a5 MDL-57487 mod_quiz: final deprecation xxx_print_overview 2019-06-14 17:41:18 +02:00
Sara Arjona 06c645a712 MDL-57487 mod_lesson: deprecate strings used in xxx_print_overview 2019-06-14 17:41:18 +02:00
Sara Arjona 18c1fdbb77 MDL-57487 mod_lesson: final deprecation xxx_print_overview 2019-06-14 17:41:18 +02:00
Sara Arjona d4def03e98 MDL-57487 mod_forum: deprecate strings used in xxx_print_overview 2019-06-14 17:41:18 +02:00
Sara Arjona b18015c687 MDL-57487 mod_forum: final deprecation xxx_print_overview
Apart from deprecating forum_print_overview, the following method
has been also deprecated because it's not used anymore:
- forum_filter_user_groups_discussions
2019-06-14 17:42:59 +02:00
Sara Arjona 99a80e133a MDL-57487 mod_choice: deprecate strings used in xxx_print_overview 2019-06-14 17:41:18 +02:00
Sara Arjona ec22b5ed91 MDL-57487 mod_choice: final deprecation xxx_print_overview 2019-06-14 17:41:18 +02:00
Sara Arjona c50f6c6bfd MDL-57487 mod_choice: final string deprecation for skipresultgraph
The final skipresultgraph should be done in 3.4 because it was
deprecated in 3.0 in MDL-49811.
2019-06-14 17:41:18 +02:00
Sara Arjona cd1d59a974 MDL-57487 mod_chat: final deprecation xxx_print_overview 2019-06-14 17:41:18 +02:00
Sara Arjona 2af4a2c193 MDL-57487 mod_assign: deprecate strings used in xxx_print_overview 2019-06-14 17:41:18 +02:00
Sara Arjona 375e2ecea0 MDL-57487 mod_assign: final deprecation xxx_print_overview
Apart from deprecating assign_print_overview , the following methods
have been also deprecated because they are not used anymore:
- assign_get_mysubmission_details_for_print_overview
- assign_get_grade_details_for_print_overview
2019-06-14 17:41:18 +02:00
Nicolas Roeser 76a3cf95b7 MDL-64975 moodlelib: fix float formatting if decsep is ~ (tilde)
Commit 637da99edb has introduced changes
for removing trailing zeroes from the output of function format_float.
Due to a small omission, the function causes a PHP warning when the
string decsep is set to a tilde character ('~'). This is rarely the
case.

The bug lies in using PHP function preg_replace with a string that
contains external input (in this case, including decsep), but without
escaping it for PCRE processing.

This commit fixes the function to also support a tilde character in
string decsep. It also adds tests for having tilde as decimal separator.

Thanks-To:  Jake Dallimore <jake@moodle.com>
2019-06-14 13:05:39 +02:00
Paul Holden d0329e8413 MDL-65181 mod_data: show required field indicator for textarea fields. 2019-06-14 09:49:09 +01:00
Nicolas Roeser 591ece3093 MDL-65893 webservice: format site name (handle language tags etc.)
Allow web service clients (like the Moodle App) to benefit from a
formatted (filtered) site name. Select the filtered (localized etc.)
string on server side, before it is sent to the web service client.

For example, this translates a site name which uses language tags in
curly braces when using the filter_multilang2 plugin.

Thanks-To: Juan Leyva <juan@moodle.com>
Thanks-To: Kathrin Osswald <kathrin.osswald@uni-ulm.de>
2019-06-14 10:39:25 +02:00
M Kassaei 72d387254a MDL-65840 qtype_ddmarker: coordinates of cirle shape
The coordinates of a circle shape are not allowed to be smaller than its radius.
By default, set the coordinates to be the same as the radius.
2019-06-14 09:19:06 +01:00
Amaia Anabitarte 77e4d6f13b MDL-65151 core_course: Final deprecation of section_edit_controls() 2019-06-14 10:18:22 +02:00
Amaia Anabitarte b6bac30fdf MDL-65869 behat: Moving @app behat tests from core to moodlemobileapp
As described in MDL-65869 we are moving @app behat tests to
https://github.com/moodlehq/moodle-local_moodlemobileapp to be easier to maintain
and be sure are working with different mobile versions.
So we are not deprecating tests from core, just removing them because will be
in a different location.
2019-06-14 10:16:44 +02:00
Jun Pataleta fc97181924 MDL-65910 report_stats: Add stattype query condition for consistency 2019-06-14 13:00:31 +08:00
Peter 3359571e84 MDL-60405 lib_horde: Upgrade Horde library 2019-06-14 08:50:43 +08:00
Mihail Geshoski d411a1c10e MDL-65665 forum: WS does not respect subscribe on reply user preference 2019-06-14 08:44:28 +08:00
Mihail Geshoski e321b28236 MDL-65665 forum: Add unit test 2019-06-14 08:44:28 +08:00
Nathan Nguyen 86bc0ae4b9 MDL-65797 mod_assign: limit users to list of participants
Limit assign override union to list of participants in a course instead of users of the whole site.
2019-06-14 09:38:28 +10:00
Simey Lameze 589c4f9474 MDL-65883 mod_quiz: fix quiz navigation buttons href 2019-06-14 07:27:02 +08:00
Tim Hunt e900b2f34f MDL-65864 question engine: fix re-saving a new usage
Before this fix, test_repeated_usage_saving_new_usage was failing but
test_repeated_usage_saving_existing_usage was passing. Now the
behaviour is consistent and they both pass.
2019-06-13 18:04:02 +01:00
Eloy Lafuente (stronk7) 5dae8c0515 weekly release 3.8dev 2019-06-13 18:15:31 +02:00
Eloy Lafuente (stronk7) 4b1e452358 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-06-13 18:15:28 +02:00
Adrian Greeve f7203861d5 MDL-58439 admin: Fix missing page context. 2019-06-13 18:05:13 +02:00
Andrew Nicols ae321ea8fc Merge branch 'MDL-65814-master' of git://github.com/junpataleta/moodle 2019-06-13 18:05:09 +02:00
Adrian Greeve fba8e2cef3 Merge branch 'MDL-58439-admin-no-guest' of https://github.com/brendanheywood/moodle 2019-06-13 18:05:06 +02:00
Jun Pataleta 0d83964337 Merge branch 'MDL-55997-master' of git://github.com/peterRd/moodle 2019-06-13 18:05:03 +02:00
Adrian Greeve fa5bed66de Merge branch 'MDL-65369_master' of https://github.com/marxjohnson/moodle 2019-06-13 18:04:59 +02:00
Jun Pataleta 05931412a4 Merge branch 'MDL-65622-master' of https://github.com/dmitriim/moodle 2019-06-13 18:04:56 +02:00
Adrian Greeve 1caab625e7 Merge branch 'MDL-65492' of https://github.com/timhunt/moodle 2019-06-13 18:04:53 +02:00
Adrian Greeve d053310d6a Merge branch 'MDL-65671-master' of git://github.com/lameze/moodle 2019-06-13 18:04:49 +02:00
Shamim Rezaie a7174ddfec MDL-65666 mod_forum: Highlight unread posts count in the discussion list 2019-06-14 01:26:04 +10:00
Shamim Rezaie be1400c63c MDL-65786 mod_forum: mark posts as read when they are read 2019-06-13 23:33:35 +10:00
Mathew May 4828648258 MDL-65770 tool_policy: Add Moodle changes for guest policy popup 2019-06-13 13:25:35 +08:00
Andrew Nicols 29c442c558 MDL-65646 core: Move component storage to json 2019-06-13 12:26:00 +08:00
Mathew May fcdc822350 MDL-65770 tool_policy: Update guest policy popup 2019-06-13 11:52:55 +08:00
Jun Pataleta e46dd6d9e6 MDL-65814 block_timeline: Bring back item counts for action events 2019-06-13 11:31:35 +08:00
Peter 60eaa9bcb0 MDL-55997 core_reports: modify user stats query to fix duplicate rows 2019-06-13 07:39:03 +08:00
Eloy Lafuente (stronk7) f568841675 Merge branch 'MDL-64484' of https://github.com/paulholden/moodle 2019-06-12 19:43:52 +02:00
Shamim Rezaie e452c97f27 MDL-65786 mod_forum: re-adding the unread count to the social format 2019-06-13 03:13:19 +10:00
Eric Merrill 0f7f05379c MDL-65904 theme: Compile fallback css in the correct order 2019-06-12 13:05:40 -04:00
Paul Holden 52cf92277d MDL-64484 user: cross-DB compatible profile field ordering. 2019-06-12 16:55:44 +01:00
Paul Holden 60c55093ad 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).
2019-06-12 16:13:29 +01:00
Tim Hunt 376b7fb857 MDL-65492 cache admin: make it easier to purge a cache repeatedly
This can be a big time-saver, e.g. during development.
2019-06-12 13:23:06 +01:00
Tim Hunt 1baf3af3e8 MDL-65492 cache admin: make the code easier to understand 2019-06-12 13:23:03 +01:00
Shamim Rezaie 24bc206b75 MDL-65786 mod_forum: pass parameter to str helper when loading strings
We should not concatenate strings. We should make use of the {$a}placeholder instead.
2019-06-12 19:49:52 +10:00
Mark Johnson 288d6ebb54 MDL-65369 events: Include changed course settings in course_updated 2019-06-12 09:54:30 +01:00
Simey Lameze e5ab472810 MDL-65671 calendar: add event listener to three month block 2019-06-12 15:54:25 +08:00
Simey Lameze fed1cc738d MDL-65671 calendar: tidy up calendar header 2019-06-12 15:54:24 +08:00
Simey Lameze 859bc931d8 MDL-65671 calendar: remove course selector label from exporters 2019-06-12 15:54:24 +08:00
Simey Lameze 4cc9d7c83a MDL-65671 calendar: add listener to day link in month view 2019-06-12 15:54:12 +08:00
Jun Pataleta 5b8b2ca465 Merge branch 'MDL-65803-master' of git://github.com/peterRd/moodle 2019-06-12 13:58:51 +08:00
Mathew May d712127f34 MDL-65758 library: Add Moodle modifications for Mustache 2019-06-12 13:34:27 +08:00
Andrew Nicols 92198c5b9e Merge branch 'MDL-65703-master' of git://github.com/lameze/moodle 2019-06-12 12:33:34 +08:00
Peter 39498b6833 MDL-65803 recentlyaccesseditems: Restrict response to valid courses.
* Additional hooks to cleanup data when a course or module is deleted
* Augmented unit tests to cover the situation when a course is deleted
* Upgrade step to cleanup existing data
2019-06-12 12:10:50 +08:00
Mathew May a5410e13bf MDL-65758 library: Update mustache.js to 3.0.1 2019-06-12 10:58:58 +08:00
Andrew Nicols e36bbb4c24 Merge branch 'MDL-65829_master' of git://github.com/dmonllao/moodle 2019-06-12 10:20:15 +08:00
Andrew Nicols 1967e07175 Merge branch 'MDL-65754' of git://github.com/Chocolate-lightning/moodle 2019-06-12 09:45:36 +08:00
Mathew May e2ffa09fdc MDL-65754 mod_feedback: Remove unused v1 recaptcha 2019-06-12 09:38:39 +08:00
Mathew May 6cefd826e5 MDL-65754 auth_email: Remove unused v1 recaptcha 2019-06-12 09:35:54 +08:00
Mathew May 8048c981b9 MDL-65752 lib: Update html2text to 4.2.1 2019-06-12 08:58:26 +08:00
Andrew Nicols e10b3106f4 Merge branch 'MDL-64484' of https://github.com/paulholden/moodle 2019-06-12 08:56:28 +08:00
Andrew Nicols 871679c9e0 Merge branch 'MDL-65509-master' of git://github.com/rezaies/moodle 2019-06-12 08:47:55 +08:00
Mathew May 90ca6fad47 MDL-65744 lib: Modify minify test to check properly 2019-06-12 07:33:22 +08:00
sam marshall c207289127 MDL-65806 Search: Solr does not find words in italic 2019-06-11 16:40:15 +01:00
David Mudrák 1ecf0397bb MDL-65888 forum: Do not send notifications to unconfirmed users
Under certain conditions, users marked as not confirmed yet may be
returned as forum notification recipients. Such users are considered as
inactive though and the delivery adhoc task cannot be run as these
users, throwing an exception.

The solution is to make sure that fetch_subscribed_users() does not
include unconfirmed users, similarly to what was done for suspended
users and nologin users.

The added unit test also checks for deleted users. But these should
never be returned as subscribed because we consider enrolled users only
and deleted users are filtered out implicitly.
2019-06-11 09:53:23 +02:00
Adrian Greeve 205f0cedaf Merge branch 'MDL-63878-master' of git://github.com/damyon/moodle 2019-06-11 13:30:04 +08:00
Mathew May 8ae5a16743 MDL-65744 lib: Update minify pathconverter lib 2019-06-11 13:08:29 +08:00
Mathew May a62074ba7d MDL-65744 lib: Update minify minify lib 2019-06-11 13:06:19 +08:00
Andrew Nicols 6b4a254d74 Merge branch 'MDL-65779-master' of git://github.com/peterRd/moodle 2019-06-11 12:07:40 +08:00
Jun Pataleta 79edcde3f6 Merge branch 'MDL-7339-master' of git://github.com/mickhawkins/moodle 2019-06-11 11:49:36 +08:00
Brendan Heywood 1fc0c4bd4e MDL-58439 admin: Ignore guest logins for all admin pages 2019-06-11 13:44:58 +10:00
Andrew Nicols ba0426176b Merge branch 'MDL-65817' of git://github.com/stronk7/moodle 2019-06-11 11:05:03 +08:00
Mathew May a98a2b2444 MDL-65753 lib: Update Markdown to 1.8.0 2019-06-11 10:56:10 +08:00
Andrew Nicols c005b2f7a4 Merge branch 'MDL-65183-MOODLE-master' of https://github.com/kristian-94/moodle 2019-06-11 10:34:13 +08:00
Andrew Nicols 61b0df5716 Merge branch 'MDL-65754' of git://github.com/Chocolate-lightning/moodle 2019-06-11 10:15:43 +08:00
Adrian Greeve 7223ef7979 Merge branch 'MDL-64743-master' of git://github.com/abias/moodle 2019-06-11 10:05:39 +08:00
Michael Hawkins 76d0192e0b MDL-7339 admin: Replaced "open to google" references to be more generic
AMOS BEGIN
 MOV [configopentogoogle,admin],[configopentowebcrawlers,admin]
 MOV [opentogoogle,admin],[opentowebcrawlers,admin]
 MOV [check_google_details,report_security],[check_crawlers_details,report_security]
 MOV [check_google_error,report_security],[check_crawlers_error,report_security]
 MOV [check_google_info,report_security],[check_crawlers_info,report_security]
 MOV [check_google_name,report_security],[check_crawlers_name,report_security]
 MOV [check_google_ok,report_security],[check_crawlers_ok,report_security]
AMOS END
2019-06-11 10:04:01 +08:00
Andrew Nicols 94bce858b4 Merge branch 'MDL-65746' of git://github.com/Chocolate-lightning/moodle 2019-06-11 09:49:18 +08:00
Adrian Greeve 192ad8dcc8 Merge branch 'MDL-65208-cli-upgrade-is-pending' of https://github.com/brendanheywood/moodle 2019-06-11 09:42:08 +08:00
Jun Pataleta 68c723efdf Merge branch 'MDL-65336-master' of git://github.com/aanabit/moodle 2019-06-10 19:37:25 +08:00
Jun Pataleta 34129ea9bd Merge branch 'MDL-55592-master' of git://github.com/damyon/moodle 2019-06-10 15:25:12 +08:00
Andrew Nicols 10dba71fe3 Merge branch 'MDL-58268-master' of git://github.com/cescobedo/moodle 2019-06-10 15:03:05 +08:00
Andrew Nicols cd653ba77c Merge branch 'm38_MDL-61038_Fix_uuid_extensions_usage_v2' of https://github.com/scara/moodle 2019-06-10 14:05:36 +08:00
Adrian Greeve 5b9027a83a Merge branch 'MDL-65438-master' of git://github.com/bmbrands/moodle 2019-06-10 13:56:51 +08:00
Adrian Greeve 317950fa65 Merge branch 'MDL-65639_master' of git://github.com/dmonllao/moodle 2019-06-10 13:10:02 +08:00
Simey Lameze dbccdae8f5 MDL-65671 calendar: add the calendar view selector 2019-06-10 13:09:57 +08:00
Adrian Greeve 27e2aba473 Merge branch 'MDL-65782-master' of git://github.com/marinaglancy/moodle 2019-06-10 11:11:44 +08:00
Mathew May b71e734b27 MDL-65746 libraries: Remove pear/RADIUS lib 2019-06-10 08:28:43 +08:00
Matteo Scaramuccia c7321899c9 MDL-61038 setuplib: Fixed PECL UUID extension support
generate_uuid() has been refactored into \core\uuid::generate()
2019-06-09 23:24:26 +02:00
Paul Holden 03098df6ef MDL-64484 user: show full profile field name in filter element. 2019-06-07 14:04:32 +01:00
Amaia Anabitarte f0e8f0a5b8 MDL-65336 core_message: New muted conversation generator and selectors 2019-06-07 10:38:49 +02:00
Amaia Anabitarte 8c933bde87 MDL-65336 core_message: Behat tests for mute/unmute conversations 2019-06-07 10:38:49 +02:00
Damyon Wiese 574b2f1f11 MDL-63878 assign: Show download feedback links
In the grading interface provide a link to download the generated pdf
containing the feedback for this submission attempt.
2019-06-07 10:39:41 +08:00
AMOS bot 8cffb3fe56 Automatically generated installer lang files 2019-06-07 00:09:38 +00:00
Kristian Ringer 6c97045e5e MDL-65183 block_timeline: escape newline characters 2019-06-07 09:37:34 +10:00
Dmitrii Metelkin 657cc33be9 MDL-65622 core: add grade_item_created event 2019-06-07 07:38:41 +10:00
Eloy Lafuente (stronk7) 9954f5391d MDL-65817 behat: switch to forked repo towards php73 compatibility
It seems that https://github.com/instaclick/php-webdriver/pull/91
is being ignored (in fact the repository itself doesn't show much
activity). So we have decided to fork it and apply any fix able
to keep our (non-marionette) runs working.

Hopefully, soon, the new W3C drivers will be supported by our
behat->mink stack... and we'll be able to move to it (from current
JSonwire drivers). So all this will be hostory.
2019-06-06 19:51:01 +02:00
David Monllaó 692d691da5 MDL-65639 analytics: Rewording time-splitting methods 2019-06-06 19:07:55 +02:00
David Monllaó 5045c4d491 MDL-65639 tool_analytics: Reworded language strings
Some language strings have been reworded to clarify functionalities.

AMOS BEGIN
  MOV [getpredictionsresults,tool_analytics],[scheduledanalysisresults,tool_analytics]
  CPY [getpredictionsresultscli,tool_analytics],[scheduledanalysisresultscli,tool_analytics]
AMOS END
2019-06-06 19:07:55 +02:00
David Monllaó 21cf3ec8d4 MDL-65639 analytics: From time-splitting method to analysis interval
This change only affects the Moodle UI.
2019-06-06 19:07:55 +02:00
David Monllaó c182a67fa0 MDL-65829 analytics: Accept enrol start time after analysis time 2019-06-06 19:05:48 +02:00
Eloy Lafuente (stronk7) f3507273e9 weekly release 3.8dev 2019-06-06 16:46:31 +02:00
Eloy Lafuente (stronk7) 971b4c11ce NOBUG: Fixed SVG browser compatibility 2019-06-06 16:46:29 +02:00
Eloy Lafuente (stronk7) bb14c03ffe Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-06-06 16:46:28 +02:00
Eloy Lafuente (stronk7) 11cdea3fad MDL-65201 backup: amend tests to apply for the final agreed criteria
backup nextstarttime ASC
course timemodified DESC
2019-06-06 11:16:01 +02:00
Eloy Lafuente (stronk7) bcd4862e84 MDL-65201 backup: fix wrong sorting that was missed on integration 2019-06-06 10:08:02 +02:00
Damyon Wiese 018266f6f3 MDL-55821 assign: Show assign grade
When marking workflow is enabled and the grade is not released yet,
it would be helpful to show the assignment grade in the grading form.
2019-06-06 14:26:28 +08:00
Damyon Wiese f5348ae301 MDL-64383 user: Make username required
Username is a required field, we should indicate this even if it has a help icon.
2019-06-06 13:26:51 +08:00
Jun Pataleta 4e1ee0bbb5 Merge branch 'MDL-34498-master' of git://github.com/damyon/moodle 2019-06-06 10:50:56 +08:00
Damyon Wiese 00fd749041 MDL-34498 session: Do not extend expired session
After showing a warning, if the "extend session" button is clicked too late,
tell them their session is expired so they can collect any unsaved data in the page.
2019-06-06 09:35:35 +08:00
Damyon Wiese ceacef1bd8 MDL-34498 grade: rubric session timeout
Allow a longer session timeout when editing a grading rubric form.
2019-06-06 09:31:07 +08:00
Damyon Wiese 7aeeb44463 MDL-34498 session: Add a checker to warn before session expiry
Replaces old yui module checknet.
2019-06-06 09:31:01 +08:00
Eloy Lafuente (stronk7) ba2473e4e4 weekly release 3.8dev 2019-06-06 09:06:22 +08:00
AMOS bot 6438d80ce9 Automatically generated installer lang files 2019-06-06 09:06:21 +08:00
AMOS bot b91f66b3c6 Automatically generated installer lang files 2019-06-06 09:06:21 +08:00
AMOS bot 5e7d561393 Automatically generated installer lang files 2019-06-06 09:06:21 +08:00
AMOS bot d89de5e15e Automatically generated installer lang files 2019-06-06 00:08:10 +00:00
Eloy Lafuente (stronk7) e867ffd689 Merge branch 'MDL-65344_master' of git://github.com/markn86/moodle 2019-06-05 21:06:15 +02:00
Eloy Lafuente (stronk7) 7e573716bf Merge branch 'MDL-65421-master' of https://github.com/lucaboesch/moodle 2019-06-05 20:19:11 +02:00
Eloy Lafuente (stronk7) 433968283a Merge branch 'master_MDL-65201_Automated_backup_course_ordering' of https://github.com/mattporritt/moodle 2019-06-05 16:16:39 +02:00
Jun Pataleta 7068d7be88 Merge branch 'MDL-65787-master' of git://github.com/sarjona/moodle 2019-06-05 17:24:27 +08:00
Sara Arjona 4221e36b16 MDL-65787 badges: fix warning count() with PHP 7.2 2019-06-05 11:02:53 +02:00
Shamim Rezaie a875f3f513 MDL-65509 output: use translated strings when showing a fatal error 2019-06-05 18:44:46 +10:00
Luca Bösch d60d3b9ec6 MDL-65421 core_grades: Move here icon width. 2019-06-05 10:39:33 +02:00
Jun Pataleta 9e5dc79f38 Merge branch 'MDL-63643-master' of git://github.com/lameze/moodle 2019-06-05 15:43:35 +08:00
Shamim Rezaie dc468ac523 MDL-65509 javascript: Make core dialogues translatable 2019-06-05 17:36:02 +10:00
Sara Arjona 020e7b9447 Merge branch 'MDL-65777-master' of git://github.com/mihailges/moodle 2019-06-05 09:00:40 +02:00
Mihail Geshoski 415133885c MDL-65777 assignment: Respect user full name in downloaded submissions 2019-06-05 11:12:57 +08:00
Adrian Greeve 6bda2498d6 Merge branch 'MDL-65731' of https://github.com/timhunt/moodle 2019-06-05 10:39:29 +08:00
AMOS bot 22ce5f9e1c Automatically generated installer lang files 2019-06-05 00:08:11 +00:00
Matt Porritt c2716719a6 MDL-65201 Backup: Automated backup course ordering
This patch adds sort ordering to the way courses are
automatically backed up. It sets the following preference:

Backup courses that do not have an entry in backup_courses first,
as they are likely new and never been backed up.
Backup courses that have the oldest next start time in backup_courses.
Give preference to most recently modified courses over other courses.
2019-06-04 23:09:57 +00:00
Eloy Lafuente (stronk7) 28e6fa3885 Merge branch 'MDL-65510_master' of https://github.com/t-schroeder/moodle 2019-06-05 00:06:34 +02:00
Eloy Lafuente (stronk7) ceee04cfb7 Merge branch 'MDL-65689-master' of git://github.com/rezaies/moodle 2019-06-04 23:31:51 +02:00
Eloy Lafuente (stronk7) 19e9ba22b6 Merge branch 'MDL-65578-master' of git://github.com/peterRd/moodle 2019-06-04 23:29:12 +02:00
Eloy Lafuente (stronk7) 1be6251b14 Merge branch 'MDL-65576-master' of git://github.com/andrewnicols/moodle 2019-06-04 21:39:01 +02:00
Eloy Lafuente (stronk7) bf5ed19cb4 Merge branch 'm38_MDL-65686_Fix_Incorrect_Function_Call' of https://github.com/scara/moodle 2019-06-04 20:04:41 +02:00
Simey Lameze 6b2fca2f3d MDL-65703 calendar: do not add course param for site calendar 2019-06-04 19:33:45 +08:00
Andreas Grabs 5d384053b0 MDL-65703 core_calendar: fix user event type filtering logic 2019-06-04 19:33:22 +08:00
Marina Glancy 5ecbc5d9f7 MDL-65782 roles: allow several roles with user/frontpage archetype 2019-06-04 11:49:23 +02:00
Mathew May dd287e7df0 MDL-65658 mod_forum: Update the group image titles 2019-06-04 11:48:17 +02:00
Jun Pataleta 34b6079e6b Merge branch 'MDL-65696-MOODLE-master' of https://github.com/kristian-94/moodle 2019-06-04 16:55:06 +08:00
Jun Pataleta 6058e44ff8 Merge branch 'MDL-65810' of git://github.com/stronk7/moodle 2019-06-04 15:25:18 +08:00
Jun Pataleta a271b8ce20 Merge branch 'MDL-62835-master-1' of git://github.com/mihailges/moodle 2019-06-04 14:18:21 +08:00
Mihail Geshoski 03e9b0766f MDL-62835 resource: Display description for book, lesson and imscp 2019-06-04 13:26:28 +08:00
Mathew May 061524de15 MDL-65754 libraries: Remove unused v1 recaptcha 2019-06-04 12:58:19 +08:00
Peter bbc722366a MDL-65779 mod_forum: Add privatereplies to the backup process 2019-06-04 12:20:24 +08:00
Andrew Nicols a2f81b201e MDL-65656 analytics: Stop covering memory-intensive tests 2019-06-04 10:16:50 +08:00
AMOS bot a245490ef5 Automatically generated installer lang files 2019-06-04 00:08:07 +00:00
Tom Dickman 5f59a4c063 MDL-64901 block_myoverview: admin settings to control available layouts
Added an admin setting which allows the administrator to set the available layouts for users and which
defaults to all layouts being available, or the card layout only if no layouts are enabled.
If only one layout is enabled, the dropdown `nav-display-selector` template will not be displayed as
it can no longer be utilised.
If the user preference is set to a layout that is no longer available, this is ignored and the first
available layout defaulted to.
2019-06-04 08:34:52 +10:00
Eloy Lafuente (stronk7) 6f62aa2d2b Merge branch 'MDL-63240-master' of https://github.com/Kathrin84/moodle 2019-06-03 17:56:51 +02:00
Eloy Lafuente (stronk7) cbf768ba89 Merge branch 'MDL-65660-master' of git://github.com/peterRd/moodle 2019-06-03 17:48:04 +02:00
Eloy Lafuente (stronk7) 944df31cc0 Merge branch 'MDL-65675-master' of git://github.com/andrewnicols/moodle 2019-06-03 17:37:13 +02:00
Sara Arjona 87d4624b1f Merge branch 'MDL-65658-master' of git://github.com/Chocolate-lightning/moodle 2019-06-03 12:33:16 +02:00
Brendan Heywood 8918cc75c1 MDL-65208 admin: Add upgrade cli --is-pending option 2019-06-03 14:33:07 +10:00
AMOS bot 44f8551903 Automatically generated installer lang files 2019-06-03 00:08:10 +00:00
Kristian Ringer 2620bc973b MDL-65696 assign: Fix width of editpdf comments 2019-06-03 09:30:58 +10:00
cescobedo e094614d7c MDL-58268 enrol_ldap: Remove enrol/ldap/cli/sync deprecated in 3.3 2019-05-31 09:40:47 +02:00
Andrew Nicols 4b6e032890 MDL-65578 forum: Hide action menu where no actions exist 2019-05-31 12:43:22 +08:00
Mathew May c939a043bf MDL-65658 mod_forum: Group images links and titles groups
After a change in Moodle 3.6 some links & titles went missing.
Here I am adding them back & incresing the output image to 100x100px
2019-05-31 08:14:20 +08:00
Andrew Nicols 17f0579797 MDL-65576 behat: Reset Selenium driver between scorm scenarios 2019-05-31 08:08:26 +08:00
Peter 92ba55ee4f MDL-65660 mod_forum: Allow guest users to view post buttons and links
For a self enrolment enabled course allow guest users to see the add
discussion and reply buttons
2019-05-31 07:06:32 +08:00
Eloy Lafuente (stronk7) 46855d025e MDL-64794 tcpdf: Bump to tcpdf 6.2.26 2019-05-30 23:47:54 +02:00
Matteo Scaramuccia 69a1afd9b9 MDL-65686 setuplib: Fix missing round brackets 2019-05-30 22:41:37 +02:00
Eloy Lafuente (stronk7) d8ddd509e8 MDL-65810 behat: Update master to use 3.38.0 behat extension tag 2019-05-30 20:48:26 +02:00
Eloy Lafuente (stronk7) 29c395187f weekly release 3.8dev 2019-05-30 12:18:18 +02:00
Eloy Lafuente (stronk7) 472d152fcf Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-05-30 12:18:15 +02:00
Tim Hunt 12eb2c2bf4 MDL-65731 quiz manual grading: fix ambiguous order by idnumber 2019-05-29 16:51:41 +01:00
Kathrin Osswald ca0e331cde MDL-63240 theme Boost: Removed z-indexes for border styling in navdrawer 2019-05-29 17:46:48 +02:00
Marina Glancy ff51af495f MDL-65726 core_roles: allow to create roles in install.php 2019-05-29 10:48:51 +02:00
Damyon Wiese e14f112bd0 MDL-55592 lti: Forget the key and secret
When the "Enter your consumer key and shared secret" form is displayed,
it should not contain the same values it had the last time it was opened.
2019-05-29 13:59:22 +08:00
Adrian Greeve c0542b8a08 Merge branch 'MDL-57729-master' of git://github.com/mihailges/moodle 2019-05-29 11:39:38 +08:00
Adrian Greeve 2ff6a2a58b Merge branch 'MDL-65726-master' of git://github.com/marinaglancy/moodle 2019-05-29 11:06:30 +08:00
Mihail Geshoski 1fc5c588a4 MDL-57729 enrol_lti: Escape the property values of the xpath elements 2019-05-29 09:55:23 +08:00
Jake Dallimore ab8c94ea0d Merge branch 'MDL-65326-master' of https://github.com/dmitriim/moodle 2019-05-29 09:27:17 +08:00
AMOS bot b2602dcd39 Automatically generated installer lang files 2019-05-29 00:09:11 +00:00
Marina Glancy f2c00a6f22 MDL-65726 role: do not fail unittest if plugins create their roles 2019-05-28 19:06:35 +02:00
Tim Schroeder c07e039c84 MDL-65510 messages: fixed defines not being used in code 2019-05-28 13:46:23 +02:00
Adrian Greeve c970eef862 Merge branch 'MDL-65705-master' of git://github.com/sarjona/moodle 2019-05-28 16:27:29 +08:00
Sara Arjona 39f4caf351 MDL-65705 badges: fix issued date for external badges
The preg_match('~^[1-9][0-9]*$~', x) calls have been replaced to
is_numeric(x).
2019-05-28 09:23:35 +02:00
Jake Dallimore 4f8e82111e Merge branch 'MDL-65657-int-fix-1' of https://github.com/ryanwyllie/moodle 2019-05-28 14:05:32 +08:00
Ryan Wyllie 95a445b360 MDL-65657 message: reduce message poll timer for behat tests 2019-05-28 13:33:31 +08:00
Jun Pataleta 83cdcd99f2 Merge branch 'MDL-65697-master' of git://github.com/lameze/moodle 2019-05-28 13:31:41 +08:00
Jake Dallimore 4c6b2bea57 Merge branch 'MDL-65692-master' of git://github.com/abgreeve/moodle 2019-05-28 13:26:44 +08:00
Simey Lameze b24ac2c47f MDL-63643 core_users: add behat for users last IP filtering 2019-05-28 11:12:36 +08:00
Simey Lameze 1fefa3ce7a MDL-63643 core_test: make possible to change users last ip field 2019-05-28 11:11:29 +08:00
Dmitrii Metelkin 2c7636490a MDL-65326 backup: check caps exist before assigning 2019-05-28 11:09:51 +10:00
Simey Lameze 9c576559ea MDL-63643 core_user: allow filter by last ip address 2019-05-28 06:53:30 +08:00
Jun Pataleta 70eaad836e Merge branch 'MDL-65606' of https://github.com/Chocolate-lightning/moodle 2019-05-27 16:27:58 +08:00
Jake Dallimore 30e194757f Merge branch 'MDL-64330-master' of git://github.com/andrewnicols/moodle 2019-05-27 15:20:31 +08:00
Andrew Nicols 281474a5fe MDL-64330 course: Correct course test assumptions 2019-05-27 15:07:47 +08:00
Adrian Greeve c583718448 Merge branch 'MDL-65699-master' of http://github.com/dravek/moodle 2019-05-27 14:52:13 +08:00
Andrew Nicols 412eb4cdf6 Merge branch 'MDL-65708-master' of git://github.com/Chocolate-lightning/moodle 2019-05-27 14:46:41 +08:00
Mathew May 2ddd7605d8 MDL-65606 mod_data: Add approvalstatusclass to template 2019-05-27 13:38:25 +08:00
Jake Dallimore 3d9ffc97c6 Merge branch 'MDL-65657-master' of https://github.com/ryanwyllie/moodle 2019-05-27 13:22:45 +08:00
Mathew May 4028ffd8f6 MDL-65708 output: Get a base config from Boost
As a part of the removal of bootstrapbase & clean
I removed some logic that got the base config of bootstrapbase,
this should of been changed to get boosts config.
See: e00f1c663c
2019-05-27 13:22:35 +08:00
Andrew Nicols 9ba09a1244 MDL-65675 forum: Remove duplicate Re in subjects 2019-05-27 12:21:30 +08:00
Ryan Wyllie 8be24909bc MDL-65657 message: revert polling timeout back to old algorithm 2019-05-27 11:57:22 +08:00
Adrian Greeve 6a4076fa2b Merge branch 'MDL-64523-master' of git://github.com/rezaies/moodle 2019-05-27 10:48:06 +08:00
Andrew Nicols fb33169a05 Merge branch 'MDL-65680_master' of git://github.com/dmonllao/moodle 2019-05-27 08:42:40 +08:00
AMOS bot 29ae25e0c3 Automatically generated installer lang files 2019-05-25 00:08:26 +00:00
Shamim Rezaie db632485ab MDL-65689 task: fix typo in help string 2019-05-25 04:57:22 +10:00
Shamim Rezaie f12bc65f1d MDL-64523 core_access: replace .delegate with .on
As of jQuery 3.0, .delegate() has been deprecated. It was superseded by
the .on() method since jQuery 1.7, so its use was already discouraged.
2019-05-25 04:23:41 +10:00
Shamim Rezaie b1078b18c8 MDL-64523 core_access: Fix js racing issue when overriding permissions 2019-05-25 04:23:33 +10:00
Shamim Rezaie 6786f6b6cc MDL-64523 core_access: Improve the title of the delete role links 2019-05-25 04:08:56 +10:00
Sara Arjona d68718a7db Merge branch 'MDL-65060-master' of git://github.com/aanabit/moodle 2019-05-24 12:34:23 +02:00
Amaia Anabitarte 6d96a3dc33 MDL-65060 core_message: Delete messages behat test 2019-05-24 12:16:37 +02:00
David Monllaó 73f8085f3f MDL-65680 analytics: Fix random failure on slow test environments 2019-05-24 10:59:13 +02:00
AMOS bot a6d8aa903f Automatically generated installer lang files 2019-05-24 00:15:06 +00:00
Simey Lameze e72e711b82 MDL-65697 qtype_missingtype: include missing class 2019-05-24 07:01:24 +08:00
Eloy Lafuente (stronk7) 383aec8a01 weekly on-sync release 3.8dev 2019-05-23 20:36:19 +02:00
Eloy Lafuente (stronk7) 54d03e1df3 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-05-23 20:36:16 +02:00
David Matamoros 79b9f905b1 MDL-65699 core_calendar: Check string exists for event types 2019-05-23 17:21:27 +02:00
Amaia Anabitarte 8922d78b75 MDL-65060 core_message: Group message data generator 2019-05-23 15:30:12 +02:00
Eloy Lafuente (stronk7) 22ae44f322 Merge branch 'MDL-65695-master' of git://github.com/andrewnicols/moodle 2019-05-23 10:48:25 +02:00
David Mudrák 07839e6af3 MDL-65694 grade: Fix missing gradelib library
In the be8f453b74 the gradelib loading was removed by mistake. So
the library may not be loaded and executing the task may end with
the exception - class 'grade_grade' not found.
2019-05-23 10:45:55 +02:00
Adrian Greeve 3ef9c2dcf0 MDL-65692 backup: Default settings set on install and upgrade.
Asynchronous backup settings are now filled out with the defaults
on installation and upgrade.
2019-05-23 14:22:13 +08:00
Andrew Nicols 4655adf8f3 MDL-65695 forum: Bump digest time to next day if in past 2019-05-23 14:22:01 +08:00
Jun Pataleta 9e7100cfd1 Merge branch 'MDL-55197' of https://github.com/timhunt/moodle 2019-05-23 11:58:14 +08:00
Andrew Nicols a37fa5c443 Merge branch 'MDL-59650-master' of git://github.com/lameze/moodle 2019-05-23 10:19:55 +08:00
Adrian Greeve a8d20b0fa9 Merge branch 'MDL-65549_master' of git://github.com/dmonllao/moodle 2019-05-23 10:09:09 +08:00
Adrian Greeve c37a446ac4 Merge branch 'MDL-65634_master' of git://github.com/dmonllao/moodle 2019-05-23 09:53:47 +08:00
Andrew Nicols aec03b8c0a Merge branch 'MDL-65654-master' of https://github.com/danielneis/moodle 2019-05-23 09:35:17 +08:00
Adrian Greeve 8dd2b752cd Merge branch 'MDL-64530' of git://github.com/stronk7/moodle 2019-05-23 09:21:59 +08:00
AMOS bot 7503e4b98f Automatically generated installer lang files 2019-05-23 00:12:44 +00:00
Amaia Anabitarte c961389b81 MDL-65060 core_message: Group_message_message_content selector 2019-05-22 18:59:58 +02:00
Ryan Wyllie 2d2dfb6ed9 MDL-65060 core_message: add render buffer to conversations
Change the conversation logic to render using a buffer so that we can
immediately save state. The render patches are based on the state so
the UI will always reach eventual consistency with the state since the
patches are processed in order.
2019-05-22 18:59:58 +02:00
Sara Arjona f78e30fef2 Merge branch 'MDL-65661-master' of git://github.com/peterRd/moodle 2019-05-22 14:57:39 +02:00
Jun Pataleta 10780409b8 Merge branch 'MDL-65636' of https://github.com/timhunt/moodle 2019-05-22 19:36:11 +08:00
Peter 577ccff6c2 MDL-65661 block_myoverview: Truncate category name 2019-05-22 19:30:48 +08:00
Peter bdd3681504 MDL-65661 core_course: Truncate long course names 2019-05-22 19:29:39 +08:00
Tim Hunt 41bf80a69d MDL-55197 filter_multilang: handle 'en' as parent lang better 2019-05-22 11:14:17 +01:00
Tim Hunt 587c0772e6 MDL-55197 filter_multilang: move preg_callback fn into class 2019-05-22 11:07:05 +01:00
Tim Hunt 173377e529 MDL-65636 filter_multilang: add some basic unit tests
This commit includes suggestions from Jun Pataleta on how to improve the
unit tests.
2019-05-22 11:01:51 +01:00
Adrian Greeve 467af62e35 Merge branch 'MDL-65067_master' of https://github.com/dmonllao/moodle 2019-05-22 16:29:52 +08:00
Adrian Greeve bcc1ec54d2 Merge branch 'MDL-64784' of https://github.com/paulholden/moodle 2019-05-22 14:48:28 +08:00
Andrew Nicols 97d791bf3a Merge branch 'MDL-65590-master' of git://github.com/rezaies/moodle 2019-05-22 13:52:14 +08:00
Jun Pataleta f8a6990a46 Merge branch 'MDL-65591-master' of git://github.com/rezaies/moodle 2019-05-22 11:06:31 +08:00
Andrew Nicols 6598c0bce0 Merge branch 'MDL-65630-master' of git://github.com/rezaies/moodle 2019-05-22 09:43:13 +08:00
David Monllaó 8d19264bc0 MDL-65549 tool_analytics: Reduce the context name length in models_view 2019-05-21 17:26:22 +02:00
David Monllaó ed1a2e8a54 MDL-65634 analytics: Discard late and early student enrolments 2019-05-21 17:24:49 +02:00
Sara Arjona c13d1d2518 Merge branch 'MDL-65605-master' of git://github.com/rezaies/moodle 2019-05-21 13:47:31 +02:00
Jun Pataleta e3e5c1f659 Merge branch 'MDL-65274-master' of git://github.com/jleyva/moodle 2019-05-21 18:49:33 +08:00
Jun Pataleta 1525b9626e Merge branch 'MDL-60407-master' of git://github.com/vmdef/moodle 2019-05-21 18:44:52 +08:00
Simey Lameze 2b815157c9 MDL-59650 core_calendar: remove limit from calendar UI 2019-05-21 15:22:13 +08:00
Simey Lameze e099259a46 MDL-59650 core_calendar: remove limit from event exporter 2019-05-21 15:22:09 +08:00
Adrian Greeve 2c0ac767c6 Merge branch 'MDL-65572-master' of git://github.com/damyon/moodle 2019-05-21 15:19:29 +08:00
Andrew Nicols 5b16520936 Merge branch 'MDL-65644' of git://github.com/stronk7/moodle 2019-05-21 12:49:32 +08:00
Shamim Rezaie 26206ddc78 MDL-65590 tool_customlang: Escape html on the standard text field 2019-05-21 14:20:16 +10:00
Adrian Greeve 04de0e85a0 Merge branch 'MDL-65655-37-forumcroninactiveusers' of git://github.com/mudrd8mz/moodle 2019-05-21 11:42:13 +08:00
AMOS bot f2f1dcb56e Automatically generated installer lang files 2019-05-21 00:12:47 +00:00
AMOS bot 21637e54c9 Automatically generated installer lang files 2019-05-21 00:12:47 +00:00
Eloy Lafuente (stronk7) a8b2f03d8b MDL-64530 travis: Enabble PHP 7.3 and redis cache
This commit performs a number of changes:

- Enables PHP 7.3, replacing PHP 7.2 (max/min approach).
- Enables back the redis service
- Configures redis cache store tests to be run.
- Disables redis session tests for PHP 7.2 and up (MDL-60978)
2019-05-21 01:24:11 +02:00
Eloy Lafuente (stronk7) 3572a25cc3 MDL-65644 upgrade: add 3.7.0 separation line to all upgrade scripts 2019-05-20 19:35:05 +02:00
David Mudrák e31f62a788 MDL-65655 forum: Do not send notifications to inactive users
We cannot deliver notifications to users who had subscribed to a forum
or discussion and were later inactivated either by suspending or setting
the auth method to nologin. The deliver adhoc task cannot be run as
these users, throwing the "Suspended account" exception.

The solution is to make sure that fetch_subscribed_users() does not
include those inactive users.
2019-05-20 18:46:35 +02:00
Shamim Rezaie 1806f70cbb MDL-65591 tool_customlang: Re-adding the save buttons at the bottom 2019-05-21 02:20:20 +10:00
Daniel Neis Araujo 3cbec0b81a MDL-65654 tool_uploaduser: Fix undefined variable warning 2019-05-20 12:44:05 -03:00
Juan Leyva ee766461b4 MDL-65274 mod_quiz: Do not return a translated string
We should be returning proper error codes and the translated string can be part of the debug information.
2019-05-20 15:50:46 +02:00
Shamim Rezaie c7ac83ca0a MDL-65605 core_question: Fix the issue when get_draft_files returns nul 2019-05-20 23:44:02 +10:00
Shamim Rezaie a9d62c4513 MDL-65605 mod_lesson: Fix the issue when get_draft_files returns null 2019-05-20 23:43:59 +10:00
Shamim Rezaie 80c360d573 MDL-65630 mod_quiz: Allow redo within an attempt with random questions 2019-05-20 23:10:30 +10:00
Shamim Rezaie 2e68255609 MDL-65630 mod_quiz: Move logging in to the start of tests
The background is for set up, the scenario is for the test. Logging in
to start the test is the start of the test and the end of the background
itself.
2019-05-20 23:10:11 +10:00
Andrew Nicols 8053b88145 Merge branch 'MDL-65643' of git://github.com/stronk7/moodle 2019-05-20 14:24:49 +08:00
Damyon Wiese e7f9ae50e5 MDL-65572 messaging: Loginas upgrade check
When using login as, we also need to check if there are legacy messages that
need updating and set the user preference if required.
2019-05-20 09:12:40 +08:00
Eloy Lafuente (stronk7) 795304597f MDL-65643 backup: Bump release to 3.8 2019-05-19 21:11:05 +02:00
Eloy Lafuente (stronk7) a866c5c238 weekly back-to-dev release 3.8dev 2019-05-19 11:24:14 +02:00
Eloy Lafuente (stronk7) 89457b26d1 Moodle release 3.7 2019-05-19 11:18:34 +02:00
Eloy Lafuente (stronk7) 374c1763ba NOBUG: Change travis.yml back to master 2019-05-19 11:18:34 +02:00
Eloy Lafuente (stronk7) c0f098cd57 NOBUG: Change travis.yml to MOODLE_37_STABLE 2019-05-19 11:18:34 +02:00
Eloy Lafuente (stronk7) a67061dc4a Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-05-19 11:18:30 +02:00
Eloy Lafuente (stronk7) 117e4bd40d MDL-65635 forum: Small improvement to the submit inline-reply
This commit mimics 100% the behavior achieved with the
parent commit of this when using the advance option.

1) Rename the 'tohtml' option to 'topreferredformat' to better
represent what it's doing.

2) Always honor the preferred format (this is a new post).

3) Only perform the conversion to HTML when the preferred format is
HTML.

That way any user, no matter thy are using format MOODLE (plain textbox),
MARKDOWN (marklar editor) or HTML (atto and tinymce editor) will
get always the format correct and the contents ready to be edited if
desired. HTML ones converted to HTML and TEXT ones unmodified.
2019-05-19 10:42:59 +02:00
Eloy Lafuente (stronk7) 743d66bfbd MDL-65635 forum: Small improvement to the advanced button
1) Always honor the preferred format (this is a new post).
2) Only perform the conversion to HTML when the preferred format is
HTML.

This way, users having HTML as format (because of their editor
preference) will get the inline-reply converted to HTML and the
editor displayed.

And users not having HTML as format (because of their edito preference)
will get the format set to their format (PLAIN, MOODLE or MARKDOWN) with the
contents unmodified. Of course, if anybody is using a PLAIN, MOODLE or
MARKDOWN editor... it will be displayed.
2019-05-19 10:42:59 +02:00
Sara Arjona f6548dfbae MDL-65635 forum: convert inline reply format when opening the advanced
When a inline reply post is written and the user changes to the
advanced edition, the post format has to be converted from FORMAT_MOODLE.
2019-05-19 10:42:59 +02:00
Sara Arjona 88f6ca6cbe MDL-65635 forum: Add messageformat and tohtml params to inline-reply
The messageformat and tohtml params have been added to the addDiscussionPost
method to send the original format the contents are written and to force
to convert them from "messageformat" to HTML.
2019-05-19 10:42:59 +02:00
Eloy Lafuente (stronk7) f2eb04c170 MDL-65635 forum: add_discussion_post() format support changes
While keeping BC as possible (format will be saved as FORMAT_HTML
as default and content not modified), this commit includes these
changes:

- A new parameter 'messageformat', defaults to FORMAT_HTML.
- A new option 'tohtml', enabling the function to convert content
  in other formats to FORMAT_HTML before saving them.
2019-05-19 10:42:59 +02:00
Eloy Lafuente (stronk7) 429649efbf Merge branch 'MDL-65641' of git://github.com/stronk7/moodle 2019-05-19 10:23:36 +02:00
Eloy Lafuente (stronk7) b6c3b130c4 MDL-65641 forum: Make forum post form to honor existing MOODLE_FORMAT
Since the night of the times (MDL-16698) we have been performing
that simple empty($post->messageformat) check to decide if the
preferred editor format should be used, instead of any existing format.

Problem is that FORMAT_MOODLE == 0, so the condition evaluates
to to true and then the preferred editor takes the baton when it should
not. Exiting format must win always!

So this just makes the condition a little better, checking if the
attribute is set and that it's numerical (accepting both n and 'n').

That covers the FORMAT_MOODLE case and any other valid format. Only if the
conditions aren't met the preferred editor format takes the baton. Only
then.
2019-05-18 11:02:29 +02:00
AMOS bot fa53cd8b98 Automatically generated installer lang files 2019-05-18 00:12:30 +00:00
David Monllaó a9db4f903d MDL-65067 tool_analytics: Limit update_end_date to format_weeks 2019-05-17 16:57:46 +02:00
Didier 'OdyX' Raboud 62e1b79cb0 MDL-65067 analytics: Strengthen format_weeks detection
The public function get_section_dates($section, $startdate = false) is
only defined in format_weeks, not in format_base.

As other formats can (and format_topcoll has) declare a different
get_section_dates public method, merely checking that it exists is not
sufficient to guarantee that it can be called with just a section object.

Check that the format either is, or is a subclass of format_weeks.
2019-05-17 13:24:47 +02:00
AMOS bot 136d8c97de Automatically generated installer lang files 2019-05-17 00:14:21 +00:00
Eloy Lafuente (stronk7) 49f2581ef8 Moodle release 3.7rc2 2019-05-16 10:57:08 +02:00
Jake Dallimore d08358b866 Merge branch 'MDL-65619-master' of git://github.com/aanabit/moodle 2019-05-16 15:14:27 +08:00
Jun Pataleta 1cc57c5d10 Merge branch 'MDL-65608-master' of https://github.com/ryanwyllie/moodle 2019-05-16 15:05:47 +08:00
Adrian Greeve d15589bc08 Merge branch 'MDL-65601_master' of git://github.com/dmonllao/moodle 2019-05-16 13:25:44 +08:00
Jun Pataleta 44e148df79 Merge branch 'MDL-65607-master' of git://github.com/mihailges/moodle 2019-05-16 12:56:51 +08:00
Mihail Geshoski b84f79ec80 MDL-65607 forum: Add prefix to forum global functions 2019-05-16 11:49:37 +08:00
Jun Pataleta c92a33a5ec Merge branch 'MDL-65603-master' of git://github.com/peterRd/moodle 2019-05-16 11:01:57 +08:00
Jun Pataleta 7383512e04 Merge branch 'MDL-65610-master' of git://github.com/damyon/moodle 2019-05-16 10:35:59 +08:00
Ryan Wyllie f9d986fa2a MDL-65608 forum: check if group exists in discussion exporter 2019-05-16 09:50:38 +08:00
Eloy Lafuente (stronk7) 838dd0b2a6 Merge branch 'MDL-65566-master-jake' of https://github.com/snake/moodle 2019-05-15 19:48:15 +02:00
Amaia Anabitarte 92717f89a5 MDL-65619 core_message: Don't unset default notification preferences
Default notification preferences are not kept when a notification provider is disabled.
2019-05-15 18:40:13 +02:00
Sara Arjona a5cdecee34 Merge branch 'MDL-65596-master' of git://github.com/bmbrands/moodle 2019-05-15 14:19:45 +02:00
Jake Dallimore 7918a0ea4c MDL-65566 core_message: let get_self_conversation use lazy init too 2019-05-15 18:46:41 +08:00
Jake Dallimore 510ede5698 MDL-65566 core_message: fix bug allowing duplicate unique conversations
Individual and self conversations may exist once only, so we need to
enforce this in the creation method.
2019-05-15 18:46:39 +08:00
Jake Dallimore 0e0e1b4552 MDL-65566 core_user: remove the conversation creation code from lib.php
These are now lazy created in the messaging APIs, so we don't need
to create them on user creation any more.
2019-05-15 18:42:47 +08:00
Sara Arjona 18e5f9bef8 MDL-65566 core_message: create the self-conversation when needed
Instead of creating all the self-conversations during the upgrading,
some code has been added to the get_conversations and to the
get_conversation_counts to create it whe it doesn't exist.
2019-05-15 18:42:46 +08:00
Sara Arjona 384145b1d1 Merge branch 'MDL-65528-master' of git://github.com/peterRd/moodle 2019-05-15 12:14:46 +02:00
Peter d7ddc44fbd MDL-65603 mod_forum: Add check for property existence 2019-05-15 16:50:49 +08:00
Jun Pataleta 64d680c271 Merge branch 'MDL-65583_master' of git://github.com/dmonllao/moodle 2019-05-15 15:57:05 +08:00
David Monllaó 589a3f57a0 MDL-65601 analytics: Add missing set_modelid calls 2019-05-15 09:34:35 +02:00
Jun Pataleta 2b8ffcc89f Merge branch 'MDL-65599-master' of git://github.com/damyon/moodle 2019-05-15 15:24:12 +08:00
Jun Pataleta 802f7c483c Merge branch 'MDL-65570-master' of git://github.com/lameze/moodle 2019-05-15 14:58:35 +08:00
Jun Pataleta 38b3b6b264 Merge branch 'MDL-65577-master' of https://github.com/ryanwyllie/moodle 2019-05-15 13:47:26 +08:00
Damyon Wiese 453120e940 MDL-65610 lti: ltiversion field optional
The ltiversion field only exists for some preconfigured tool types.
2019-05-15 13:46:56 +08:00
Ryan Wyllie f2eb9de442 MDL-65577 forum: move forum focus outline onto post div 2019-05-15 12:30:49 +08:00
Jun Pataleta 2135d33ae6 Merge branch 'MDL-65393-master' of git://github.com/rezaies/moodle 2019-05-15 10:52:57 +08:00
Damyon Wiese 54d09c47ec MDL-65599 competencies: Javascript optional param
The module id is expected to be an integer for this webservice, passing
an empty string will generate an exception.
2019-05-15 10:02:04 +08:00
Peter 56e9b6d67d MDL-65603 mod_forum: Recall inline private reply 2019-05-15 09:50:46 +08:00
Simey Lameze c970e181c7 MDL-65570 qtype_multianswer: use unique id function 2019-05-15 09:05:37 +08:00
Shamim Rezaie abbf6e5499 MDL-65393 core: Peer review amendments
- defining and using constand properties instead of hard-coded values
- Fixing the docblock for the cleanup_recent_session_locks function
2019-05-15 02:30:48 +10:00
Ilya Tregubov dbed8bdb86 MDL-65393 core: Make session history cleanup more aggressive. 2019-05-15 02:22:23 +10:00
Bas Brands c516fc1105 MDL-65596 core_message: dropdown menu blocked by contact request message 2019-05-14 13:17:40 +02:00
Sara Arjona b742fe1403 Moodle release 3.7rc1 2019-05-14 12:11:25 +02:00
Jun Pataleta 65c9f44c68 Merge branch 'MDL-65569-master' of git://github.com/andrewnicols/moodle 2019-05-14 12:53:50 +08:00
Peter 76cf4db73e MDL-65528 mod_forum: Do not render add discussion if not permitted 2019-05-14 12:47:32 +08:00
Andrew Nicols 50b52ef4b2 MDL-65569 mod_forum: Correct rules for SSD
In a Single Simple Discussion forum, the first post can only be edited
by a user with the manageactivities capability, but all other posts
behave as normal.
2019-05-14 12:32:05 +08:00
Andrew Nicols e31f357e64 Merge branch 'MDL-65574-master' of https://github.com/ryanwyllie/moodle 2019-05-14 12:17:25 +08:00
Jun Pataleta af44f41701 Merge branch 'MDL-65536-master' of https://github.com/snake/moodle 2019-05-14 11:32:02 +08:00
Andrew Nicols b8b6bd7530 MDL-65536 mod_lti: JWT should use the class loader 2019-05-14 11:27:26 +08:00
Damyon Wiese db0ccfa922 MDL-65536 mod_lti: OpenSSL configuration
LTI 1.3 requires working openssl functions to generate a private
key used for the JWT. Some installs (e.g. windows) can have the
functions available - but require configuration in php before they
actually do anything.
2019-05-14 11:27:25 +08:00
Ryan Wyllie f31c531c19 MDL-65574 forum: fix return type for get_first_post_for_discussion_ids 2019-05-14 10:43:37 +08:00
Adrian Greeve d9b6bd9540 Merge branch 'MDL-65582_master' of git://github.com/dmonllao/moodle 2019-05-14 10:20:45 +08:00
Jun Pataleta fecf5b8566 Merge branch 'MDL-65557-master' of https://github.com/ryanwyllie/moodle 2019-05-14 09:52:36 +08:00
Ryan Wyllie 6489aa2a45 MDL-65557 forum: increase default image size of author profile url 2019-05-14 08:25:16 +08:00
Víctor Déniz Falcón 8dd1ebaaba MDL-60407 report_insights: Fix redirect when action on last prediction
When an actions is taken on the last prediction, the predictions
list page is reloaded.
2019-05-14 01:06:00 +01:00
David Monllaó a1fb183df0 MDL-65583 tool_analytics: Model name from a data attribute
The credit and the patch using this approach goes to David Mudrák.
2019-05-13 22:54:28 +02:00
Sara Arjona 2c02e93388 Merge branch 'MDL-65581-master' of git://github.com/bmbrands/moodle 2019-05-13 21:19:11 +02:00
David Monllaó bc2f679bca MDL-65582 analytics: Upcoming activities due enabled by default 2019-05-13 18:04:13 +02:00
Bas Brands c906aed8ab MDL-65581 core_blocks: change classname for hidden blocks
Changing the added class .invisible to .ivisibleblock to avoid hiding the block completely
2019-05-13 12:31:00 +02:00
Sara Arjona 146d2f650d Merge branch 'MDL-65564-master' of git://github.com/marinaglancy/moodle 2019-05-13 10:39:10 +02:00
Sara Arjona 30e66a263f Merge branch 'MDL-65224-master' of https://github.com/ewallah/moodle 2019-05-13 10:02:31 +02:00
Jun Pataleta 38c773d874 Merge branch 'MDL-65571' of git://github.com/stronk7/moodle 2019-05-13 15:47:52 +08:00
Sara Arjona 40b6e9eccf Merge branch 'MDL-65544-master' of git://github.com/damyon/moodle 2019-05-13 09:40:37 +02:00
Ryan Wyllie 9a6f29b019 MDL-65574 forum: discussion_list vault uses post table for author
Update the discussion_list vault to use the first post record from
the posts table join to get the author of the first post rather
than relying on it's own "userid" column which can be incorrect in
the case of split discussions.
2019-05-13 15:03:26 +08:00
Damyon Wiese 8f7fba80d1 MDL-65544 badges: Any all criteria
When testing any vs all aggregation method, we expect a different result
when we have looped all the competencies and they all passed or failed.
2019-05-13 10:50:05 +08:00
Adrian Greeve 7437b36652 Merge branch 'MDL-65560-master' of git://github.com/lameze/moodle 2019-05-13 09:43:58 +08:00
Jake Dallimore 63dd2951bb MDL-65536 mod_lti: fix stale platformid when wwwroot is changed
If the site is installed, and then the wwwroot changed, the plugin
config value for platformid for mod_lti is then stale, resulting in
OIDC errors. Given this config value was set using the wwwroot, we
should just be able to use the value of $CFG->wwwroot direcly, thus
avoiding this problem.
2019-05-13 09:09:18 +08:00
Eloy Lafuente (stronk7) 90a048e38b MDL-65571 versions: main version bump 2019-05-12 23:48:17 +02:00
Eloy Lafuente (stronk7) c9a1a6341c MDL-65571 versions: bump all versions and requires near release
version = 2019052000 release version
requires= 2019051100 current beta (week6roll2) version
2019-05-12 23:46:34 +02:00
Eloy Lafuente (stronk7) 6a7451ff1b Moodle release 3.7beta 2019-05-10 20:31:46 +02:00
Eloy Lafuente (stronk7) c3b8f0ceb3 Merge branch 'MDL-65537-master-enfix' of git://github.com/mudrd8mz/moodle 2019-05-10 20:07:50 +02:00
David Mudrák 14f7489675 MDL-65537 lang: Use fixed strings in tests, too 2019-05-10 12:37:03 +02:00
Sara Arjona 7fcc7e0125 Merge branch 'MDL-65518-master-fix1' of https://github.com/damyon/moodle 2019-05-10 11:58:50 +02:00
Eloy Lafuente (stronk7) d44bc84439 Merge branch 'MDL-65558-master' of git://github.com/andrewnicols/moodle 2019-05-10 11:29:53 +02:00
Marina Glancy c508bedcc3 MDL-65564 core_customfield: fix inplace editable 2019-05-10 11:01:18 +02:00
Helen Foster f715376907 MDL-65537 lang: Import fixed English strings (en_fix)
Significant string changes:

* isdataunique_help and isfieldrequired_help,core_customfield -
  explanatory wording
* forum:cantogglefavourite,mod_forum - 'Can toggle favourites.'
  changed to 'Star discussions'
2019-05-10 10:17:47 +02:00
Jun Pataleta f49c1dcd4a Merge branch 'MDL-65540-master' of git://github.com/andrewnicols/moodle 2019-05-10 15:59:16 +08:00
Damyon Wiese 084a42f9f5 MDL-65518 badges: Require the issuercontact
For Badges V2 we can't use just any email address to issue badges, it needs to be a valid
account on the backpack.
2019-05-10 15:51:27 +08:00
Simey Lameze e3e0c974ee MDL-65560 qtype_multichoice: prevent form change dialog 2019-05-10 13:28:50 +08:00
Andrew Nicols 80d5636595 MDL-65558 enrol_database: use , as port separator 2019-05-10 12:24:05 +08:00
Andrew Nicols 7991e3032c MDL-65558 auth_db: use , as port separator 2019-05-10 12:23:49 +08:00
Andrew Nicols 04a6cd7b44 Merge branch 'MDL-65520-master' of git://github.com/peterRd/moodle 2019-05-10 11:46:34 +08:00
Andrew Nicols b375f5731f MDL-63959 feedback: Adjust unit test for perf 2019-05-10 11:41:23 +08:00
Andrew Nicols 090fbe8653 Merge branch 'MDL-63959-master' of git://github.com/tobiasreischmann/moodle 2019-05-10 11:41:11 +08:00
Adrian Greeve cdc5c34030 Merge branch 'MDL-65457-master' of git://github.com/peterRd/moodle 2019-05-10 10:42:34 +08:00
Peter 9b8e599868 MDL-65457 mod_forum: Provide latest post's author
Provide an updated private replies restriction to latest post
Get the latest post's author and time which takes into account private replies.
2019-05-10 10:29:39 +08:00
Eloy Lafuente (stronk7) 08d40829e9 Merge branch 'MDL-65423-master' of git://github.com/jleyva/moodle 2019-05-09 21:48:26 +02:00
Eloy Lafuente (stronk7) bcf35812a3 Merge branch 'MDL-65197' of https://github.com/paulholden/moodle 2019-05-09 20:01:54 +02:00
Eloy Lafuente (stronk7) 0eda82e1d6 Merge branch 'MDL-29320-master' of git://github.com/junpataleta/moodle 2019-05-09 19:49:31 +02:00
Eloy Lafuente (stronk7) 97b6ea2c30 Merge branch 'MDL-65543-master' of git://github.com/andrewnicols/moodle 2019-05-09 19:38:27 +02:00
Sara Arjona 5ec0b3bc2e Merge branch 'master_MDL-65502' of https://github.com/danmarsden/moodle 2019-05-09 16:48:05 +02:00
Sara Arjona c9e526a4e7 MDL-65518 badges: some language improvements
Helen has suggested some wording changes to make easier to understand
some of the backpack settings.

Thanks a lot Helen!! :-)
2019-05-09 16:19:48 +02:00
Sara Arjona 8b0c8764b4 Merge branch 'MDL-65518-master' of git://github.com/damyon/moodle 2019-05-09 16:19:05 +02:00
Andrew Nicols ac8c12c7b5 MDL-65543 mod_forum: Move require_login before cap check 2019-05-09 19:34:01 +08:00
Jun Pataleta 2670aff7c1 Merge branch 'MDL-65445-qtype_ddwtos' of https://github.com/jonof/moodle 2019-05-09 15:58:45 +08:00
Shamim Rezaie c36c22d250 MDL-65540 core_search: Explicit component name in the str helper 2019-05-09 15:29:02 +08:00
Shamim Rezaie 9902e215a9 MDL-65540 tool_dataprivacy: Explicit component name in the str helper 2019-05-09 15:24:50 +08:00
Andrew Nicols 5ecdf55a51 Merge branch 'MDL-65479' of git://github.com/stronk7/moodle 2019-05-09 15:03:54 +08:00
Damyon Wiese 2fe34536d5 MDL-65518 badges: Retry auth test
When testing the site backpack login credentials, don't rely on a previous login
because the username and password could have changed.
2019-05-09 14:56:27 +08:00
Damyon Wiese c659b1c53d MDL-65518 badges: Default Issuer name
If the issuer name is not set, use the site name.
2019-05-09 14:56:27 +08:00
Damyon Wiese d48a52ddb1 MDL-65518 badges: Admin settings warning
If the backpack is changed to Open Badges V2 backpack,
attempt the authenticate with the site settings and return a warning
if it fails.
2019-05-09 14:56:21 +08:00
Andrew Nicols 6a5caed492 Merge branch 'MDL-65435' of git://github.com/stronk7/moodle 2019-05-09 14:51:05 +08:00
Sara Arjona 465ed6f107 Merge branch 'MDL-65523-master' of git://github.com/marinaglancy/moodle 2019-05-09 08:46:30 +02:00
Peter da04a0a918 MDL-65520 mod_forum: Add lock icon to indicate locked discussions 2019-05-09 14:27:37 +08:00
Jun Pataleta f32b6961c9 Merge branch 'MDL-65141-master' of git://github.com/jleyva/moodle 2019-05-09 12:29:25 +08:00
Adrian Greeve 6ab4df423d Merge branch 'MDL-58315_master_boost_block_classes' of https://github.com/zpottie/moodle 2019-05-09 11:32:19 +08:00
Adrian Greeve 912156439d Merge branch 'MDL-65387-master' of https://github.com/lucaboesch/moodle 2019-05-09 11:22:38 +08:00
Andrew Nicols 3ec925e15e Merge branch 'MDL-65373-master' of https://github.com/ryanwyllie/moodle 2019-05-09 10:51:19 +08:00
Adrian Greeve 6310072793 Merge branch 'MDL-65519-master' of https://github.com/ryanwyllie/moodle 2019-05-09 09:31:47 +08:00
Ryan Wyllie 23129586db MDL-65373 forum: accessibility changes for discussion 2019-05-09 09:10:40 +08:00
Dan Marsden 8e119e4bb3 MDL-65502 blocks: Correct check for my dashboard page. 2019-05-09 10:31:52 +12:00
Eloy Lafuente (stronk7) ddaae81510 MDL-65435 behat: Support any arg type with behat reruns
Right now, when executing a single rerun of a parallel run
using vendor/bin/behat, not all the argument alternatives
are supported (equal or space). This commit allows both to work.
2019-05-08 23:22:18 +02:00
Luca Bösch 133c0342b3 MDL-65387 dataformats: Table download formats choose pulldown style. 2019-05-08 20:27:27 +02:00
Eloy Lafuente (stronk7) b450745465 MDL-65479 repository_url: make regexp PCRE2 compatible
PHP 7.3 comes with the newer PCRE2 engine that is slightly stricter,
more specifically about using unescaped "-" within classes. They
now hat to be at the end of the class or escaped.

This is the only case we have found in core to make it compatible.

Also note that the file changes is, apparently an imported library,
but we have not it registered and already have performed changes to
it, so I've ignored that point. In fact, it has tabs and so on, I've
not modified that either.
2019-05-08 18:26:46 +02:00
Michael Hawkins cbe5c5fed4 MDL-61738 messageinbound: Fix quota checks & filesize for email uploads
Private files uploaded by email will now honour the file quota limit,
because the filesize is set correctly and checked against users'
remaining personal quota limit. Previously, attachment size was always
set to zero, and quota was checked against the draft area (this is
not valid for email uploads, because each file is moved out of the
draft area as it is processed, so multiple files totalling greater
than the remaining quota would still pass the check).
2019-05-08 17:54:44 +02:00
Dan Marsden c509d10821 MDL-64708 cohort: Return url is not used anywhere in core. 2019-05-08 17:54:44 +02:00
Mark Nelson 2904a7f851 MDL-65365 core_message: prevent users from viewing all conversations 2019-05-08 17:54:44 +02:00
Eloy Lafuente (stronk7) 2018f4ebc1 on-demand release 3.7dev+ 2019-05-08 17:49:03 +02:00
Eloy Lafuente (stronk7) 26df7ac11e NOBUG: Fixed file access permissions 2019-05-08 17:49:02 +02:00
Eloy Lafuente (stronk7) 4d994d59d5 NOBUG: Fixed SVG browser compatibility 2019-05-08 17:49:01 +02:00
Bas Brands 66bd0f6c2a MDL-65438 core_themes: allow themes to change the css url
Themes that have the function theme_themename_alter_css_urls() in lib.php
can change the css url from theme/styles.php to a local script like
theme/themename/css.php. The local css.php file can be used to serve
various versions of the theme css, for example versions compiled using
different scss variables.
2019-05-08 15:20:53 +02:00
Jun Pataleta 70d98c7156 Merge branch 'MDL-44484-master' of https://github.com/Chocolate-lightning/moodle 2019-05-08 12:15:38 +08:00
Mathew May a282fc23ea MDL-44484 admin: Remove existing user theme check 2019-05-08 16:14:26 +12:00
Jake Dallimore 3e5f439cb1 Merge branch 'MDL-62599-master' of https://github.com/snake/moodle 2019-05-08 11:48:51 +08:00
Adrian Greeve bf23d85bf7 Merge branch 'MDL-65484-master' of git://github.com/damyon/moodle 2019-05-08 11:21:59 +08:00
Jake Dallimore e61312afc9 MDL-62599 mod_lti: fix coding style issues 2019-05-08 11:16:21 +08:00
Damyon Wiese 5c159cb309 MDL-65518 badges: Language change "Site backpack" 2019-05-08 11:10:06 +08:00
Peter cee572aac6 MDL-65508 mod_forum: Add private to the quick forum reply 2019-05-08 11:03:28 +08:00
Jun Pataleta 6861c4f06e Merge branch 'MDL-44484-master' of https://github.com/Chocolate-lightning/moodle 2019-05-08 10:53:37 +08:00
Adrian Greeve 32e5731990 Merge branch 'MDL-65188-master' of git://github.com/andrewnicols/moodle 2019-05-08 10:47:25 +08:00
Mathew May e6ce167bb7 MDL-44484 admin: Theme can be null and create user 2019-05-08 14:44:30 +12:00
Adrian Greeve 83cb72bf9e Merge branch 'MDL-65516-master' of git://github.com/mihailges/moodle 2019-05-08 10:27:18 +08:00
Andrew Nicols 017c51d33d Merge branch 'MDL-65417-master' of git://github.com/bmbrands/moodle 2019-05-08 10:14:52 +08:00
Jun Pataleta 5776269f9c Merge branch 'MDL-65470-master' of git://github.com/bmbrands/moodle 2019-05-08 10:13:13 +08:00
Andrew Nicols bbeba47635 Merge branch 'MDL-65154' of git://github.com/stronk7/moodle 2019-05-08 09:50:32 +08:00
Andrew Nicols 544f1d0b0b Merge branch 'MDL-35396-master' of git://github.com/mihailges/moodle 2019-05-08 09:47:04 +08:00
Adrian Greeve 413d09ee9e Merge branch 'MDL-65511-master' of git://github.com/mihailges/moodle 2019-05-08 09:37:27 +08:00
Ryan Wyllie c27e8d5010 MDL-65519 forum: remove profile link from started by column 2019-05-08 09:37:01 +08:00
Jake Dallimore 7b3297d298 MDL-62599 lti_gradebookservices: use correct key in get_permitted_scopes
This was missing from the revert commit, a464331db2, causing scopes
to be empty.
2019-05-08 09:28:23 +08:00
Eloy Lafuente (stronk7) 9b0aec2d65 MDL-65154 competencies: FF 47 does not digest null/missing JS params
So we are defaulting to 0 when the page is initially called,
instead of current null. That's exactly the same behavior
than when you pick "No filters applied" from the filter menu.

Note that other browsers seems to accept perfectly the missing param
but FF 47.0.1 does not.
2019-05-07 23:20:38 +02:00
Amaia Anabitarte e4987f0f58 MDL-64993 core_message: fix unit test for non-ordered queries 2019-05-07 17:54:43 +02:00
Adrian Greeve 48c8a555e0 NOBUG: Fix white space issue due to history rewrite. 2019-05-07 12:51:01 +02:00
Marina Glancy dd14f4f270 MDL-65523 customfield_checkbox: allow to set as required 2019-05-07 12:01:26 +02:00
Bas Brands 4df2aeba9a MDL-65470 pix: update Moodle logo
* Older logos removed, 2 logo versions added. One with a gray hat, used
in the footer. One with a black hat used in the privacy policiy page.
2019-05-07 11:06:40 +02:00
Andrew Nicols b43785fe48 Merge branch 'MDL-64993-master-fix' of github.com:sarjona/moodle 2019-05-07 16:26:47 +08:00
Andrew Nicols 93b1835184 Merge branch 'MDL-65498' of https://github.com/stronk7/moodle 2019-05-07 16:26:47 +08:00
Sara Arjona 3c7dcefd9f MDL-64993 core_message: fix behat test failing with Oracle 2019-05-07 16:26:47 +08:00
Andrew Nicols 8088ad62ab Merge branch 'MDL-65499' of git://github.com/stronk7/moodle 2019-05-07 16:26:47 +08:00
Jun Pataleta c5354a4012 Merge branch 'MDL-65313-master-fix' of https://github.com/snake/moodle 2019-05-07 16:26:46 +08:00
Adrian Greeve 3e35a573e0 Merge branch 'MDL-65485-master' of git://github.com/bmbrands/moodle 2019-05-07 16:26:46 +08:00
Jake Dallimore a0523b826e MDL-65313 core_favourites: component scoped deletion now requires itemid
This now requires itemid, which cannot be null. This is safer. The
context can still be passed in as an optional parameter.
2019-05-07 16:26:46 +08:00
Adrian Greeve ba235a9c01 Merge branch 'MDL-65495-master-courseid' of git://github.com/mudrd8mz/moodle 2019-05-07 16:26:46 +08:00
Eloy Lafuente (stronk7) 7726bec6b3 Merge branch 'MDL-63262-master' of git://github.com/damyon/moodle 2019-05-07 16:26:40 +08:00
Andrew Nicols 2daa199351 Merge branch 'MDL-65132-master' of git://github.com/cescobedo/moodle 2019-05-07 16:24:40 +08:00
Andrew Nicols 83477cedaf Merge branch 'MDL-65505-master' of https://github.com/ryanwyllie/moodle 2019-05-07 16:24:39 +08:00
Andrew Nicols 76f90cbe62 MDL-65449 course: Add deprecation tag 2019-05-07 16:24:39 +08:00
Andrew Nicols e18c7dc06b Merge branch 'MDL-65449-master' of git://github.com/bmbrands/moodle 2019-05-07 16:24:39 +08:00
Sara Arjona 851ea51966 Merge branch 'MDL-65374-master' of https://github.com/lucaboesch/moodle 2019-05-07 16:24:39 +08:00
Jun Pataleta 0eab8a4221 MDL-65313 core: Fix orphaned favourites cleanup 2019-05-07 16:24:38 +08:00
Jun Pataleta b6082744ed Merge branch 'MDL-65399-master' of git://github.com/rezaies/moodle 2019-05-07 16:24:38 +08:00
Sara Arjona d302d12592 Merge branch 'MDL-65396-master' of https://github.com/lucaboesch/moodle 2019-05-07 16:24:38 +08:00
Jun Pataleta 6498f438a5 Merge branch 'MDL-65153-master' of git://github.com/damyon/moodle 2019-05-07 16:24:37 +08:00
David Monllaó 8e17a2aceb Merge branch 'MDL-65474-master' of https://github.com/ryanwyllie/moodle 2019-05-07 16:24:37 +08:00
David Monllaó 2558e0cd71 Merge branch 'MDL-65464-master' of https://github.com/ryanwyllie/moodle 2019-05-07 16:24:37 +08:00
Jun Pataleta 14b132750b Merge branch 'MDL-65313-master' of https://github.com/snake/moodle 2019-05-07 16:24:37 +08:00
Adrian Greeve e41678d75e Merge branch 'MDL-64968-master' of https://github.com/lucaboesch/moodle 2019-05-07 16:24:36 +08:00
Adrian Greeve 3135f0f2e5 Merge branch 'MDL-65104-master' of git://git.cameron1729.xyz/moodle 2019-05-07 16:24:36 +08:00
Adrian Greeve 7b43eea8bc Merge branch 'MDL-65296' of https://github.com/timhunt/moodle 2019-05-07 16:24:36 +08:00
Jake Dallimore b96b80bec0 Merge branch 'MDL-64988-master' of git://github.com/rezaies/moodle 2019-05-07 16:24:35 +08:00
Andrew Nicols 9862955fa3 Merge branch 'MDL-64993-master' of git://github.com/aanabit/moodle 2019-05-07 16:24:35 +08:00
Adrian Greeve 606ac9be44 Merge branch 'MDL-65154-master' of git://github.com/damyon/moodle 2019-05-07 16:24:35 +08:00
Damyon Wiese 5bda066caa MDL-65484 assign: Scrolling overflow CSS
Use relatively positioned elements, not absolutely positioned to prevent
elements being visible when they are scrolled outside the containing drawing region.
2019-05-07 16:20:22 +08:00
Mihail Geshoski e610404477 MDL-65516 forum: Improve the UX when opening inline reply 2019-05-07 16:08:48 +08:00
Mihail Geshoski 8ac1820b57 MDL-35396 lesson: Fix detailed statistics display for essay questions 2019-05-07 13:55:11 +08:00
Andrew Nicols 0ba8114bd4 MDL-65188 tests: Move var to before resource creation 2019-05-07 12:57:13 +08:00
Mihail Geshoski 918d35fe07 MDL-65511 forum: Send forum post notifications setting not visible 2019-05-07 10:08:43 +08:00
Daniel Neis Araujo 09df597597 MDL-44484 admin: Allow theme field in upload users tool 2019-05-07 12:17:05 +12:00
Eloy Lafuente (stronk7) 4d4dcefb8c MDL-65499 phpunit: Bump to current phpunit 7.5.9
Previously we were sticky to 7.5.7 and this issue was
hitting our windows runs:

https://github.com/sebastianbergmann/phpunit/issues/3564
2019-05-06 12:49:41 +02:00
David Mudrák 850ff963c5 MDL-65495 hub: Fix undefined variable usage 2019-05-06 12:46:43 +02:00
Bas Brands db91972458 MDL-65417 themes : small visual fixes
* region main border radius if sass var $enable-rounded is true (in
classic)
* white background for dashboard on classic where blocks are gray
* frontpage sitetopic margin and padding left removed to align with
courses content
2019-05-06 11:46:52 +02:00
Bas Brands 530e8e987a MDL-65485 core_themes: installer html updates for bootstrap4 2019-05-06 11:03:14 +02:00
Ryan Wyllie b61639598f MDL-65505 forum: handle deleted users with no context in render 2019-05-06 16:13:15 +08:00
Shamim Rezaie e7b3575cf1 MDL-65399 mod_quiz: Handling the edge case when section name is '' 2019-05-06 18:11:23 +10:00
Shamim Rezaie aa6a8b98c6 MDL-65399 mod_quiz: UI should prevent deleting the last slot of section 2019-05-06 18:11:22 +10:00
cescobedo 37a653cff9 MDL-65132 core_message: Update message drawer to delete message for all
Update JS message drawer to allow delete message for all showing a new
checkbox in the confirm dialogue.
2019-05-06 09:48:26 +02:00
Bas Brands 620896cf45 MDL-65449 themes: allow overriding course patterns
* moving course pattern generation to core_renderer
2019-05-06 09:42:59 +02:00
cescobedo e3e1938789 MDL-65132 core_message: Added WS to delete message for all users
Also, added WS new return parameter candeletemessagesforallusers in get_conversation
and send_instant_message and added API support. This will be used to check
if the user can delete all messages in the conversation.
2019-05-06 09:39:34 +02:00
cescobedo d47e067184 MDL-65132 core_message: Added API to delete message for all users 2019-05-06 09:38:54 +02:00
Jake Dallimore 5c73f6e2e5 MDL-62599 mod_lti: correct deprecations in service_base 2019-05-06 15:12:40 +08:00
Jake Dallimore 903ec849c5 MDL-65313 core: upgrade code to remove stale favourites for messaging
These were left behing when deleting a group or a course.
2019-05-06 14:11:46 +08:00
Jake Dallimore 6421775ad2 MDL-65313 core_message: remove favourites when deleting a conversation
When deleting a conversation for all users (e.g. when deleting a group
which has a conversation), we need to remove any favourites.
2019-05-06 14:01:34 +08:00
Jake Dallimore f962859b56 MDL-65313 core_favourite: add component-scoped favourite service class
Added a new type of service which can be used to interact with the
all favourites for a given component, not just those owned by a a
specific user. As such, objects of this type are scoped to a component.
2019-05-06 14:01:34 +08:00
Mark Nelson 89dad59d3f MDL-62599 mod_lti: added locallib unit tests 2019-05-06 13:48:30 +08:00
Mark Nelson 379536a3a2 MDL-62599 mod_lti: use moodle_url for config values 2019-05-06 13:48:12 +08:00
Shamim Rezaie a834294228 MDL-65399 mod_quiz: remove_slot should update the existing info
The remove_slot method should update the remaining slot's slot
attribute. It also should update the remaining slot's question number
and section info.
2019-05-06 15:34:50 +10:00
Stephen Vickers 878339017d MDL-62599 mod_lti: Correct documentation 2019-05-06 13:33:42 +08:00
Stephen Vickers 8ca51fa124 MDL-62599 mod_lti: Update documentation
Change documentation for typeconfig property of service_base from stdClass to array.
2019-05-06 13:33:42 +08:00
Stephen Vickers 75f020862a MDL-62599 mod_lti: Replace language string removed in error 2019-05-06 13:33:42 +08:00
Stephen Vickers 408cb8d64c MDL-62599 mod_lit: Missing end of function 2019-05-06 13:33:42 +08:00
Stephen Vickers 1bc7f99bf7 MDL-62599 mod_lti: Merge lti_convert_to_jwt and lti_sign_jwt 2019-05-06 13:33:42 +08:00
Stephen Vickers f6662ae4de MDL-62599 mod_lti: Correct content-item return
Update method used to verify the JWT version of content-items being returned by a tool.
2019-05-06 13:33:42 +08:00
Stephen Vickers a464331db2 MDL-62599 mod_lti: Revert service configuration parameters
Code to add configuration settings for LTI services reverted to current release code which injects them directly into the edit form.  This has the risk of name clashes and changes being made to elements not created by the service.
2019-05-06 13:33:42 +08:00
Stephen Vickers d930ef0491 MDL-62599 mod_lti: Correct parameter name 2019-05-06 13:33:42 +08:00
Stephen Vickers 8a8221f587 MDL-62599 mod_lti: Changes from integration review 2019-05-06 13:33:42 +08:00
Stephen Vickers 27cbb5965e MDL-62599 mod_lti: Add platform support for LTI 1.3 2019-05-06 13:33:42 +08:00
Shamim Rezaie 8affd823a4 MDL-65399 mod_quiz: Remove $slots from the \mod_quiz\structure class
It's enough to have $slotsinorder, and the $slots property
was redundant. There should only be a single source of truth.
2019-05-06 15:30:59 +10:00
Damyon Wiese 58c7d2ce2b MDL-63262 badges: Show all public badges
Use the "expand" parameter so the backpack returns nested public
information about each badge in a public collection. This saves 2 requests per badge and
fixes the problem where we don't have permission to see some public badge details.
2019-05-06 11:25:26 +08:00
Damyon Wiese 89da9b4900 MDL-65154 competencies: Filter course competencies
Add an activity filter to the course competencies screen.
2019-05-06 09:34:25 +08:00
Ryan Wyllie 902c8f58b2 MDL-65464 forum: disable buttons when saving in page reply 2019-05-06 09:23:08 +08:00
Andrew Nicols 454c18c380 Merge branch 'MDL-63685-master' of git://github.com/marinaglancy/moodle 2019-05-06 08:41:20 +08:00
Amaia Anabitarte c8d51ae41a MDL-64993 core_message: Behat test for self conversation 2019-05-06 00:47:52 +02:00
Amaia Anabitarte 86463d5056 MDL-64993 core_message: Adding self-conversations to behat tests 2019-05-06 00:47:52 +02:00
Amaia Anabitarte 888a467a78 MDL-64993 core_message: Adding self-conversations to unit tests 2019-05-06 00:47:52 +02:00
Eloy Lafuente (stronk7) 3c62200fa0 MDL-65498 backup: Add a couple of missing destroy() calls
Specially noticeable under Windows, where some resources/files
are kept open/busy/locked, causing all sort of problems, easily
detectable in phpunit resets.
2019-05-06 00:01:55 +02:00
Amaia Anabitarte 3204deacfe MDL-64993 core_message: Add self-conversations to create_user generator 2019-05-05 22:41:35 +02:00
Amaia Anabitarte e688eab815 MDL-64993 core_message: New group_message_list_area selector 2019-05-05 22:41:35 +02:00
Marina Glancy 8ff19f8c0f MDL-63685 core_form: for modal forms take parameters from request
When we deal with modal form submission we can not call optional_param inside the form class because
it does not have information from the AJAX form submission
2019-05-05 22:27:50 +02:00
Luca Bösch 6747ae1416 MDL-65396 theme_boost: Style duration chooser pulldown select. 2019-05-04 11:03:37 +02:00
Luca Bösch 85ecaf5836 MDL-65374 core_grades: style "Move selected items to" pulldown. 2019-05-04 11:03:26 +02:00
Luca Bösch d8a3787567 MDL-64968 mod_lesson: Style "Yes, I'd like to try again" button. 2019-05-04 11:03:21 +02:00
Eloy Lafuente (stronk7) a411b499b9 on-demand release 3.7dev+ 2019-05-03 17:53:09 +02:00
Shamim Rezaie a31194800b MDL-64988 mod_quiz: Fix questions always being added to the last section 2019-05-03 18:39:13 +10:00
Jun Pataleta 954ab0e654 Merge branch 'MDL-65475-master' of git://github.com/junpataleta/moodle 2019-05-03 15:52:42 +08:00
Mihail Geshoski b72780bcbf MDL-65475 forum: Fix discussion locking behat test 2019-05-03 15:52:03 +08:00
Damyon Wiese 7444ba743f MDL-63262 badges: More changes for badgr.io
This commit combines several changes:
* Show authentication errors.
* Show more detailed authentication errors
* When the site backpack is different to the user backpack, show a warning
* Do not duplicate the apiversion and backpackurls in each user backpack.
* Do not support different issuer information for each badge with Open Badges v2.
* Add obversion to assertion url
* Combine separate badges upgrade steps and bump the version number.
* Don't show private collections.
* Push the larger image size to backpacks (512x512).
* BADGE_BACKPACKURL is deprecated
* Don't use property alignments, only alignment
2019-05-03 15:00:01 +08:00
Damyon Wiese 1837b1d5fd MDL-63262 badges: Coding style 2019-05-03 15:00:00 +08:00
Damyon Wiese aae219acce MDL-63262 badges: Add badgr.io
Upgrade the support for Open Badges 2 to support a real open badges 2 backpack.
Moodle can only talk to one backpack at a time, so after switching backpacks, users
will have to manually disconnect and then reconnect their backpack to the new one.

This commit combines several changes:
* Split classes into badges namespace
* Publish expiry data with a badge
* Publish badge alignments in badges exported to the backpack.
* Export the criteria for a badge to the backpack.
2019-05-03 15:00:00 +08:00
Jun Pataleta 0b53f28cf8 Merge branch 'MDL-65475-master-1' of git://github.com/mihailges/moodle 2019-05-03 14:26:40 +08:00
Mihail Geshoski d8c0f8ea03 MDL-65475 forum: Align items in forum settings menu 2019-05-03 13:39:25 +08:00
Jun Pataleta 27a7632ac2 Merge branch 'MDL-65468-master' of git://github.com/mihailges/moodle 2019-05-03 13:24:43 +08:00
zpottie 7a02f020c3 MDL-58315 core: Add support for custom block classes 2019-05-03 16:12:29 +12:00
Jake Dallimore 55e5530f97 Merge branch 'MDL-64910-master' of git://github.com/peterRd/moodle 2019-05-03 12:09:47 +08:00
Ryan Wyllie c70ddc335d MDL-65474 forum: adjust forum post html structure
Move around the HTML structure for the forum post to better match
the previous structure for the author pictures, groups, and
rating HTML
2019-05-03 11:50:56 +08:00
Peter 72bb97843d MDL-64910 block_myoverview: Separate the category name as it's own link
* Separate the link
* Add style to force color inheritance
2019-05-03 11:46:21 +08:00
Jun Pataleta 6178721aa6 Merge branch 'MDL-65418-master' of https://github.com/ryanwyllie/moodle 2019-05-03 11:43:14 +08:00
Jun Pataleta 70c1f17d7b Merge branch 'MDL-65450-master' of https://github.com/ryanwyllie/moodle 2019-05-03 11:23:18 +08:00
Adrian Greeve 958983fd7e Merge branch 'MDL-65458_master' of git://github.com/markn86/moodle 2019-05-03 11:17:39 +08:00
Andrew Nicols ec59de637a Merge branch 'M65299_boost_theme-colors_override' of https://github.com/Dave-B/moodle 2019-05-03 11:08:00 +08:00
Jun Pataleta 70cbc37755 Merge branch 'MDL-52828-master' of git://github.com/damyon/moodle 2019-05-03 10:59:42 +08:00
Jun Pataleta 5b8a792f24 Merge branch 'MDL-65212-master' of git://github.com/jleyva/moodle 2019-05-03 10:55:05 +08:00
Andrew Nicols dd457c4fa6 Merge branch 'MDL-65245' of https://github.com/timhunt/moodle 2019-05-03 10:50:32 +08:00
Adrian Greeve cbe23e7666 Merge branch 'MDL-64851-master' of https://github.com/s-cenni/MDL-64851 2019-05-03 10:43:28 +08:00
Jake Dallimore 41ec00830e Merge branch 'MDL-65134-master' of git://github.com/peterRd/moodle 2019-05-03 10:05:26 +08:00
Andrew Nicols 370acc305f Merge branch 'MDL-65262-master' of git://github.com/lameze/moodle 2019-05-03 10:02:18 +08:00
Mark Nelson 950246a7ae MDL-65458 message_email: fix failing unit test 2019-05-03 10:01:11 +08:00
Bas Brands b9849c6fac MDL-65458 message_email: improve design of group message digests 2019-05-03 10:01:03 +08:00
Jun Pataleta 64b61c16a3 Merge branch 'MDL-65466-master' of git://github.com/mihailges/moodle 2019-05-03 09:59:30 +08:00
Adrian Greeve a0f0ed8fbf Merge branch 'MDL-65460-master' of git://github.com/lameze/moodle 2019-05-03 09:09:00 +08:00
Andrew Nicols ea00cdc79f Merge branch 'MDL-64394-accesslog' of https://github.com/brendanheywood/moodle 2019-05-03 08:49:33 +08:00
Sara Arjona 4d86fce09f Merge branch 'MDL-65169-master' of https://github.com/snake/moodle 2019-05-02 15:29:02 +02:00
Andrew Nicols d27ac4622e MDL-65447 theme: Apply pendingJS checks to BS transitions 2019-05-02 13:31:41 +02:00
Jun Pataleta b919ea9299 Merge branch 'MDL-65411-master' of git://github.com/lameze/moodle 2019-05-02 17:02:10 +08:00
Mihail Geshoski 04cfb5c1ac MDL-65468 forum: Check if passed form data is empty 2019-05-02 16:22:00 +08:00
Jun Pataleta e4fcd07e3e Merge branch 'MDL-65446-master' of https://github.com/ryanwyllie/moodle 2019-05-02 15:00:41 +08:00
Jake Dallimore 3fd575b9f8 Merge branch 'MDL-64439-master' of https://github.com/ilya-catalyst/moodle 2019-05-02 14:47:39 +08:00
Jun Pataleta 78920136bb Merge branch 'MDL-65318-master' of git://github.com/lameze/moodle 2019-05-02 14:22:17 +08:00
Jun Pataleta ab709ed274 MDL-65318 core_calendar: Additional fixes
* Move 'calendareventtype' property to event_exporter_base and
  rename it to 'normalisedeventtype'
* Add a 'normalisedeventtypetext' property to event_exporter_base
  for displaying the human-friendly text for the normalised
  event type.
* Clean up calendareventtype from other exporter/template locations
* Fix template names.
2019-05-02 14:19:28 +08:00
Andrew Nicols 5599d4cbca Merge branch 'MDL-65071-master-new' of git://github.com/mihailges/moodle 2019-05-02 13:53:54 +08:00
Mihail Geshoski 2a80ecb543 MDL-65071 forum: Error handling in web service when forum does not exist 2019-05-02 13:51:14 +08:00
Simey Lameze a8dcc212be MDL-65262 core_calendar: change location param type 2019-05-02 11:29:42 +08:00
Mihail Geshoski 70ed77c568 MDL-65466 forum: Fix discussion pinning when adding/editing discussion 2019-05-02 09:54:17 +08:00
Andrew Nicols e1a071322f Merge branch 'MDL-65394-master' of https://github.com/ryanwyllie/moodle 2019-05-02 09:04:47 +08:00
Simey Lameze 4b89c5a8a6 MDL-65460 core_course: fix undefined variable error 2019-05-02 08:29:27 +08:00
Simey Lameze a67bbe5039 MDL-65318 core_calendar: make event details consistent across pages 2019-05-02 08:05:06 +08:00
Simey Lameze 0ea03be795 MDL-65318 core_calendar: add event details template 2019-05-02 08:05:02 +08:00
Eloy Lafuente (stronk7) 550778cdb6 Merge branch 'MDL-65459-master' of https://github.com/sammarshallou/moodle 2019-05-02 00:24:46 +02:00
Mihail Geshoski b4a1bbbb6a MDL-65071 forum: Sort starred discussions 2019-05-01 22:51:14 +08:00
Mihail Geshoski 28c2f2b266 MDL-65071 forum: Fix webservice unit tests 2019-05-01 22:20:35 +08:00
Mihail Geshoski 121ccf1593 MDL-65071 forum: Include starred discussions info in the web service 2019-05-01 22:10:12 +08:00
Mihail Geshoski d39a50dc8a MDL-65071 forum: Unit test sorting of starred discussions 2019-05-01 22:10:12 +08:00
Mihail Geshoski 1a9c60e931 MDL-65071 forum: Add sorting in discussion list 2019-05-01 22:10:12 +08:00
Mihail Geshoski 3f9ed16e56 MDL-65071 forum: Add unit tests 2019-05-01 22:10:12 +08:00
Ryan Wyllie 9be6dc2de6 MDL-65134 core_message: Introduce event specific function
Introduced an event specific formatting function.
Additional catch on render fn calls
2019-05-01 19:46:52 +08:00
sam marshall ef3f92c70a MDL-65459 Logging: Missed two points relying on non-JSON log format 2019-05-01 12:11:17 +01:00
Jun Pataleta a7d496b684 Merge branch 'MDL-65273-master' of https://github.com/lucaboesch/moodle 2019-05-01 17:28:16 +08:00
Paul Holden 38cb434ba6 MDL-65197 editor: handle empty user preference in privacy export. 2019-05-01 09:48:06 +01:00
Ryan Wyllie 1457229295 MDL-65394 forum: fix get_move_discussion_html return signature 2019-05-01 16:27:34 +08:00
Ryan Wyllie ebe3110dff MDL-65394 filter: only do mathjax parsing on strings that need it 2019-05-01 16:27:34 +08:00
Ryan Wyllie 76fbbf7e7e MDL-65394 portfolio: add cache for portfolio_add_button 2019-05-01 16:27:34 +08:00
Ryan Wyllie 8353770743 MDL-65394 forum: add context id to author export 2019-05-01 16:27:34 +08:00
Adrian Greeve f2e0dab7f7 Merge branch 'MDL-65388-master' of https://github.com/ryanwyllie/moodle 2019-05-01 16:06:24 +08:00
Jun Pataleta 0bce27bae4 Merge branch 'MDL-65250' of git://github.com/stronk7/moodle 2019-05-01 16:04:02 +08:00
Jake Dallimore cee7444332 Merge branch 'MDL-65426_master' of git://github.com/markn86/moodle 2019-05-01 15:38:44 +08:00
Luca Bösch 78d9ec8890 MDL-65273 roles: Roles permissions buttons styles. 2019-05-01 09:30:10 +02:00
Mark Nelson 7280b38dd2 MDL-65426 message_email: clean up messages that have already been read 2019-05-01 15:17:48 +08:00
Adrian Greeve f9da72b63e Merge branch 'MDL-65149-master' of git://github.com/damyon/moodle 2019-05-01 14:58:21 +08:00
Adrian Greeve 53c792b119 Merge branch 'MDL-64959_master' of https://github.com/abhimanyuZ/moodle 2019-05-01 14:30:00 +08:00
Jake Dallimore 1ba1bb79e8 Merge branch 'MDL-65236-master' of git://github.com/marinaglancy/moodle 2019-05-01 14:23:16 +08:00
Ryan Wyllie 69e9190038 MDL-65450 tinymce: fix full screen mode 2019-05-01 14:20:10 +08:00
Adrian Greeve 6120920c2c Merge branch 'MDL-65031-master' of git://github.com/damyon/moodle 2019-05-01 14:02:58 +08:00
Damyon Wiese edf3f4d14f MDL-65031 theme_boost: gradebook notifications
Tell the gradebook page to stack things vertically so that notifications
take the correct amount of space.
2019-05-01 13:47:43 +08:00
Ryan Wyllie f2b65126bc MDL-65418 message: remove use of IE11 incompatible function in JS 2019-05-01 13:21:49 +08:00
Damyon Wiese fde4592c9f MDL-52828 competencies: Breakdown report
Add behat test for the breakdown report, including the activity filter.
2019-05-01 12:00:18 +08:00
Adrian Greeve e3e44b2d2f Merge branch 'MDL-65178-master' of git://github.com/damyon/moodle 2019-05-01 11:56:35 +08:00
Adrian Greeve eee677c024 Merge branch 'MDL-53140-master' of git://github.com/rezaies/moodle 2019-05-01 10:30:22 +08:00
Jun Pataleta f22d0153c2 Merge branch 'MDL-65260' of https://github.com/timhunt/moodle 2019-05-01 10:22:32 +08:00
Shamim Rezaie 47538a6b26 MDL-53140 qtype_calculatedsimple: Support locale-aware decimal points 2019-05-01 12:10:33 +10:00
Shamim Rezaie 75dc90370a MDL-53140 qtype_calculated: Add support for locale-aware decimal points 2019-05-01 12:10:32 +10:00
Shamim Rezaie 326bb5474a MDL-53140 qtype_numerical: Localised decimal separator bug fix
- Support decimal separator when it is not . or ,
- Also make sure that we don't remove . when thousandsseparator is .
- Display the answer fields in the editing form in the localised format
2019-05-01 12:10:32 +10:00
Shamim Rezaie 688c803550 MDL-53140 qtype_numerical: Support locale-aware decimal points 2019-05-01 12:10:32 +10:00
Shamim Rezaie 197e074eba MDL-53140 question: Support localised floats when previewing a question 2019-05-01 12:10:32 +10:00
Shamim Rezaie bb4079498f MDL-53140 core_question: Support localised floats when editing questions 2019-05-01 12:10:32 +10:00
Shamim Rezaie e240a0000a MDL-53140 forms: Added the float form element to the form API 2019-05-01 12:10:23 +10:00
Damyon Wiese 27737ae666 MDL-52828 competencies: Filter by activity
On the competency breakdown report, allow filter by competencies linked to an activity.
2019-05-01 09:58:22 +08:00
Jake Dallimore 096c84dac7 Merge branch 'MDL-60851-master' of git://github.com/damyon/moodle 2019-05-01 09:32:54 +08:00
Damyon Wiese 172117618b MDL-60851 backup: coding style fixes 2019-05-01 08:49:35 +08:00
Damyon Wiese a1bda6b152 MDL-60851 backup: Sanitise setting dependencies
The only different between each setting dependency type is the evaluation of the condition,
and the mform js validation arguments - so that should be the only thing that is extended
by each subclass.
2019-05-01 08:49:35 +08:00
Damyon Wiese 81cbb5b4ef MDL-60851 backup: Fix undefined $value 2019-05-01 08:49:35 +08:00
Damyon Wiese a383911cfa MDL-60851 backup: More unit tests for dependencies 2019-05-01 08:49:35 +08:00
Adrian Greeve d61c9fb853 Merge branch 'MDL-65217-master' of git://github.com/marinaglancy/moodle 2019-05-01 08:35:41 +08:00
Simey Lameze 2eb503494a MDL-65411 core_calendar: wrap long description text 2019-05-01 07:54:34 +08:00
Eloy Lafuente (stronk7) 09ab093dce Merge branch 'MDL-65397-master-enfix' of git://github.com/mudrd8mz/moodle 2019-05-01 01:42:55 +02:00
Eloy Lafuente (stronk7) 09cbe51999 on-demand release 3.7dev+ 2019-05-01 00:29:20 +02:00
Eloy Lafuente (stronk7) e8a92a981f NOBUG: Fixed SVG browser compatibility 2019-05-01 00:29:18 +02:00
Eloy Lafuente (stronk7) 47e2a56400 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-05-01 00:29:17 +02:00
Sara Arjona d5e084bcb6 MDL-5311 qtype_multichoice: replace label to a for clean button
To avoid behat errors with Firefox, the 'Clean my choice' has been
changed from label to link (with role button).
2019-04-30 20:47:33 +02:00
Ryan Wyllie 30513f9740 MDL-65033 mod_forum: Modified sort sql for cross db support 2019-04-30 20:47:30 +02:00
Jake Dallimore 26a94308ee Merge branch 'MDL-65276-master' of git://github.com/lameze/moodle 2019-04-30 20:47:26 +02:00
Adrian Greeve f50b98dbe4 Merge branch 'MDL-64906_hideif_mod' of git://github.com/davosmith/moodle 2019-04-30 20:47:22 +02:00
Andrew Nicols 36639ba84e Merge branch 'MDL-63137' of git://github.com/stronk7/moodle 2019-04-30 20:47:18 +02:00
Eloy Lafuente (stronk7) 41b81d5996 MDL-63137 mod_feedback: discern between user or id better
is_int('1') => false, so better we invert the check that is safer.
2019-04-30 20:47:15 +02:00
Eloy Lafuente (stronk7) f991482446 MDL-65348 lang string: updating an outdated lang string 2019-04-30 20:47:11 +02:00
Eloy Lafuente (stronk7) 557c9679d9 Merge branch 'MDL-65257_master' of git://github.com/markn86/moodle 2019-04-30 20:47:08 +02:00
Eloy Lafuente (stronk7) 0686416663 Merge branch 'MDL-65436-master' of git://github.com/sarjona/moodle 2019-04-30 20:47:04 +02:00
Eloy Lafuente (stronk7) dfb1a3b00e Merge branch 'MDL-57900_master' of git://github.com/dmonllao/moodle 2019-04-30 20:47:01 +02:00
Eloy Lafuente (stronk7) 79c0e53683 Merge branch 'MDL-65348_master' of git://github.com/dmonllao/moodle 2019-04-30 20:46:57 +02:00
Eloy Lafuente (stronk7) 70f3393fe0 Merge branch 'MDL-63137-master' of git://github.com/aanabit/moodle 2019-04-30 20:46:53 +02:00
David Monllaó 0b31a696f0 Merge branch 'MDL-65033-master2' of git://github.com/peterRd/moodle 2019-04-30 20:46:50 +02:00
Jun Pataleta 8f7bb541ad Merge branch 'MDL-65279-master' of https://github.com/tkorner/moodle 2019-04-30 20:46:46 +02:00
Juan Leyva bfae6ca704 MDL-65212 course: Return custom fields in WS
External function core_course_external::get_courses_by_field was not returning custom course fields.
2019-04-30 15:19:45 +02:00
Juan Leyva 8c5850a501 MDL-65141 tool_mobile: Return all the language translations 2019-04-30 14:30:51 +02:00
Juan Leyva f72a482843 MDL-65423 tool_mobile: Fix incorrect option value 2019-04-30 13:38:38 +02:00
Jun Pataleta 1b3a6e7762 MDL-29320 user: Make email query case-insensitive 2019-04-30 16:19:20 +08:00
Jun Pataleta 5a158f82bb MDL-29320 admin: Improve test for multiple accounts with same email
* Use Scenario Outlines
* More coverage:
  - Test for email case-sensitivity
  - Updating user profile as admin
  - Updating own user profile
2019-04-30 16:19:14 +08:00
Jun Pataleta feb154d8b2 MDL-29320 user: Remove @javascript tag for add new user behat test
* It's not necessary and will improve Behat execution time
2019-04-30 14:54:01 +08:00
Tobias Reischmann c887373738 MDL-63959 mod_feedback: Add phpunit tests for get_pages in completion 2019-04-30 07:56:29 +02:00
Ryan Wyllie c32af3a710 MDL-65446 admin: fix admin email option for cli install 2019-04-30 13:29:56 +08:00
Jake Dallimore 3edac09063 MDL-65169 core_message: user search respects profile visibility
Two modes of visibility checking are supported, depending on the value
of the 'messagingallusers' site setting (site-wide messaging):
- If site-wide messaging is enabled, a user may only be returned in
search results if the searching user can view their profile somewhere
(either the site profile or any course profile).
- If site-wide messaging is disabled, a user may only be returned in
search results if the searching user shares a course with them and can
view their course profile in the shared course.
2019-04-30 11:25:46 +08:00
Ryan Wyllie 8673975999 MDL-65388 mod_book: format plugin file urls when printing book 2019-04-30 10:45:01 +08:00
Jonathon Fowler b2512618f1 MDL-65445 qtype_ddwtos: reposition draggables when the drops move 2019-04-30 12:43:21 +10:00
Mark Nelson 57532ad680 MDL-65344 core_message: deprecate get_individual_conversations_between_users() 2019-04-30 10:35:55 +08:00
AMOS bot fde828db5f Automatically generated installer lang files 2019-04-30 00:12:17 +00:00
Zoltán Szarvas 5b8d533067 MDL-63959 mod_feedback: Fixed nested dependency handling
For example the dependecy chain is the following: A->B->C. When a
question (A) depends on another dependent item (B) and B hasn't
displayed (because of C's response), the $value for the B's response
will be null. In this case the can_see_item() method returned
null. Because the can_see_item() returned null (not false), the
get_pages() method displayed the question A, because it checks for
explicit false: $this->can_see_item($item) !== false.
Now, false is also returned, if the dependent question is not visible.
2019-04-29 18:27:51 +02:00
David Monllaó 352ab7464e MDL-65348 analytics: Upcoming periodic from time() 2019-04-29 16:51:04 +02:00
Shamim Rezaie f8c31abad0 MDL-53140 forms: Implement validateSubmitValue for the group element
The group element needs to call validateSubmitValue() for all of its
containing elements.
2019-04-29 23:43:11 +10:00
Shamim Rezaie 4d0ac716bc MDL-53140 behat: Allow language customisation in behat 2019-04-29 23:43:11 +10:00
Shamim Rezaie 13230ed7f3 MDL-53140 core: Introduced PARAM_LOCALISEDFLOAT 2019-04-29 23:43:11 +10:00
Marina Glancy f82c9d8d06 MDL-65217 form: option to randomise element ids 2019-04-29 14:23:27 +02:00
Marina Glancy 521989ec56 MDL-65217 form: id for error area 2019-04-29 14:23:27 +02:00
Marina Glancy 086aa543b9 MDL-65217 form: allow to pass attributes to course element 2019-04-29 14:23:27 +02:00
Ruslan Kabalin 91a485a040 MDL-65217 core_form: use defined element id for filemanager.
Removing unnamed input element (was introduced in ce47962), this has no
purpose apart of being label destination.
2019-04-29 14:23:27 +02:00
Ruslan Kabalin 0ceb6751aa MDL-65217 core_form: use uniqie element ids in listing. 2019-04-29 14:23:26 +02:00
Ruslan Kabalin 54e067dd47 MDL-65217 core_form: use uniqie element id in filepicker 2019-04-29 14:23:26 +02:00
Peter cda9da9907 MDL-65033 mod_forum: Move locked functionality into action menu
Moved the lock functionality into the menu which exposes it to the
discussion list
2019-04-29 19:15:42 +08:00
Sara Arjona 50255ba981 MDL-65436 message: fix error while upgrading legacy self-conversations
Delete self-messages from the legacy message_read table once they
are migrated.
2019-04-29 11:53:56 +02:00
David Mudrák 234b37046f MDL-65397 lang: Use the new strings in Behat scenarios 2019-04-29 11:47:10 +02:00
Helen Foster f1264719f4 MDL-65397 lang: Import fixed English strings (en_fix)
Significant string changes:

* direct:view,gradeimport_direct - wording corrected from 'CSV' to
  'spreadsheet'
* limitanswers_help,mod_choice - additional wording added explaining how
  the setting works with groups
* pluginname,customfield_text  - 'Text field' plugin renamed to
  'Short text'
2019-04-29 11:46:26 +02:00
Peter d3cac88dac MDL-65033 mod_forum: Testing updates
Testing and code updates after rebase
2019-04-29 16:30:50 +08:00
Peter 279128bbc2 MDL-65033 mod_forum: Update existing function to include starring params 2019-04-29 16:28:33 +08:00
Peter ac91531670 MDL-65033 mod_forum: Accessibility updates 2019-04-29 16:27:04 +08:00
Peter 13cd05ac14 MDL-65033 mod_forum: Pass the favourites into the exporter
Query and pass the favouriting information into the exporter instead of within the exporter itself
2019-04-29 16:27:04 +08:00
Peter 8885cd573a MDL-65033 mod_forum: Feedback updates 2019-04-29 16:27:04 +08:00
Peter 309e869827 MDL-65033 mod_forum: Externallib tests 2019-04-29 16:22:04 +08:00
Peter 24962ee1d7 MDL-65033 mod_forum: Hook up the pin toggle via AJAX 2019-04-29 16:21:14 +08:00
andrewnicols 25a97f99a9 MDL-65033 mod_forum: Toggle pin state via ajax 2019-04-29 16:16:15 +08:00
andrewnicols 34e2f9c0c2 MDL-65033 mod_forum: pin_toggle js 2019-04-29 16:14:13 +08:00
andrewnicols a726053616 MDL-65033 mod_forum: Set pin state external service 2019-04-29 16:14:13 +08:00
Peter 27ca632f5d MDL-65033 mod_forum: Fix up the unit tests 2019-04-29 16:10:00 +08:00
Peter bf20111664 MDL-65033 mod_forum: incorporate the new icons into the UI 2019-04-29 16:10:00 +08:00
barbararamiro 52d5487219 MDL-65033 mod_forum: New star icons 2019-04-29 16:10:00 +08:00
Peter 897ac0de9e MDL-65033 mod_forum: Behat and unit tests for favouriting 2019-04-29 16:10:00 +08:00
Peter e7e6a72164 MDL-65033 mod_forum: Add a new menu dropdown to the forum list
* Add new dropdown
* Pass the pinned discussion URL
* Add a new template for the pinned html
2019-04-29 16:08:30 +08:00
Peter 99bda8a7ff MDL-65033 mod_forum: Favouriting in forum
Modify the discussion vault to take into account the favourite sql and also sort by favourite
2019-04-29 16:08:30 +08:00
David Monllaó a89077e49f MDL-57900 analytics: Site info settings 2019-04-29 09:29:03 +02:00
Mark Nelson 5221be53da MDL-65257 message_email: apply filters to course and group names 2019-04-29 15:20:29 +08:00
Jake Dallimore fa1d3dff72 Merge branch 'MDL-5311-master' of git://github.com/lameze/moodle 2019-04-29 15:19:31 +08:00
Simey Lameze 2589dcea7b MDL-5311 qtype_multichoice: make clear choice option accessible
Thanks to Damyon for the help with accessibility.
2019-04-29 15:16:08 +08:00
Simey Lameze 9064f17bbc MDL-5311 qtype_multichoice: add php unit tests for the new option 2019-04-29 15:14:38 +08:00
Simey Lameze 1ff3987600 MDL-5311 qtype_multichoice: add behat scenario to question preview 2019-04-29 15:14:38 +08:00
Simey Lameze 3c1717bb09 MDL-5311 qtype_multichoice: add a bit of styling to the option 2019-04-29 15:14:34 +08:00
Mark Nelson aa0792484e MDL-65257 message_email: add images to digest 2019-04-29 15:01:30 +08:00
Sara Arjona bef6805656 Merge branch 'MDL-64702-master' of git://github.com/damyon/moodle 2019-04-29 08:34:21 +02:00
Adrian Greeve 5d57265abf Merge branch 'MDL-36088-master' of https://github.com/lethevinh/moodle 2019-04-29 14:12:53 +08:00
Simey Lameze f6a778497e MDL-5311 qtype_multichoice: add clear my choice option 2019-04-29 14:04:51 +08:00
Jake Dallimore 31d3c76602 MDL-65169 core_message: add behat step allowing searching for a string
New step: 'I search for "xx" in messaging'.
2019-04-29 13:45:52 +08:00
Jun Pataleta 92451f3a8a Merge branch 'MDL-65206-master' of git://github.com/tobiasreischmann/moodle 2019-04-29 12:44:33 +08:00
VinhLe 4ca60a5660 MDL-36088 questions: Add new events 2019-04-29 11:16:19 +07:00
Stephen Bourget 93e435b909 MDL-36088 questions: Add new events 2019-04-29 11:15:36 +07:00
AMOS bot 6e42c754a2 Automatically generated installer lang files 2019-04-27 00:12:32 +00:00
Eloy Lafuente (stronk7) 1f256b1ccb Merge branch 'MDL-65428-master' of git://github.com/marinaglancy/moodle 2019-04-26 19:45:25 +02:00
Eloy Lafuente (stronk7) 14cdf51189 on-demand release 3.7dev+ 2019-04-26 18:43:25 +02:00
Eloy Lafuente (stronk7) 0297152be9 NOBUG: Fixed SVG browser compatibility 2019-04-26 18:43:23 +02:00
Amaia Anabitarte b81d770f8f MDL-63137 mod_feedback: PHPUnit tests for new userid parameter 2019-04-26 17:18:12 +02:00
Amaia Anabitarte 094ce30779 MDL-63137 mod_feedback: mod_feedback_core_calendar_provide_event_action
Update mod_feedback_core_calendar_provide_event_action function to add a new userid parameter
Add userid to check capabilities, etc. to feedback completion and structure.
2019-04-26 17:18:12 +02:00
Marina Glancy b8a5c8528a MDL-65428 core_tag: fix callback param type 2019-04-26 13:11:05 +02:00
Sara Arjona 1cf2436fe5 Merge branch 'MDL-64676-master-fix' of https://github.com/snake/moodle 2019-04-26 11:50:27 +02:00
Sara Arjona e59294e5c6 Merge branch 'MDL-65032-master-fix' of git://github.com/junpataleta/moodle 2019-04-26 10:08:44 +02:00
Jun Pataleta fdbadf824c MDL-65032 mod_forum: Use correct template context data 'istimelocked' 2019-04-26 15:42:54 +08:00
Amaia Anabitarte dcfd143310 MDL-63137 mod_feedback: Pointing TODO tasks to right deprecation issue 2019-04-26 09:37:02 +02:00
Jake Dallimore ca264ee670 MDL-64676 core_message: fix legacy behat step which failed on firefox
Old step was looking for a link, which didn't exist. Now, we use image.
2019-04-26 15:22:43 +08:00
Jake Dallimore 694ce91725 Merge branch 'MDL-58581-master-take2' of https://github.com/lucaboesch/moodle 2019-04-26 12:03:33 +08:00
Jun Pataleta f80ae63efa Merge branch 'MDL-64573-master' of git://github.com/damyon/moodle 2019-04-26 10:59:30 +08:00
Marina Glancy 669d54a48c MDL-64573 calendar: behat fix, validation is now on client 2019-04-26 10:57:04 +08:00
Jun Pataleta cb7263feb0 Merge branch 'MDL-64573-master' of git://github.com/damyon/moodle 2019-04-26 10:50:55 +08:00
Jun Pataleta 92996b16ab Merge branch 'MDL-65032-master' of git://github.com/peterRd/moodle 2019-04-26 09:52:47 +08:00
Peter 8666dfec6f MDL-65032 mod_forum: Remove unused discussion userid 2019-04-26 09:45:57 +08:00
Eloy Lafuente (stronk7) 176aad96e5 Merge branch 'MDL-65416-master' of git://github.com/bmbrands/moodle 2019-04-25 23:43:32 +02:00
Eloy Lafuente (stronk7) c495b17c5f MDL-60418 Behat: Fix missing $installurl 2019-04-25 23:38:01 +02:00
Eloy Lafuente (stronk7) c080369cb9 Merge branch 'MDL-60418' of git://github.com/timhunt/moodle 2019-04-25 23:25:51 +02:00
Tim Hunt d1ac356a8b MDL-60418 Behat: Fix broken docs links in Behat code. 2019-04-25 21:32:48 +01:00
Eloy Lafuente (stronk7) 47fde8415e Merge branch 'MDL-65412-master' of http://github.com/dravek/moodle 2019-04-25 20:02:47 +02:00
David Monllaó b63c0b9079 Merge branch 'MDL-60680-master' of git://github.com/jleyva/moodle 2019-04-25 18:55:45 +02:00
David Monllaó 2fbc2e4589 Merge branch 'MDL-64673-master' of git://github.com/aanabit/moodle 2019-04-25 18:40:49 +02:00
Juan Leyva a129ba04c4 MDL-60680 notifications: Support privacy API 2019-04-25 14:55:59 +02:00
Juan Leyva 2356454f21 MDL-60680 notifications: Include action buttons information 2019-04-25 14:55:57 +02:00
Juan Leyva 36fa0ec900 MDL-60680 notifications: Return custom data in notifications 2019-04-25 14:55:18 +02:00
Bas Brands 118e1fead8 MDL-65416 theme_classic: change theme screenshot in theme selector 2019-04-25 13:42:51 +02:00
Amaia Anabitarte a58fbd4864 MDL-64673 core_message: Modifying group_messate_tab xpath 2019-04-25 10:09:19 +02:00
Sara Arjona 471b4e371b Merge branch 'MDL-65069' of git://github.com/stronk7/moodle 2019-04-25 08:24:33 +02:00
Eloy Lafuente (stronk7) be35977db8 MDL-65069 mod_forum: moodle_url to ensure we call the correct post.php
No matter where the inline edition is happening (forum or social course)
2019-04-25 02:35:30 +02:00
Eloy Lafuente (stronk7) ed77525589 Merge branch 'MDL-65407-master' of git://github.com/sarjona/moodle 2019-04-24 23:34:48 +02:00
Eloy Lafuente (stronk7) 03bd681143 Merge branch 'MDL-65170-master' of https://github.com/sarjona/moodle 2019-04-24 20:36:50 +02:00
Eloy Lafuente (stronk7) 76dcc17dbe Merge branch 'MDL-65056-master' of https://github.com/sarjona/moodle 2019-04-24 20:12:54 +02:00
David Monllaó 76023e44d0 Merge branch 'MDL-64672-master' of git://github.com/aanabit/moodle 2019-04-24 20:06:13 +02:00
David Monllaó c7f11fab18 Merge branch 'MDL-64665-master' of git://github.com/cescobedo/moodle 2019-04-24 20:00:03 +02:00
Sara Arjona bd9b502ac6 MDL-65170 core_user: fix behat for viewing full profile
Users belonging to the same course with separate groups forced
will only be able to find their contacts or other users on the
same group.
2019-04-24 19:40:25 +02:00
cescobedo 9a497f8bbc MDL-64665 core_message: Behat tests for manage preferences 2019-04-24 18:33:12 +02:00
cescobedo 5d0119772b MDL-64665 core_message: New step to open settings preferences 2019-04-24 18:33:12 +02:00
Sara Arjona 0ac6fbfd66 MDL-65056 completion: fix behat tests for survey 2019-04-24 18:32:25 +02:00
David Monllaó 3c48793849 Merge branch 'MDL-64985-master' of git://github.com/sarjona/moodle 2019-04-24 18:13:21 +02:00
David Monllaó c3f1ee9517 Merge branch 'MDL-64666-master' of git://github.com/aanabit/moodle 2019-04-24 18:07:22 +02:00
Amaia Anabitarte 536c19ddd2 MDL-64673 core_message: Starring conversations behat test 2019-04-24 17:59:56 +02:00
Amaia Anabitarte a8915a3a7f MDL-64666 core_message: Favourite private conversations data generator 2019-04-24 17:59:56 +02:00
Sanya Negi 5530d87303 MDL-58581 editor_atto: change paragraph icon. 2019-04-24 17:55:51 +02:00
Sara Arjona d03f037431 MDL-64985 message: display aria label to the mute icon 2019-04-24 17:53:50 +02:00
Sara Arjona 84ec82f74d MDL-64985 message: deprecate unused strings 2019-04-24 17:53:40 +02:00
Sara Arjona 43825b428a MDL-64985 message: display aria label in user profile link
Remove the aria-hidden label to display the label/text in
the user profile link.
2019-04-24 17:53:32 +02:00
Sara Arjona 2e9a457330 MDL-64985 message: add better aria labels to the actions menu
Add better aria labels to the action menus in messaging, renaming
some labels and declaring it as a menu.
2019-04-24 17:53:23 +02:00
Sara Arjona 13fe002e8e MDL-64985 message: add aria label to cancel selection button
Add aria labels for cancel edit message button (the little cross
when selecting messages).
2019-04-24 17:53:15 +02:00
David Monllaó 03876f0b89 Merge branch 'MDL-65207-master' of git://github.com/lameze/moodle 2019-04-24 17:52:10 +02:00
Amaia Anabitarte 01973d34a1 MDL-64666 core_message: New behat test for delete conversation 2019-04-24 17:42:14 +02:00
Amaia Anabitarte 173be4856f MDL-64666 core_message: Favourite private conversations data generator 2019-04-24 17:42:14 +02:00
David Monllaó 45c8b226be Merge branch 'MDL-64782-master' of git://github.com/rezaies/moodle 2019-04-24 17:37:45 +02:00
David Matamoros baf5551cac MDL-65412 core_customfield: check configdata link exists 2019-04-24 17:30:02 +02:00
Sara Arjona deef58606e MDL-65407 message: exclude deleted users upgrading self-conversations
Exclude deleted users during the upgrade process to avoid errors when
the site has hard-deleted users.
2019-04-24 16:55:48 +02:00
Eloy Lafuente (stronk7) 439af892b1 Merge branch 'MDL-64151-master-fix' of https://github.com/marinaglancy/moodle 2019-04-24 12:21:38 +02:00
Peter d4b1eee6ee MDL-65134 core_message: Rerender the message with the updated last msg
* When a new last message we need to reorder the messages within the
message list. Call render for this.
* Standardize the cached items
* Delete cached entries on clear
2019-04-24 17:46:16 +08:00
Marina Glancy 3340758b98 MDL-64151 forms: select element without selection
Select element that is not multiple should export null when nothing is
selected. If the element is displayed there will always be something
selected.
2019-04-24 11:34:13 +02:00
Jake Dallimore 5b0aa01fae Merge branch 'MDL-64267-master' of git://github.com/bmbrands/moodle 2019-04-24 16:54:55 +08:00
Jun Pataleta b3c8984c0e Merge branch 'MDL-65032-master' of git://github.com/peterRd/moodle 2019-04-24 16:18:06 +08:00
Damyon Wiese 260565e305 MDL-64573 output: ajax form event
Add an event that can be fired when an mform is about to be submitted via ajax.
This allows custom field types to perform an action when the form is submitted.

The atto text editor will reset any autosaves when the form is submitted.
2019-04-24 16:17:49 +08:00
Amaia Anabitarte fe00d14d7e MDL-64672 core_message: Behat tests for unread messages 2019-04-24 09:55:17 +02:00
Amaia Anabitarte 7042ecf7ed MDL-64666 core_message: Favourite private conversations data generator 2019-04-24 09:55:17 +02:00
Peter 565cccfafa MDL-65032 mod_forum: Update existing function to include lock params 2019-04-24 15:52:21 +08:00
Bas Brands 929706015b MDL-64267 core_message: sticky positioning of contact request info 2019-04-24 09:27:37 +02:00
Sara Arjona c5625cfbc7 Merge branch 'MDL-65056-master' of git://github.com/abias/moodle 2019-04-24 09:18:25 +02:00
Tobias Reischmann 6d2b7d5028 MDL-64267 core_message: Removed pb-2 from message-container
The padding at the bottom broke layout in clean theme since it caused an
overflow, which resulted in a second scrollbar on the message-drawer.
2019-04-24 09:17:32 +02:00
Tobias Reischmann 28c007b2e7 MDL-64267 core_message: Moved contact-request to dont cause scrollbar
The contact-request-sent-message-container was outside of the
conversation body and caused multiple overflows and thus multiple
scrollbars. Moving it inside does not have an effect on the layout
except one scrollbar is enough now.
2019-04-24 09:16:29 +02:00
Sara Arjona bbbaeedfdc Merge branch 'MDL-65170-master' of https://github.com/snake/moodle 2019-04-24 09:02:20 +02:00
Jun Pataleta e145874b8b Merge branch 'MDL-65069-master' of git://github.com/peterRd/moodle 2019-04-24 14:19:17 +08:00
Peter bdb4a87daa MDL-65032 mod_forum: Updates based on Jun's feedback 2019-04-24 12:49:41 +08:00
Peter 0547bed1a5 MDL-65032 mod_forum: Add locked column to the backup table. 2019-04-24 12:05:32 +08:00
Peter cb28132dce MDL-65069 mod_forum: Remove unused code and additional dev docs.
Additional updates to setting default subscription value for discussions
2019-04-24 12:01:37 +08:00
Peter c475fe410f MDL-65032 mod_forum: Pass the the entity factories into the vaults 2019-04-24 11:56:23 +08:00
Peter f5b4320ec5 MDL-65032 mod_forum: Behat test for locking 2019-04-24 11:55:51 +08:00
Peter 2893812eb0 MDL-65032 mod_forum: Add discussion locking functionality 2019-04-24 11:55:37 +08:00
Peter 2aff2c19a9 MDL-65069 mod_forum: Behat test for the inline form 2019-04-24 10:29:30 +08:00
Peter 0d71eee8b5 MDL-65069 mod_forum: Pass the class to style the button 2019-04-24 10:29:30 +08:00
Peter e455d6f483 MDL-65069 core_form: Expose the form's submit's class attribute
Exposed the submit button's class attribute so it can be overriden by
custom classes provided by the programmer.
2019-04-24 10:29:30 +08:00
Peter 97babbf7d7 MDL-65069 mod_forum: Stripped out inpage form and advanced redirect
* Stripped out the form for the inpage on the discussion list page.
* Tweaked the 'Advanced' redirect to take into account a nosubmit button
 which populates the subject, message and any files used within it.
2019-04-24 10:29:30 +08:00
Peter 9ff7cae7c0 MDL-65069 mod_forum: inline 'add discussion' form 2019-04-24 10:29:30 +08:00
Adrian Greeve 082740b7c6 Merge branch 'MDL-65375-master' of https://github.com/sammarshallou/moodle 2019-04-24 10:28:29 +08:00
Adrian Greeve 4962446a44 Merge branch 'MDL-65308' of git://github.com/stronk7/moodle 2019-04-24 09:27:07 +08:00
Eloy Lafuente (stronk7) fc8a72b4cb Merge branch 'MDL-65382-master' of git://github.com/junpataleta/moodle 2019-04-24 00:04:45 +02:00
Eloy Lafuente (stronk7) f7b52799e6 MDL-65354 core: pretend that 'moodle/course:browse' never existed
As far as the old capability only was added to master and we are
renaming it before release:

- don't need to deprecate the lang string.
- don't need to make any reference to it in the upgrade.txt info

So, basically, pretend it never existed.
2019-04-23 23:55:35 +02:00
Eloy Lafuente (stronk7) 1470cfc2fd Merge branch 'MDL-65354-master' of git://github.com/lameze/moodle 2019-04-23 23:45:21 +02:00
Eloy Lafuente (stronk7) ac753bdd29 Merge branch 'MDL-64676-master' of https://github.com/aanabit/moodle 2019-04-23 19:45:18 +02:00
Eloy Lafuente (stronk7) 1e36bcfb67 Merge branch 'MDL-64151-master' of git://github.com/marinaglancy/moodle 2019-04-23 19:26:47 +02:00
Eloy Lafuente (stronk7) bc342f101a on-demand release 3.7dev+ 2019-04-23 17:36:46 +02:00
Eloy Lafuente (stronk7) 3339cbf26a MDL-64017 message_email: trailing whitespace fix 2019-04-23 14:06:00 +02:00
Eloy Lafuente (stronk7) ea8a32f84c Merge branch 'MDL-65324-master-fix' of git://github.com/junpataleta/moodle 2019-04-23 14:00:44 +02:00
Jun Pataleta 3eed2af1d1 MDL-65324 mod_forum: Fix tests for timed discussion settings 2019-04-23 14:00:41 +02:00
Adrian Greeve e15703efbd Merge branch 'MDL-64703-master-fix-1' of https://github.com/ryanwyllie/moodle 2019-04-23 14:00:37 +02:00
Ryan Wyllie fcf393a100 MDL-64703 message: fix group conversation heading alignment 2019-04-23 14:00:33 +02:00
Adrian Greeve 0e483ba3a8 Merge branch 'MDL-64017_master-fix' of https://github.com/markn86/moodle 2019-04-23 14:00:30 +02:00
Eloy Lafuente (stronk7) 1f39068e03 Merge branch 'MDL-65248' of git://github.com/stronk7/moodle 2019-04-23 13:56:06 +02:00
Eloy Lafuente (stronk7) 9c0edd1212 MDL-65248 analytics: Replace upgrade script to apply for all moves
While strictly we don't nedd to provide an upgrade path for master,
any dev/integration site already using some of the 3.7 new tagets
in models will break (class rename/move) if we don't perform the
update of all them.

This commit takes rid of the previous upgrade step, only performing
the update of a couple of targets and now supports all the (5) targets:

- course_dropout
- course_competencies
- course_completion
- course_gradetopass
- no_teaching
2019-04-23 13:53:46 +02:00
Eloy Lafuente (stronk7) 3df9c60390 MDL-65248 core_user: Move some upcoming_activities_due strings
From course lang files to user lang files (where the target belongs to)

AMOS BEGIN
    MOV [target:upcomingactivitiesdue,core_course],[target:upcomingactivitiesdue,core_user]
    MOV [target:upcomingactivitiesdue_help,core_course],[target:upcomingactivitiesdue_help,core_user]
AMOS END
2019-04-23 13:53:42 +02:00
Jun Pataleta 0f39613771 Merge branch 'MDL-65311-xml-files' of https://github.com/brendanheywood/moodle 2019-04-23 13:53:39 +02:00
Jun Pataleta 72f7e3f198 Merge branch 'MDL-65324-master' of git://github.com/peterRd/moodle 2019-04-23 13:53:35 +02:00
Eloy Lafuente (stronk7) 5dec930fb0 Merge branch 'MDL-62459' of git://github.com/stronk7/moodle 2019-04-23 13:53:24 +02:00
Eloy Lafuente (stronk7) 0d575a542a Merge branch 'MDL-65248_master' of git://github.com/dmonllao/moodle 2019-04-23 13:50:22 +02:00
David Monllaó 080fb03d25 Merge branch 'MDL-64924' of git://github.com/Chocolate-lightning/moodle 2019-04-23 13:44:12 +02:00
David Monllaó 04f41dc247 Merge branch 'MDL-64102-master' of git://github.com/bmbrands/moodle 2019-04-23 13:44:08 +02:00
David Monllaó 2f3c8da164 Merge branch 'MDL-61199-master' of git://github.com/jleyva/moodle 2019-04-23 13:44:04 +02:00
Eloy Lafuente (stronk7) 735122c33f Merge branch 'MDL-64641-master' of git://github.com/jleyva/moodle 2019-04-23 13:43:56 +02:00
David Monllaó 906800a082 Merge branch 'MDL-65102-master' of git://github.com/rezaies/moodle 2019-04-23 13:42:37 +02:00
David Monllaó 6dbe565998 Merge branch 'MDL-65211-master' of git://github.com/jleyva/moodle 2019-04-23 13:42:33 +02:00
David Monllaó 1986293d78 Merge branch 'MDL-65251-master' of git://github.com/junpataleta/moodle 2019-04-23 13:42:30 +02:00
Eloy Lafuente (stronk7) b780451d9f Merge branch 'MDL-65254-master' of git://github.com/cescobedo/moodle 2019-04-23 13:42:08 +02:00
David Monllaó f729aea695 Merge branch 'MDL-65255-master' of git://github.com/jleyva/moodle 2019-04-23 13:36:57 +02:00
David Monllaó 296a85db86 Merge branch 'MDL-65184' of git://github.com/Chocolate-lightning/moodle 2019-04-23 13:36:53 +02:00
David Monllaó 8de5c25696 Merge branch 'MDL-64701-category-customfields-master' of https://github.com/dmitriim/moodle 2019-04-23 13:36:50 +02:00
Juan Leyva 26e778d1b7 MDL-60680 file: Support any user id when creating tokens for files.
$includetoken parameter type has been changed. Now supports:
   boolean: False indicates to not include the token, true indicates to generate a token for the current user ($USER).
   integer: Indicates to generate a token for the user whose id is the integer value.
2019-04-23 13:16:15 +02:00
Juan Leyva 333d11c9fc MDL-60680 notifications: New customdata field
New field to store custom data for message processors.
2019-04-23 13:15:24 +02:00
Juan Leyva c13438158b MDL-60680 message_output: Change message provider defaults
Since some versions ago the app allows a good user control of notifications.
This is why we should be enabling more notifications (mostly for students) by default.
2019-04-23 13:09:06 +02:00
Shamim Rezaie 55fec3126d MDL-64782 mnetservice_enrol: Performance improvement 2019-04-23 17:01:48 +10:00
Shamim Rezaie 30ce76c792 MDL-64782 core_badges: Performance improvement 2019-04-23 17:01:48 +10:00
Shamim Rezaie 1916f2be8f MDL-64782 core_enrol: Performance improvement 2019-04-23 17:01:48 +10:00
Shamim Rezaie 7a2e7b29a0 MDL-64782 core_backup: Performance improvement 2019-04-23 17:01:48 +10:00
Shamim Rezaie fd6096c449 MDL-64782 core_calendar: Performance improvement 2019-04-23 17:01:48 +10:00
Shamim Rezaie ac2bfc2c37 MDL-64782 core_calendar: Privacy deletion fix
Deleting in course context should not delete from course modules
2019-04-23 17:01:48 +10:00
Shamim Rezaie 0c8cb62e8e MDL-64782 core_cohort: Performance improvement 2019-04-23 17:01:48 +10:00
Shamim Rezaie acb25c6534 MDL-64782 tool_monitor: Performance improvement 2019-04-23 17:01:48 +10:00
Shamim Rezaie 6d817db08e MDL-64782 report_stats: Performance improvement 2019-04-23 17:01:48 +10:00
Shamim Rezaie 0452337d1a MDL-64782 core_group: Performance improvement 2019-04-23 17:01:48 +10:00
Shamim Rezaie a5f7de8777 MDL-64782 core_completion: Performance improvement 2019-04-23 17:01:48 +10:00
Mark Nelson c01533646d MDL-64017 message_email: fixed incorrect unread count 2019-04-23 12:15:35 +08:00
Damyon Wiese b3337bd5a4 MDL-64702 badges: Add missing data to backup
Backup and restore of badges is missing data:
* alignments
* endorsement

Also added to "clone" (duplicate a badge).
2019-04-23 11:14:00 +08:00
Damyon Wiese 0dc93da62a MDL-64702 badges: Add to privacy
Add endorsement, related badges and alignment to privacy export.
2019-04-23 11:13:55 +08:00
Eloy Lafuente (stronk7) e77ed805f0 on-demand release 3.7dev+ 2019-04-23 10:47:17 +08:00
AMOS bot 391ab03dfc Automatically generated installer lang files 2019-04-23 10:47:17 +08:00
David Monllaó 3d15deff15 Merge branch 'MDL-65222' of git://github.com/timhunt/moodle 2019-04-22 09:08:37 +02:00
Eloy Lafuente (stronk7) 594717128d MDL-62459 database: remove unused table role_sortorder 2019-04-22 01:37:14 +02:00
Eloy Lafuente (stronk7) 65c6deca6f Merge branch 'MDL-65378_master' of git://github.com/dmonllao/moodle 2019-04-22 01:03:34 +02:00
Eloy Lafuente (stronk7) 1d75eb9bad Merge branch 'MDL-65275_master' of git://github.com/markn86/moodle 2019-04-22 00:58:37 +02:00
Alexander Bias d6cea5ccd9 MDL-65056 completion: Hide checkboxes on course page for teachers 2019-04-19 11:40:00 +02:00
sam marshall 7e604b418e MDL-65375 Restore: Log restore must support new jsonformat setting
Includes support for the new jsonformat setting in logstore_standard
and logstore_database.

Also includes a bugfix where the restore used to restore NULL into
'other' fields, which were not null otherwise, so it was inconsistent
with normal logging.
2019-04-18 16:07:01 +01:00
Adrian Greeve 8c67db30a6 Merge branch 'MDL-64017_master' of git://github.com/markn86/moodle 2019-04-18 16:18:22 +08:00
Mark Nelson 168d782ff8 MDL-64017 message_email: task to send messages as a digest 2019-04-18 16:03:27 +08:00
Jun Pataleta a0653e5c4a MDL-65382 tool_dataprivacy: Fix appearance of status labels 2019-04-18 15:29:07 +08:00
Jun Pataleta 83d4204ef1 MDL-65382 mod_lti: Fix appearance of status labels 2019-04-18 15:28:48 +08:00
Jun Pataleta eecb7dc093 MDL-65382 admin: Fix appearance of status labels 2019-04-18 15:28:15 +08:00
Jun Pataleta da5a90a822 Merge branch 'MDL-64137-master' of git://github.com/bmbrands/moodle 2019-04-18 14:55:20 +08:00
Bas Brands 2902ca9d92 MDL-64017 message_email: Added mustache templates for email 2019-04-18 14:28:09 +08:00
Mark Nelson d5d4a5aab2 MDL-64017 core_message: can specify conversation to view on index page 2019-04-18 14:28:09 +08:00
Mark Nelson 9b6034bc77 MDL-64017 message_email: populate new DB table when required 2019-04-18 14:28:09 +08:00
Mark Nelson c210455a4c MDL-64017 core: remove group conversation check for processors
We now want to allow processors to process group messages.
2019-04-18 14:28:09 +08:00
Mark Nelson ca754fc8c2 MDL-64017 core_message: pass conversation type to processors 2019-04-18 14:28:09 +08:00
Mark Nelson 9bc1b8f8da MDL-64017 message_email: updated privacy provider 2019-04-18 14:28:09 +08:00
Mark Nelson 97c85a001c MDL-64017 message_email: add new database table
This table will be responsible for storing the messages
that need to be emailed, but have not yet. A task will
run that will email these and then remove them from the
table.
2019-04-18 14:28:09 +08:00
Adrian Greeve 48fa567da2 Merge branch 'MDL-29318-master' of git://github.com/junpataleta/moodle 2019-04-18 13:48:33 +08:00
Adrian Greeve eae20bc94a MDL-64715 core_message: Fix for message upgrade db prefix. 2019-04-18 11:47:13 +08:00
Jun Pataleta 9f23a65e0c Merge branch 'MDL-64956-master2' of git://github.com/peterRd/moodle 2019-04-18 11:09:49 +08:00
Adrian Greeve 862a9b1d60 Merge branch 'MDL-64715-master-self-starred-pr-ryan' of git://github.com/sarjona/moodle 2019-04-18 11:06:57 +08:00
Adrian Greeve e16ab06b46 Merge branch 'MDL-64703-master' of git://github.com/bmbrands/moodle 2019-04-18 09:12:43 +08:00
Simey Lameze 3bc573501a MDL-65354 core: replace all usages of old cap 2019-04-18 08:57:52 +08:00
Simey Lameze d26749b74c MDL-65354 core: rename course:browse cap to category:browsecourses 2019-04-18 08:57:48 +08:00
Peter a0c9b6afcc MDL-64956 mod_forum: Updates based on IR 2019-04-18 06:40:22 +08:00
Eloy Lafuente (stronk7) 019004dcc7 on-demand release 3.7dev+ 2019-04-17 20:07:01 +02:00
Eloy Lafuente (stronk7) 7404b9de9b Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-04-17 20:06:58 +02:00
David Monllaó acaf0977a8 MDL-65378 tool_analytics: Add missing require 2019-04-17 13:56:04 +02:00
David Monllaó 6289f6afe3 Merge branch 'MDL-62907' of https://github.com/stronk7/moodle 2019-04-17 11:16:44 +02:00
Eloy Lafuente (stronk7) 65453b9861 MDL-62907 Logging: Allow nulls on info, cases have been detected 2019-04-17 10:43:02 +02:00
Peter 9b4f09bad2 MDL-64956 mod_forum: Inpage reply
* Basic functionality for an inpage reply. With advanced link that takes you to the previous "Reply page".
* Updated behat function to handle the additional step
* Updated templates to have some identifiers on where one is storing the replies post
* Updated discussion_post to use the new vault functions to get the corresponding records
* Jumpto newly created post
2019-04-17 10:13:41 +08:00
Eloy Lafuente (stronk7) 9bcfd21bcd Merge branch 'MDL-65137' of https://github.com/KietChan/moodle 2019-04-17 00:49:21 +02:00
Eloy Lafuente (stronk7) 89fbc3ec9a Merge branch 'MDL-65179-master' of https://github.com/sammarshallou/moodle 2019-04-16 22:37:23 +02:00
Ryan Wyllie 69efd0337b MDL-64715 message: improve the front-end for the self-conversations 2019-04-16 12:06:28 +02:00
David Monllaó 4e5fd9e14d Merge branch 'MDL-64855_fixviews' of git://github.com/dmonllao/moodle 2019-04-16 11:14:51 +02:00
Tom Dickman c7d625a728 MDL-64855 block_myoverview: Fix list and summary views 2019-04-16 11:13:43 +02:00
Eloy Lafuente (stronk7) 7f7b751ea2 Merge branch 'MDL-64777_delete-static' of https://github.com/dmonllao/moodle 2019-04-16 10:59:55 +02:00
David Monllaó 6fce5a13cc MDL-64777 tool_analytics: Static models can also be deleted 2019-04-16 10:46:20 +02:00
Adrian Greeve a251ed8be7 Merge branch 'MDL-65034-master' of git://github.com/ryanwyllie/moodle 2019-04-16 13:19:15 +08:00
Ryan Wyllie 8dbe769988 MDL-65034 mod_forum: fix author for single discussion forum 2019-04-16 10:51:43 +08:00
Eloy Lafuente (stronk7) 0b9d7d93f8 MDL-65308 core: change a couple of unsafe preg_quote() cases
With PHP 7.3, the hash (#) is being escaped by preg_quote().

While normally that doesnt have much impact and normal operations
continue working perfectly... when the results of the function are
used to match against the same string... they don't match anymore.

Have found a couple of there double-uses in core and this
commit fixes them. Covered with tests.
2019-04-16 01:40:47 +02:00
Eloy Lafuente (stronk7) f79881b8d0 Merge branch 'MDL-59298-master' of git://github.com/rezaies/moodle 2019-04-15 23:53:58 +02:00
Eloy Lafuente (stronk7) f7e183e513 Merge branch 'MDL-64777-master-modelsrestore' of git://github.com/mudrd8mz/moodle 2019-04-15 23:37:43 +02:00
Eloy Lafuente (stronk7) 5fd5eaf766 Merge branch 'MDL-64786-master-renamemodels' of git://github.com/mudrd8mz/moodle 2019-04-15 22:53:55 +02:00
Eloy Lafuente (stronk7) 75cd6b9a08 Merge branch 'MDL-65307_master' of git://github.com/dmonllao/moodle 2019-04-15 20:43:13 +02:00
Eloy Lafuente (stronk7) 0c1944cd93 Merge branch 'MDL-60470' of https://github.com/brendanheywood/moodle 2019-04-15 20:26:17 +02:00
Sara Arjona 734b198fd3 MDL-64715 message: add support for self conversations
Added new MESSAGE_CONVERSATION_TYPE_SELF type for self-conversations
and upgraded legacy self-conversations to the new type, removing
repeated members in the message_conversation_members table.
Besides, from now, a self-conversation will be created by default for
all the existing users.

All the self-conversations have been also starred and a default message
will be displayed always to explain how to use them.
2019-04-15 20:17:54 +02:00
Brendan Heywood bf9f255523 MDL-60470 core: New hook 'after_require_login'
This adds a hook towards the end of the require_login function.
2019-04-16 03:39:20 +10:00
Sara Arjona fcd7f0f982 MDL-64715 message: add send-self-message button to the user profile
The "Send message" button is now also displayed from the current user
profile to let them access to their self-conversations.
2019-04-15 14:29:10 +02:00
Sara Arjona 2767426111 MDL-64715 message: avoid duplicate entries when searching messages 2019-04-15 14:29:10 +02:00
Sara Arjona edb1ab3d17 Merge branch 'MDL-65328' of https://github.com/stronk7/moodle 2019-04-15 13:53:15 +02:00
Sara Arjona 8baa12ac38 Merge branch 'MDL-65281' of git://github.com/stronk7/moodle 2019-04-15 13:13:14 +02:00
David Monllaó e034670fac Merge branch 'MDL-62572-master' of git://github.com/damyon/moodle 2019-04-15 11:04:54 +02:00
David Monllaó 7063b665e0 MDL-65248 core_course: Move analytics targets to course
MOV [coursealreadyfinished, moodle], [coursealreadyfinished, course]
MOV [coursenotyetstarted, moodle], [coursenotyetstarted, course]
MOV [coursenotyetfinished, moodle], [coursenotyetfinished, course]
MOV [nocourseactivity, moodle], [nocourseactivity, course]
MOV [nocourseendtime, moodle], [nocourseendtime, course]
MOV [nocoursesections, moodle], [nocoursesections, course]
MOV [nocoursestudents, moodle], [nocoursestudents, course]
MOV [studentsatriskincourse, moodle], [studentsatriskincourse, course]
MOV [target:coursecompletion, moodle], [target:coursecompletion, course]
MOV [target:coursecompletion_help, moodle], [target:coursecompletion_help, course]
MOV [target:coursecompetencies, moodle], [target:coursecompetencies, course]
MOV [target:coursecompetencies_help, moodle], [target:coursecompetencies_help, course]
MOV [target:coursedropout, moodle], [target:coursedropout, course]
MOV [target:coursedropout_help, moodle], [target:coursedropout_help, course]
MOV [target:coursegradetopass, moodle], [target:coursegradetopass, course]
MOV [target:coursegradetopass_help, moodle], [target:coursegradetopass_help, course]
MOV [target:noteachingactivity, moodle], [target:noteachingactivity, course]
MOV [target:noteachingactivity_help, moodle], [target:noteachingactivity_help, course]
MOV [target:upcomingactivitiesdue, moodle], [target:upcomingactivitiesdue, course]
MOV [target:upcomingactivitiesdue_help, moodle], [target:upcomingactivitiesdue_help, course]
MOV [targetlabelstudentcompletionno, moodle], [targetlabelstudentcompletionno, course]
MOV [targetlabelstudentcompletionyes, moodle], [targetlabelstudentcompletionyes, course]
MOV [targetlabelstudentcompetenciesno, moodle], [targetlabelstudentcompetenciesno, course]
MOV [targetlabelstudentcompetenciesyes, moodle], [targetlabelstudentcompetenciesyes, course]
MOV [targetlabelstudentdropoutyes, moodle], [targetlabelstudentdropoutyes, course]
MOV [targetlabelstudentdropoutno, moodle], [targetlabelstudentdropoutno, course]
MOV [targetlabelstudentgradetopassno, moodle], [targetlabelstudentgradetopassno, course]
MOV [targetlabelstudentgradetopassyes, moodle], [targetlabelstudentgradetopassyes, course]
MOV [targetlabelteachingyes, moodle], [targetlabelteachingyes, course]
MOV [targetlabelteachingno, moodle], [targetlabelteachingno, course]
MOV [coursetoolong, analytics], [coursetoolong, course]
MOV [errorendbeforestart, analytics], [errorendbeforestart, course]
2019-04-15 09:45:50 +02:00
Mihail Geshoski ee6b5ba343 MDL-65034 forum: Rename identifier to camel case 2019-04-15 14:51:03 +08:00
Ryan Wyllie e564ae863d MDL-65034 forum: add aria keyboard nav to discussion 2019-04-15 14:51:03 +08:00
Ryan Wyllie 53d743741e MDL-65034 forum: add aria attributes to forum post 2019-04-15 14:51:03 +08:00
David Mudrák 7bd09a69ae MDL-64786 analytics: Make the list of indicators collapsed by default
The list may become very long and it does not help the usability of the
table. Similarly to what we have on the restore models page, we now have
the list of indicators collapsed by default.
2019-04-15 08:22:13 +02:00
David Mudrák cfb5603e60 MDL-64786 analytics: Fix documentation of models_list template
The list of expected context variables was missing. The example context
was not correct, particularly the help icons are a single object, not a
list.
2019-04-15 08:22:13 +02:00
David Mudrák 066a4d6493 MDL-64786 analytics: Allow renaming models via inplace editable element 2019-04-15 08:22:13 +02:00
David Mudrák 6482734681 MDL-64786 analytics: Add a new name field to the models table 2019-04-15 08:22:13 +02:00
David Mudrák ed47112e1b MDL-64786 analytics: Add missing parameter to model::export() method
All methods that export an object to be rendered via a template, must
have the instance of a renderer available.
2019-04-15 08:17:45 +02:00
David Mudrák 76ef6610bb MDL-64777 analytics: Add ability to restore missing default models
The patch introduces a new page restoredefault.php that allows the user
to select missing models to be restored.
2019-04-15 08:16:58 +02:00
David Mudrák 7dba0c27ad MDL-64777 analytics: Add method to get target and indicators instances
This will be needed in some other places, too.
2019-04-15 08:16:58 +02:00
David Mudrák 1297fa4156 MDL-64777 analytics: Add method to load all model definitions 2019-04-15 08:16:58 +02:00
David Mudrák 01d620ee67 MDL-64777 analytics: Add method for identifying a model declaration
This is intended to be used to as a declaration identifier in HTML or as
a HTTP parameter value.
2019-04-15 08:16:58 +02:00
David Monllaó c4beecb66b Merge branch 'wip-MDL-65220-master' of https://github.com/jason-platts/moodle 2019-04-15 07:57:27 +02:00
David Monllaó ce93b0f997 MDL-64855 version: Bump for the new setting 2019-04-15 07:51:24 +02:00
David Monllaó a733fce3ac Merge branch 'MDL-64855-37_block_myoverview_course_category_display' of https://github.com/tomdickman/moodle 2019-04-15 07:50:45 +02:00
David Monllaó f82701acad Merge branch 'MDL-59326' of https://github.com/paulholden/moodle 2019-04-15 07:47:33 +02:00
David Monllaó 72a70e37b5 Merge branch 'MDL-64894-master' of git://github.com/damyon/moodle 2019-04-15 07:45:04 +02:00
David Monllaó 815c070a26 Merge branch 'MDL-29317-master' of git://github.com/junpataleta/moodle 2019-04-15 07:41:10 +02:00
Eloy Lafuente (stronk7) 0163c6e449 Merge branch 'MDL-62907-master' of https://github.com/sammarshallou/moodle 2019-04-14 18:12:56 +02:00
Eloy Lafuente (stronk7) 50fe98de05 Merge branch 'MDL-65321-course-perf' of https://github.com/brendanheywood/moodle 2019-04-14 17:58:04 +02:00
Brendan Heywood af368c1076 MDL-65321 backups: Only require minimal async backup libs if needed 2019-04-13 23:43:01 +10:00
Eloy Lafuente (stronk7) c0b02e7118 MDL-65328 phpunit: make test immune to (lack of) ordering 2019-04-13 12:43:31 +02:00
Eloy Lafuente (stronk7) 89a81629a7 MDL-65281 phpunit: Just check for existence if order is not guaranteed
Posible solutions explained in the issue, imply chaging the API
in various, alternative ways. For your consideration if that
should be done for a better API, able to sort under demand when
required (or, at very least guaranteeing a default consistent ordering).
2019-04-13 11:38:39 +02:00
AMOS bot d78a868216 Automatically generated installer lang files 2019-04-13 00:13:09 +00:00
Eloy Lafuente (stronk7) bef0fe2000 on-demand release 3.7dev+ 2019-04-12 21:38:18 +02:00
Eloy Lafuente (stronk7) c1634f3648 NOBUG: Fixed file access permissions 2019-04-12 21:38:18 +02:00
Eloy Lafuente (stronk7) 269789d0b9 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-04-12 21:38:15 +02:00
Eloy Lafuente (stronk7) 66b4982135 MDL-64656 phpunit: Compare returned tags without any expected order 2019-04-12 17:28:21 +02:00
Eloy Lafuente (stronk7) 51f8b2dc15 Merge branch 'MDL-39261-master' of https://github.com/sarjona/moodle 2019-04-12 13:28:56 +02:00
Sara Arjona 865d284410 MDL-39261 mod_lesson: get the existing attemptid when reviewing 2019-04-12 13:11:50 +02:00
Eloy Lafuente (stronk7) 3d915f5345 MDL-62907 Logging: remove plugin interdependencies
- Move decode_other() from standard to tool_log\helper\reader trait.
- Change all ocurrences to "use" the trait method. But a unit test.
- Duplicate the admin lang strings in database and use them.
- An incorrect phpdoc @package.
2019-04-12 10:49:19 +01:00
Sara Cenni d78d97de8c MDL-64851 badge: reviewing badges of invisible courses 2019-04-12 09:50:33 +02:00
Damyon Wiese 04258a5a4e MDL-64894 theme_classic: Compile SCSS for classic 2019-04-12 14:16:28 +08:00
Damyon Wiese f10c22b691 MDL-62572 backup: Duplicating an activity
Don't apply admin defaults for import when using the duplicate function.
2019-04-12 14:04:40 +08:00
Jake Dallimore 76e35e6bdd Merge branch 'MDL-62974-master' of github.com:abgreeve/moodle 2019-04-12 11:17:26 +08:00
Adrian Greeve ac76ff1999 MDL-62974 mod_lesson: Minor update to html class. 2019-04-12 11:01:20 +08:00
Adrian Greeve 7ff3919dc2 Merge branch 'MDL-39261-master' of git://github.com/peterRd/moodle 2019-04-12 10:52:16 +08:00
Peter 814db56f4c MDL-65324 mod_forum: Fix the has_ended function and add unit tests
* Additional has_started unit tests
2019-04-12 10:20:18 +08:00
Peter a4606b7efe MDL-39261 mod_lesson: Move essay answer files to new file area
* Moved answers to a different file area
* Added backup and restore calls
* Include privacy/reset related calls similar to essay responses
2019-04-12 07:27:12 +08:00
Eloy Lafuente (stronk7) 310a6ad297 Merge branch 'MDL-65072-fast-locks' of https://github.com/brendanheywood/moodle 2019-04-12 00:35:15 +02:00
Eloy Lafuente (stronk7) a45fa792df Merge branch 'MDL-62974-master' of https://github.com/jmvedrine/moodle 2019-04-11 23:49:55 +02:00
Eloy Lafuente (stronk7) ff3c8c0e6c Merge branch 'MDL-64656-master' of git://github.com/jleyva/moodle 2019-04-11 20:12:13 +02:00
Eloy Lafuente (stronk7) 7c924d311d Merge branch 'MDL-64284-36_get_component_classes_cache' of https://github.com/tomdickman/moodle 2019-04-11 20:01:37 +02:00
Eloy Lafuente (stronk7) a8ec611f57 Merge branch 'MDL-65175_master-fixup' of git://github.com/dmonllao/moodle 2019-04-11 19:50:53 +02:00
David Monllaó 69b68ad691 MDL-65175 mlbackend_php: Add missing checking for number of targets 2019-04-11 17:57:25 +02:00
David Monllaó d5111e6f6b MDL-65175 tool_analytics: Do not accumulate time splitting options 2019-04-11 17:56:44 +02:00
Eloy Lafuente (stronk7) fd652de81f Merge branch 'MDL-31355-master' of git://github.com/rezaies/moodle 2019-04-11 17:17:07 +02:00
sam marshall 12f9acbe76 MDL-62907 Logging: JSON format option for logstore_database 2019-04-11 14:09:36 +01:00
sam marshall 75dc1756bb MDL-62907 Logging: 'other' field option to use JSON format 2019-04-11 14:09:35 +01:00
Shamim Rezaie 1c96922da5 MDL-31355 core: Bump $lastmajordbchanges to trigger upgrade immediately 2019-04-11 18:47:35 +10:00
Shamim Rezaie 7a6b701a90 MDL-31355 mod_forum: Add drag and drop support to forum duedate events 2019-04-11 18:47:35 +10:00
Shamim Rezaie 82482e3d3e MDL-31355 mod_forum: different message when duedate has passed 2019-04-11 18:47:35 +10:00
Shamim Rezaie cbf63d8efc MDL-31355 mod_forum: Prevent users from posting after cut-off date 2019-04-11 18:47:35 +10:00
Shamim Rezaie 99bcb31895 MDL-31355 mod_forum: WS should return duedate and cutoffdate. 2019-04-11 18:47:32 +10:00
Eloy Lafuente (stronk7) 0f50e9cf90 Merge branch 'MDL-64543-slow-profile-patch' of https://github.com/brendanheywood/moodle 2019-04-11 10:45:59 +02:00
Shamim Rezaie bbbf182089 MDL-31355 mod_forum: Create, update and delete due date event 2019-04-11 18:33:35 +10:00
Juan Leyva 86fd9277c2 MDL-64656 core_tag: New WebService core_tag_get_tag_cloud 2019-04-11 10:20:44 +02:00
Juan Leyva 87bdad57c4 MDL-64656 core_tag: New WebService core_tag_get_tag_collections 2019-04-11 10:20:44 +02:00
Juan Leyva 07a4883796 MDL-64656 core_tag: New WebService core_tag_get_tag_areas 2019-04-11 10:20:44 +02:00
Juan Leyva f121889933 MDL-64656 core_tag: New WebService core_tag_get_tagindex_per_area 2019-04-11 10:20:44 +02:00
Juan Leyva 6c344ff282 MDL-64656 core_tag: Return tags in modules and blog 2019-04-11 10:20:44 +02:00
Juan Leyva 52fcc0b827 MDL-64656 core_tag: Add existing WebServices to the mobile app service 2019-04-11 10:10:44 +02:00
Marina Glancy e66acce81a MDL-64151 form: autocomplete element remove last choice
This is the same situation as was in MDL-56864 but now in 'course', 'autocomplete' and 'select' elements
- if the element allows multiple selection it is impossible to remove the last element
2019-04-11 10:00:22 +02:00
Adrian Greeve adb62f17c1 Merge branch 'MDL-64719-purge_user_cache' of git://github.com/leonstr/moodle 2019-04-11 13:38:08 +08:00
Peter 676eca7b9b MDL-39261 mod_lesson: Rewrite the answer URL for grading 2019-04-11 12:03:32 +08:00
Adrian Greeve 8fa61e525a Merge branch 'MDL-65015-master' of git://github.com/cescobedo/moodle 2019-04-11 10:14:23 +08:00
Brendan Heywood 097616f8ac MDL-64543 profiling: Fixed code warning error 2019-04-11 12:02:43 +10:00
Eloy Lafuente (stronk7) 72b2e31802 Merge branch 'MDL-64543-slow-profile' of https://github.com/brendanheywood/moodle 2019-04-10 23:43:22 +02:00
Shamim Rezaie 0556f39373 MDL-31355 mod_forum: backup and restore of duedate and cutoffdate fields 2019-04-11 02:03:02 +10:00
Shamim Rezaie ceea2d2618 MDL-31355 mod_forum: Add duedate and cutoffdate to form
AMOS BEGIN
CPY [availability,mod_assign],[availability,mod_forum]
CPY [cutoffdate,mod_assign],[cutoffdate,mod_forum]
CPY [cutoffdatevalidation,mod_assign],[cutoffdatevalidation,mod_forum]
CPY [duedate,mod_assign],[duedate,mod_forum]
AMOS END
2019-04-11 02:03:02 +10:00
Shamim Rezaie f6b07fedde MDL-31355 mod_forum: new db field for due and cutoff date 2019-04-11 02:03:02 +10:00
Eloy Lafuente (stronk7) 83b2cbad02 Merge branch 'MDL-65177_master' of git://github.com/dmonllao/moodle 2019-04-10 17:47:56 +02:00
Eloy Lafuente (stronk7) 30a09fc94c Merge branch 'MDL-65175_master' of git://github.com/dmonllao/moodle 2019-04-10 17:38:17 +02:00
David Monllaó 65c817ba21 MDL-59081 mod_lesson: Fix feature file indentation 2019-04-10 13:37:02 +02:00
David Monllaó f7c77ea189 Merge branch 'MDL-59081-master' of git://github.com/abgreeve/moodle 2019-04-10 12:49:22 +02:00
David Monllaó 11bfc07a93 Merge branch 'MDL-10965-master' of git://github.com/marinaglancy/moodle 2019-04-10 12:42:51 +02:00
Marina Glancy 76f2d89471 MDL-10965 course: search only courses with completion
it is quite often when we need to have an autocomplete element that searches courses that
have completion enabled. This commit adds an option for the 'course' form element, and also
changes two places where we search for courses with completion. This should fix MDL-58989
2019-04-10 12:35:29 +02:00
Marina Glancy 2c8b8af4bd MDL-10965 tool_generator: use existing course element 2019-04-10 12:35:28 +02:00
Marina Glancy 88d2677e43 MDL-10965 core: deprecate function get_courses_page 2019-04-10 12:35:28 +02:00
Marina Glancy beff3806d6 MDL-10965 courses: capability to browse course list 2019-04-10 12:35:28 +02:00
David Monllaó 5bbdc42039 MDL-65177 analytics: New time-splitting methods for upcoming events 2019-04-10 12:23:05 +02:00
David Monllaó b73e1cdb57 MDL-65177 tool_analytics: Static models can now be edited
Only the time-splitting method.
2019-04-10 12:23:03 +02:00
David Monllaó 5f1f0ee6a1 MDL-65175 analytics: Time-splittings can be invalid for evaluation 2019-04-10 12:19:52 +02:00
David Monllaó baa6c29cc1 MDL-65175 analytics: Rm references to unexisting time-splittings 2019-04-10 12:19:52 +02:00
David Monllaó 84bc827932 MDL-65175 tool_analytics: Select a time-splitting for evaluation 2019-04-10 12:19:52 +02:00
David Balch da37a3add1 MDL-65299 theme_classic: Allow default.scss theme-colors override. 2019-04-10 09:27:25 +01:00
Adrian Greeve e9cbc45484 Merge branch 'MDL-46975-master' of git://github.com/junpataleta/moodle 2019-04-10 14:23:59 +08:00
Mark Nelson 9f2be0aeaf MDL-65275 mod_forum: do not format_text twice() 2019-04-10 13:28:34 +08:00
Adrian Greeve 62536aea0a Merge branch 'MDL-64322' of https://github.com/KietChan/moodle 2019-04-10 13:23:54 +08:00
AMOS bot 745ab2badf Merge branch 'master' into install_master 2019-04-10 00:12:10 +00:00
Jean-Michel Vedrine d1e24c1275 MDL-62974 lesson: Suppress HTML font tags 2019-04-09 22:55:59 +02:00
Eloy Lafuente (stronk7) dafcc3cf7b on-demand release 3.7dev+ 2019-04-09 20:37:27 +02:00
Eloy Lafuente (stronk7) 1a23b29672 Merge branch 'MDL-64819-master' of https://github.com/sarjona/moodle 2019-04-09 16:00:47 +02:00
Brendan Heywood 97f63b4180 MDL-65311 core: Fixed regression caused by MDL-65130 2019-04-09 22:39:02 +10:00
Sara Arjona 1929d6f88c MDL-64819 course: fix behat errors with the move icon
Some errors have been detected when using Clean + Goutte.
2019-04-09 14:09:02 +02:00
Adrian Greeve 0c2589bce2 Merge branch 'MDL-65075-master' of git://github.com/jleyva/moodle 2019-04-09 17:16:18 +08:00
David Monllaó e80df160f7 MDL-65307 tool_analytics: Current action including sesskey 2019-04-09 08:03:35 +02:00
Adrian Greeve 29bc29ed4f Merge branch 'master_MDL-28505_Asynchronous_backup_and_restore' of https://github.com/mattporritt/moodle 2019-04-09 10:00:23 +08:00
Eloy Lafuente (stronk7) 8f8b2ce0dc MDL-64783 analytics: Add new capability lang string 2019-04-09 02:30:49 +02:00
Matt Porritt 2cd901a4e7 MDL-28505 Backup: Asynchronous backup and restore
This patch adds asynchronous backup and restore functionality
to Moodle. This is an optional feature and is not enabled by
default. It can be enabled by site administrators.
Asynchronous backup and restores are actioned by the Moodle
adhoc task API. The progress of backup and restores is
displayedin the Moodle UI.  Users can also be sent a message
when a backup or restore operation completes via the
Moodle messaging API.
2019-04-09 00:15:42 +00:00
AMOS bot b6eac2598a Automatically generated installer lang files 2019-04-09 00:11:16 +00:00
AMOS bot e26715330d Automatically generated installer lang files 2019-04-09 00:11:16 +00:00
Eloy Lafuente (stronk7) dabc69afe5 Merge branch 'MDL-65191-master' of git://github.com/lameze/moodle 2019-04-09 00:46:47 +02:00
David Monllaó 21bf5ae5ab MDL-64783 analytics: Send notifications using the receiver's language 2019-04-09 00:29:57 +02:00
David Monllaó 982fef46f4 MDL-64783 analytics: Activities due insight forwards to calendar
The patch includes changes applied after the peer review.
2019-04-09 00:29:57 +02:00
David Monllaó 93663fa1a8 MDL-64783 analytics: Styles for insights sent through email 2019-04-09 00:29:57 +02:00
David Monllaó fccc728fcc MDL-64783 analytics: Performance improvements
- Removed redundant query to analytics_predict_samples
- Analysers API now uses recordsets to iterate through the analysable
  elements. They take the last analysed time into account.
- New method for targets so there is no need to always update the last
  analysis time. Useful for lightweight targets.
2019-04-09 00:29:57 +02:00
David Monllaó 02dfbf44a7 MDL-64783 analytics: Updated insight subject for course_enrolments 2019-04-09 00:29:57 +02:00
David Monllaó 20d7f527b0 MDL-64783 analytics: Discern prediction actions on insights generation 2019-04-09 00:29:51 +02:00
David Monllaó 9f690999ec MDL-64783 analytics: Performance improvements and internal refactoring
The base classes analyser and time-splitting method had too many
reponsibilities. A new analysis class has been created.
2019-04-09 00:26:39 +02:00
David Monllaó 4f13068f78 MDL-64783 analytics: Install / upgrade for the new model 2019-04-09 00:26:39 +02:00
David Monllaó bb7dccdb8e MDL-64783 analytics: Insights generation logic out of the target 2019-04-09 00:26:39 +02:00
David Monllaó e85c2f372b MDL-64783 analytics: Improvements to the insights system 2019-04-09 00:26:23 +02:00
David Monllaó 50935afba4 MDL-64783 analytics: Upcoming activities due and related API changes 2019-04-09 00:25:24 +02:00
David Monllaó 78e77fab2e MDL-64783 analytics: Reset PAGE after analytics processes 2019-04-09 00:25:24 +02:00
Eloy Lafuente (stronk7) c9382c1d28 Merge branch 'MDL-64954_master' of git://github.com/dmonllao/moodle 2019-04-08 20:41:50 +02:00
Eloy Lafuente (stronk7) 35514f573f MDL-65142 dataformat_pdf: added to standard core plugins 2019-04-08 19:41:26 +02:00
Amaia Anabitarte 06b028103e MDL-64676 core_message: Fix old behat tests affected by new messaging 2019-04-08 18:45:23 +02:00
David Balch dbbbeb89bf MDL-65299 Boost: Allow default.scss theme-colors override. 2019-04-08 16:32:30 +01:00
Eloy Lafuente (stronk7) 72959d2170 Merge branch 'MDL-65142-master' of git://github.com/rezaies/moodle 2019-04-08 17:09:03 +02:00
Eloy Lafuente (stronk7) b57084b532 Merge branch 'MDL-65176-master-nofallback' of https://github.com/vmdef/moodle 2019-04-08 16:03:29 +02:00
Damyon Wiese b0d4560634 MDL-64819 output: Hide icons with no title
When output from javascript they should match what gets output from php.
2019-04-08 14:34:15 +02:00
Damyon Wiese cce54c4732 MDL-64819 output: Activity menu icons
Remove duplicate alt text from activity menu icons and the links to add new sections.
2019-04-08 14:33:36 +02:00
Marina Glancy 41653114b5 MDL-65236 core: allow to alias languages in the lang selector 2019-04-08 14:14:23 +02:00
Juan Leyva cc62967bfc MDL-65075 tool_mobile: Check UserAgent only in WS requests 2019-04-08 14:13:54 +02:00
Tim Hunt 7d2c7fed74 MDL-65296 questions: field should be declared
It was already being set, but IDE autocomplete etc did not know that.
2019-04-08 12:19:13 +01:00
Sara Arjona f9e436a2b6 Merge branch 'MDL-64669-master' of git://github.com/aanabit/moodle 2019-04-08 13:12:31 +02:00
Bas Brands a4300f3eaf MDL-64102 core_message: add message tails to match ux design 2019-04-08 12:25:56 +02:00
Victor Deniz Falcon 1f23f1412e MDL-65176 analytics: target for students who don't get the minimum grade
Added new target to predict which students are at risk of not getting
the minimum grade to pass a course.
2019-04-08 10:17:02 +01:00
Juan Leyva 102e0828fd MDL-65075 tool_mobile: Allow auto-login keys only for requests from Moodle apps
This change enhances security and avoid any kind of XSS attack.
2019-04-08 11:05:54 +02:00
Bas Brands 7cbea16001 MDL-64703 core_message: 2 column message index page 2019-04-08 11:05:08 +02:00
Shamim Rezaie 18641610d7 MDL-59298 auth_oauth2: Custom email message when account uses oauth2
AMOS BEGIN
 CPY [emailpasswordchangeinfosubject,core],[emailpasswordchangeinfosubject,auth_oauth2]
AMOS END
2019-04-08 18:56:41 +10:00
Adrian Greeve 9019d6228e Merge branch 'MDL-65218-master' of git://github.com/damyon/moodle 2019-04-08 16:53:43 +08:00
Shamim Rezaie 4c00766e2a MDL-59298 auth_nologin: override get_password_change_info
Let the auth_nologin class to take care of its exceptional behaviour.
2019-04-08 18:53:06 +10:00
Shamim Rezaie 206ec32890 MDL-59298 auth: Added get_password_change_info to auth plugins 2019-04-08 18:43:22 +10:00
Amaia Anabitarte fce10f0e95 MDL-64669 core_message: Waiting for buttons to hide before login out 2019-04-08 10:21:07 +02:00
Kiet.Chan 84bcd65885 MDL-64322 GDPR: Mechanism for restricting delete requests 2019-04-08 15:12:17 +07:00
Amaia Anabitarte fd72e75443 MDL-64669 core_message: Behat tests for send messages 2019-04-08 09:48:51 +02:00
Amaia Anabitarte d624c13542 MDL-64669 core_message: New steps and selectors for messaging 2019-04-08 09:48:51 +02:00
Simey Lameze 846c585910 MDL-65276 core: fix CiBoT complains 2019-04-08 10:30:09 +08:00
Mathew May d566aabac3 MDL-64924 behat: Move Boost specific scenarios to Core 2019-04-08 09:46:12 +08:00
Mathew May 07746974c8 MDL-65184 theme_classic: Remove unused footer template 2019-04-08 09:26:12 +08:00
Jake Dallimore 152e41cccb MDL-65170 core_user: perf improvement for user_get_user_details_courses
We don't always need to iterate over the user's courses, so only fetch
them when we do.
2019-04-08 09:02:13 +08:00
Jake Dallimore e4aaecd392 MDL-65170 core_user: user_get_user_details_courses respects groupmode
This had a relatively simply check for course profile visibility, which
meant that users in separate groups could see one another's profile.
This has been replaced with the more correct check in
user_can_view_profile().
2019-04-08 09:02:13 +08:00
Adrian Greeve 24f9b01135 Merge branch 'MDL-65075-master' of git://github.com/jleyva/moodle 2019-04-08 07:50:28 +08:00
cescobedo 3a5afbf5f1 MDL-65015 core_message: add trusttext cleaning to messaging 2019-04-07 10:56:53 +02:00
David Monllaó 89f1f98f59 MDL-64954 tool_analytics: More help for analytics api elements 2019-04-05 23:59:20 +02:00
Eloy Lafuente (stronk7) 9d4f4f0051 on-demand release 3.7dev+ 2019-04-05 18:33:19 +02:00
David Monllaó 6c0bd61c57 MDL-64779 tool_analytics: Nice styles for the export modal 2019-04-05 18:28:06 +02:00
Thomas Korner ccc1aaed22 MDL-65279 core: typo in categoriesandcourses fixed
AMOS BEGIN
 MOV [categoriesandcoures,core],[categoriesandcourses,core]
AMOS END
2019-04-05 14:37:09 +02:00
Paul Holden 821614d87c MDL-64784 core: update tablelib tests for explicit sort direction. 2019-04-05 11:53:33 +01:00
Mathew May 27deb59557 MDL-64506 mod_choice: fix behat issue with screensize
We found issues in FireFox where Behat could not scroll to select
the student two checkbox.
2019-04-05 12:10:00 +02:00
cescobedo 3118db5d66 MDL-65254 core_message: Fix going back to message view drawer search
Add the route namespace to description function in message drawer view search.
2019-04-05 10:34:18 +02:00
Juan Leyva ab1b823860 MDL-64641 calendar: Return global calendar settings 2019-04-05 09:56:39 +02:00
Juan Leyva 2aad6b8261 MDL-64641 calendar: New WS core_calendar_get_allowed_event_types 2019-04-05 09:56:39 +02:00
Juan Leyva a46980fa79 MDL-64641 calendar: New WS core_calendar_get_access_information 2019-04-05 09:56:39 +02:00
Juan Leyva ef38c5a531 MDL-64641 calendar: Including missing WS in the mobile service 2019-04-05 09:56:11 +02:00
Juan Leyva 2b34a55d5a MDL-65075 tool_mobile: Allow auto-login keys only for requests from Moodle apps
This change enhances security and avoid any kind of XSS attack.
2019-04-05 09:53:38 +02:00
Simey Lameze 97fddc26f4 MDL-65276 core: delete orphaned cron.php 2019-04-05 13:45:06 +08:00
Simey Lameze ea9428be7b MDL-65276 core: move functions to completion_regular_task
This commit shifts the content of legacy completion_cron_criteria()
and completion_cron_completions() functions to completion_regular_task.

Also, those functions are deleted as part of this commit.
2019-04-05 13:44:53 +08:00
Simey Lameze fe4f55ee40 MDL-65276 core: move completion_cron_aggregate() to completionlib 2019-04-05 13:38:30 +08:00
Simey Lameze a5a0d10e70 MDL-65276 core: convert legacy cron function to task 2019-04-05 13:38:07 +08:00
Adrian Greeve 02b342bb70 MDL-65019 core_course: Update to fix whitespace. 2019-04-05 09:33:13 +08:00
Adrian Greeve abd898606d Merge branch 'MDL-65019-master' of git://github.com/jleyva/moodle 2019-04-05 09:15:18 +08:00
Adrian Greeve cc56e409c3 Merge branch 'MDL-65024-master' of git://github.com/jleyva/moodle 2019-04-05 09:09:16 +08:00
Eloy Lafuente (stronk7) 01cdf16c0e Merge branch 'MDL-65029-master' of git://github.com/timhunt/moodle 2019-04-05 00:39:10 +02:00
Eloy Lafuente (stronk7) cd44336505 Merge branch 'MDL-65127-master' of git://github.com/sarjona/moodle 2019-04-05 00:21:20 +02:00
Eloy Lafuente (stronk7) 40df718398 Merge branch 'MDL-65094-master' of git://github.com/rezaies/moodle 2019-04-04 22:32:52 +02:00
Eloy Lafuente (stronk7) d52f83a37a Merge branch 'MDL-65114-master' of https://github.com/snake/moodle 2019-04-04 20:41:40 +02:00
Eloy Lafuente (stronk7) 73dd6dea3f Merge branch 'MDL-65038_master' of https://github.com/maksudr/moodle 2019-04-04 20:30:40 +02:00
Paul Holden 3c92b1d4e5 MDL-64784 core: consistent column sort direction in flexible_table. 2019-04-04 16:08:26 +01:00
Juan Leyva bf25884677 MDL-61199 tool_mobile: Add new features to the list
We have to include the most recent app features in the list of features displayed in Moodle.
Via this list of features, admins can disable mobile functionality.
2019-04-04 15:12:33 +02:00
Bas Brands 2b83a0613c MDL-64137 core_message: highlight message search results 2019-04-04 12:01:12 +02:00
Adrian Greeve 71d77a6fcc Merge branch 'MDL-22077-master' of git://github.com/peterRd/moodle 2019-04-04 12:59:51 +08:00
Peter 8245dabaa2 MDL-22077 mod_forum: external unit tests and vault updates
* Unit tests for external functions
* Use the new dml_table to fetch a table's columns
2019-04-04 11:56:01 +08:00
Jake Dallimore 9b8a147ea3 Merge branch 'MDL-65087' of git://github.com/stronk7/moodle 2019-04-04 11:37:07 +08:00
Jun Pataleta a462646095 MDL-65251 tool_xmldb: Create behat tests for mandatory persistent fields 2019-04-04 11:29:18 +08:00
Peter e782253c5c MDL-22077 mod_forum: Grammatical and formatting updates 2019-04-04 11:25:29 +08:00
Andrew Nicols 15dc885a8b MDL-22077 forum: Update post.php to respect private replies 2019-04-04 11:25:29 +08:00
Andrew Nicols bc4c7337e1 MDL-22077 forum: Add forum private replies
This patch adds new capabilities:
'mod/forum:postprivatereply'   - whether a user is able to post private replies; and
'mod/forum:readprivatereplies' - whether a user is able to read private replies.

Private replies are only visible to the intended recipient (the author of
the parent post), the author of the private reply, and those with the
ability to read private replies.

If a post is private then it cannot be replied to further.
2019-04-04 11:25:29 +08:00
Andrew Nicols 12a1f9c567 MDL-22077 forum: Deprecate unused helper trait 2019-04-04 11:25:29 +08:00
Jake Dallimore 6243019d03 Merge branch 'MDL-64506' of git://github.com/Chocolate-lightning/moodle 2019-04-04 11:16:42 +08:00
Mathew May e43bd3762d MDL-64506 mod_data: correct behat issue for saving items with tags 2019-04-04 11:00:09 +08:00
Jake Dallimore a26b34c97c Merge branch 'MDL-64243' of https://github.com/Dagefoerde/moodle 2019-04-04 10:41:42 +08:00
Peter 3afdfce05a MDL-39261 mod_lesson: Enable other file uploads in essay editor
Modify the editor settings so an essay question can upload other types of files other than images
2019-04-04 09:41:18 +08:00
Simey Lameze 15263647fa MDL-65191 core_badges: delete badges legacy cron file 2019-04-04 09:36:20 +08:00
Simey Lameze 48a4b33a4b MDL-65191 core: convert legacy cron to scheduled task 2019-04-04 09:36:20 +08:00
Simey Lameze 2b40d66b65 MDL-65191 core_badges: add badges_message_task task 2019-04-04 09:36:20 +08:00
Simey Lameze 7c36d66982 MDL-65191 core: shift badge_assemble_notification to badgeslib 2019-04-04 09:36:13 +08:00
Jun Pataleta 01b79fd9f4 Merge branch 'MDL-65204_oraclemssql_assert_equals' of git://github.com/stronk7/moodle 2019-04-04 09:08:06 +08:00
Eloy Lafuente (stronk7) 31d7eaab5a MDL-65087 behat: Select the proper search button via xpath
By adding the "Search" aria label to a number of elements
any search of "Search" buttons, previously working in other
parts of the UI are not found anymore (because the hidden
ones are found before).

So, moving to click via xpath. Ideally we should be able to
find the target button in an easier, human readable way. But
there aren't many ids, names around to make it easier.
2019-04-04 00:54:45 +02:00
Eloy Lafuente (stronk7) 87f196af93 MDL-65204 phpunit: more isEqual() strict string fixes
This is a followup of 85f47ba, where we were relaxing
the (new since phpunit 7.x) strict (===) isEqual()
comparison for strings. Copying the explanations for
easier understanding.

Link: https://github.com/sebastianbergmann/phpunit/issues/3185
Solution here is one of:
  a) Return to the previous situation, making the comparison
     softer. That can achieved by forcing different types, so
     float == string works.
  b) Changing APIs (both forms and database return strings) to
     perform some conversion to floats. That would make float
     comparison (with floats or strings) to work too.
The patch here follows the a) approach. Changing all the internals
for proper float handling sounds excesive when it has been working
perfectly since ever. So we went the easier route, just getting
rid of the new === comparisons when needed by changing expectation
types to float.
2019-04-03 22:08:16 +02:00
Sara Arjona 86c3df962f Merge branch 'MDL-64506' of git://github.com/Chocolate-lightning/moodle 2019-04-03 19:30:28 +02:00
Shamim Rezaie a87f5b2934 MDL-65142 dataformat_pdf: Added privacy implementation 2019-04-04 03:15:52 +11:00
Shamim Rezaie 5b7878993d MDL-65142 dataformat_pdf: New dataformat for pdf 2019-04-04 03:15:49 +11:00
Juan Leyva 5c502bcd99 MDL-65255 vimeo: Do not require width and height for iframe
The script for embedding videos should work without forcing width and height.
This will simplify the way we embed videos in the app.
2019-04-03 15:16:05 +02:00
Mathew May 5db1ce5331 MDL-64506 templates: BS2 pull-x -> BS4 float-x 2019-04-03 19:47:13 +08:00
Mathew May 5edb0fbcb5 MDL-64506 templates: replace spans where and col-x appears 2019-04-03 19:47:13 +08:00
Mathew May 5cac5fa428 MDL-64506 templates: BS2 m-x-x to BS4 mx-x 2019-04-03 19:47:11 +08:00
Mathew May b293214a7e MDL-64506 behat: Modify usertours behat.
Original test relied on a 3rd theme to test against.
With only two themes in core now we need to make the test
theme/ suite specific.
2019-04-03 19:34:20 +08:00
Mathew May 9757c65687 MDL-64506 Javascript: Remove docking JS.
Deprecate related lang strings & base functions now return false.
2019-04-03 19:34:20 +08:00
Mathew May 3f2c68f119 MDL-64506 templates: Move BS2 labels to BS4 badges 2019-04-03 19:34:20 +08:00
Mathew May 29551c4b1a MDL-64506 templates: Move BS2 btns' to BS4 btns'
well bs2 class is now card in bs4
2019-04-03 19:34:20 +08:00
Mathew May 6ecc445939 MDL-64506 templates: Remove BS2 spans from elements. 2019-04-03 19:34:20 +08:00
Mathew May 0e133245ab MDL-64506 upgrade: Add upgrade steps to remove BS2 themes. 2019-04-03 19:34:20 +08:00
Mathew May b64bf2d77c MDL-64506 grades: Fix regression of MDL-58428 2019-04-03 19:34:20 +08:00
Mathew May a5a6df54cc MDL-64506 theme: Update BSB references and upgrade texts 2019-04-03 19:34:20 +08:00
Mathew May cf89ac3d1a MDL-64506 Grunt: Remove old Bootstrapbase tasks 2019-04-03 19:34:20 +08:00
Mathew May e00f1c663c MDL-64506 phpunit: Update unit tests to use classic 2019-04-03 19:34:20 +08:00
Mathew May c8edee421e MDL-64506 theme_bootstrapbase: Remove bootstrapbase from core 2019-04-03 19:34:17 +08:00
Tim Hunt ab2474726d MDL-65260 users policies: allow username in Show user identity
This commit is based on Brendan Heywood's work for MDL-52908.
2019-04-03 11:51:14 +01:00
Jun Pataleta f3971a2d88 Merge branch 'MDL-62307_master' of https://github.com/maksudr/moodle 2019-04-03 16:50:31 +08:00
Jun Pataleta ad4d995f19 Merge branch 'MDL-65168' of git://github.com/stronk7/moodle 2019-04-03 16:42:41 +08:00
Jun Pataleta dcdea70fca Merge branch 'MDL-65112-master' of https://github.com/dmitriim/moodle 2019-04-03 16:19:35 +08:00
Adrian Greeve af53b33756 Merge branch 'session-debug' of https://github.com/tsmilan/moodle 2019-04-03 14:57:38 +08:00
Jake Dallimore 143122bfcc Merge branch 'MDL-65087-master' of git://github.com/sarjona/moodle 2019-04-03 14:12:24 +08:00
Jake Dallimore 0ffba48cbd Merge branch 'MDL-65247-master' of git://github.com/junpataleta/moodle 2019-04-03 13:46:05 +08:00
Adrian Greeve df4d6b0696 Merge branch 'MDL-65130-master' of git://github.com/andrewnicols/moodle 2019-04-03 13:39:28 +08:00
Trisha Milan fdb9c3217d MDL-64449 core: Added Session lock debugging option 2019-04-03 14:20:57 +11:00
Jun Pataleta 1b011cdbda Merge branch 'MDL-65204-master' of git://github.com/junpataleta/moodle 2019-04-03 10:57:12 +08:00
Jun Pataleta 6bcc5dfdb4 MDL-65204 phpunit: Fix valid CiBoT errors and warnings 2019-04-03 10:44:24 +08:00
Eloy Lafuente (stronk7) 032c75ec43 MDL-65204 phpunit: tweak constraint_object_is_equal_with_exceptions
In PHPUnit 7.x and above, IsEqual->value became private and, as far
as our with exceptions class inherits from it, we cannot access to
that anymore.

So, in order to avoid that, we are overriding the constructor, capturing
the original value for own use and forgetting.

A more formal, alternative, solution would be to make our
exceptional class to inherit from Constraint and make the
class a pure dispatcher to different constraints, with IsEqual being
just one of them.

But we followed the easiest path here. Not ideal, but efective.
2019-04-03 10:39:19 +08:00
Eloy Lafuente (stronk7) 85f47bae7f MDL-65204 phpunit: various fixes to assertions
Namely:
   - 3rd param of assertEquals() cannot be null.
   - Some incorrect uses of assertNotEmpty().
   - Comparing 2 strings now uses strict (===) evaluation.
       Link: https://github.com/sebastianbergmann/phpunit/issues/3185
     Solution here is one of:
       a) Return to the previous situation, making the comparison
          softer. That can achieved by forcing different types, so
          float == string works.
       b) Changing APIs (both forms and database return strings) to
          perform some conversion to floats. That would make float
          comparison (with floats or strings) to work too.
     The patch here follows the a) approach. Changing all the internals
     for proper float handling sounds excesive when it has been working
     perfectly since ever. So we went the easier route, just getting
     rid of the new === comparisons when needed by changing expectation
     types to float.
2019-04-03 10:39:19 +08:00
Eloy Lafuente (stronk7) 26218b7852 MDL-65204 phpunit: make testcases match their expected signature 2019-04-03 10:39:19 +08:00
Eloy Lafuente (stronk7) be81130189 MDL-65204 phpunit: update composer to use phpunit 7.5.x
To generate a new composer.lock for a given Moodle branch:
- Remove composer.lock
- Remove vendor
- Remove composer caches:
      php composer.phar clearcache
- Using lower PHP version supported (7.1.x for Moodle 3.7), update:
      php composer.phar update

https://docs.moodle.org/dev/Composer#How_to_prepare_and_submit_composer_changes
2019-04-03 10:39:19 +08:00
Mathew May 485932602d MDL-64506 theme: Move templates from lib/form 2019-04-03 10:07:41 +08:00
Mathew May e969e96279 MDL-64506 theme: Create empty form templates 2019-04-03 10:07:41 +08:00
Mathew May cc1e1d8ffc MDL-64506 theme_clean: Remove Clean from core 2019-04-03 10:07:38 +08:00
Mathew May 7204a990e5 MDL-64506 theme_more: Remove More from core 2019-04-03 10:07:08 +08:00
Jun Pataleta ea0d5fd732 Merge branch 'MDL-65214' of git://github.com/stronk7/moodle 2019-04-03 09:48:00 +08:00
Jake Dallimore 849d2e5dad Merge branch 'MDL-63569-email-header-master' of https://github.com/pauldamiani/moodle 2019-04-03 09:43:51 +08:00
Jun Pataleta 88159721ec MDL-65247 core: Fix action_modal Behat tests 2019-04-03 08:45:29 +08:00
Eloy Lafuente (stronk7) 6f6ea8c32d MDL-65250 core: Fix some undefined variables in compact()
Since PHP 7.3 they throw a PHP Notice.
2019-04-03 02:42:45 +02:00
Eloy Lafuente (stronk7) 2f8276622f Merge branch 'MDL-65213-master' of git://github.com/sarjona/moodle 2019-04-03 00:22:54 +02:00
Eloy Lafuente (stronk7) e342bae090 Merge branch 'MDL-64994-master-pythonmlversion' of git://github.com/mudrd8mz/moodle 2019-04-03 00:09:28 +02:00
Eloy Lafuente (stronk7) 78397b51aa Merge branch 'MDL-64693-master' of https://github.com/vmdef/moodle 2019-04-02 23:46:24 +02:00
Eloy Lafuente (stronk7) 481c1ae4ce Merge branch 'MDL-64779_master' of git://github.com/dmonllao/moodle 2019-04-02 23:23:13 +02:00
Sara Arjona 199167f590 MDL-65213 core_message: fix random failures when declining contacts 2019-04-02 20:26:26 +02:00
Víctor Déniz Falcón 525cee739d MDL-64693 analytics: new course_competencies target
Added new target to predict which students are at risk of not achieving the
competencies assigned to a course.
2019-04-02 17:46:39 +01:00
Tim Hunt be492e2a8f MDL-65245 question engine: response vars should always be PHP strings 2019-04-02 16:32:40 +01:00
Tim Hunt 6c91e515b0 MDL-65245 question_attempt: fix PHPdoc and other PHPstorm warnings 2019-04-02 16:32:36 +01:00
Eloy Lafuente (stronk7) 280cfdf05c on-demand release 3.7dev+ 2019-04-02 15:54:35 +02:00
Eloy Lafuente (stronk7) 7c2ff50e9c Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-04-02 15:54:29 +02:00
Davo Smith 298ff4e79a MDL-64906 mod_feedback: remove incorrect behat test form value 2019-04-02 09:13:09 +01:00
Davo Smith 385247d94e MDL-64906 mod: add support for hideif to activity modules 2019-04-02 09:13:09 +01:00
Davo Smith efc34ea5c9 MDL-64906 forms: add support for hideif to repeat_elements 2019-04-02 09:13:09 +01:00
eWallah 35154fa1b5 MDL-65224 customfield: Use @_file_upload tag when uploading a file 2019-04-02 09:40:46 +02:00
Jun Pataleta d9be4a7829 Merge branch 'MDL-64331-master' of git://github.com/damyon/moodle 2019-04-02 10:58:15 +08:00
Adrian Greeve a5b79e4b85 Merge branch 'MDL-65138-master' of git://github.com/lameze/moodle 2019-04-02 10:37:34 +08:00
Adrian Greeve 59a73b7b73 Merge branch 'MDL-65144-master' of git://github.com/damyon/moodle 2019-04-02 10:15:18 +08:00
Damyon Wiese cdc7390446 MDL-64331 modals: Be careful closing modals
Don't close a modal when the user clicks outside of it and the modal contains a form.
2019-04-02 10:02:26 +08:00
Paul Damiani 9ffbb78668 MDL-63569 email: New setting to prefix the subject of outgoing emails 2019-04-02 11:02:03 +11:00
Ilya Tregubov 5ebbe1c3ee MDL-64439 auth: Refresh $cm in require_login after pre_loginpage_hook. 2019-04-02 10:20:20 +11:00
Eloy Lafuente (stronk7) ed7fa60946 Merge branch 'MDL-61667-master-modelsinstall' of git://github.com/mudrd8mz/moodle 2019-04-02 00:20:47 +02:00
Eloy Lafuente (stronk7) 6d9b3e0cd7 Merge branch 'MDL-64636-master' of https://github.com/vmdef/moodle 2019-04-02 00:01:22 +02:00
Juan Leyva dfcf8342fb MDL-65211 enrol: Return if user is being completion tracked 2019-04-01 18:45:14 +02:00
Leon Stringer 36b6444420 MDL-64719 cache: Implement purge_current_user() in \cache
\cache::make() may return a cache_disabled subclass but callers, specifically
user/lib.php:user_create_user(), invoke \cache::purge_current_user() which was
only implemented by the cache_session subclass.  Added empty
\cache::purge_current_user() which subclasses can implement, i.e.
cache_session, or not, i.e. cache_disabled.
2019-04-01 15:29:39 +01:00
David Monllaó f54a4092c7 MDL-61667 analytics: Remove duplicated capability checks
\core_analytics\model::create and \core_analytics\model::enable methods
are called from install/upgrade scripts. Therefore, they should not
include any capability check. Their capability checks are actually
redundant, as the user capabilities are already checked in the
entry-point scripts.
2019-04-01 14:57:57 +02:00
David Mudrák d887b0c7f7 MDL-61667 analytics: Fix coding style issues in the existing code
These coding style issues were spotted while working on the issue. No
real changes here, just the coding style fixes attached to the patchset
for convenience.
2019-04-01 14:23:06 +02:00
David Mudrák 606c3be0f6 MDL-61667 analytics: Create missing models on install/upgrade
Similarly to how the scheduled tasks work, we now automatically check
and make sure that all the models specified in the component's
db/analytics.php file exist during the installation or upgrade of the
component.
2019-04-01 14:23:06 +02:00
David Mudrák aa8af6fcfc MDL-61667 analytics: Fix checking that a given model does not exist
The original implementation did not work well for checking that the
given model does NOT exist. If no record was found in the
analytics_models table, the code execution continued and it reached the
moment when indicators were checked. If no indicators were provided, the
call ended up with error 'array_keys() expects parameter 1 to be array,
boolean given' (because indicators were set to false).
2019-04-01 14:23:06 +02:00
David Mudrák 3b7c7918f3 MDL-61667 analytics: Deprecate the add_builtin_models() method
The functionality of the \core_analytics\manager::add_builtin_models()
method is to be replaced with automatic update of models provided by the
core moodle component. There is no need to call this method explicitly
any more. Instead, adding new models will be done by updating the
lib/db/analytics.php file and bumping the core version.
2019-04-01 14:23:06 +02:00
David Mudrák 6187213f39 MDL-61667 analytics: Add method to actually create a declared model
This is simply a wrapper around the model's create() method that works
with the model declaration syntax from the db/analytics.php file.
2019-04-01 14:23:06 +02:00
David Mudrák f05840451e MDL-61667 analytics: Add methods to read and validate model declarations
Allow every component to declare prediction models it provides via the
db/analytics.php file.
2019-04-01 14:23:06 +02:00
David Mudrák 4de4d1652b MDL-61667 analytics: Don't autoenable models with time splitting defined
When the API had originally been designed, it was assumed that the
presence of the time splitting method implies no requirement for the
machine learning backend and that it is a sign of less performance
demanding models. So it seemed to be safe and useful to have such models
automatically enabled. That assumption did not prove to be valid. Most
of the time is spent calculating indicators that depend on log tables.

We realized it would be useful to be able to specify the default time
splitting method without the need to have such models auto-enabled.
2019-04-01 14:23:06 +02:00
David Monllaó 75dfc588b5 MDL-64779 tool_analytics: Export selector 2019-04-01 13:56:37 +02:00
Adrian Greeve 878c88df95 Merge branch 'MDL-65050-master-fix' of git://github.com/lameze/moodle 2019-04-01 16:05:34 +08:00
Simey Lameze 6e049bdbc6 MDL-65050 core: add missing lib file include 2019-04-01 15:59:03 +08:00
Damyon Wiese 647fd16ec9 MDL-65144 output: Add img-fluid to logo
Extra wide logos do not scale to the screen size - this change adds the bootstrap class
img-fluid to logos on the loginpage, signupform and in the context header.

Thanks to Maksud R for working on this.
2019-04-01 15:49:29 +08:00
Simey Lameze 73fabadadd MDL-65138 course: add a setting for course publishing 2019-04-01 15:39:07 +08:00
Jake Dallimore 4a2ee121fc Merge branch 'MDL-65089_master' of https://github.com/dvdcastro/moodle 2019-04-01 15:28:48 +08:00
Trisha Milan 600de03e05 MDL-64894 Theme: Fix unable to expand collapsible topics 2019-04-01 14:54:18 +08:00
Jake Dallimore 9f32a85852 Merge branch 'MDL-64194-37_block_myoverview_incorrect_pagination' of https://github.com/tomdickman/moodle 2019-04-01 14:36:01 +08:00
Brendan Heywood b940ca995a MDL-64394 core: Fixed bug when using access log with pre_loginpage_hook 2019-04-01 16:48:22 +11:00
Jun Pataleta a8c91e88bf Merge branch 'MDL-64524-master' of git://github.com/damyon/moodle 2019-04-01 13:46:48 +08:00
Adrian Greeve d15b5340cc Merge branch 'MDL-65050-master' of git://github.com/lameze/moodle 2019-04-01 13:32:38 +08:00
Simey Lameze d499cb3593 MDL-65050 core: delete orphaned files and functions 2019-04-01 12:57:05 +08:00
Simey Lameze 9c164d26fc MDL-65050 core: add question_stats_cleanup_task scheduled task
This commit also removes orphaned question/engine/statisticslib.php
2019-04-01 12:57:05 +08:00
Simey Lameze 10810f421b MDL-65050 core: move function code to question_preview_cleanup_task
This commit also deletes the legacy question_preview_cron() function.
2019-04-01 12:57:05 +08:00
Simey Lameze 5a01c2409a MDL-65050 core: rename task to question_preview_cleanup_task 2019-04-01 12:57:01 +08:00
Damyon Wiese 4b9c3e44e0 MDL-64524 gradingform_guide: Marking guide comments
When there are too many comments, scroll the list so they still fit in the dialogue.
2019-04-01 12:17:27 +08:00
Damyon Wiese 284babb0d7 MDL-64524 assign: Styles editpdf comments
Properly display the list of comments, but limiting their size (use title to indicate the full comments).
When there are too many comments, show a scrollbar in the menu.
2019-04-01 12:17:27 +08:00
Jun Pataleta db3527c2cc Merge branch 'MDL-63906_master' of git://github.com/dmonllao/moodle 2019-04-01 10:32:10 +08:00
Adrian Greeve 6934691fce Merge branch 'MDL-65173_master' of git://github.com/markn86/moodle 2019-04-01 10:21:10 +08:00
Simey Lameze 9bec0e7e74 MDL-65207 core: replace typos by actually 2019-04-01 08:49:18 +08:00
Eloy Lafuente (stronk7) 6c8c286d60 MDL-65218 recycle bin: cover immunization via settings provider
Both for course and category recycle bins
2019-03-31 22:53:53 +02:00
Eloy Lafuente (stronk7) 311123bcce MDL-65218 recycle bin: immunize recycle bin from backup_auto_storage
As far as recycle bin is using MODE_AUTOMATED, it observes the backup_auto_storage
setting (storing backups @ real location. For recycle bin we want to ensure that
backup files are always stored in Moodle file area. In order to achieve that, we
hack the setting here via $CFG->forced_plugin_settings, so it won't interfere other
operations.  See MDL-65218 for more information.

This hack will be removed once recycle bin switches to use its own backup mode, with
own preferences and 100% appart from MODLE_AUTOMATED.
2019-03-31 22:53:41 +02:00
Eloy Lafuente (stronk7) 8793f25279 MDL-65218 recycle bin: Course backups (cat bin) to use MODE_AUTOMATED
Surely this should have been done as part of MDL-63263, but it wasn't.
Better let's do it here so every recycle bin backup is using the
very same mode.
2019-03-29 20:44:16 +01:00
Jason Platts f7af1e0b9c MDL-65220 behat: test scenarios sometimes do not clear database data 2019-03-29 15:39:31 +00:00
Tim Hunt 05ea7ab19e MDL-65222 questions: explain question walkthrough tests 2019-03-29 14:49:39 +00:00
Tim Hunt f1ffd134d3 MDL-65029 questions: change question div id to acutally be unique
This is largely based on Simey Lameze's work.
2019-03-29 13:37:44 +00:00
Tobias Reischmann 90e331bcdc MDL-65206 calendar: Enable update of location in repeated events.
The location is now updated in repeated events if it is altered in one
event and the option 'Also apply changes to the other X events in this
repeat series' is selected. If the location is not altered but some
other details, then manual changes of the location in other events
will not be overriden.
2019-03-29 14:13:43 +01:00
Victor Deniz Falcon 03fce0a71d MDL-64636 analytics: new course_completion target
Added new target to predict which students are at risk of not meeting
the course completion criteria.
2019-03-29 10:29:45 +00:00
Víctor Déniz Falcón 48ac554c51 MDL-64636 analytics: base class for course completion targets
Added new parent class for targets that use course as analysable and
student enrolments as samples. course_dropout target was modified to
extend that parent class.
2019-03-29 10:27:50 +00:00
Paul Holden 114973b549 MDL-59326 admin: use passwordunmask element for shared secrets. 2019-03-29 09:27:45 +00:00
Eloy Lafuente (stronk7) 09b97f40fc MDL-65214 install: update the list of stale files for 3.7 2019-03-29 10:00:38 +01:00
Sara Arjona ccd4752356 MDL-65127 message: add aria-labels to the numbers in the overview
Add aria-label to the unread message and notification icons.
Add aria-label to the total conversations, unread conversations
and unread messages in the overview.
Add aria-label to the pending contact requests in the overview
and also in the contacts tab.
Add aria-hidden to the last message date.
2019-03-29 09:38:22 +01:00
Sara Arjona 3d8cf610d9 MDL-65087 message: add aria-label to some buttons on bootstrapbase
The aria-label has been added to the settings and search buttons and
also to the starred image displayed when a conversation is favourited.
2019-03-29 09:33:35 +01:00
Sara Arjona 67855b3b4e MDL-65087 message: add aria-label to search, settings and starred 2019-03-29 09:33:35 +01:00
Sara Arjona e758a9b932 MDL-65087 message: add button role to action links on bootstrapbase
For accessibility reasons, add the role="button" attribute to the links
with href="#" performing actions for the bootstrapbase theme, like
the settings icon.
2019-03-29 09:33:35 +01:00
Sara Arjona c0d2558c43 MDL-65087 message: add button role to all the links that perfom actions
For accessibility reasons, add the role="button" attribute to the links
with href="#" performing actions, like the icon to open the messaging
drawer.
2019-03-29 09:33:35 +01:00
Adrian Greeve e39991c3c0 MDL-59081 mod_lesson: Behat test for new features.
1. Tests the catch all answer sections for the short answer
and numerical page types.
2. Tests to check that the continue buttons will not double
up if they both go to the same page.
2019-03-29 14:14:01 +08:00
Adrian Greeve dab563f5a6 MDL-59081 mod_lesson: Remove continue button if not needed.
This checks to see if the continue button goes to the same
page as the try again button and removes it if it does.
2019-03-29 14:14:01 +08:00
Adrian Greeve 49898ef3b4 MDL-59081 mod_lesson: Shortanswer form update. Catch all.
The short answer question type now has a form element that
will catch all other responses.
2019-03-29 14:14:01 +08:00
Adrian Greeve 408dd99ac2 MDL-59081 mod_lesson: Update to Numerical question type
The numerical question type now has way to capture all
other answers.
2019-03-29 14:14:01 +08:00
Adrian Greeve 568ef8bb05 MDL-59081 mod_lesson: Add other answer options to questions
This adds another form field that will catch all other
answers made by the student.

Current question types updated are numerical and shortanswer.
2019-03-29 14:14:01 +08:00
Jun Pataleta cd69d45d22 MDL-46975 core_auth: Make email validation case-insensitive
* Make email query case-insensitive
* Check only for duplicate emails if $CFG->allowaccountssameemail
is empty.
* Compare the values in "Email address" and "Email (again)" in the
signup form in a case-insensitive fashion.
2019-03-29 13:37:07 +08:00
Jun Pataleta 7eb5148264 MDL-46975 auth_email: Behat test for email validation on signup 2019-03-29 13:37:07 +08:00
Jun Pataleta e9e1ecafda MDL-29318 login: Handle email in case-insensitive manner
* Let get_complete_user_data() handle the fetching of user data and
  handle the logic of the errors to be shown based on the exception
  it throws. This also saves us 1 DB query by eliminating the need to
  count for the users that match a given email first before fetching
  user information.
2019-03-29 13:31:44 +08:00
Jun Pataleta 99ead77b1c MDL-29318 login: Additional test for forgot_password_data_provider() 2019-03-29 13:31:44 +08:00
Jun Pataleta b858b16130 MDL-29318 core: Fixes for get_complete_user_data()
* Added email in the list of case-insensitive fields.
* New optional parameter $throwexception for \get_complete_user_data().
  If true, an exception will be thrown when there's no matching record
  found or when there are multiple records found for the given field
  value. If false, it will simply return false.
  Defaults to false when not set. This ensures that
  get_complete_user_data() fetches the correct user data.
2019-03-29 13:31:44 +08:00
Jun Pataleta 7f90fb5faf MDL-29318 core: More unit tests for get_complete_user_data() 2019-03-29 13:29:48 +08:00
Jun Pataleta 2791334251 MDL-29317 gradeimport_csv: Case-insensitive query for email and username
Query using the following fields for
\gradeimport_csv_load_data::check_user_exists() should be done in a
case-insensitive manner:
* email - As agreed in MDL-29315
* username - Although usernames can only be in lowercase during
  registration, usernames are being handled in a case-insensitive
  fashion when logging in. It makes sense to make check_user_exists()
  consistent with this behaviour.
2019-03-29 13:29:32 +08:00
Jun Pataleta d65a927694 MDL-29317 gradeimport_csv: Tests for case-insensitivity 2019-03-29 13:29:32 +08:00
Jun Pataleta a6702d2974 Merge branch 'MDL-63876-master-fix' of git://github.com/junpataleta/moodle 2019-03-29 12:15:00 +08:00
Jun Pataleta 595fa0c5d3 MDL-63876 tool_lp: Fix illegal whitespace 2019-03-29 12:13:48 +08:00
Jun Pataleta 7ccbfddb67 Merge branch 'MDL-63876-master' of git://github.com/damyon/moodle 2019-03-29 11:45:29 +08:00
Damyon Wiese f44557d045 MDL-63876 badges: Competency deletion
Do not delete a competency if it is a criteria for a badge.
2019-03-29 11:31:15 +08:00
Damyon Wiese 6bdaf20462 MDL-63876 competencies: Skip enabled check
Allow rendering a competency summary if competencies are disabled, but do not include
links to competencies pages.
2019-03-29 11:31:15 +08:00
Damyon Wiese 8aff6f6f14 MDL-63876 badges: Coding style
Add comments to document function params and template example context.
2019-03-29 11:31:15 +08:00
Damyon Wiese 43f1c8e23c MDL-63876 badges: Allow criteria to be optional
Competencies criteria type is only added if competencies are enabled.
2019-03-29 11:31:15 +08:00
Damyon Wiese 15e6a76e6f MDL-63876 competencies: Use direct URL
Instead of showing competencies in a dialogue, give them their own full url to
display the competency in the framework it belongs to. This is useful for exported
data that won't have access to javascript.
2019-03-29 11:31:15 +08:00
Damyon Wiese da5e19a128 MDL-63876 badges: Do not call tool_lp directly 2019-03-29 11:31:15 +08:00
Damyon Wiese f94786e0e1 MDL-63876 badges: Add competency criteria
Properly integration badges with competencies provided in Moodle.

Automatically grant the badge when the defined competencies are marked as proficient.
2019-03-29 11:31:15 +08:00
Damyon Wiese e8bfd9b4a9 MDL-63876 badges: Remove invalid table from badges 2019-03-29 11:30:09 +08:00
Jake Dallimore 51be3bf18d MDL-65114 core_message: date format depends on message age
Messages sent today are displayed using 24 hour time, e.g. "14:21".
Older messages are displayed using the format, e.g. "31/01/2019".
2019-03-29 09:18:09 +08:00
Tom Dickman 5ae4db8852 MDL-64855 block_myoverview: add setting for course categories display
Added an administrator setting to set the visibility of the course category for the my overview
block on the users dashboard to support usage scenarios where displaying the course categories will
clutter course overviews.
2019-03-29 12:06:07 +11:00
Tom Dickman e04b82d30d MDL-64194 block_myoverview: incorrect pagination
The pagination was found to be incorrect due to the all the items event not being triggered if the amount
of courses the user has is equal to the amount set via pagination.
The condition could not just be changed to `>=` as this would trigger the event when there were further
pages to display.
A check of `remainingCourses` was added to condition so if the amount of courses on the current loaded
page is less than the pagination amount, or there are no remaining courses, the all items event is
triggered and the pagination bar hidden correctly.
2019-03-29 11:54:08 +11:00
Tom Dickman 0d6a45d2fe MDL-64284 core: improved performance of component class searching
Added static caching of classes to reduce load times and reduce calls to `get_component_classes`
by altering to accept a null component value to search classmap only once.
2019-03-29 11:44:43 +11:00
AMOS bot 4953185c87 Automatically generated installer lang files 2019-03-29 00:15:16 +00:00
David Castro 2afee18b34 MDL-65089 glossary: Enforcing case comparison in SQL. 2019-03-28 18:34:54 -05:00
Dmitrii Metelkin 23533bc467 MDL-64701 search: change category for customfield search area 2019-03-29 08:38:57 +11:00
Dmitrii Metelkin 89d9a774fa MDL-65112 mod_lesson: fix html for shortanswer responses 2019-03-29 08:29:55 +11:00
sam marshall bb044f5394 MDL-65179 Web service: Token last access is updated too frequently 2019-03-28 17:11:33 +00:00
Eloy Lafuente (stronk7) 0920f35ed9 weekly release 3.7dev 2019-03-28 16:48:59 +01:00
Eloy Lafuente (stronk7) 27ee973230 NOBUG: Fixed SVG browser compatibility 2019-03-28 16:48:54 +01:00
Eloy Lafuente (stronk7) 623fb60498 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-03-28 16:48:52 +01:00
Eloy Lafuente (stronk7) 562e1f9b00 Merge branch 'MDL-63196-master' of git://github.com/lameze/moodle 2019-03-28 00:12:27 +01:00
Eloy Lafuente (stronk7) 340f5c9e77 Merge branch 'MDL-64996-master-untrainedstaticmodels' of git://github.com/mudrd8mz/moodle 2019-03-27 23:45:15 +01:00
Eloy Lafuente (stronk7) 868e863253 Merge branch 'MDL-62992-master' of git://github.com/lameze/moodle 2019-03-27 23:05:56 +01:00
Eloy Lafuente (stronk7) 510c107aa9 Merge branch 'MDL-64664-master' of git://github.com/cescobedo/moodle 2019-03-27 22:58:27 +01:00
Eloy Lafuente (stronk7) 199d0b01e1 Merge branch 'MDL-65044-master' of git://github.com/lameze/moodle 2019-03-27 22:47:30 +01:00
Eloy Lafuente (stronk7) 18f460edea Merge branch 'MDL-65047-master' of git://github.com/lameze/moodle 2019-03-27 22:30:18 +01:00
Eloy Lafuente (stronk7) 12404fa275 Merge branch 'MDL-65051-master' of git://github.com/lameze/moodle 2019-03-27 22:27:25 +01:00
cescobedo 994b006421 MDL-64664 core_message: Create more specific selector to contact menu 2019-03-27 13:43:09 +01:00
Jun Pataleta b117e55e3a Merge branch 'MDL-63995-master' of https://github.com/chocolate-lightning/moodle 2019-03-27 16:07:34 +08:00
Mathew May 66f897ec15 MDL-63995 blocks: correct typos from review 2019-03-27 16:05:56 +08:00
Shamim Rezaie 072a033a79 MDL-65102 core_form: autocomplete element to handle submit event 2019-03-27 19:00:27 +11:00
Jun Pataleta d15d054f7c Merge branch 'MDL-64937-master' of https://github.com/lucaboesch/moodle 2019-03-27 14:37:16 +08:00
Simey Lameze 42f58d99f9 MDL-65051 core: delete duplicated plagiarism_cron() 2019-03-27 11:38:08 +08:00
Simey Lameze 39802ea08a MDL-65051 core: delete plagiarism_cron() function 2019-03-27 11:37:51 +08:00
Simey Lameze 3528bce1a6 MDL-65051 plagiarism: convert legacy cron function to task 2019-03-27 11:34:04 +08:00
Simey Lameze a5f691e43c MDL-65044 core: remove legacy grade_cron() function 2019-03-27 11:21:50 +08:00
Simey Lameze 5acef15175 MDL-65044 core: add task for grade history cleanup 2019-03-27 11:17:36 +08:00
Simey Lameze d8e72a6aad MDL-65047 portifolio: delete legacy portfolio_cron() function 2019-03-27 11:04:40 +08:00
Jun Pataleta 17f1370be7 Merge branch 'MDL-65008_master' of https://github.com/dvdcastro/moodle 2019-03-27 10:41:06 +08:00
Simey Lameze 01bace6665 MDL-62992 quiz: fix tags filtering on random question modal 2019-03-27 10:21:07 +08:00
Simey Lameze 2cfd8d1678 MDL-62992 question: conditionaly enable question tags feature 2019-03-27 10:16:05 +08:00
Eloy Lafuente (stronk7) 5c3b97279b Merge branch 'MDL-43130' of https://github.com/paulholden/moodle 2019-03-27 00:17:27 +01:00
Eloy Lafuente (stronk7) f3038b04c6 Merge branch 'MDL-65081-master' of git://github.com/junpataleta/moodle 2019-03-26 22:38:06 +01:00
Eloy Lafuente (stronk7) 56f9f500ea Merge branch 'MDL-64252-master' of git://github.com/jleyva/moodle 2019-03-26 22:34:50 +01:00
Sara Arjona ca06f046af Merge branch 'MDL-64642-master' of https://github.com/albertgasset/moodle 2019-03-26 19:36:21 +01:00
Albert Gasset f19beb3279 MDL-64642 tool_mobile: Web service tool_mobile_call_external_functions 2019-03-26 16:26:06 +01:00
Sara Arjona cf7f8ddaf8 Merge branch 'MDL-64365_hideif_forum' of git://github.com/davosmith/moodle 2019-03-26 15:11:28 +01:00
Sara Arjona 8ee06feeec Merge branch 'MDL-64337-master' of git://github.com/jleyva/moodle 2019-03-26 14:55:09 +01:00
Juan Leyva c6ebb024f2 MDL-64337 tool_mobile: Add app promotion text in email notifications 2019-03-26 14:51:21 +01:00
Juan Leyva 5ba12283d4 MDL-64337 core: New _pre_processor_message_send callback
We need this callback to be able to manipulate any message or notification data.
2019-03-26 14:51:18 +01:00
Eloy Lafuente (stronk7) 67481bef21 Merge branch 'MDL-63152-master' of git://github.com/rezaies/moodle 2019-03-26 13:28:07 +01:00
Eloy Lafuente (stronk7) 999d8ea517 Merge branch 'MDL-63149-master' of git://github.com/rezaies/moodle 2019-03-26 13:24:59 +01:00
Eloy Lafuente (stronk7) a43264cc14 Merge branch 'MDL-63151-master' of git://github.com/rezaies/moodle 2019-03-26 13:13:15 +01:00
Sara Arjona e64a0d0f08 Merge branch 'MDL-64705-master' of git://github.com/jleyva/moodle 2019-03-26 09:14:13 +01:00
Shamim Rezaie 0b23fad474 MDL-65094 registration: don't encourage registration if on localhost 2019-03-26 16:54:19 +11:00
Kiet.Chan 2b27c49aad MDL-65137 behat: Step "I press...the app" should be able to select image 2019-03-26 10:53:31 +07:00
Brendan Heywood 93ee70824f MDL-65072 core_lock: Add timeout unit tests 2019-03-26 14:29:16 +11:00
Brendan Heywood ecbe920656 MDL-65072 core_lock: Locks with a zero timeout return asap 2019-03-26 14:29:16 +11:00
Damyon Wiese bdba44193d MDL-65178 competencies: count_competencies fix
Fix sql error in course_module_competency::count_competencies() function.
2019-03-26 09:47:09 +08:00
Andrew Nicols 71cbc0550f MDL-65168 dml: Move preload SQL functions to self-contained class 2019-03-25 23:05:22 +01:00
Juan Leyva 55a081bd87 MDL-64705 notes: Make notes WS return permissions information
We need to know some capabilities in order to enable users to manage notes.
2019-03-25 19:01:20 +01:00
Sara Arjona 7896fdf106 Merge branch 'MDL-64615-master' of git://github.com/jleyva/moodle 2019-03-25 18:20:01 +01:00
Sara Arjona 1fa58319e7 Merge branch 'MDL-64658-master' of git://github.com/jleyva/moodle 2019-03-25 15:43:35 +01:00
Juan Leyva e0695f8764 MDL-64658 files: Support constant to avoid file merging
... in file_save_draft_area_files
2019-03-25 14:57:18 +01:00
Sara Arjona 03fa6b48ad Merge branch 'MDL-64790-master_apidoc_fix' of https://github.com/nicoroeser/moodle 2019-03-25 12:37:54 +01:00
David Mudrák b29cfc582f MDL-64996 analytics: Make sure the no_teaching model is trained
Due to the bug, the no_teaching model might have been marked as
not-trained in the database. Static predictions models (i.e. those using
a target based on assumptions, not facts) are always considered as
trained. If they were marked as not-trained, the prediction scheduled
task would skip them and they would produce no predictions.

Ideally, such a fix should be done for all static models. But there is
no easy way to do it during the upgrade where accessing the analytics
API is not possible. I don't think there are many models out there that
would be affected by this so this seems to be good enough solution for
now (and the future ability to reset models will cover the rest).
2019-03-25 10:16:44 +01:00
Mark Nelson 2a0b517257 MDL-65173 message_email: removed bogus logic
This reverts commit 0f38e62970.
2019-03-25 17:12:53 +08:00
David Mudrák 964ccd9655 MDL-64994 analytics: Improve the Python package version check
Use the new method to check that the installed Python package has high
enough yet still API-compatible version.
2019-03-25 09:24:33 +01:00
David Mudrák 2d8405e99e MDL-64994 analytics: Add a simple semantic version check method
This method is to be used for checking that a compatible version of the
moodlemlbackend package is installed on the server. The package is
expected to use the semantic versioning scheme (semver.org).
2019-03-25 09:24:33 +01:00
David Mudrák c679d39c36 MDL-64996 analytics: Don't mark static model as untrained after clearing
Static predictions models (i.e. those using a target based on
assumptions, not facts) are always considered as trained. Clearing them
must not mark them as untrained. Doing so would make them being skipped
by the prediction scheduled task.
2019-03-25 08:56:11 +01:00
Adrian Greeve 025cf94cfe Merge branch 'MDL-60339-master' of git://github.com/Chocolate-lightning/moodle 2019-03-25 11:09:54 +08:00
Adrian Greeve bf1537b600 Merge branch 'MDL-64492-master' of git://github.com/damyon/moodle 2019-03-25 10:58:05 +08:00
Jun Pataleta 866562024b Merge branch 'MDL-64820-master-fix' of git://github.com/junpataleta/moodle 2019-03-25 09:38:56 +08:00
Jun Pataleta 49b928ef95 Merge branch 'MDL-64820-master-fix' of https://github.com/andrewnicols/moodle 2019-03-25 09:38:04 +08:00
Andrew Nicols 7aa6affa49 MDL-64820 forum: Correct capability check and redir 2019-03-25 09:36:49 +08:00
AMOS bot 96d9b077a4 Automatically generated installer lang files 2019-03-25 00:09:15 +00:00
Andrew Nicols e5a501de13 MDL-64820 forum: Pass legacy forum record to rss 2019-03-25 08:08:32 +08:00
Andrew Nicols 4c8f0f0d1d MDL-64820 forum: Remove duplicate column for discussion 2019-03-25 08:08:10 +08:00
Dan Marsden ef78cf8f42 MDL-63995 blocks: Remove unused capabilities and warning. 2019-03-25 12:20:13 +13:00
Abhimanyu Kumar 9fff4ebb0a MDL-64959 uploaduser: remove leading/trailing spaces from CSV headings
Earlier while uploading users via CSV, if any leading or trailing space was there in
headings of CSV file then error was displayed which will be difficult for a non-technical
person to understand. After this patch, leading and trailing spaces from headings will
be trimmed automatically.
2019-03-23 22:33:51 +05:30
maksudr 72629ee8c0 MDL-62307 mod_feedback: Decode HTML special char in add_form_element() 2019-03-22 15:44:35 +00:00
Jun Pataleta 9e5cdcd50c MDL-64820 mod_forum: Make different aliases for first and last authors 2019-03-22 21:55:51 +08:00
Jun Pataleta becf457d39 Merge branch 'MDL-65082-master' of git://github.com/andrewnicols/moodle 2019-03-22 16:26:33 +08:00
Andrew Nicols a79c2c927c MDL-65082 mod_forum: Deprecate forum_print_latest_discussions 2019-03-22 15:01:48 +08:00
Andrew Nicols 23f5e65ebe MDL-65082 core_course: Update frontpage view to use new forum API 2019-03-22 15:01:48 +08:00
Andrew Nicols 1bfaeeb2eb MDL-65082 format_social: Update social format to use new API 2019-03-22 15:01:48 +08:00
Mathew May 3828422d82 MDL-60339 course: Course editing only checked against site:manageblocks.
Add in additional capabilities to the page. When all_editing_caps is called it'll check against
moodle/site:manageblocks & added capabilities. If moodle/site:manageblocks
was not set the user would have trouble editing the page.
2019-03-22 13:47:16 +08:00
Damyon Wiese 5a7b845059 MDL-65153 competencies: Urls course competencies
The template for the course competencies page expects a pluginbaseurl parameter
but the webservice that fetches when rendered by AJAX is missing this property.
2019-03-22 13:16:38 +08:00
Simey Lameze 219422e420 MDL-65047 core: convert legacy cron to scheduled task 2019-03-22 13:13:55 +08:00
Andrew Nicols c661a129d1 MDL-65082 forum: Reorganise social templates 2019-03-22 11:14:05 +08:00
Jun Pataleta 92c28d075f MDL-65081 core_output: Unit tests for single_select and url_select 2019-03-22 11:12:21 +08:00
Jun Pataleta 5f30600f43 MDL-65081 core_output: Set single_select and url_select attributes 2019-03-22 11:12:21 +08:00
Jun Pataleta 74ee2556be Merge branch 'mod_forum-discussion-poc' of https://github.com/ryanwyllie/moodle 2019-03-22 11:04:35 +08:00
Damyon Wiese 8adb1b1e3d MDL-64492 course: Hide activity icons for Ally
Empty alt text results in an image with no label.
role="presentation" does not hide - it only removes the semantic information.
If the image provides no information, make it hidden with aria-hidden.
2019-03-22 11:01:29 +08:00
Simey Lameze 54fec0c30b MDL-63196 core_calendar: add behat scenario 2019-03-22 10:41:00 +08:00
Simey Lameze f19f6cceaf MDL-63196 calendar: add missing option to export category events 2019-03-22 10:41:00 +08:00
Ryan Wyllie 446ba04650 MDL-64820 forum: fix cibot complaints 2019-03-22 10:38:41 +08:00
Damyon Wiese f65a888901 MDL-65149 emoticons: Do not show all emoticons
Allow some emoticons to still work, but not be selectable from the text editor plugins.
2019-03-22 10:05:25 +08:00
Simey Lameze be8f453b74 MDL-65044 core: convert legacy cron to scheduled task 2019-03-22 09:46:30 +08:00
Ryan Wyllie f30f46db39 MDL-64820 forum: fix up issues from review 2019-03-22 09:31:21 +08:00
Ryan Wyllie 858179b024 MDL-64820 forum: fix behat tests 2019-03-22 09:31:21 +08:00
Mihail Geshoski 7661ccddfd MDL-64820 forum: Add timed in discussion list table 2019-03-22 09:31:21 +08:00
Ryan Wyllie c5477bfc65 MDL-64820 forum: add missing classes and tweaks to templates
Added in required classes for behat and tweaks to get the behat
tests passing.
2019-03-22 09:31:21 +08:00
Ryan Wyllie 69aa03623d MDL-64820 forum: fix create discussion behat step 2019-03-22 09:31:21 +08:00
Ryan Wyllie bda290ee91 MDL-64820 forum: various fixes to /mod/forum/view.php
Added missing params, missing variables, and missing session
properites.
2019-03-22 09:31:21 +08:00
Ryan Wyllie 94552394c9 MDL-64820 forum: fix blog discussion list ordering 2019-03-22 09:31:21 +08:00
Ryan Wyllie 15f7dbe573 MDL-64820 forum: fix notifications for discussions in group mode 2019-03-22 09:31:21 +08:00
Ryan Wyllie 57ad9a0ce7 MDL-64820 forum: add classes to first post to fix behat 2019-03-22 09:31:21 +08:00
Ryan Wyllie 96a49734ac MDL-64820 forum: fix missing context in subscribe external func 2019-03-22 09:31:21 +08:00
Ryan Wyllie b4d47dec1e MDL-64820 forum: change disucssion subscribe back to link
Changed the discussion subscribe button back to a link because
it was breaking all of the behat tests.
2019-03-22 09:31:21 +08:00
Ryan Wyllie 7c1d857da4 MDL-64820 forum: fix subscription mode in forum entity 2019-03-22 09:31:21 +08:00
Mihail Geshoski 54d38a7347 MDL-64820 forum: convert view.php to new rendering 2019-03-22 09:31:21 +08:00
Ryan Wyllie 2e19ca183b MDL-64820 forum: deprecate forum print functions 2019-03-22 09:31:21 +08:00
Ryan Wyllie 9ea78fd041 MDL-64820 forum: convert user.php to user new rendering 2019-03-22 09:31:20 +08:00
Ryan Wyllie aa99838d50 MDL-64820 forum: convert search.php to new rendering 2019-03-22 09:31:20 +08:00
Ryan Wyllie 313d8b6e49 MDL-64820 forum: convert post.php to new rendering 2019-03-22 09:31:20 +08:00
Ryan Wyllie 615680c5d8 MDL-64820 forum: convert discuss.php to new rendering 2019-03-22 09:31:20 +08:00
Ryan Wyllie 2646e9d6d2 MDL-64820 forum: add subscription toggling to discussion list 2019-03-22 09:31:20 +08:00
Ryan Wyllie 47d38303cf MDL-64820 forum: add new classes for rendering to local namespace 2019-03-22 09:24:05 +08:00
Ryan Wyllie 2f6f3397fc MDL-64820 forum: add all discussion fields to forum_get_discussions 2019-03-22 09:24:05 +08:00
Ryan Wyllie 4dc671a920 MDL-64820 forum: add caching to forum_tp_is_tracked 2019-03-22 09:24:05 +08:00
Ryan Wyllie 72a3d05b7e MDL-64820 portfolio: add url return for portfolio_add_button to_html 2019-03-22 09:24:04 +08:00
Ryan Wyllie cba111b376 MDL-64820 filestorage: add multi item support to get_area_files 2019-03-22 09:24:04 +08:00
Ryan Wyllie a30570c555 MDL-64820 dml: add object preloading helpers 2019-03-22 09:24:04 +08:00
Ryan Wyllie f98553fc1b MDL-64820 external: add paged_content exporter 2019-03-22 09:24:04 +08:00
Ryan Wyllie a307a47651 MDL-64820 external: add isimage to stored_file exporter 2019-03-22 09:24:04 +08:00
Peter 432cdac4bd MDL-64820 core: Exporter read_definition
Modified the read_properties_definition to recursively check and set the default array values expected.
2019-03-22 09:24:04 +08:00
Luca Bösch f4967f1849 MDL-64937 icons: amend collapsed and reload icons. 2019-03-21 23:20:59 +01:00
Eloy Lafuente (stronk7) 3271c39c74 weekly release 3.7dev 2019-03-21 20:19:27 +01:00
Eloy Lafuente (stronk7) c071eefced NOBUG: Fixed file access permissions 2019-03-21 20:19:27 +01:00
Jun Pataleta f2ad613278 MDL-61537 assignfeedback_editpdf: Check for existence of old test images
Since error suppression was removed with the call to unlink() to make
sure that there are no previous test image files before testing for the
gs path, make sure that it exists first before deleting to prevent it
from throwing any errors.
2019-03-21 22:38:05 +08:00
Cameron Ball f321b0515a MDL-65104 registration: Ensure $registration is always null when no record exists 2019-03-21 16:12:12 +08:00
Adrian Greeve 00229165d4 Merge branch 'MDL-46803-greedy-roles-reset2' of https://github.com/DSI-Universite-Rennes2/moodle 2019-03-21 11:20:38 +08:00
Andrew Nicols bc01342057 MDL-65130 privacy: Add @covers annotation to tests 2019-03-21 10:29:07 +08:00
Andrew Nicols 09d02b3914 MDL-65130 privacy: Fix memory hungry test 2019-03-21 09:52:24 +08:00
Andrew Nicols 51114517be MDL-65130 files: Add @covers Annotation 2019-03-21 09:00:41 +08:00
Adrian Greeve 004a16f9ad Merge branch 'MDL-61537-Master' of https://github.com/tuanngocnguyen/moodle 2019-03-21 08:57:02 +08:00
Andrew Nicols abbabc5a91 MDL-65130 phpunit: Only generate coverage where it is deliberate 2019-03-21 08:16:56 +08:00
Eloy Lafuente (stronk7) 794dada9d6 MDL-64563 theme_classic: regenerated with grunt 2019-03-21 00:41:29 +01:00
Eloy Lafuente (stronk7) 58190d4807 Merge branch 'wip-master-MDL-64563' of https://github.com/adpe/moodle 2019-03-21 00:35:05 +01:00
Eloy Lafuente (stronk7) 99774ce0c3 Merge branch 'MDL-64281-master' of git://github.com/jleyva/moodle 2019-03-21 00:27:27 +01:00
Eloy Lafuente (stronk7) a99ef60c6b MDL-63263 tool_recyclebin: show the note as part of the heading element
It looks better (IMO) than using admin_setting_description and works in all
branches.
2019-03-21 00:13:27 +01:00
Eloy Lafuente (stronk7) 5810888077 Merge branch 'MDL-63263-Master' of https://github.com/tuanngocnguyen/moodle 2019-03-20 23:14:32 +01:00
Eloy Lafuente (stronk7) 7cff174590 Merge branch 'MDL-65022' of https://github.com/Dagefoerde/moodle 2019-03-20 22:30:36 +01:00
Jan Dageförde f422e24d9c MDL-65059 messaging: don't refer to block plugin type
AMOS BEGIN
 CPY [block,core],[blockuserconfirmbutton,core_message]
AMOS END
2019-03-20 22:23:12 +01:00
maksudr 2ae0c9c7bc MDL-65038 core_files: Fix typo in function mock_response 2019-03-20 20:56:23 +00:00
Juan Leyva acfd5e8329 MDL-65019 core: Return repository type for main file 2019-03-20 15:29:53 +01:00
Jun Pataleta a67f9a9b0c Merge branch 'MDL-62872-master' of git://github.com/rezaies/moodle 2019-03-20 16:30:43 +08:00
Adrian Greeve b1869131cf Merge branch 'MDL-60936_master' of git://github.com/dmonllao/moodle 2019-03-20 14:50:46 +08:00
Adrian Greeve d08e28a3bb Merge branch 'MDL-21904' of git://github.com/jmvedrine/moodle 2019-03-20 14:14:02 +08:00
Adrian Greeve 9433fd4424 Merge branch 'MDL-65005-master-fix' of git://github.com/junpataleta/moodle 2019-03-20 13:55:45 +08:00
Jun Pataleta f50778c822 MDL-65005 tool_policy: Ensure the user's on the Dashboard after agreeing 2019-03-20 12:58:16 +08:00
Adrian Greeve d6d4b7aace MDL-64505 theme_classic: Grunt update and version formatting. 2019-03-20 12:12:35 +08:00
Adrian Greeve e081d6000e Merge branch 'MDL-64505-master-final' of git://github.com/mickhawkins/moodle 2019-03-20 09:26:39 +08:00
Eloy Lafuente (stronk7) 8b9a4cb68d Merge branch 'MDL-65085_master' of git://github.com/dmonllao/moodle 2019-03-20 00:39:28 +01:00
Eloy Lafuente (stronk7) 38b9362a7e Merge branch 'MDL-60340_master' of git://github.com/dmonllao/moodle 2019-03-20 00:36:51 +01:00
Eloy Lafuente (stronk7) a1c99c02cf Merge branch 'MDL-64990_master' of git://github.com/markn86/moodle 2019-03-19 23:03:56 +01:00
Eloy Lafuente (stronk7) cd8e0cf210 Merge branch 'MDL-64979-master' of https://github.com/sammarshallou/moodle 2019-03-19 22:01:27 +01:00
sam marshall 05a5d547b3 MDL-64979 Behat: Add option to increase timeouts 2019-03-19 17:17:55 +00:00
Eloy Lafuente (stronk7) 9f93263ada Merge branch 'MDL-65005-master' of git://github.com/junpataleta/moodle 2019-03-19 17:57:30 +01:00
Eloy Lafuente (stronk7) 8253ec7439 Merge branch 'MDL-63244-master' of git://github.com/lameze/moodle 2019-03-19 17:43:24 +01:00
Juan Leyva a918443ac6 MDL-65024 mod_url: Include the full URL in the module cached_cm_info 2019-03-19 15:43:12 +01:00
Simey Lameze 545e2abb91 MDL-63244 core: make mustache retrieve language 2019-03-19 15:03:51 +08:00
Jean-Michel Vedrine 5dd1cf33ab MDL-21904 qformat_aiken: add export feature. 2019-03-19 08:01:56 +01:00
Adrian Greeve bd1c96459d Merge branch 'MDL-64898-progress-teachers' of https://github.com/dmitriim/moodle 2019-03-19 14:22:22 +08:00
Adrian Greeve d0c649b332 Merge branch 'MDL-64958-master' of git://github.com/junpataleta/moodle 2019-03-19 13:41:09 +08:00
Adrian Greeve e3dd580980 Merge branch 'MDL-63144-master' of git://github.com/rezaies/moodle 2019-03-19 11:24:32 +08:00
Adrian Greeve c635e2515e Merge branch 'MDL-54592-master' of git://github.com/vmdef/moodle 2019-03-19 11:02:28 +08:00
Eloy Lafuente (stronk7) 319b14b2e7 Merge branch 'MDL-64974-master' of git://github.com/sarjona/moodle 2019-03-19 00:23:24 +01:00
Eloy Lafuente (stronk7) bcd5343602 Merge branch 'MDL-64987-master' of git://github.com/abgreeve/moodle 2019-03-19 00:21:07 +01:00
Eloy Lafuente (stronk7) 6eca6f3e54 Merge branch 'MDL-65006-master' of git://github.com/sarjona/moodle 2019-03-18 23:35:17 +01:00
Eloy Lafuente (stronk7) e0757dd508 Merge branch 'MDL-63074-master' of git://github.com/bmbrands/moodle 2019-03-18 20:15:48 +01:00
Eloy Lafuente (stronk7) c846784230 Merge branch 'MDL-64905-master' of git://github.com/abias/moodle 2019-03-18 20:00:46 +01:00
Eloy Lafuente (stronk7) e745a9ffe6 Merge branch 'MDL-64655-master' of git://github.com/jleyva/moodle 2019-03-18 12:40:11 +01:00
Victor Deniz Falcon 02a5d26bd5 MDL-54592 cachestore_mongodb: check MongoDB server connection
The connection to the MongoDB server is checked on the creation and
deletion of a cache store instance. If the connection fails during
creation, the instance is set as not ready. Before deleting a instance,
a new cachestore_mongodb object is created, and connection checked.
There is no reason to check again the connection in the instance_deleted() method.
2019-03-18 11:11:01 +00:00
Michael Hawkins 140de372fd MDL-64505 behat: Updated searching admin to work consistently
The way behat_admin::i_set_the_following_administration_settings_values
was searching would fail inconsistently, due to the timing of the steps
not always working correctly.
2019-03-18 18:59:23 +08:00
Michael Hawkins ba2b508ca7 MDL-64505 theme_classic: Behat updates for screen size false failures
This fixes some behat failures in the Classic theme,
which were caused by the default screen size obfuscating page
elements for behat, where a normal user would still be able to
identify them.
2019-03-18 18:59:23 +08:00
Michael Hawkins 1815657b30 MDL-64505 theme_classic: Added Behat functionality and overrides 2019-03-18 18:59:23 +08:00
Bas Brands de213bf079 MDL-64505 theme_classic: Created the classic theme
The Classic theme is being introduced as a Bootstrap 4 replacement
for the older themes based on Bootstrap 2, such as Bootstrapbase,
Clean and More. It is a child theme of Boost, with a navigation
structure similar to the Clean theme.

Co-authored-by: Bas Brands <bmbrands@gmail.com>
Co-authored-by: Michael Hawkins <michaelh@moodle.com>
2019-03-18 18:59:23 +08:00
Michael Aherne bf93e13abe MDL-65096 docs: Use static return type in persistent 2019-03-18 10:30:48 +00:00
Julien Boulen b1d1369dff MDL-46803 course: Prevent unenrol users with multiple roles during reset 2019-03-18 11:20:08 +01:00
David Monllaó 3576b66bfd MDL-60936 analytics: Timesplittings setting only for evaluation 2019-03-18 09:34:52 +01:00
Shamim Rezaie 39966b190d MDL-63152 mod_workshop: Add userid param to calendar callbacks 2019-03-18 15:52:24 +11:00
Shamim Rezaie ada27f6b7e MDL-63152 mod_workshop: check if the module is visible to the user 2019-03-18 15:50:43 +11:00
Shamim Rezaie 7dfa238c08 MDL-62872 atto_recordrtc: max_filesize detection fix 2019-03-18 15:18:43 +11:00
Jake Dallimore 0423ed4a0f Merge branch 'MDL-65291' of git://github.com/stronk7/moodle 2019-03-16 07:16:09 +08:00
Eloy Lafuente (stronk7) 66ce31662f MDL-65291 phpunit: Make a test immune to DST changes 2019-03-16 00:16:02 +01:00
Juan Leyva b0cf7af4b7 MDL-64252 mod_scorm: New WS mod_scorm_get_scorm_access_information 2019-03-15 21:39:01 +01:00
David Monllaó 0bd52bfdac MDL-63906 analytics: Release the lock on \Throwable received 2019-03-15 15:48:27 +01:00
Víctor Déniz Falcón 2a944b5b41 MDL-54592 cachestore_mongodb: MongoDB cache store use new driver.
The scope of this change is limited to modifying the MongoDB cache
plugin to use the new version of the driver that accepts PHP 7.x
versions. Following the instructions in the official MongoDB
documentation, https://docs.mongodb.com/php-library/current/, the
MongoDB PHP Library was included and used.
2019-03-15 13:50:51 +00:00
Víctor Déniz Falcón b3c0e79678 MDL-54592 cachestore_mongodb: add MongoDB PHP Library
The new mongodb extension provides a limited API. The MongoDB PHP adds a
high level abstraction layer that provides methods for CRUD operations
and common commands. This version of MongoDB PHP Library requires
the PHP mongodb extension >= 1.5.
2019-03-15 13:50:51 +00:00
David Monllaó ead38829bf MDL-65085 analytics: noreply user sends insights 2019-03-15 13:48:57 +01:00
cescobedo 67251e316d MDL-64664 core_message: Behat tests to manage contacts 2019-03-15 13:42:05 +01:00
cescobedo 029a3e73e1 MDL-64664 core_message: New data generator for contacts 2019-03-15 13:42:05 +01:00
cescobedo 2cc0330576 MDL-64664 core_message: New step for open contact menu 2019-03-15 13:42:05 +01:00
David Monllaó 7af6528e30 MDL-60340 calendar: New param to specify a user 2019-03-15 11:35:29 +01:00
Nicolas Roeser 88d0f635ae MDL-64790 upgrade: parameter API doc regression fix
Partially update the API documentation of function
upgrade_plugin_savepoint.

This restores consistency between function parameters and API
documentation; as commit 17da2e6f28 (fix
for MDL-16438) had renamed parameter $dir to $plugin, but not also
applied this change to the API documentation.

Also reword the parameter comment text so that it is more meaningful to
developers: document that the parameter contains the name of the plugin.

Change the API documentation of parameter $type as well so that it is
a) correct, and
b) not in conflict with the API documentation for $plugin.
2019-03-15 11:13:23 +01:00
Nathan Nguyen 9432553b1c MDL-61537 assignfeedback_editpdf: Rotate PDF page
Add page rotation feature.
2019-03-15 15:02:33 +11:00
Nathan Nguyen cebfb23fb1 MDL-63263 tool_recyclebin: Apply automated backup setting
Use Automated backup settings as settings for Recycle bin backup and restore.
2019-03-15 14:56:34 +11:00
Rex Lorenzo 9665abad31 MDL-63263 tool_recyclebin: Recycle bin should always save user data. 2019-03-15 14:56:34 +11:00
Dmitrii Metelkin 34945fa35f MDL-64898 core_completion: no progress for untracked users 2019-03-15 14:32:50 +11:00
Jake Dallimore ec819146cc weekly release 3.7dev 2019-03-15 11:01:23 +08:00
Jake Dallimore ed37e2d234 NOBUG: Fixed file access permissions 2019-03-15 11:01:23 +08:00
Jake Dallimore 36159c67aa NOBUG: Fixed SVG browser compatibility 2019-03-15 11:01:22 +08:00
Jake Dallimore 3582f60554 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-03-15 11:01:22 +08:00
Juan Leyva 4daa0d08fe MDL-64655 forum: New WS mod_forum_get_forum_access_information
This WS returning the current user capabilities info.
2019-03-14 17:37:29 +01:00
Jake Dallimore 8587f97637 Merge branch 'MDL-60059-master' of git://github.com/rezaies/moodle 2019-03-14 15:46:10 +08:00
Shamim Rezaie 7fb8632109 MDL-60059 mod_workshop: Add drag and drop support to workshop events 2019-03-14 13:02:49 +11:00
Brendan Heywood 504198780e MDL-64543 profiling: Add ability to auto profile only slow scripts 2019-03-14 11:44:25 +11:00
Eloy Lafuente (stronk7) 22b02995f4 Merge branch 'MDL-46931' of https://github.com/paulholden/moodle 2019-03-14 01:26:39 +01:00
Eloy Lafuente (stronk7) ca996c1f48 Merge branch 'MDL-63146-master' of git://github.com/rezaies/moodle 2019-03-14 01:20:52 +01:00
Eloy Lafuente (stronk7) bd9fb479f1 Merge branch 'MDL-61585_master' of git://github.com/dmonllao/moodle 2019-03-14 01:13:47 +01:00
Eloy Lafuente (stronk7) 539b5a59f3 Merge branch 'MDL-63366-master' of git://github.com/andrewnicols/moodle 2019-03-14 00:31:39 +01:00
Eloy Lafuente (stronk7) e4ddf4dc7a Merge branch 'MDL-63524-master' of git://github.com/andrewnicols/moodle 2019-03-13 23:37:48 +01:00
Eloy Lafuente (stronk7) 13e767226f Merge branch 'MDL-64670-master' of git://github.com/aanabit/moodle 2019-03-13 17:47:59 +01:00
Juan Leyva c9a952776e MDL-64615 tool_mobile: Do not modify custom download URLs 2019-03-13 17:10:02 +01:00
Amaia Anabitarte 9171b588fe MDL-64670 core_message: fixing selector xpath 2019-03-13 15:06:42 +01:00
Jake Dallimore a3d85254f1 Merge branch 'MDL-64495-master' of https://github.com/aanabit/moodle 2019-03-13 16:36:04 +08:00
Adrian Greeve 1fac570629 Merge branch 'MDL-64568-master' 2019-03-13 15:42:40 +08:00
Mark Nelson 7e0c4bde11 MDL-64568 core_group: delete conversation and members on group deletion 2019-03-13 15:42:03 +08:00
Mark Nelson 978f233b8b MDL-64568 core_message: added new method to nuke conversations entirely
This method removes all data in the database related to a
given conversation.
2019-03-13 15:41:53 +08:00
Mark Nelson 07a4698d0a MDL-64568 core: upgrade step to remove orphaned group conversations 2019-03-13 15:41:44 +08:00
Jake Dallimore 6cb1a655e2 Merge branch 'MDL-64747-master' of https://github.com/lucaboesch/moodle 2019-03-13 14:28:04 +08:00
Adrian Greeve dd8131a875 Merge branch 'MDL-64787_master-bump-python-package' of git://github.com/dmonllao/moodle 2019-03-13 14:05:14 +08:00
Jake Dallimore a6646dfd92 Merge branch 'MDL-64773_master' of git://github.com/markn86/moodle 2019-03-13 11:03:52 +08:00
Jake Dallimore c6ceaf81db Merge branch 'MDL-64230-master' of git://github.com/junpataleta/moodle 2019-03-13 10:39:03 +08:00
Mark Nelson 5e600f7ce2 MDL-64773 core_message: do not process muted conversations 2019-03-13 09:08:46 +08:00
Mark Nelson bd038cc19f MDL-64773 core_message: add ability to mute/unmute conversations 2019-03-13 08:55:14 +08:00
Barbara Ramiro 8eaf770d01 MDL-64773 core: added muted icon 2019-03-13 08:55:13 +08:00
Mark Nelson 00c5924546 MDL-64773 core_message: ensure existing APIs return muted status 2019-03-13 08:55:13 +08:00
Mark Nelson 1c36c11a18 MDL-64773 core_message: updated privacy provider 2019-03-13 08:55:13 +08:00
Mark Nelson 086409f601 MDL-64773 core_message: added web services to mute/unmute conversations 2019-03-13 08:55:13 +08:00
Mark Nelson 2687312b29 MDL-64773 core_message: added API to mute/unmute conversations 2019-03-13 08:55:13 +08:00
Eloy Lafuente (stronk7) da97d01192 Merge branch 'MDL-64670-master' of git://github.com/aanabit/moodle 2019-03-12 18:05:17 +01:00
David Monllaó dea8ab8900 MDL-64787 mlbackend_python: Bump python package minimum version 2019-03-12 13:11:02 +01:00
Amaia Anabitarte 4bbec310aa MDL-64495 admin: Removed setting page and deprecation 2019-03-12 10:40:43 +01:00
Amaia Anabitarte a029ee00cd MDL-64495 admin: New Messaging settings category in Site administration 2019-03-12 10:40:43 +01:00
Adrian Greeve d87696dadb Merge branch 'MDL-13745-master-nosetting' of git://github.com/vmdef/moodle 2019-03-12 17:05:31 +08:00
Víctor Déniz Falcón 2bf67a74fb MDL-13745 admin: add Output mail configuration test
Add a tool for admins to test that the outgoing mail configuration is valid.
2019-03-12 08:58:30 +00:00
Jan Dageförde 1d8e6dacef MDL-65022 wiki: declare the cancel button secondary 2019-03-12 09:06:40 +01:00
Shamim Rezaie 1d146d7a6e MDL-63151 mod_wiki: Add userid param to mod_wiki calendar callbacks 2019-03-12 17:16:24 +11:00
Shamim Rezaie ed1f61f30f MDL-63151 mod_wiki: check if the module is visible to the user 2019-03-12 17:12:09 +11:00
Adrian Greeve fa50232ff7 Merge branch 'MDL-64477-master-lastats' of git://github.com/mudrd8mz/moodle 2019-03-12 13:36:43 +08:00
Adrian Greeve 80fd0eb073 Merge branch 'MDL-64787_master' of git://github.com/dmonllao/moodle 2019-03-12 11:16:20 +08:00
Eloy Lafuente (stronk7) c93eedf8dd Merge branch 'MDL-64084-master' of git://github.com/jleyva/moodle 2019-03-12 00:29:58 +01:00
Eloy Lafuente (stronk7) 99daf06a4f Merge branch 'MDL-64653-master' of git://github.com/jleyva/moodle 2019-03-11 23:03:02 +01:00
Alexander Bias 8f68ec5ae3 MDL-64743 block_myoverview: Remove icons in context menu 2019-03-11 13:27:53 +01:00
Sara Arjona 0c04a44457 MDL-64974 badges: add missing configurecriteria capability check 2019-03-11 10:24:39 +01:00
David Mudrák 6cae6c9b55 MDL-64477 analytics: Include new stats in site registration info
These four new figures will be submitted to the Moodle sites directory
as a part of the site registration.
2019-03-11 10:23:25 +01:00
David Mudrák 5e9b091248 MDL-64477 analytics: Introduce a new \core_analytics\stats class
The purpose of the class is to provide stats and meta data about how the
analytics is used on the site.
2019-03-11 10:23:25 +01:00
Davo Smith f83bd64148 MDL-64365 mod_forum: hide RSS settings if RSS not enabled 2019-03-11 09:04:32 +00:00
David Monllaó 9b3580f43c MDL-61585 analytics: Include missing indicators 2019-03-11 09:36:54 +01:00
Andrew Nicols bee40dbf27 MDL-63524 behat: Do not skip tests on Step 0 error 2019-03-11 11:18:40 +08:00
Jun Pataleta 9f09d9dec5 MDL-64958 gradeimport_csv: Better unit tests for check_user_exists() 2019-03-11 09:32:21 +08:00
Jun Pataleta d45f0f0ceb MDL-64958 grade_import: Ensure correct user is being fetched
* We need to ensure that we are checking the correct user account.
  Since email and idnumber are not unique fields, there's a chance that
  multiple user records will match when querying for user data using
  these fields. This might lead to a different user's grades being
  inadvertently modified during grade import. In such a case, this
  function needs to return a null userid.
2019-03-11 09:32:17 +08:00
Mark Nelson 8ca99a92da MDL-64990 tool_usertours: do not show messaging tour when disabled 2019-03-11 07:50:06 +08:00
David Castro cc179d9641 MDL-65008 question: Query enhancement.
Adding core_question as an additional filter to the tag backup.
2019-03-08 16:35:41 -05:00
Luca Bösch 5ed8afac9b MDL-64747 block_myoverview: Omit "Sort by" text and add icon instead. 2019-03-08 16:42:20 +01:00
Paul Holden 47e466c958 MDL-46931 roles: retrieve distinct users in sub-query.
Prevents duplicate key column warning when a user is enrolled in
a course via multiple enrolment methods.
2019-03-08 14:40:41 +00:00
Paul Holden 9ded266b4e MDL-43130 access: fix user counting when retrieving assignable roles.
Previously users assigned the same role in a context via multiple
components would be counted multiple times.
2019-03-08 12:32:24 +00:00
Sara Arjona 63be19c543 MDL-65006 policy: avoid loop when no policies need to be agreeded
Avoid an infinite loop when the user has no policies to agreed but
the policyagreed = 0.
2019-03-08 10:01:51 +01:00
Damyon Wiese 71fb32f8a6 MDL-64230 files: focus and hover css
Show the full filename when an element has focus or hover on the parent element.
2019-03-08 14:48:50 +08:00
Jun Pataleta ed90e4d378 MDL-64230 files: Display long file/folder names with ellipsis
* Instead of clipping long file/folder names by default, truncate them
with ellipsis to indicate to the user that the file/folder has a long
name.
2019-03-08 14:48:49 +08:00
Adrian Greeve a5dd8bfc91 MDL-64987 repository_nextcloud: Remove duplicate string. 2019-03-08 14:32:24 +08:00
Jun Pataleta 78af6dec0d MDL-65005 block_timeline: Behat fixes 2019-03-08 13:38:59 +08:00
Jun Pataleta 7a698c0d91 MDL-65005 block_timeline: Fix accessibility of Day filter menu 2019-03-08 13:38:59 +08:00
Jun Pataleta 87b998c46f MDL-65005 block_timeline: Fix accessibility of Sort-by menu 2019-03-08 13:38:55 +08:00
Mark Nelson 1fadad46a0 MDL-64773 core: added new table to keep track of muted conversations 2019-03-08 11:52:06 +08:00
AMOS bot 3ca5cd95d8 Automatically generated installer lang files 2019-03-08 00:15:09 +00:00
David Monllaó 4c44a1f6a0 MDL-64787 tool_analytics: New template to select the evaluation mode 2019-03-07 21:06:17 +01:00
David Monllaó e97dfff78d MDL-64787 tool_analytics: Include training data source in the log table 2019-03-07 20:44:48 +01:00
David Monllaó bc82b89586 MDL-64787 mlbackend: Evaluate trained models 2019-03-07 20:43:30 +01:00
David Monllaó 74823933c8 MDL-64787 tool_analytics: UI for trained models evaluation 2019-03-07 20:43:30 +01:00
Eloy Lafuente (stronk7) a713ed3ba6 weekly release 3.7dev 2019-03-07 16:41:47 +01:00
Eloy Lafuente (stronk7) f83eb74e56 NOBUG: Fixed SVG browser compatibility 2019-03-07 16:41:45 +01:00
Eloy Lafuente (stronk7) 482a791f4d Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-03-07 16:41:43 +01:00
Andrew Nicols 771a8c3c95 MDL-64883 mod_chat: Fix SQL in cron 2019-03-07 17:30:31 +08:00
Shamim Rezaie a44fb747cf MDL-63149 mod_survey: Add userid param to mod_survey calendar callbacks 2019-03-07 17:54:09 +11:00
Shamim Rezaie 58182fa833 MDL-63144 mod_lti: Add userid param to mod_lti calendar callbacks 2019-03-07 17:48:17 +11:00
Shamim Rezaie 70e7f3b9ba MDL-63144 mod_lti: Check if the module is visible to the user 2019-03-07 17:38:01 +11:00
Andrew Nicols 9f909b1c75 Merge branch 'MDL-64881-master' of git://github.com/lameze/moodle 2019-03-07 11:45:09 +08:00
Simey Lameze 7cef9748ff MDL-64881 mod_workshop: fix version bump 2019-03-07 11:43:36 +08:00
Simey Lameze 77f3b50f78 MDL-64881 mod_workshop: add task to run allocation plugin cron 2019-03-07 11:33:15 +08:00
Jun Pataleta b740fe1769 Merge branch 'MDL-64746-master' of https://github.com/lucaboesch/moodle 2019-03-07 11:04:42 +08:00
Andrew Nicols 7e51bd2583 MDL-64882 repository: Whitespace fix and version bump 2019-03-07 10:49:59 +08:00
Andrew Nicols 30bb29dae4 Merge branch 'MDL-64882-master' of git://github.com/lameze/moodle 2019-03-07 10:40:16 +08:00
Andrew Nicols 1eb1087748 MDL-64884 auth_mnet: Version bump 2019-03-07 10:32:18 +08:00
Andrew Nicols 5c30abc2ae MDL-64883 mod_chat: Version bump 2019-03-07 10:32:02 +08:00
Andrew Nicols 1a34def707 Merge branch 'MDL-64883-master' of git://github.com/lameze/moodle 2019-03-07 10:30:02 +08:00
Simey Lameze b98d775540 MDL-64883 mod_chat: deprecate legacy chat_cron() function 2019-03-07 10:10:29 +08:00
Simey Lameze 958dfd9761 MDL-64883 mod_chat: convert cron to scheduled task 2019-03-07 10:10:25 +08:00
Adrian Greeve 98c49e1a91 Merge branch 'MDL-64026-master' of git://github.com/jleyva/moodle 2019-03-07 10:01:25 +08:00
Andrew Nicols f9aeebd18e Merge branch 'MDL-64884-master' of git://github.com/lameze/moodle 2019-03-07 09:48:11 +08:00
Adrian Greeve ebdd345054 Merge branch 'MDL-63905' of git://github.com/jmvedrine/moodle 2019-03-07 09:10:30 +08:00
Eloy Lafuente (stronk7) 05506eaddc MDL-62869 upgrade: make upgrade step to match current version 2019-03-06 23:19:13 +01:00
Eloy Lafuente (stronk7) ff13ffcd99 Merge branch 'MDL-62869-include-all-courses-mycourse-fix-new' of https://github.com/dmitriim/moodle 2019-03-06 23:10:38 +01:00
Bas Brands 48507e164a MDL-63074 tool_customlang: update renderers
* move html to template
* allow mobile customization
2019-03-06 18:49:04 +01:00
Jan Dageförde 47da79bae9 MDL-64243 nextcloud: Add support for offline download for Moodle Mobile 2019-03-06 16:32:24 +01:00
Eloy Lafuente (stronk7) e3d78a7c8d Merge branch 'MDL-63937-master' of https://github.com/HuongNV13/moodle 2019-03-06 13:30:39 +01:00
Andrew Nicols 54c2b17604 MDL-64410 access: Unit tests for context locking SQL 2019-03-06 12:36:05 +01:00
Andrew Nicols fe41810304 MDL-64410 access: Check for context locking in cap functions 2019-03-06 12:36:05 +01:00
Jun Pataleta 6c2fc65887 Merge branch 'MDL-64333_master' of git://github.com/markn86/moodle 2019-03-06 17:34:10 +08:00
Mark Nelson 6408ea75ed MDL-64333 core_message: add migration message to new UI 2019-03-06 17:26:15 +08:00
Andrew Nicols 5bf82d7d9c Merge branch 'MDL-64774-master' of git://github.com/junpataleta/moodle 2019-03-06 15:41:11 +08:00
Jean-Michel Vedrine 48aad79a63 MDL-63905 qtype_multianswer: validate imported questions 2019-03-06 08:35:04 +01:00
Adrian Greeve d2063ed0a1 Merge branch 'MDL-64891-master' of git://github.com/tobiasreischmann/moodle 2019-03-06 15:06:36 +08:00
Andrew Nicols a6a5685999 Merge branch 'MDL-64950-master-2' of git://github.com/junpataleta/moodle 2019-03-06 13:42:24 +08:00
Jun Pataleta 313f2be603 MDL-64950 core: Handle username in a case-insensitive fashion 2019-03-06 12:45:27 +08:00
Jun Pataleta e1d6600fbe MDL-64950 core: Unit tests for get_complete_user_data() 2019-03-06 12:45:27 +08:00
Andrew Nicols c40f6adbe0 MDL-64971 access: Ensure that the capability exists when fetching 2019-03-06 10:16:06 +08:00
AMOS bot 5d1923d874 Automatically generated installer lang files 2019-03-06 00:09:23 +00:00
Eloy Lafuente (stronk7) fec8550675 Merge branch 'MDL-64943' of git://github.com/stronk7/moodle 2019-03-05 22:49:30 +01:00
Eloy Lafuente (stronk7) 71505bed78 MDL-64943 behat: fix some remaining uses of old strings 2019-03-05 19:17:07 +01:00
Eloy Lafuente (stronk7) 8ab1bd2f5e Merge branch 'MDL-64943-master-enfix' of git://github.com/mudrd8mz/moodle 2019-03-05 11:08:32 +01:00
Tobias Reischmann 852d795ffb MDL-64891 gradebook: Improve help text of grade display type. 2019-03-05 10:33:17 +01:00
Jun Pataleta 02d6bfaf98 Merge branch 'MDL-62465-master' of git://github.com/damyon/moodle 2019-03-05 15:30:31 +08:00
Adrian Greeve 754029cffb Merge branch 'MDL-64342-master' of git://github.com/cescobedo/moodle 2019-03-05 15:00:23 +08:00
Damyon Wiese f88c613135 MDL-62465 assign: Remove behat step
We don't need to open the menu to choose the "Grade" item, we can just click the button.
2019-03-05 14:41:25 +08:00
Adrian Greeve 3bf98faf80 Merge branch 'MDL-64864-master' of git://github.com/damyon/moodle 2019-03-05 14:25:16 +08:00
Adrian Greeve 40f289f362 Merge branch 'MDL-64678-master' of git://github.com/damyon/moodle 2019-03-05 13:51:33 +08:00
Andrew Nicols 9aae08ac91 Merge branch 'MDL-64961-master' of https://github.com/sammarshallou/moodle 2019-03-05 13:24:17 +08:00
Andrew Nicols 06824731a4 Merge branch 'MDL-64981' of https://github.com/timhunt/moodle 2019-03-05 13:20:34 +08:00
Shamim Rezaie c51a157755 MDL-64830 core_calendar: Do cap check on event edit form 2019-03-05 04:24:53 +01:00
Damyon Wiese 5d87464bc6 MDL-64651 comments: Do not send referrer
Use blanktarget option on all comments to prevent malicious links.
2019-03-05 04:24:53 +01:00
Viktor 898d5d05a0 MDL-62702 core_lib: fix broken verification signature 2019-03-05 04:24:53 +01:00
Mark Nelson 1a8b1f2724 MDL-62702 core_lib: updated the 'ltiprovider' readme_moodle.txt 2019-03-05 04:24:53 +01:00
Brendan Cox d8a7e1f78d MDL-62702 core_lib: parameters in POST override other LTI values
This fixes an exploit where you could alter the 'Content-Type' of the
request and bypass the case-sensitive check 'strstr'. For example,
setting it to 'application/x-www-FORM-urlencoded'. However, changing
this to use 'stristr' was also not an acceptable approach as you
could also bypass it by setting the value to 'multipart/form-data'.
2019-03-05 04:24:53 +01:00
Ryan Wyllie 93dda3bfd3 MDL-63786 core: set $CFG->forceclean for logged in as sessions
Turn on the forceclean config setting when a user is logged in as a
different user. This is a precautionary measure, which forces all
user submitted content to be cleaned of JavaScript before rendering
it to the logged in as user.
2019-03-05 04:24:53 +01:00
Luca Bösch c430bed525 MDL-64706 theme_boost: Remove logo link in secure template 2019-03-05 04:24:53 +01:00
Shamim Rezaie 3f4d7f805e MDL-63146 mod_quiz: Add userid param to mod_quiz calendar callbacks 2019-03-05 14:21:42 +11:00
Jun Pataleta b7d8cd0fc7 Merge branch 'MDL-64652-master' of git://github.com/andrewnicols/moodle 2019-03-05 11:14:04 +08:00
Adrian Greeve 10ed5197fd Merge branch 'MDL-64941-master' of https://github.com/MartinGauk/moodle 2019-03-05 11:08:27 +08:00
Andrew Nicols 62ce9e73c4 MDL-64652 mod_data: Break LEFT JOINs to multiple INNER 2019-03-05 10:12:22 +08:00
Andrew Nicols ab20d2606d MDL-64652 glossary: Break LEFT JOINs to multiple INNER 2019-03-05 10:12:22 +08:00
Andrew Nicols 3ffbde1214 MDL-64652 forum: Use an inner join when fetching ratings 2019-03-05 10:12:22 +08:00
Andrew Nicols 9f3bf966c4 MDL-64652 rating: Add optional inner join option to sql 2019-03-05 10:12:22 +08:00
Andrew Nicols ab45aa735c MDL-64652 mod_forum: Performance improvement for provider
There are possibly some further improvements that can be made to:
- export_discussion_data
- export_all_posts
2019-03-05 10:12:22 +08:00
Andrew Nicols e93b9cb56f Merge branch 'MDL-64967-master' of https://github.com/sammarshallou/moodle 2019-03-05 10:09:31 +08:00
Andrew Nicols 264fdc2cae Merge branch 'MDL-64886_master' of https://github.com/marxjohnson/moodle 2019-03-05 10:04:15 +08:00
Adrian Greeve 96ec5f03f7 Merge branch 'MDL-64863-master' of git://github.com/damyon/moodle 2019-03-05 09:55:25 +08:00
Jun Pataleta ba77f20bd0 Merge branch 'MDL-62143-master' of git://github.com/damyon/moodle 2019-03-05 09:44:59 +08:00
Damyon Wiese be56aa864b MDL-64864 core_competency: Include course category
These courses are passed through to the course_summary_exporter which
requires a category id in each course record.
2019-03-05 08:52:17 +08:00
Damyon Wiese a0e3d29fcf MDL-64678 assign: More ios touch
Only disable touch scrolling when the touch event is within the drawing region of the canvas.
2019-03-05 08:42:31 +08:00
Simey Lameze 866b21a22a MDL-64881 workshopallocation_scheduled: remove legacy function 2019-03-05 06:51:44 +08:00
Simey Lameze f0e9b93569 MDL-64881 workshopallocation_scheduled: create a scheduled task 2019-03-05 06:51:40 +08:00
Simey Lameze 8c0f43c477 MDL-64881 mod_workshop: remove legacy workshop_cron() function 2019-03-05 06:35:35 +08:00
Simey Lameze 29bddab8c8 MDL-64881 mod_workshop: convert cron to scheduled task 2019-03-05 06:35:30 +08:00
Alexander Bias c8def6e394 MDL-64905 block_myoverview: Progress bar percentage as placeholder 2019-03-04 16:16:11 +01:00
AMOS bot 8bb161fce0 Automatically generated installer lang files 2019-03-04 00:09:35 +00:00
cescobedo a57e09230f MDL-64342 core_message: make ajax call when privacy setting is changed
Only fire ajax request when the privacy setting value is changed.
2019-03-03 23:23:04 +01:00
Jun Pataleta c1ff94f41e MDL-64774 user: Make email query case-insensitive 2019-03-01 23:29:00 +08:00
Jun Pataleta 2672f0366b MDL-64774 user: Better unit tests for updating users with similar emails 2019-03-01 23:29:00 +08:00
Amaia Anabitarte 75e7553aa3 MDL-64670 core_message: behat tests for group conversations
Co-authored-by: Mathew May <mathew@moodle.com>
Co-authored-by: Amaia Anabitarte <amaia@moodle.com>
2019-03-01 14:14:32 +01:00
Amaia Anabitarte 65f631c5bc MDL-64670 core_message: New steps and selectors for message drawer
Co-authored-by: Mathew May <mathew@moodle.com>
Co-authored-by: Amaia Anabitarte <amaia@moodle.com>
2019-03-01 14:14:32 +01:00
sam marshall 7ba1cadd41 MDL-64961 REST web service: Fatal error in error handler 2019-03-01 11:57:00 +00:00
Tim Hunt a0536c410a MDL-64981 dml tests: pgsql_native_recordset_testcase port number 2019-03-01 11:12:40 +00:00
Martin Gauk 3e24d6f663 MDL-64941 qtype_multianswer: keep order of existing wrapped questions 2019-03-01 09:46:40 +00:00
Simey Lameze 4ce27477fb MDL-64882 repository_filesystem: deprecate legacy cron function 2019-03-01 11:12:55 +08:00
Simey Lameze a8e38eb311 MDL-64882 repository_filesystem: convert cron to scheduled task 2019-03-01 11:12:46 +08:00
Simey Lameze 653842539c MDL-64882 repository_dropbox: deprecate legacy cron function 2019-03-01 10:43:18 +08:00
Simey Lameze d77c810627 MDL-64882 repository_dropbox: convert cron to schedule task 2019-03-01 10:43:17 +08:00
Andrew Nicols 306ce452ab MDL-63366 core_privacy: Add coverage whitelisting 2019-03-01 10:30:31 +08:00
Andrew Nicols 14588631c0 MDL-63366 tool_dataprivacy: Add coverage whitelisting 2019-03-01 10:30:31 +08:00
Andrew Nicols 2c51b2eca0 MDL-63366 core: Add coverage whitelisting for filestorage 2019-03-01 10:30:31 +08:00
Andrew Nicols 0970aa10af MDL-63366 core_phpunit: Add ability to specify coverage filters 2019-03-01 10:30:31 +08:00
Simey Lameze 942cc5b1da MDL-64884 auth_mnet: deprecate legacy cron() method 2019-03-01 10:01:41 +08:00
Simey Lameze e425221ee6 MDL-64884 auth_mnet: convert cron to scheduled task 2019-03-01 10:01:37 +08:00
AMOS bot 8683c7f62a Automatically generated installer lang files 2019-03-01 00:15:34 +00:00
Dmitrii Metelkin 2085e8603a MDL-62869 search: implement searching for all courses 2019-03-01 07:18:37 +11:00
Luca Bösch eb6a339fb7 MDL-64746 block_timeline: replace filter icon by sort icon. 2019-02-28 20:45:50 +01:00
Eloy Lafuente (stronk7) 89d1238962 weekly release 3.7dev 2019-02-28 18:51:34 +01:00
Eloy Lafuente (stronk7) 82d8dd7188 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-02-28 18:51:31 +01:00
David Mudrák 60f59e5599 MDL-64943 lang: Fix regressions in Behat caused by reworded strings 2019-02-28 17:23:01 +01:00
Eloy Lafuente (stronk7) 47d363f34f Merge branch 'MDL-60944_master-bump-mlbackend' of git://github.com/dmonllao/moodle 2019-02-28 11:51:57 +01:00
David Monllaó 18eb9a3733 MDL-60944 mlbackend_python: Bump python package version 2019-02-28 11:45:24 +01:00
Juan Leyva 1f87a7f653 MDL-64084 core_enrol: Return expect last access course time 2019-02-28 11:11:35 +01:00
Eloy Lafuente (stronk7) b5940124dd Merge branch 'MDL-62631-master' of git://github.com/sarjona/moodle 2019-02-28 10:33:57 +01:00
Helen Foster 38dc5b9677 MDL-64943 lang: Import fixed English strings (en_fix)
Significant string changes:

* importgroups_help,core_group - Correcting optional fieldnames
  (removing picture, hidepicture and adding groupidnumber, groupingname
  and enablemessaging)

* penaltyforeachincorrecttry_help,core_question - additional paragraph
  about scoring logic

* resultdownloadready,tool_dataprivacy - wording corrected (no need to
  go to a download page)

* auth_dbfielduser,auth_db - varchar data type requirement
2019-02-28 09:50:18 +01:00
Andrew Nicols b73e2accbe Merge branch 'MDL-64376-master-2' of git://github.com/ryanwyllie/moodle 2019-02-28 11:45:27 +08:00
Ryan Wyllie 3accb67bcd MDL-64376 block_recentlyaccessedcourses: only centre courses on overflow
Only centre the courses in the div if they are overflowing the container
otherwise they should be left aligned.
2019-02-28 11:28:19 +08:00
Eloy Lafuente (stronk7) 3c1bb2334d Merge branch 'MDL-64444-master' of git://github.com/jleyva/moodle 2019-02-28 01:19:13 +01:00
Eloy Lafuente (stronk7) daf358f0cd Merge branch 'MDL-64878-master' of git://github.com/damyon/moodle 2019-02-27 18:58:26 +01:00
Eloy Lafuente (stronk7) ae5792807b Merge branch 'MDL-60944_master' of git://github.com/dmonllao/moodle 2019-02-27 18:46:44 +01:00
sam marshall 7514557426 MDL-64967 Behat: Mobile app testing does not load CSS files
Some files cannot be loaded due to CORS restrictions.
2019-02-27 14:56:05 +00:00
Sara Arjona a0e20ce87c Merge branch 'MDL-64761-master' of git://github.com/dpalou/moodle 2019-02-27 15:36:18 +01:00
Mark Johnson 7d4c345820 MDL-64886 enrol: Make enrolledusercount optional in enrol_get_users_courses 2019-02-27 12:58:17 +00:00
Alexander Bias 0048e12f04 MDL-64903 block_myoverview: Cluster course filters 2019-02-27 13:46:47 +01:00
Sara Arjona 0ebfd1c47b Merge branch 'MDL-55135-master-competencies-manage-in-coursecontext' of https://github.com/wjroes/moodle 2019-02-27 11:51:30 +01:00
Sara Arjona 7afeb1b1d2 Merge branch 'MDL-62454-master' of git://github.com/bmbrands/moodle 2019-02-27 08:57:51 +01:00
Andrew Nicols ec442a39dc Merge branch 'MDL-64889_master' of https://github.com/marxjohnson/moodle 2019-02-27 14:38:34 +08:00
Andrew Nicols b4d689c8db Merge branch 'wip-master-MDL-62345' of https://github.com/adpe/moodle 2019-02-27 13:51:08 +08:00
Andrew Nicols ccf03e1398 Merge branch 'MDL-63674-master' of git://github.com/rezaies/moodle 2019-02-27 13:01:08 +08:00
Andrew Nicols 3d122bd284 Merge branch 'MDL-63915_master' of git://github.com/markn86/moodle 2019-02-27 12:08:09 +08:00
Andrew Nicols 507d05f6e3 Merge branch 'MDL-64376-master-2' of git://github.com/ryanwyllie/moodle 2019-02-27 11:51:14 +08:00
Ryan Wyllie 42702e4186 MDL-63915 core_message: prevent drawer overriding index page widget
The module message_drawer_view_conversation.js is written in a way
where it keeps the conversation data as a static module variable.
It also does the same thing for the render function and generates it
when the conversation is shown, and only holds one instance as a static
module variable. This means which ever version of the messaging UI opens
second will override the first render function.
2019-02-27 11:35:36 +08:00
Ryan Wyllie 3e79a7bbe8 MDL-63915 core_message: fix view contacts loading only on one app 2019-02-27 11:35:36 +08:00
Mark Nelson 6f9d34bd46 MDL-63915 core_message: 'message' link on profile opens drawer 2019-02-27 11:35:36 +08:00
Mark Nelson fd998fc6f0 MDL-63915 core_message: add the UI to the message/index.php page 2019-02-27 11:35:36 +08:00
Mark Nelson cb01c45c5d MDL-63915 core_message: add namespacing to messaging widget 2019-02-27 11:35:36 +08:00
Mark Nelson 7ece4ca9da MDL-63915 core_message: mark items that can be removed in MDL-63261 2019-02-27 11:35:36 +08:00
Mark Nelson ee45ecc014 MDL-63915 core_message: remove use of renderable so we can nuke it
The other renderables in the same namespace are still used by
deprecated web services. Once we do the final deprecation of
those web services they will be removed - see MDL-63261.
2019-02-27 11:35:36 +08:00
Mark Nelson b1bba555be MDL-63915 theme_bootstrapbase: removed unused CSS 2019-02-27 11:35:36 +08:00
Mark Nelson 4fd0c594db MDL-63915 theme_boost: removed unused CSS 2019-02-27 11:35:36 +08:00
Mark Nelson 273dadeb50 MDL-63915 core_message: removed unused AMD modules 2019-02-27 11:35:36 +08:00
Mark Nelson b01d0535bc MDL-63915 core_message: removed unused templates
Also removed no longer used renderer.
2019-02-27 11:35:36 +08:00
Ryan Wyllie 3edde4fbe8 MDL-64376 recentlyaccessedcourses: improve displaying of courses 2019-02-27 10:58:02 +08:00
Ryan Wyllie 2719668068 MDL-64376 theme_boost: fire event on nav drawer toggle 2019-02-27 10:50:33 +08:00
Ryan Wyllie 8c890dd57d MDL-64376 recentlyaccessedcourses: make cards fixed width 2019-02-27 10:50:33 +08:00
Ryan Wyllie 6d9727628a MDL-64376 recentlyaccessedcourses: stop reloading on favourite
Stop reloading the whole content when a single course is favourited
or unfavourited.
2019-02-27 10:50:32 +08:00
Damyon Wiese 40fe153816 MDL-64878 grades: Update delete_instance
When grades are deleted, it needs to know the context so any files
in the gradebook can be deleted. This means module delete_instance
functions must delete the grade_item before they delete the module record.
2019-02-27 10:37:54 +08:00
Damyon Wiese 031cf251c1 MDL-64878 grades: Rebuild cache on import
When the course module cache is out of date during a gradebook re-calculcation it throws
throws exceptions because the module cannot be found. This prevents access to gradebook or
any type of grading functions until the cache is rebuilt.

When the cache still has no module record we log an error and return the course context.
2019-02-27 10:37:31 +08:00
Andrew Nicols 6f6a993d39 Merge branch 'MDL-64591' of https://github.com/timhunt/moodle 2019-02-27 09:54:35 +08:00
AMOS bot 556aefbe07 Automatically generated installer lang files 2019-02-27 00:09:34 +00:00
Eloy Lafuente (stronk7) 1c970f12db Merge branch 'MDL-63417-master' of git://github.com/mihailges/moodle 2019-02-26 23:18:56 +01:00
Sara Arjona 6fb04e766d MDL-52167 admin: format dependencies in search results 2019-02-26 15:46:05 +01:00
Davo Smith 08163b2067 MDL-52167 admin: display dependencies in search results 2019-02-26 15:45:53 +01:00
Davo Smith d940855f92 MDL-52167 admin: switch hide_if() to use hide() + update upgrade.txt 2019-02-26 15:45:44 +01:00
Davo Smith 8ed3671d4c MDL-52167 admin: now able to show/hide settings based on conditions 2019-02-26 15:45:35 +01:00
Sara Arjona 2bc0774cc1 Merge branch 'MDL-43428-master' of git://github.com/rezaies/moodle 2019-02-26 14:08:55 +01:00
Tim Hunt bd8774d55e MDL-64591 User tours: don't show during redirects & other bad times 2019-02-26 13:04:38 +00:00
Sara Arjona 44d5c25469 Merge branch 'MDL-58428-master' of git://github.com/sarjona/moodle 2019-02-26 13:25:54 +01:00
Mathew May 1baadc87fb MDL-58428 theme: Update upgrade txt & versions. 2019-02-26 12:56:14 +01:00
Mathew May a48ff0dcf6 MDL-58428 theme: Add templates to Course 2019-02-26 12:56:14 +01:00
Mathew May e686d12774 MDL-58428 theme: Move templates from admin/tool/usertours 2019-02-26 12:56:14 +01:00
Mathew May f03acadc09 MDL-58428 theme: Move templates from admin/tool/lp 2019-02-26 12:56:14 +01:00
Mathew May c53a22c434 MDL-58428 theme: Move templates from mod/forum 2019-02-26 12:56:14 +01:00
Mathew May cce298035d MDL-58428 theme: Move templates from mod/assign 2019-02-26 12:56:14 +01:00
Mathew May 0c61ec476c MDL-58428 theme: Move templates from grade/grading/form/guide 2019-02-26 12:56:14 +01:00
Mathew May 08cefc7e31 MDL-58428 theme: Move templates from grade/report/singleview 2019-02-26 12:56:14 +01:00
Mathew May 6eebb09060 MDL-58428 theme: Move templates from grade/report/history 2019-02-26 12:56:14 +01:00
Mathew May 8460e3690b MDL-58428 theme: Move templates from grades 2019-02-26 12:56:14 +01:00
Mathew May 5638b57267 MDL-58428 theme: Move templates from calendar 2019-02-26 12:56:14 +01:00
Mathew May 56cc669c39 MDL-58428 theme: Move templates from admin 2019-02-26 12:56:14 +01:00
Mathew May b13a453d25 MDL-58428 theme: Move templates from lib 2019-02-26 12:56:14 +01:00
Mathew May c75aa5640f MDL-58428 theme: Move templates from blocks/settings 2019-02-26 12:56:14 +01:00
Mathew May 6c1967af54 MDL-58428 theme: Move templates from blocks/search_forums 2019-02-26 12:56:14 +01:00
Mathew May f38a9caeef MDL-58428 renderer: Correct paths & xpaths 2019-02-26 12:56:14 +01:00
Mathew May 847b0fa941 MDL-58428 renderer: Move renderer override from core
Also update all html_writer user to escape the namespace.
Also update the xpaths in behat
2019-02-26 12:56:14 +01:00
David Monllaó c70a7194f4 MDL-60944 analytics: Include trained ML models 2019-02-26 10:58:41 +01:00
Mathew May 6a80186ebb MDL-58428 renderer: Move renderer override from blocks 2019-02-26 16:24:49 +08:00
Mathew May 0976e4cf5e MDL-58428 renderer: Move renderer override from maintenance 2019-02-26 16:24:49 +08:00
Mathew May 1c78866f44 MDL-58428 renderer: Move renderer override from grade report 2019-02-26 16:24:49 +08:00
Mathew May 2627162480 MDL-58428 renderer: Move renderer override from Question bank 2019-02-26 16:24:49 +08:00
Mathew May 9f0595c4fd MDL-58428 renderer: Move renderer override from course management 2019-02-26 16:24:49 +08:00
Mathew May f39111d0ea MDL-58428 renderer: Move renderer override from files 2019-02-26 16:24:49 +08:00
Mathew May 9825951bd8 MDL-58428 renderer: Move renderer override from course 2019-02-26 16:24:48 +08:00
Mathew May 14bcc65e80 MDL-58428 behat: Fix regression of MDL-49399.
The behat for tool_task was no longer working in Clean & More due to the menu changes.
This updates the affected steps on Master only as 49399 was a master only fix.
2019-02-26 16:24:48 +08:00
Mathew May b259b8bd7a MDL-58428 phpunit: PHPUnit will mock the theme config in testing.
Other fixes to the require paths, correct the class names in fixtures for 'nofeatures' mock theme.
2019-02-26 16:24:46 +08:00
Andrew Nicols 4aefaf653b MDL-58428 behat: Check parent themes for Behat override steps.
Behat will now look at the current themes' parents for Behat ovveride steps.
If found we will use the steps replacing the Moodle core steps.
2019-02-26 16:21:23 +08:00
Jun Pataleta 6940a4ced8 MDL-64950 login: core_login_validate_forgot_password_data() unit tests 2019-02-26 15:27:41 +08:00
Andrew Nicols 08311cdaf4 MDL-64880 mod_wiki: Remove cron value from version 2019-02-26 12:04:55 +08:00
Andrew Nicols bf32bdaff5 Merge branch 'MDL-64879-master' of git://github.com/lameze/moodle 2019-02-26 12:03:13 +08:00
Andrew Nicols 20c6815809 MDL-60683 quiz: Version bump for new scheduled tasks 2019-02-26 11:52:20 +08:00
Shamim Rezaie 2c00caee85 MDL-43428 accessrule_timelimit: timeclose can be ealier than timelimit 2019-02-26 14:44:15 +11:00
Andrew Nicols e935f20b02 Merge branch 'MDL-60683_cron_to_task' of https://github.com/mhughes2k/moodle 2019-02-26 11:31:24 +08:00
Simey Lameze c3781ebeb3 MDL-64879 mod_assign: deprecate legacy assign_cron() function 2019-02-26 11:25:58 +08:00
Andrew Nicols 11638047df Merge branch 'MDL-64880-master' of git://github.com/lameze/moodle 2019-02-26 11:11:53 +08:00
Andrew Nicols 44bad3b27c Merge branch 'MDL-64663-master' of git://github.com/aanabit/moodle 2019-02-26 11:05:58 +08:00
Andrew Nicols 2a131bb55d Merge branch 'arjen_validate_email' of https://github.com/arjenlentz/moodle 2019-02-26 10:53:55 +08:00
Sara Arjona 4b227ead88 Merge branch 'MDL-64862-master-workshopgradepass' of git://github.com/mudrd8mz/moodle 2019-02-25 18:31:10 +01:00
Sara Arjona 14fc53e7e2 Merge branch 'MDL-64931_master' of git://github.com/markn86/moodle 2019-02-25 17:19:02 +01:00
Adrian Greeve e3daac154a Merge branch 'MDL-64640-master' of git://github.com/andrewnicols/moodle 2019-02-25 10:26:01 +01:00
Amaia Anabitarte 504a5de320 MDL-64663 core_message: Behat to test admin settings 2019-02-25 10:13:20 +01:00
David Monllaó e4453adc55 MDL-60944 tool_analytics: Adding create and delete features
Extra modifications to refine the preexisting patch.
2019-02-25 09:54:07 +01:00
Ankit Agarwal 349c44128d MDL-60944 analytics: Add base support for import / export 2019-02-25 09:54:07 +01:00
Andrew Nicols 77f404ffd3 Merge branch 'MDL-64561-master-test' of git://github.com/rezaies/moodle 2019-02-25 15:50:56 +08:00
Charles Fulton 032d98a148 MDL-64561 install: show help text before database check 2019-02-25 16:43:14 +11:00
Shamim Rezaie 3c687b406a MDL-63674 core_messaging: Fix message drawer's shadow in RTL 2019-02-25 14:38:20 +11:00
Shamim Rezaie 87dc257d55 MDL-63674 core_messaging: Bidi text support 2019-02-25 14:38:20 +11:00
Simey Lameze b0218089d9 MDL-64879 mod_assign: convert cron to scheduled task 2019-02-25 10:41:31 +08:00
Mark Nelson 89bab5e8f0 MDL-64931 core_message: fixed PHP error when users are deleted from DB 2019-02-25 07:48:44 +08:00
Michael Hughes b09c036bb8 MDL-60683 quiz: Replace quiz legacy cron with tasks 2019-02-22 16:39:37 +00:00
Adrian Perez f286376913 MDL-62345 navigation: Change data-key for dashboard rootnode 2019-02-22 16:52:05 +01:00
Mathew May e3652936f3 MDL-58428 theme: Shift templates ready for Bootstrapbase removal
Move behat override steps from boost into their Moodle core locations &
Move the effected core behat steps into bootstrapbase as override steps.
2019-02-22 15:19:33 +08:00
Sara Arjona 22348a3b96 MDL-62631 badges: Add manage/add badges buttons on Badges page
Direct access from the navigation Badges section to the "Manage badges"
and "Add a new badge" buttons.
2019-02-22 08:02:35 +01:00
Andrew Nicols 07203d34f1 weekly release 3.7dev 2019-02-22 10:51:13 +08:00
Andrew Nicols c60b2b5a9f Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-02-22 10:51:09 +08:00
Bas Brands 5fe9aca3a1 MDL-62454 theme_boost: numerical qtype answer inline 2019-02-21 14:19:42 +01:00
Adrian Greeve de1f00fdbe Merge branch 'wip-MDL-64729-master' of https://github.com/Beedell/moodle 2019-02-21 12:20:48 +01:00
Adrian Greeve df4a17c7ed Merge branch 'MDL-64093_master' of git://github.com/markn86/moodle 2019-02-21 09:46:54 +01:00
Huong Nguyen efef2efdd6 MDL-63937 autocomplete: Add the indicator when processing the request 2019-02-21 10:08:16 +07:00
Andrew Nicols df5feea490 MDL-63937 autocomplete: Add a loading icon when fetching via AJAX 2019-02-21 10:08:16 +07:00
Andrew Nicols d4495e8188 Merge branch 'MDL-64823_master' of https://github.com/marxjohnson/moodle 2019-02-21 10:32:29 +08:00
Andrew Nicols 414fa82e50 Merge branch 'MDL-64571-master' of git://github.com/cescobedo/moodle 2019-02-21 08:10:54 +08:00
Adrian Greeve ff30f3f042 Merge branch 'MDL-64856_m37v1' of git://github.com/sbourget/moodle 2019-02-20 18:01:53 +01:00
Eloy Lafuente (stronk7) cb8fc12489 Merge branch 'MDL-64749' of https://github.com/mkassaei/moodle 2019-02-20 17:01:56 +01:00
Adrian Greeve 064f3345f8 Merge branch 'MDL-64200-master' of git://github.com/damyon/moodle 2019-02-20 15:57:55 +01:00
M Kassaei 3e697596b4 MDL-64749 Question gapselect: Replace 'Choose...' with blank 2019-02-20 11:06:51 +00:00
Adrian Greeve cafaa2d58f Merge branch 'MDL-64450-master' of git://github.com/peterRd/moodle 2019-02-20 11:35:14 +01:00
Eloy Lafuente (stronk7) aff8ad46f2 Merge branch 'm37_MDL-64443_Ignore_More_Swap_File_Types' of https://github.com/scara/moodle 2019-02-20 10:21:46 +01:00
David Monllaó 84ca3ccce4 MDL-64500 tool_analytics: noanalysables negation better than analysables 2019-02-20 10:09:26 +01:00
Simey Lameze ce97cd44e4 MDL-64880 mod_wiki: remove useless wiki_cron() function 2019-02-20 14:41:44 +08:00
Andrew Nicols 0f5b2a1782 Merge branch 'MDL-64570-master-fix1' of git://github.com/damyon/moodle 2019-02-20 10:52:22 +08:00
Damyon Wiese 145a10f7a9 MDL-64570 user: input field purpose
Do not autocomplete the user fields when editing another user.
2019-02-20 09:42:26 +08:00
Eloy Lafuente (stronk7) 4776098fe4 Merge branch 'MDL-64679_master' of git://github.com/dmonllao/moodle 2019-02-20 00:06:50 +01:00
Eloy Lafuente (stronk7) 31dc8b8320 Merge branch 'MDL-63134-master' of git://github.com/rezaies/moodle 2019-02-19 23:57:10 +01:00
Eloy Lafuente (stronk7) ffd3185c63 Merge branch 'MDL-64806-master' of git://github.com/damyon/moodle 2019-02-19 23:34:38 +01:00
Eloy Lafuente (stronk7) 84dd2193c1 Merge branch 'MDL-64242' of git://github.com/timhunt/moodle 2019-02-19 23:22:52 +01:00
Eloy Lafuente (stronk7) c8469a9757 Merge branch 'MDL-63938-master' of https://github.com/HuongNV13/moodle 2019-02-19 19:07:14 +01:00
Eloy Lafuente (stronk7) bfaebeb754 Merge branch 'MDL-64791-master' of git://github.com/jleyva/moodle 2019-02-19 17:42:21 +01:00
Eloy Lafuente (stronk7) 88edfc77c1 Merge branch 'MDL-62008-master' of git://github.com/damyon/moodle 2019-02-19 17:23:41 +01:00
Eloy Lafuente (stronk7) 50564f27ca Merge branch 'MDL-64500_master' of git://github.com/dmonllao/moodle 2019-02-19 17:10:38 +01:00
Adrian Greeve 2fb695f8df Merge branch 'MDL-60459_master' of git://github.com/markn86/moodle 2019-02-19 11:48:14 +01:00
Huong Nguyen 1f00fdb0d2 MDL-63938 Enrolments: course_enrolment_manager method improvement
course_enrolment_manager method should not always do a count_records and a get_records
2019-02-19 13:57:48 +07:00
David Monllaó 7677a86cc0 Merge branch 'MDL-64570-master' of git://github.com/damyon/moodle 2019-02-19 06:45:21 +01:00
David Monllaó 4f3f8fba67 Merge branch 'MDL-45151-master' of git://github.com/damyon/moodle 2019-02-19 06:39:24 +01:00
Damyon Wiese 3d97770365 MDL-64570 user: coding style
Fix cibot warnings on line length.
2019-02-19 09:44:20 +08:00
Damyon Wiese 2159983aff MDL-64570 accessibility: autocomplete user profile fields
Only if editing your own user details and not logged in as someone else.
2019-02-19 09:44:15 +08:00
Arjen Lentz 4b71e99564 MDL-21475 weblib: Simplify validate_email() to use existing function. 2019-02-19 10:51:21 +10:00
Eloy Lafuente (stronk7) 53bc11dd78 Merge branch 'MDL-53346-master' of git://github.com/damyon/moodle 2019-02-19 00:23:21 +01:00
Tobias Reischmann 6555342863 MDL-64891 gradebook: Disable grade display type dependent on grade type
If the grade types text or none are selected for an item or a category,
none of the 'grade display type' options  will change the displayed
grade within the reports. Thus, we can disable the settings for grade
display type as well as the one for decimal places in this case.
2019-02-18 17:17:25 +01:00
Eloy Lafuente (stronk7) b7b914fbdc Merge branch 'MDL-64314-master-upgrade-fix' of git://github.com/abgreeve/moodle 2019-02-18 16:49:50 +01:00
Adrian Greeve 6d6a83e91d MDL-64314 messaging: Quick fix for empty insights configuration. 2019-02-18 16:30:19 +01:00
Adrian Greeve 33f070f1f6 Merge branch 'MDL-64452-master-cachesession' of git://github.com/mudrd8mz/moodle 2019-02-18 15:51:30 +01:00
Mark Johnson 272c7948d2 MDL-64889 completion: Fix performance of get_course_progress_percentage 2019-02-18 14:03:52 +00:00
Adrian Greeve 45dc542a40 Merge branch 'MDL-64314_master' of git://github.com/dmonllao/moodle 2019-02-18 14:50:59 +01:00
David Mudrák 395bca32a1 MDL-64862 workshop: Fix grades to pass editing
There was a bug here that had not exposed until MDL-60820 introduced the
call $mform->setDefault() at the bottom of the definition_after_data()
method. That call triggers the 'updateValue' event on all form elements.
For input text elements, this effectively sets their value to the
default one, which was empty in this case due to the way how the value
had been set.

The solution here is to set the value via the same way like the normal
set_data() method does it.

The attached Behat test reproduces the problem and makes sure the patch
works.
2019-02-18 14:40:02 +01:00
David Monllaó 0a828b592d Merge branch 'MDL-64587-master' of https://github.com/junpataleta/moodle 2019-02-18 10:25:35 +01:00
Adrian Greeve ceea116626 Merge branch 'MDL-55211-master' of git://github.com/damyon/moodle 2019-02-18 09:34:43 +01:00
Jun Pataleta b0e8a833f9 MDL-64587 tool_xmldb: Change Continue to Back link for consistency
* For consistency with the rest of navigation links in the tool, change
the Continue button to a Back link.
2019-02-18 16:09:50 +08:00
Michael Aherne 495b4b412d MDL-64587 xmldb: XMLDB option to add mandatory persistent fields. 2019-02-18 15:38:23 +08:00
willem e42d429c7b MDL-55135 competencies: fix capabilities managing course competencies
Capability check in a course was using global competency capabilities 
moodle/competency:competencyview and  moodle/competency:competencymanage 
instead of the course equivalents. Users outside the course context 
could not manage course competencies.
2019-02-18 08:07:38 +01:00
Jun Pataleta 2baf5722ab Merge branch 'MDL-62142-master' of git://github.com/damyon/moodle 2019-02-18 14:28:09 +08:00
Damyon Wiese 9df03b1940 MDL-62142 navigation: accessibility
Set unique meaningful labels on all nav components rendered in the "boost" theme.
2019-02-18 14:09:48 +08:00
Andrew Nicols 8b7c3b97d0 Merge branch 'MDL-62728-locale_5' of https://github.com/DSI-Universite-Rennes2/moodle 2019-02-18 12:27:40 +08:00
Andrew Nicols 3127feeb74 Merge branch 'MDL-61575-master' of git://github.com/cescobedo/moodle 2019-02-18 08:34:46 +08:00
Matteo Scaramuccia 8812534837 MDL-64443 git: Excluded vim swap files
Vim swap filenames are deterministic someway.
Refs:
- http://vimdoc.sourceforge.net/htmldoc/recover.html#swap-file
- https://github.com/vim/vim/blob/4efe73b478d3ba689078da502fd96f45204ff1f5/src/memline.c#L4683
- https://unix.stackexchange.com/a/326737
- https://github.com/github/gitignore/blob/master/Global/Vim.gitignore
2019-02-16 22:20:05 +01:00
AMOS bot a531837689 Automatically generated installer lang files 2019-02-16 00:13:20 +00:00
John Beedell af00998f74 MDL-64729 mod_glossary: glossary_get_entries_search case sensitivity 2019-02-15 16:53:20 +00:00
Julien Boulen 1a549472fa MDL-62728 lang: display a warning when missing some locales on server 2019-02-15 09:53:00 +01:00
David Mudrák ea43f6c1c8 MDL-64452 cache: Add tests for key prefix based on session id
Unfortunately, we can't simply use session_id() to regenerate the
session id in unit tests. Starting from PHP 7.2, it would trigger
"session_id(): Cannot change session id when headers already sent",
refer to MDL-60978 and PHP bug #75628 for more details.

As a workaround, we use a static property allowing us to inject the
value that we then use as a session identifier. This is reasonably
enough to make sure that the identifier is used as a part of the key
prefix.
2019-02-15 09:36:43 +01:00
David Mudrák 0ea0dfde6d MDL-64452 cache: Always use the current session id in the key prefix
The current logic in the cache_session::check_tracked_user() is not
right. We must always set the current session id. A typical use case is
when the cache instance is instantiated for a not logged in user. We
can't let the sessionid property null in that case as it forms an
important part of the parsed key.

Similarly, even if we have the same user currently loaded, we must still
set the sessionid to make sure the data will be associated with the
current PHP session. Same user (including visitors or guest users) can
access the site from different browsers and each must end up with its
own key prefix.
2019-02-15 09:36:43 +01:00
Jun Pataleta 53d1a16828 Merge branch 'MDL-63944-master' of https://github.com/lethevinh/moodle 2019-02-15 16:27:02 +08:00
David Monllaó b5b112f62c MDL-64314 messaging: Web notifications for insights 2019-02-15 08:47:01 +01:00
David Monllaó e40af65c87 MDL-64679 tool_analytics: Allow trained models to be cleared 2019-02-15 08:43:13 +01:00
VinhLe d02247448b MDL-63944 Question: Add toggle all to Quiz Activity 2019-02-15 14:42:07 +07:00
Andrew Nicols 270fd3f5e4 MDL-63944 Question: Convert toggle all to generic module 2019-02-15 10:07:08 +07:00
VinhLe b65bc972e6 MDL-63944 Questions Bank: Select all checkbox should be checked
When checkbox item be chosen then "Select All" be chosen.
When "Select All" be chosen then all checkbox item be chosen.
2019-02-15 10:07:08 +07:00
Damyon Wiese 769cd8c4cc MDL-64863 tool_lp: Progress if needed
Do not immediately show progress bars since most operations work
in under a second. This will use the default timeout (5 seconds)
before showing progress bars.
2019-02-15 09:06:04 +08:00
Andrew Nicols 124999563a weekly release 3.7dev 2019-02-15 08:29:14 +08:00
Andrew Nicols a5bd8d9658 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-02-15 08:29:12 +08:00
Stephen Bourget 4657f0388a MDL-64856 mod_glossary: Always show the settings cog on the view page. 2019-02-14 12:36:55 -05:00
Jun Pataleta 26dc34e938 Merge branch 'MDL-64552_admin_hideif' of git://github.com/davosmith/moodle 2019-02-14 15:12:22 +08:00
Jun Pataleta 401d0c06f3 Merge branch 'MDL-64736-master-2' of git://github.com/andrewnicols/moodle 2019-02-14 15:00:56 +08:00
Andrew Nicols 9a8920f751 Merge branch 'MDL-64788_master' of git://github.com/markn86/moodle 2019-02-14 09:40:13 +08:00
Jun Pataleta 28785ee630 Merge branch 'MDL-63892-master-rework' of git://github.com/mickhawkins/moodle 2019-02-13 21:01:32 +08:00
Michael Hawkins 0753bb4238 MDL-63892 mod_forum: Behat update for post order 2019-02-13 17:32:24 +08:00
Jun Pataleta dce039ae48 Merge branch 'MDL-64835-master' of git://github.com/andrewnicols/moodle 2019-02-13 16:27:15 +08:00
Jun Pataleta a755876b79 Merge branch 'MDL-64557_course_hideif' of git://github.com/davosmith/moodle 2019-02-13 16:17:44 +08:00
Andrew Nicols b52c83726e MDL-63977 Behat: Wait longer for app login 2019-02-13 14:14:32 +08:00
Andrew Nicols 502fff1c1f MDL-63977 Behat: Prefer ionic approot over wwwroot 2019-02-13 13:55:34 +08:00
Andrew Nicols d1570a6f52 Merge branch 'MDL-63977-beforemerge' of https://github.com/sammarshallou/moodle 2019-02-13 13:21:15 +08:00
Andrew Nicols 568b7d3fc0 Merge branch 'MDL-64714-master' of git://github.com/cescobedo/moodle 2019-02-13 11:22:24 +08:00
Andrew Nicols fc9694d1e5 Merge branch 'MDL-63892-master-rework' of git://github.com/mickhawkins/moodle 2019-02-13 10:18:25 +08:00
Andrew Nicols 9626e56812 MDL-64835 JS: Reduce cache invalidation checks
The cache invalidation check was previously occuring every time either
the `set` or `get` function was called on the cache. However, the cache
invalidation check is based on the jsrev which is static for the
lifetime of the page.

This change moved the invalidation to happen during the setup of the AMD
module such that it only happens one time per storage type (Local +
Session).
2019-02-13 10:13:05 +08:00
Andrew Nicols dd663b41bc MDL-64835 JS: Stop using the jsrev in the jsrevPrefix
We only use the jsrevPrefix to determine if the cache should be
invalidated, but the prefix that we were using is based on the new
jsrev.

For example, the jsrevPrefix will be:

    hash(wwwroot + '/ + config.jsrev) + '/jsrev'

Where config.jsrev is the _current_ (new) jsrev.

As a result when searching for the jsrev used to store the data which is
currently in the storage cache, no key is returned, and we instead set
an 'initial' value and the cache is not cleared

This patch changes the jsrevPrefix to be:

    hash(wwwroot) + '/jsrev'

Since the wwwroot does not change, the key remains static for the
current site. As a result, when the jsrev is bumped via a Moodle cache
purge, we are able to correctly fetch the old jsrev from the cache,
determine that the jsrev has changed, and purge the cache.
2019-02-13 10:11:42 +08:00
AMOS bot 36ddd6c1a3 Automatically generated installer lang files 2019-02-13 00:11:35 +00:00
sam marshall d178865b38 MDL-63977 Behat: Organise app functions in window.behat object 2019-02-12 13:26:39 +00:00
Eloy Lafuente (stronk7) 752e2f85e7 Merge branch 'MDL-64420-2' of https://github.com/timhunt/moodle 2019-02-12 12:56:18 +01:00
David Monllaó 6f5d32ea4d Merge branch 'MDL-64590' of https://github.com/timhunt/moodle 2019-02-12 12:45:48 +01:00
David Monllaó f4a99aa5eb Merge branch 'MDL-64646' of https://github.com/mkassaei/moodle 2019-02-12 12:42:48 +01:00
David Monllaó 9426a13cfe Merge branch 'master' of https://github.com/CengageEng/moodle 2019-02-12 12:33:23 +01:00
sam marshall 3e42f121f2 MDL-63977 Behat: Read config.json version from running Ionic server 2019-02-12 11:18:21 +00:00
Davo Smith c5ec8db43b MDL-64557 tool_behat: fix broken test 2019-02-12 10:18:04 +00:00
Davo Smith 309686547a MDL-64557 category: switch disabledIf to hideIf on delete form 2019-02-12 10:18:04 +00:00
Davo Smith 87c7fb6e9a MDL-64557 modform: switch disabledIf to hideIf, where appropriate 2019-02-12 10:18:04 +00:00
David Monllaó 59f75c4f41 Merge branch 'MDL-32096-master' of git://github.com/peterRd/moodle 2019-02-12 09:41:35 +01:00
Andrew Nicols b1deb76f66 Merge branch 'MDL-64291' of https://github.com/KietChan/moodle 2019-02-12 10:55:10 +08:00
Jun Pataleta ae242c33f8 Merge branch 'MDL-64493-master' of git://github.com/damyon/moodle 2019-02-12 10:12:21 +08:00
cescobedo e84312f768 MDL-64571 core_message: Fix duplicate footer in msg notification email 2019-02-12 00:43:21 +01:00
Andrew Nicols 93060b9508 MDL-64736 course: Rewrite behat step to avoid changing a checkbox 2019-02-12 07:41:34 +08:00
Eloy Lafuente (stronk7) a88dfa1bf6 Merge branch 'MDL-61326-master' of git://github.com/peterRd/moodle 2019-02-12 00:19:07 +01:00
Eloy Lafuente (stronk7) 3b996f2a4e Merge branch 'MDL-64694_master' of git://github.com/dmonllao/moodle 2019-02-12 00:09:46 +01:00
Peter 8c7d6407b9 MDL-61326 repository_equella: Pass proper labels for roles with no name 2019-02-12 07:09:13 +08:00
Eloy Lafuente (stronk7) c50e52d318 Merge branch 'MDL-64606-master' of https://github.com/lucaboesch/moodle 2019-02-12 00:02:12 +01:00
Eloy Lafuente (stronk7) 095d42c297 Merge branch 'MDL-64238-master' of git://github.com/peterRd/moodle 2019-02-11 23:56:44 +01:00
sam marshall ff3ccab52e MDL-63977 Behat: Rename Ionic config variables for consistency 2019-02-11 16:40:56 +00:00
sam marshall 079eae376c MDL-63977 Behat: Make standard login step work for app as well 2019-02-11 16:20:43 +00:00
sam marshall a3892e0ef5 MDL-63977 Behat: Move app startup to before-scenario hook 2019-02-11 16:20:43 +00:00
sam marshall 66901a6968 MDL-63977 Behat: Add generic way to get tag list 2019-02-11 16:20:42 +00:00
sam marshall d8218a3f09 MDL-63977 Behat: Fix bug in 'near' calculation 2019-02-11 16:20:42 +00:00
sam marshall e0564a3264 MDL-63977 Behat: Upgrade mobile tests to work with 3.6 app version 2019-02-11 16:20:42 +00:00
sam marshall 1959e16412 MDL-63977 Behat: Allow Behat testing of the Moodle mobile app
This change allows you to write and run Behat tests that cover the
mobile app. These should have the @app tag. They will be run in the
Chrome browser using an Ionic server on the local machine.

See config-dist.php for configuration settings, or full docs here:
https://docs.moodle.org/dev/Acceptance_testing_for_the_mobile_app
2019-02-11 16:20:42 +00:00
Mark Johnson d6c06935c2 MDL-64823 mobile: Fix prefix for disabled plugins 2019-02-11 16:05:23 +00:00
Eloy Lafuente (stronk7) 18cc7a2ceb Merge branch 'MDL-64725-master' of git://github.com/junpataleta/moodle 2019-02-11 17:03:55 +01:00
John Beedell 0d3be6d648 MDL-64420 qtype: gapselect unit tests unsafe 2019-02-11 13:53:24 +00:00
Eloy Lafuente (stronk7) 690bedf26c Merge branch 'MDL-64599' of https://github.com/marcusboon/moodle 2019-02-11 12:50:46 +01:00
Eloy Lafuente (stronk7) fdb3de8a05 Merge branch 'MDL-64385-master' of git://github.com/aanabit/moodle 2019-02-11 12:35:26 +01:00
Sara Arjona 7bc2d6e644 Merge branch 'MDL-64031-master' of https://github.com/lethevinh/moodle 2019-02-11 12:33:06 +01:00
Peter 448584b5df MDL-60384 mod_book: Add a label to highlight the previous chapter
* Added current chapter's title to the button title so it's clear where you're adding the chapter to.
* Update the behat tests to reflect the changes made to the title
2019-02-11 11:16:39 +01:00
David Monllaó 9e5d41ee1d Merge branch 'MDL-64391_master' of git://github.com/vmdef/moodle 2019-02-11 11:08:20 +01:00
Sara Arjona 67d490b629 Merge branch 'MDL-48338-master' of git://github.com/andrewnicols/moodle 2019-02-11 10:41:03 +01:00
David Monllaó 4de1ac1613 Merge branch 'MDL-62666-master' of git://github.com/junpataleta/moodle 2019-02-11 09:49:08 +01:00
Andrew Nicols f7eaa3c3dc Merge branch 'MDL-64597-master' of git://github.com/junpataleta/moodle 2019-02-11 16:36:00 +08:00
Jun Pataleta 1636578bd6 Merge branch 'MDL-64488-master' of git://github.com/damyon/moodle 2019-02-11 16:05:53 +08:00
Jun Pataleta c18f59e155 Merge branch 'MDL-64644_master' of git://github.com/markn86/moodle 2019-02-11 15:29:04 +08:00
Andrew Nicols 232906959a Merge branch 'MDL-64393' of https://github.com/timhunt/moodle 2019-02-11 15:11:20 +08:00
Shamim Rezaie 0bd93fe52a MDL-63134 mod_chat: Check if the module is visible to the user 2019-02-11 16:08:59 +11:00
Shamim Rezaie 46b495fdc4 MDL-63134 mod_chat: Add userid param to mod_chat calendar callbacks 2019-02-11 16:08:54 +11:00
Jun Pataleta 91425ec00d Merge branch 'MDL-64684-master' of git://github.com/andrewnicols/moodle 2019-02-11 11:40:26 +08:00
Mark Nelson 46014b8343 MDL-64093 core: added new 'messagingdefaultpressenter' setting 2019-02-11 09:47:40 +08:00
Andrew Nicols 207ffaf14e Merge branch 'MDL-63825' of https://github.com/mkassaei/moodle 2019-02-11 09:36:07 +08:00
AMOS bot be70cb84e2 Automatically generated installer lang files 2019-02-10 00:10:08 +00:00
Adrian Perez 03f88d71ed MDL-64563 theme_boost: Add page site admin category name word-break 2019-02-09 20:14:41 +01:00
Tim Hunt 822b4abb1e MDL-64242 qtype_essay: more efficient query in restore code
Thanks to Juan Ibarra for the suggestion that lead to this fix.
2019-02-08 15:52:44 +00:00
M Kassaei 6bafb66c34 MDL-63825 Quiz: convert quiz repaginate.js from YUI to AMD 2019-02-08 15:50:45 +00:00
Luca Bösch 9cdda19851 MDL-64606 templates: Show & instead of &amp; in url-select. 2019-02-08 13:24:25 +01:00
Juan Leyva b5d889be10 MDL-64281 core: Always allow frame embedding in the app
The Moodle app must be allowed to embed content always.
2019-02-08 11:14:09 +01:00
Jun Pataleta 694513e2fe weekly release 3.7dev 2019-02-08 14:54:30 +08:00
Andrew Nicols e2477aa382 Merge branch 'MDL-63880-master' of git://github.com/Chocolate-lightning/moodle 2019-02-08 12:36:22 +08:00
Mathew May 298133d638 MDL-63880 core_course: Change core no-course template.
Added two templates back in that define what string to use in the two affected blocks.
2019-02-08 12:31:11 +08:00
Damyon Wiese 86dc15f26c MDL-64806 theme_boost: Do not label "More" icon
The icon is next to the text that says the same thing. Hide it from screenreaders.
2019-02-08 09:36:25 +08:00
Peter 286631e7c0 MDL-64238 mod_quiz: Check enrollment on calendar_action generator
* Updated unit tests to account for participants
2019-02-08 06:40:52 +08:00
Juan Leyva 355c37b8c7 MDL-64653 webservice: Return current theme in get_site_info WS 2019-02-07 15:41:23 +01:00
Juan Leyva 289b79992b MDL-64791 messages: Bring back 'messagecontactrequests' message 2019-02-07 12:06:41 +01:00
Eloy Lafuente (stronk7) fc414a2577 Merge branch 'MDL-62680-master' of git://github.com/damyon/moodle 2019-02-07 10:23:39 +01:00
Anthony Ales 428db95dfb MDL-48338 forum: Missing #unread in discussion post url
When a user user selects the unread messages link from the forum
discussion page, the link does not include '#unread' in the url.
This patch appends '#unread' to the url by changing the appropriate
value in the reference link assigned to $out within the function
forum_cm_info_view() of the 'lib.php'file.

A similar change is on the forum index.
2019-02-07 15:16:13 +08:00
Jun Pataleta ece030ede1 Merge branch 'MDL-64337-master-fix1' of git://github.com/damyon/moodle 2019-02-07 14:59:45 +08:00
eWallah c172d58769 MDL-64633 behat: fix FormatterNotFoundException when updating steps. 2019-02-07 14:56:13 +08:00
Andrew Nicols c882a45f10 Merge branch 'MDL-63880-master' of git://github.com/Chocolate-lightning/moodle 2019-02-07 13:53:53 +08:00
Mathew May a29135f883 MDL-63880 core_course: Move common templates to core_course
Remove repeated templates from myoverview, recentlyaccessedcourse &
starredcourses blocks.
2019-02-07 13:45:12 +08:00
Peter Eliyahu Kornfeld 78ef2ac1e0 MDL-60459 core_course: set default for 'visibleoncoursepage' 2019-02-07 10:52:34 +08:00
Damyon Wiese ef96eb02fb MDL-62680 output: Only hide icons with no label
For accessibility we don't want to read an icon with a label immediately next to the label,
but in this case it's clearer for the icon to have no alt text / title for both
screen readers and non-screen readers. Worse is not reading important information just
because it's displayed as an icon.
2019-02-07 10:08:19 +08:00
Damyon Wiese 7a5669557c MDL-64377 assign: Behat test fix
The behat assumed that after editing a submission, the next page would be the assignment
front page even though we were previously on the "view all submissions" page. The extra
step to go back to the "view all submissions" page is no longer needed so has been removed.
2019-02-07 09:33:52 +08:00
Eloy Lafuente (stronk7) 4b38f761c1 Merge branch 'MDL-64507-v2' of git://github.com/danmarsden/moodle 2019-02-07 01:24:30 +01:00
Eloy Lafuente (stronk7) 84f0b32317 Merge branch 'MDL-64577-master' of https://github.com/lucaboesch/moodle 2019-02-07 00:45:28 +01:00
Damyon Wiese 74f6a5d482 MDL-64507 assign: Behat test "Hide grader identity"
Test that you can't see the identity of the grader even on previous attempts.
2019-02-07 12:16:46 +13:00
Dan Marsden 5600faa466 MDL-64507 mod_assign: check grader visibility for previous submissions. 2019-02-07 12:14:56 +13:00
Eloy Lafuente (stronk7) 28f7d52523 Merge branch 'MDL-64551-master' of git://github.com/rezaies/moodle 2019-02-06 23:44:35 +01:00
Eloy Lafuente (stronk7) 255e815d19 Merge branch 'MDL-64469-master' of https://github.com/lethevinh/moodle 2019-02-06 22:53:23 +01:00
Eloy Lafuente (stronk7) 7dc5cae795 Merge branch 'MDL-64454-master' of https://github.com/sammarshallou/moodle 2019-02-06 22:26:44 +01:00
Eloy Lafuente (stronk7) 89da3f67e4 Merge branch 'MDL-64071-master' of https://github.com/UniGe/moodle 2019-02-06 17:56:59 +01:00
Eloy Lafuente (stronk7) 2b180d54ef Merge branch 'MDL-63148-master' of git://github.com/peterRd/moodle 2019-02-06 13:28:21 +01:00
Eloy Lafuente (stronk7) c94dbc411f Merge branch 'MDL-63614_M37v1' of https://github.com/sbourget/moodle 2019-02-06 13:19:01 +01:00
Jun Pataleta d264253bd4 Merge branch 'MDL-63967' of git://github.com/stronk7/moodle 2019-02-06 16:59:16 +08:00
Mihail Geshoski c81a1509e2 MDL-63417 lesson: Re-apply class variable to the question response 2019-02-06 14:56:06 +08:00
Mark Nelson 1f2ff1b110 MDL-64788 core_message: removed unused temporary page 2019-02-06 13:55:48 +08:00
Jun Pataleta 933f48b4a3 Merge branch 'MDL-61405-master' of git://github.com/damyon/moodle 2019-02-06 13:12:49 +08:00
Damyon Wiese 77f31a47dd MDL-61405 assign: Multiple pdfs are expected
In the same page it is normal (expected) to have multiple links to different annotated pdfs.

In the grading page, we also abort pending ajax progress when the current user is changed.
2019-02-06 09:38:59 +08:00
Damyon Wiese c0417b04ff MDL-53346 competencies: Show user learning plans
On the course competencies page, show the user their learning plans
that contain each of the course competencies.
2019-02-06 08:33:55 +08:00
Eloy Lafuente (stronk7) 64c3b5078f Merge branch 'MDL-63516-master' of https://github.com/dmitriim/moodle 2019-02-06 00:15:58 +01:00
Eloy Lafuente (stronk7) 9cadc0eeb6 Merge branch 'MDL-60432-master' of git://github.com/andrewnicols/moodle 2019-02-06 00:11:27 +01:00
Eloy Lafuente (stronk7) f706dabd50 Merge branch 'MDL-63785-master' of git://github.com/rezaies/moodle 2019-02-06 00:04:14 +01:00
Dmitrii Metelkin 301783d94e MDL-63516 groups: fix unexpected debugging message 2019-02-06 09:21:26 +11:00
Sara Arjona 34c6d98fd7 Merge branch 'MDL-62893_master' of https://github.com/mfabriczy/moodle 2019-02-05 20:06:21 +01:00
Eloy Lafuente (stronk7) 9fed2066ca Merge branch 'MDL-50793-master-2' of git://github.com/mihailges/moodle 2019-02-05 16:14:26 +01:00
Eloy Lafuente (stronk7) f570437a7f Merge branch 'MDL-61441' of https://github.com/timhunt/moodle 2019-02-05 16:11:58 +01:00
Jun Pataleta b5add8b43d Merge branch 'MDL-64632_master' of git://github.com/markn86/moodle 2019-02-05 22:41:20 +08:00
cescobedo 00b4f9e234 MDL-64714 core_auth: Fix early break foreach in delete_data_for_user 2019-02-05 12:51:34 +01:00
Eloy Lafuente (stronk7) e6d28cbb40 Merge branch 'MDL-64377-master' of git://github.com/damyon/moodle 2019-02-05 12:46:01 +01:00
Marcus Fabriczy f5d1dbb37f MDL-62893 mod: Grade visibility bug in the Outline/Complete reports
Grades that have been hidden will appear in the outline/complete
report - even if the user is a student.

The modules that have been fixed are:
* mod_assign
* mod_data
* mod_forum
* mod_glossary
* mod_lesson
* mod_scorm
* mod_workshop
2019-02-05 20:01:32 +10:30
Jun Pataleta 2d2404e328 Merge branch 'MDL-43385-master' of git://github.com/junpataleta/moodle 2019-02-05 16:37:20 +08:00
Jun Pataleta 1a3a3ef2c4 MDL-43385 booktool_print: Remove unused $titles array 2019-02-05 16:33:33 +08:00
Mihail Geshoski 8cf64176a7 MDL-43385 booktool_print: Improve print output 2019-02-05 16:10:31 +08:00
Peter 8c16d50e40 MDL-64450 mod_lesson: Update the css for lesson forms
* Reduce the width for the mediaplugin when displayed in forms
* Correct the css to exclude mediaplugin when applying styles
2019-02-05 12:53:37 +08:00
Damyon Wiese 37fc47f17d MDL-64377 assign: Allow remove submission
Calls each submission plugin to remove the data for a submission.
2019-02-05 11:54:49 +08:00
Mihail Geshoski 854f6116f3 MDL-50793 mod_book: Display hidden chapters to teachers 2019-02-05 09:46:48 +08:00
Mihail Geshoski b5bce42cca MDL-50793 mod_book: Update behat tests 2019-02-05 09:46:08 +08:00
Eloy Lafuente (stronk7) 8564438abc Merge branch 'MDL-61535-master' of git://github.com/andrewnicols/moodle 2019-02-05 01:34:31 +01:00
Eloy Lafuente (stronk7) 89b1f3ac95 Merge branch 'wip-MDL-64404-master' of https://github.com/Beedell/moodle 2019-02-05 01:28:54 +01:00
Eloy Lafuente (stronk7) 77017d1138 Merge branch 'MDL-62973-master' of git://github.com/junpataleta/moodle 2019-02-05 00:08:02 +01:00
Eloy Lafuente (stronk7) 3901fd74ba Merge branch 'MDL-64649-master' of https://github.com/felicemcc/moodle 2019-02-04 16:35:22 +01:00
Dani Palou 468ee73bba MDL-64761 assign: Add tests for hidden grader in WS 2019-02-04 15:29:47 +01:00
Dani Palou 208e1376be MDL-64761 assign: Return grader -1 when hidden in get_submission_status 2019-02-04 15:29:47 +01:00
Eloy Lafuente (stronk7) 9ee3b3d1df Merge branch 'MDL-63975-master' of git://github.com/damyon/moodle 2019-02-04 13:21:37 +01:00
Damyon Wiese fd7472370a MDL-62008 output: Help icon text is escaped
The argument to render the pix_icon template from the help_icon template should not
be escaped, they will be escaped by the pix_icon template when it generates the HTML.
2019-02-04 13:28:28 +08:00
Mark Nelson fc2664501b MDL-64632 core_message: fixed PHP error when users are deleted from DB 2019-02-04 12:36:22 +08:00
Damyon Wiese c59eef8ee0 MDL-62465 assign: Allow grade scrolling
Remove the custom override that disables no-overflow in the grading table. This page is better to use
when the grading table is scrollable and the controls around it are not scrollable.
2019-02-04 11:40:06 +08:00
Damyon Wiese 4444c45df8 MDL-62465 grade: scrolling CSS
Grading pages have their own special javascript to force "fixed" headers
when scrolling a large table. They rely on the entire page being scrolled,
not just the main region.
2019-02-04 11:40:06 +08:00
Damyon Wiese a3a157ae01 MDL-62465 CSS: scrolling tables
Tables displayed inside a flex box container need position:relative to
calculate their size or they cause incorrect scrollable regions to appear in the page.
2019-02-04 11:40:05 +08:00
Jun Pataleta 9b0cb96d42 MDL-64725 composer: Use lowercase for package name of dev dependencies 2019-02-04 09:37:35 +08:00
Sara Arjona 2f2b0bfc61 Merge branch 'MDL-63578-master' of git://github.com/damyon/moodle 2019-02-01 13:31:31 +01:00
Eloy Lafuente (stronk7) b762ed9552 MDL-63967 libs: some filter_var() filters are deprecated with php73
The explicit usage of the constants FILTER_FLAG_SCHEME_REQUIRED and
FILTER_FLAG_HOST_REQUIRED is now deprecated; both are implied for
FILTER_VALIDATE_URL anyway.
2019-02-01 11:56:05 +01:00
M Kassaei 5179a01ab6 MDL-64646 drag-drop questions: improve editing forms
Users were getting confused between choice numbers and
group numbers. So choice numbers now show as [[1]] to
match what appears in the question text. Groups are now
letters A, B, ...
2019-02-01 10:20:08 +00:00
David Monllaó a36ce71185 MDL-64694 report_insights: Remove unnecessary cell classes 2019-02-01 09:09:59 +01:00
Luca Bösch cfac07f283 MDL-64577 grade: style "Add ID numbers" button. 2019-02-01 07:10:18 +01:00
David Monllao b9249eb3d8 MDL-64500 tool_analytics: No invalid analysables message 2019-02-01 06:58:55 +01:00
Damyon Wiese 37910f5e9c MDL-55211 js: form/showadvanced yui to amd 2019-02-01 09:35:12 +08:00
Damyon Wiese 5ac7838e3c MDL-45151 assign: Add anonymous flag to events if blindmarking 2019-02-01 09:12:48 +08:00
Jun Pataleta a62e275984 weekly release 3.7dev 2019-02-01 08:56:54 +08:00
Jun Pataleta ab1ffc8fcf Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-02-01 08:56:53 +08:00
Eloy Lafuente (stronk7) f385378b43 Merge branch 'MDL-64737-master-attoprivacysql' of git://github.com/mudrd8mz/moodle 2019-01-31 22:45:37 +01:00
Sara Arjona 479c681443 MDL-62514 form: Add missing data-tags attribute
The data-tags=1 attribute was missing for the autocomplete forms
without suggestions.
2019-01-31 13:50:00 +01:00
David Mudrák 599abfac00 MDL-64737 editor_atto: Fix the privacy export_user_data() implementation
Multiple issues fixed:

* Fixed order of the statements to avoid access to undefined variables.
* Fixed population of the SQL query parameter to make sure they match
  the placeholder in the query.
* Fixed missing table aliases in the second query to make sure the query
  actually works as expected.
2019-01-31 12:28:52 +01:00
David Mudrák c5dde62e18 MDL-64737 privacy: Fix privacy provider testsuite file names
Only files ending with "_test.php" suffix are implicit part of a
testsuite. So these two were not actually executed.
2019-01-31 11:31:57 +01:00
Felice Candilio c4ddf40612 MDL-64649 amd: Removing underscores from icons in [Roles/Groups] forms 2019-01-31 10:55:53 +01:00
Damyon Wiese 13543706a5 MDL-63975 assign: Fix error when there is no grader 2019-01-31 13:09:06 +08:00
Damyon Wiese a6ca1ebe92 MDL-64200 atto_media: Improve behat test
By setting the window size before the modal dialogs are opened, we will get
consistent behaviour when interacting with the modal.
2019-01-31 11:51:46 +08:00
Damyon Wiese ff9a0f8289 MDL-63578 assign: Better page titles
Use the context function get_context_name() to set the page title. This will
change it from "Assignment" to "C1: Important foods to eat".

The get_context_name() for activity modules is updated to include the course short name (not the
name of the activity type).
2019-01-31 10:47:24 +08:00
Eloy Lafuente (stronk7) 0efd3c19b4 Merge branch 'MDL-64320_master' of git://github.com/dmonllao/moodle 2019-01-31 00:24:53 +01:00
Eloy Lafuente (stronk7) 8eb26c2c4a Merge branch 'MDL-64521' of https://github.com/timhunt/moodle 2019-01-30 23:48:48 +01:00
Eloy Lafuente (stronk7) 0c715afea2 Merge branch 'MDL-62514-master' of git://github.com/andrewnicols/moodle 2019-01-30 22:58:13 +01:00
Claude Vervoort 25ad68293c MDL-64730 LTI Adv: do not ignore 0 score 2019-01-30 16:18:22 -05:00
Eloy Lafuente (stronk7) 62b942a510 MDL-64528 core_completion: new cap version bump 2019-01-30 21:23:15 +01:00
Eloy Lafuente (stronk7) 6ada5b713b Merge branch 'MDL-64528-master' of https://github.com/mackensen/moodle 2019-01-30 21:21:26 +01:00
Sara Arjona f59f689e29 Merge branch 'master' of https://github.com/kristian-94/moodle 2019-01-30 19:08:59 +01:00
Sara Arjona d5cd071777 Merge branch 'MDL-64123_master' of https://github.com/marxjohnson/moodle 2019-01-30 17:46:03 +01:00
Juan Leyva cf0cad920c MDL-64444 mod_assign: Use correct permissions for context locking
Some WebServices does not use the correct permissions.
This mean that when a context is locked, they don't behave as expected.
2019-01-30 15:07:58 +01:00
Sara Arjona 1d792fa982 Merge branch 'MDL-47247-master' of git://github.com/mihailges/moodle 2019-01-30 14:02:48 +01:00
Juan Leyva 9b8aed89d8 MDL-64026 course: Return content summary information via WS 2019-01-30 12:40:25 +01:00
David Monllao e0c889978f MDL-64320 analytics: Validate discrete indicators separately 2019-01-30 12:11:08 +01:00
Eloy Lafuente (stronk7) 4e77949bc3 MDL-46881 forum: whitespace fix (and related phpdocs completed) 2019-01-30 11:24:00 +01:00
Eloy Lafuente (stronk7) 7b683564dc Merge branch 'MDL-46881-master' of git://github.com/andrewnicols/moodle 2019-01-30 11:12:21 +01:00
Sara Arjona 9396da6964 Merge branch 'MDL-64190' of https://github.com/paulholden/moodle 2019-01-30 10:25:33 +01:00
Sara Arjona e042dc5395 Merge branch 'MDL-64566_master' of git://github.com/markn86/moodle 2019-01-30 09:31:56 +01:00
Sara Arjona f0919712ba Merge branch 'MDL-64143-master' of https://github.com/ryanwyllie/moodle 2019-01-30 09:22:23 +01:00
Andrew Nicols cd029f936d MDL-46881 forum: Only skip post, not discussion 2019-01-30 10:55:48 +08:00
Andrew Nicols ba1a8ef782 MDL-46881 forum: Adjust limits for tasks 2019-01-30 10:55:48 +08:00
Andrew Nicols b51b696927 MDL-46881 core: Allow adhoc tasks to be rescheduled 2019-01-30 10:55:48 +08:00
Andrew Nicols 4129d898f7 MDL-46881 forum: Tidy up trace variables 2019-01-30 10:55:48 +08:00
Ryan Wyllie dea0c9dcdf MDL-64143 message: make message drawer contacts bold 2019-01-30 08:58:57 +08:00
Andrew Nicols bebb976b99 MDL-62514 behat: Inplace editable pendingjs wrapper 2019-01-30 08:24:32 +08:00
Andrew Nicols aac98ca7df MDL-62514 behat: Remove potentially conflicting names from description 2019-01-30 08:24:32 +08:00
Andrew Nicols f98a300dd8 MDL-62514 behat: Add additional autocomplete validation 2019-01-30 08:24:32 +08:00
Andrew Nicols e994dea0b3 MDL-62514 behat: Rewrite handling of autocomplete
This includes a minor restructure of the autocomplete JS to make use of
promises and improve tracking of pending JS.

In particular it improves the way in which throttled text input is
handled to ensure that the behat does not continue until:
- typing is fully complete; and
- all possible ajax requests have been sent; and
- all possible ajax requests complete; and
- the suggestions are updated.

A number of conditions existed where behat would move on to the next
step too early in a race condition effect between Behat and Autocomplete.
2019-01-30 08:24:32 +08:00
Andrew Nicols 7bfb575f63 MDL-62514 behat: Add a wait_for_pending_js to form field 2019-01-30 08:24:32 +08:00
AMOS bot a591e6c294 Automatically generated installer lang files 2019-01-30 00:10:07 +00:00
Andrew Nicols 0dc54176dd MDL-46881 forum: Mark posts as ready properly 2019-01-30 07:48:38 +08:00
Andrew Nicols af48d8bdd6 MDL-46881 forum: Defer post visibility check to send time 2019-01-30 07:48:38 +08:00
Andrew Nicols c0284ccbc6 MDL-46881 forum: Ensure that there are posts to remove 2019-01-30 07:48:38 +08:00
Andrew Nicols b231aabb2d MDL-46881 mod_forum: Remove unused functions
Note: I have not applied the deprecation policy to these functions as
they are extremely core to the cron functionality and were never
intended to be used outside of cron.
2019-01-30 07:48:38 +08:00
Andrew Nicols 4459ad290d MDL-46881 mod_forum: Move cron around 2019-01-30 07:48:38 +08:00
Andrew Nicols 28fd710f84 MDL-46881 core_task: Add a logging trait 2019-01-30 07:48:38 +08:00
Eloy Lafuente (stronk7) 3679f3b3b7 Merge branch 'MDL-64424-master-expiredfrontpage' of git://github.com/mudrd8mz/moodle 2019-01-29 23:47:05 +01:00
Eloy Lafuente (stronk7) aa612f259e Merge branch 'MDL-64464' of https://github.com/timhunt/moodle 2019-01-29 19:40:14 +01:00
Sara Arjona b594c853b9 Merge branch 'MDL-64144-master' of https://github.com/ryanwyllie/moodle 2019-01-29 16:08:10 +01:00
Sara Arjona 21a43e5508 Merge branch 'MDL-63168_master' of git://github.com/markn86/moodle 2019-01-29 13:00:47 +01:00
Sara Arjona d067783f2b Merge branch 'MDL-64313-master' of git://github.com/damyon/moodle 2019-01-29 12:35:31 +01:00
Sara Arjona f07949c0c9 Merge branch 'MDL-61623-master' of git://github.com/damyon/moodle 2019-01-29 11:20:08 +01:00
Damyon Wiese 82e8a0ef36 MDL-61623 accessibility: Use role, not aria-role 2019-01-29 13:40:10 +08:00
Mihail Geshoski a124355646 MDL-47247 mod_folder: Apply site config when showexpanded is not set 2019-01-29 08:58:14 +08:00
Sara Arjona c85b7b3a93 Merge branch 'MDL-62668-master' of git://github.com/jleyva/moodle 2019-01-28 19:42:13 +01:00
Sara Arjona e07bafff8d Merge branch 'MDL-64414-master' of https://github.com/serlachner/moodle 2019-01-28 15:37:57 +01:00
Binh Thai 658bf9d554 MDL-64291 GDPR export: Context paths can be very long, not unique 2019-01-28 19:49:09 +07:00
Sara Arjona 91f514eafa Merge branch 'MDL-56604-master' of git://github.com/damyon/moodle 2019-01-28 13:32:38 +01:00
Sara Arjona 4fd91cf43b Merge branch 'MDL-31852-master' of git://github.com/peterRd/moodle 2019-01-28 12:44:44 +01:00
Sara Arjona fae2eb85e1 Merge branch 'MDL-63378-master' of git://github.com/damyon/moodle 2019-01-28 11:37:58 +01:00
cescobedo cd03a6fe88 MDL-61575 message_notification: replace lp/dialogue with core/modal 2019-01-28 10:33:25 +01:00
Sara Arjona 28c9c6c5bf Merge branch 'MDL-54804_master' of https://github.com/mfabriczy/moodle 2019-01-28 10:20:56 +01:00
Sara Arjona 98cfe1f923 Merge branch 'master_MDL-64124' of https://github.com/danmarsden/moodle 2019-01-28 09:56:47 +01:00
Dan Marsden 89ab980681 MDL-64124 block_ilp: Remove unused capability. 2019-01-28 10:22:20 +13:00
Garrett Boone 00a11f40f2 MDL-64640 feedback: Fix target link on deletion 2019-01-27 18:12:42 +08:00
Kristian Ringer 26a6b74d6e MDL-64700 block_recentlyaccessedcourses: don't escape course names 2019-01-25 10:19:03 +11:00
Eloy Lafuente (stronk7) 0e1e1e5586 weekly release 3.7dev 2019-01-24 15:12:25 +01:00
Eloy Lafuente (stronk7) a4d2f5c6d8 NOBUG: Fixed SVG browser compatibility 2019-01-24 15:12:23 +01:00
Eloy Lafuente (stronk7) daf2f65019 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-01-24 15:12:22 +01:00
Sara Arjona cabdadf328 MDL-64324 core_form: reference in upgrade.txt to randomly id on forms 2019-01-24 09:49:27 +01:00
Shamim Rezaie 029d3b471b MDL-52132 qbehaviour_manualgraded: no change when comment is left blank 2019-01-24 16:20:01 +08:00
Damyon Wiese 3c4fd88193 MDL-56604 assign: Group submission status
On the page listing all assignments for the course,
show the status of the group submission if teamsubmissions is enabled
for the assignment.
2019-01-24 14:33:54 +08:00
Jun Pataleta 7c2b9ffcf6 MDL-64597 behat: Properly import behat_util when dropping parallel sites 2019-01-24 12:50:29 +08:00
Andrew Nicols dbcd255570 MDL-64684 javascript: Do not minify jQuery+requireJS in dev mode 2019-01-24 09:28:21 +08:00
Damyon Wiese 7219f590f3 MDL-64493 completion: Manual completion Ally
Do not use duplicate title attributes on buttons, use aria-live to force the correct state to be
read after clicking on a button.
2019-01-24 08:36:08 +08:00
Damyon Wiese 5689bb93e9 MDL-64488 output: User picture Ally
Do not include alt and title for a user picture if it is hidden from screen readers.

Use aria-hidden to properly hide the image from screen readers.
2019-01-24 08:31:49 +08:00
Eloy Lafuente (stronk7) caa0383ae5 Merge branch 'MDL-64240-master' of git://github.com/mickhawkins/moodle 2019-01-24 00:56:42 +01:00
Eloy Lafuente (stronk7) 20ef705577 Merge branch 'MDL-62963-master' of git://github.com/damyon/moodle 2019-01-24 00:35:37 +01:00
Eloy Lafuente (stronk7) 5a9195d922 Merge branch 'MDL-64211-master' of git://github.com/damyon/moodle 2019-01-24 00:31:54 +01:00
Eloy Lafuente (stronk7) 5dda368407 Merge branch 'MDL-64324-master-fix' of https://github.com/marinaglancy/moodle 2019-01-23 23:12:47 +01:00
Eloy Lafuente (stronk7) b16bb49192 MDL-60913 search: fix unit test expectation. Default is core-other 2019-01-23 23:02:41 +01:00
Eloy Lafuente (stronk7) 9bc4dc79cb Merge branch 'MDL-60913-search-tabs-master' of https://github.com/dmitriim/moodle 2019-01-23 18:55:47 +01:00
Juan Leyva d8035d9391 MDL-62668 mod_workshop: Return feedback for reviewer in assessment phase
Teachers were not able to view the existing feedback.
2019-01-23 18:07:51 +01:00
Eloy Lafuente (stronk7) 57cab1436b Merge branch 'MDL-64609-master' of git://github.com/merrill-oakland/moodle 2019-01-23 18:05:26 +01:00
Marina Glancy 48f9ebcd62 MDL-64324 question: do not expect form id to be mform1 2019-01-23 17:37:52 +01:00
Andrew Nicols 1717604fa0 MDL-64640 usertours: Fix target link on deletion 2019-01-23 21:33:02 +08:00
Mark Sharp b01c4194ff MDL-64391 core_analytics: courseextendednamedisplay 2019-01-23 10:40:11 +00:00
David Mudrák 5f7b528281 MDL-64424 privacy: Use system context purpose on the front page, too
For activities on the site's front page, use the purpose and retention
periods as defined for the system context, not for the courses.
2019-01-23 11:13:10 +01:00
Sara Arjona 324c4f0556 Merge branch 'MDL-64107-master' of git://github.com/damyon/moodle 2019-01-23 10:18:52 +01:00
Mark Nelson ed6ac4634a MDL-64644 completion: fixed assertions in privacy test 2019-01-23 17:12:04 +08:00
Mark Nelson 6ff8d31434 MDL-64644 completion: set status correctly in provider 2019-01-23 17:11:49 +08:00
Jake Dallimore e69017267f Merge branch 'MDL-59986-master' of https://github.com/danielneis/moodle 2019-01-23 16:03:26 +08:00
Mark Nelson aaf7228fb4 MDL-64644 completion: ensure we return array for provider 2019-01-23 13:41:20 +08:00
Mark Nelson 05aa320bd2 MDL-63168 core_message: added unit test 2019-01-23 13:23:33 +08:00
eWallah 7ef5409b1b MDL-63168 core_message: fix failures in migrate_message_data task. 2019-01-23 12:45:40 +08:00
Eric Merrill d64e545a36 MDL-64609 gradebook: Prevent infinite loop in regrading 2019-01-22 21:40:12 -05:00
Jake Dallimore b028dc05b8 Merge branch 'MDL-52132-master' of git://github.com/rezaies/moodle 2019-01-23 09:20:27 +08:00
Dmitrii Metelkin e9074ee381 MDL-60913 search: add search area categories 2019-01-23 10:28:43 +11:00
Eloy Lafuente (stronk7) 44e34419ab Merge branch 'MDL-63870' of https://github.com/timhunt/moodle 2019-01-23 00:09:27 +01:00
Eloy Lafuente (stronk7) b48f694a69 Merge branch 'MDL-64465' of https://github.com/timhunt/moodle 2019-01-22 23:59:38 +01:00
Eloy Lafuente (stronk7) f7ff96c24f Merge branch 'MDL-64412-master' of https://github.com/snake/moodle 2019-01-22 23:46:45 +01:00
Eloy Lafuente (stronk7) f12f3840dd Merge branch 'MDL-64629-master' of git://github.com/sarjona/moodle 2019-01-22 19:00:31 +01:00
Eloy Lafuente (stronk7) 59776faf6f Merge branch 'MDL-64441-master' of git://github.com/sarjona/moodle 2019-01-22 18:49:07 +01:00
Shamim Rezaie bc15800927 MDL-64521 groups: add more unit tests
These tests were created for MDL-64526, just before MDL-64521 came along
and removed the buggy code. These are good tests, so they are being
kept.
2019-01-22 16:42:38 +00:00
Tim Hunt a73fa10678 MDL-64521 grouplib: reduce memory use in groups_get_all_groups
This avoids loading multiple copies of g.* when $withmembers is true
2019-01-22 16:42:18 +00:00
Eloy Lafuente (stronk7) fd0f5da874 Merge branch 'master_MDL-64237' of https://github.com/danmarsden/moodle 2019-01-22 17:18:52 +01:00
Sara Arjona 507d7ec1e8 Merge branch 'MDL-64324-master' of https://github.com/marinaglancy/moodle 2019-01-22 15:53:36 +01:00
Sara Arjona 0bf5dd4de4 Merge branch 'MDL-63480-master' of git://github.com/mihailges/moodle 2019-01-22 15:18:22 +01:00
Justus Dieckmann 8516febdd7 MDL-58256 group: prevents users to be added to a group twice 2019-01-22 12:57:29 +01:00
Sara Arjona 7d4a9008fa Merge branch 'MDL-63628-master' of git://github.com/damyon/moodle 2019-01-22 12:19:41 +01:00
Sara Arjona 1daf9e60ac Merge branch 'MDL-48971-master' of https://github.com/lucaboesch/moodle 2019-01-22 12:02:24 +01:00
Sara Arjona eca13fde9c Merge branch 'MDL-63573-master' of https://github.com/lucaboesch/moodle 2019-01-22 11:54:04 +01:00
Sara Arjona 3f64d5baee Merge branch 'MDL-64486-master' of git://github.com/peterRd/moodle 2019-01-22 08:23:03 +01:00
Michael Hawkins c41d36fa6b MDL-63892 mod_forum: Updating lib unit test 2019-01-22 13:50:47 +08:00
Peter 197efffd95 MDL-31852 mod_lesson: Allow html tag in lesson's pages 2019-01-22 12:24:15 +08:00
Peter acbe1256d2 MDL-32096 core_report: Remove duplicate filters in reports
* Remove duplicate filters from activity completion and course completion report pages
2019-01-22 12:12:17 +08:00
Jake Dallimore e404c97e5d Merge branch 'MDL-57898-master-fix-2' of git://github.com/junpataleta/moodle 2019-01-22 09:47:05 +08:00
Jun Pataleta 3c7bf4ea88 MDL-57898 core: Bump $lastmajordbchanges to trigger upgrade immediately 2019-01-22 09:36:15 +08:00
Damyon Wiese 2fbd00cb22 MDL-63628 accessibility: Trigger file links with keyboard 2019-01-22 08:39:49 +08:00
AMOS bot 88bc8aafd5 Automatically generated installer lang files 2019-01-22 00:09:50 +00:00
Eloy Lafuente (stronk7) ccd71e418c Merge branch 'MDL-63623-master' of https://github.com/dmitriim/moodle 2019-01-21 23:53:06 +01:00
Luca Bösch 8df785f9e9 MDL-63573 core_user: remove 'With selected users...' help icon. 2019-01-21 21:54:21 +01:00
Sara Arjona 98c16decde Merge branch 'MDL-63958-master' of git://github.com/jleyva/moodle 2019-01-21 15:17:53 +01:00
Sara Arjona f09d14ee45 Merge branch 'MDL-64201-master' of https://github.com/lucaboesch/moodle 2019-01-21 14:05:55 +01:00
David Mudrák c5944a1d57 MDL-64553 message: Add index for the notifications.useridfrom field
The useridfrom would normally be a foreign key to the users table. But
it can also contain some extra negative values with special semantics
(-10 or -20 for no-reply or support user). Therefore we can't make it a
foreign key and the index must be created explicitly.
2019-01-21 12:57:11 +01:00
Michael Hawkins 014fe0ad0f MDL-63892 mod_forum: Fix last post details in forum view 2019-01-21 16:40:04 +08:00
Michael Hawkins 6cab66bbe3 MDL-63892 mod_forum: Correction to timestamp added to edit strings 2019-01-21 16:40:04 +08:00
Sara Arjona 4c7cf19c27 Merge branch 'MDL-64339-master' of git://github.com/abgreeve/moodle 2019-01-21 09:34:22 +01:00
Jun Pataleta 0cd5b1652d MDL-62973 auth_shibboleth: Delete unused print_idp_list() function
This is only being used by the now-deleted login_form.html. No point
keeping it.
2019-01-21 16:05:39 +08:00
Jun Pataleta 6e4985bf0f MDL-62973 auth_shibboleth: Make login form look nicer
* Convert login form to a mustache template
* Bring logic in auth/shibboleth/login.php
* Replace usage of $_POST variable with optional_param()
* Remove unused index_form.html
2019-01-21 16:05:39 +08:00
Jake Dallimore f50a87f8e5 Merge branch 'MDL-28445-master' of git://github.com/peterRd/moodle 2019-01-21 15:58:30 +08:00
Jun Pataleta 0716019c19 Merge branch 'MDL-57898-master-fix-2' of git://github.com/junpataleta/moodle 2019-01-21 15:55:10 +08:00
Jun Pataleta 2f61fe976c MDL-57898 customfield: Set the handler's parent context in course_create 2019-01-21 15:46:33 +08:00
Jun Pataleta 7eeae1a63e MDL-62666 course: Only set the groups setting to true when necessary
* Plus update the comment to be more descriptive.
2019-01-21 13:56:23 +08:00
Jake Dallimore fa25f170b6 MDL-64323 tool_dataprivacy: fix erroneous version number 2019-01-21 13:50:41 +08:00
Jake Dallimore d950fdedae Merge branch 'MDL-64323' of https://github.com/KietChan/moodle 2019-01-21 13:43:50 +08:00
Andrew Hancox 1877ae79f2 MDL-62666 course: Ignore restore_general_groups on activity duplication 2019-01-21 11:40:57 +08:00
Mihail Geshoski bed5439216 MDL-63480 reports: Fix name filters in completion reports 2019-01-21 09:23:25 +08:00
Jake Dallimore 85e62192f2 Merge branch 'MDL-60972-master_delete_section_files' of https://github.com/awagner/moodle 2019-01-21 08:51:48 +08:00
Tim Hunt d387f50fcd MDL-64590 questions: wrong comments shown in the state history table 2019-01-18 18:00:42 +00:00
Jun Pataleta c01388f713 Merge branch 'MDL-57898-master' of git://github.com/marinaglancy/moodle 2019-01-18 22:21:23 +08:00
Sara Arjona 527ba1a848 MDL-64629 theme_clean: Remove underscore near the help icon 2019-01-18 14:31:53 +01:00
Marina Glancy d1fc4bdc1e MDL-57898 core_customfield: strings and other minor fixes 2019-01-18 14:28:24 +01:00
Marina Glancy bbf60b1412 MDL-57898 core_customfield: coding style fixes 2019-01-18 14:28:24 +01:00
Marina Glancy c1e15d20e0 MDL-57898 core_course: display course custom fields in course listings
This commit is part of work on Custom fields API,
to minimize commit history in moodle core the work of a team of developers was split
into several commits with different authors but the authorship of individual
lines of code may be different from the commit author.
2019-01-18 14:28:24 +01:00
Daniel Neis Araujo 5af9aa6341 MDL-57898 core_course: backup/restore support for course custom fields
This commit is part of work on Custom fields API,
to minimize commit history in moodle core the work of a team of developers was split
into several commits with different authors but the authorship of individual
lines of code may be different from the commit author.
2019-01-18 14:28:24 +01:00
Daniel Neis Araujo 028ed12228 MDL-57898 core_course: global search for course custom fields
This commit is part of work on Custom fields API,
to minimize commit history in moodle core the work of a team of developers was split
into several commits with different authors but the authorship of individual
lines of code may be different from the commit author.
2019-01-18 14:28:24 +01:00
David Matamoros 7a0162f17a MDL-57898 core_course: add custom fields support to courses
This commit is part of work on Custom fields API,
to minimize commit history in moodle core the work of a team of developers was split
into several commits with different authors but the authorship of individual
lines of code may be different from the commit author.
2019-01-18 14:28:18 +01:00
Ruslan Kabalin 493e7526f9 MDL-57898 core_customfield: Custom fields API
This commit is part of work on Custom fields API,
to minimize commit history in moodle core the work of a team of developers was split
into several commits with different authors but the authorship of individual
lines of code may be different from the commit author.
2019-01-18 14:28:18 +01:00
Marina Glancy 0e367a119c MDL-57898 core_customfield: Custom fields API
This commit is part of work on Custom fields API,
to minimize commit history in moodle core the work of a team of developers was split
into several commits with different authors but the authorship of individual
lines of code may be different from the commit author.
2019-01-18 14:28:18 +01:00
Daniel Neis Araujo 01c1095954 MDL-57898 core_customfield: Custom fields API
This commit is part of work on Custom fields API,
to minimize commit history in moodle core the work of a team of developers was split
into several commits with different authors but the authorship of individual
lines of code may be different from the commit author.
2019-01-18 14:28:17 +01:00
David Matamoros 0446fee7a9 MDL-57898 core_customfield: Custom fields API
This commit is part of work on Custom fields API,
to minimize commit history in moodle core the work of a team of developers was split
into several commits with different authors but the authorship of individual
lines of code may be different from the commit author.
2019-01-18 14:28:10 +01:00
Sara Arjona 3009dcb803 Merge branch 'MDL-64360-master' of https://github.com/lucaboesch/moodle 2019-01-18 14:09:50 +01:00
Sara Arjona b577f30b8e Merge branch 'MDL-62968-master' of git://github.com/mickhawkins/moodle 2019-01-18 12:38:14 +01:00
Amaia Anabitarte 696bdd636d MDL-64385 user: Case insensitive comparison for email domains 2019-01-18 10:06:27 +01:00
Toni Barberà Melià 1eeb465a0c MDL-57898 core_customfield: Custom fields API
This commit is part of work on Custom fields API,
to minimize commit history in moodle core the work of a team of developers was split
into several commits with different authors but the authorship of individual
lines of code may be different from the commit author.
2019-01-18 09:02:30 +01:00
Luca Bösch df0a2e21dd MDL-64360 mod_assign: Add help icon to notify students checkbox. 2019-01-18 00:02:49 +01:00
Luca Bösch c233d7a2fa MDL-64201 graphics: Unflag and flag quiz question SVG images. 2019-01-18 00:02:42 +01:00
Luca Bösch def68a4344 MDL-48971 groups: Add "Description" label to hovered group description. 2019-01-17 23:54:24 +01:00
Marcus Boon f33a614ec6 MDL-64599 phpunit: Fix typo in arraydataset 2019-01-18 07:07:25 +10:00
Tim Hunt cdfee883aa MDL-63870 quiz: new preview should abandon, not finish, current attempt 2019-01-17 17:55:12 +00:00
Daniel Neis Araujo d6f7480d02 MDL-59986 enrol: database sync as scheduled task 2019-01-17 15:33:11 -02:00
Eloy Lafuente (stronk7) c092f75791 weekly release 3.7dev 2019-01-17 17:47:53 +01:00
Eloy Lafuente (stronk7) 4c966647ba NOBUG: Fixed SVG browser compatibility 2019-01-17 17:47:51 +01:00
Andreas Wagner d5ef685249 MDL-60972 core_course: delete section files, when section is deleted. 2019-01-17 08:04:13 +01:00
Peter f5503c1161 MDL-28445 mod_glossary: Use compound strings as opposed to anglicised
* Use compound strings on buttons to help with proper translations
* Updated behat tests
2019-01-17 10:58:04 +08:00
Jake Dallimore 849e657b06 Merge branch 'MDL-49399-master' of git://github.com/andrewnicols/moodle 2019-01-17 08:22:37 +08:00
Andrew Nicols 987d112340 MDL-49399 task: Remove hardcoded LIMIT 2019-01-17 08:02:24 +08:00
Eloy Lafuente (stronk7) 7a5da322b2 Merge branch 'MDL-64347-master' of git://github.com/andrewnicols/moodle 2019-01-16 23:53:59 +01:00
Eloy Lafuente (stronk7) 98b845bd59 Merge branch 'MDL-64359-master' of git://github.com/andrewnicols/moodle 2019-01-16 19:05:30 +01:00
Eloy Lafuente (stronk7) 3d8a771d09 Merge branch 'MDL-63103' of https://github.com/NeillM/moodle 2019-01-16 19:02:21 +01:00
Sara Arjona 32c863f276 Merge branch 'MDL-63916-master' of git://github.com/damyon/moodle 2019-01-16 15:33:08 +01:00
Sara Arjona fda676957d Merge branch 'MDL-63620-master' of git://github.com/junpataleta/moodle 2019-01-16 14:15:10 +01:00
Sara Arjona 2a2fa61025 Merge branch 'MDL-64134-master' of git://github.com/ryanwyllie/moodle 2019-01-16 13:06:57 +01:00
Andrew Nicols 23d6756256 MDL-64347 task: Add restrictions to scheduled task runner 2019-01-16 17:20:25 +08:00
Andrew Nicols 24bfd53c73 MDL-64347 task: Add restrictions to adhoc task runner 2019-01-16 17:20:25 +08:00
Jake Dallimore 6e683cd2d2 Merge branch 'MDL-49399-master' of git://github.com/andrewnicols/moodle 2019-01-16 15:56:40 +08:00
Sara Arjona c13387eeff Merge branch 'MDL-64166-master' of https://github.com/ryanwyllie/moodle 2019-01-16 08:48:29 +01:00
Kiet.Chan 81eb8b2bbc MDL-64323 GDPR: New request form user search not using configured fields 2019-01-16 13:34:53 +07:00
Andrew Nicols cca12f68d0 MDL-49399 core: Allow creation of a new per-request basedir
Shutdown handlers are processed in order. If something in a shutdown
handler uses a file which is stored in a per-request directory, and
another, unrelated, per-request directory was created before the handler
started. then a fresh per-request directory will be required.
2019-01-16 12:14:25 +08:00
Andrew Nicols 251ee97c35 MDL-49399 tool_task: Link to log viewer
This commit also adds the fa-file-text icon from font-awesome.
2019-01-16 12:14:25 +08:00
Andrew Nicols 8c69e86cd4 MDL-49399 task: Add admin log viewer
AMOS BEGIN
 CPY [eventstarttime,core_calendar],[task_starttime,core_admin]
 CPY [eventduration,core_calendar],[task_duration,core_admin]
 CPY [result,core_cache],[task_result,core_admin]
 CPY [database,install],[task_dbstats,core_admin]
 CPY [fail,install],[task_result:failed,core_admin]
AMOS END
2019-01-16 12:14:25 +08:00
Andrew Nicols 4b71596fc9 MDL-49399 task: Add task logging API 2019-01-16 12:14:25 +08:00
Eloy Lafuente (stronk7) 4f4e987cdb Merge branch 'MDL-63607-master' of git://github.com/andrewnicols/moodle 2019-01-16 00:36:59 +01:00
Sara Arjona ce5ca79ba5 Merge branch 'MDL-64346-master' of git://github.com/abgreeve/moodle 2019-01-15 15:38:12 +01:00
Adrian Greeve b70c364a7f MDL-64346 mod_resource: Fix problems with # in file name. 2019-01-15 14:24:13 +01:00
Sara Arjona a27dbff41c Merge branch 'MDL-64171-master' of git://github.com/bmbrands/moodle 2019-01-15 13:54:50 +01:00
Sara Arjona 1557d7a8df Merge branch 'MDL-64425-master' of git://github.com/lameze/moodle 2019-01-15 13:20:47 +01:00
Sara Arjona fae8345e3b Merge branch 'MDL-64432_master' of git://github.com/gjb2048/moodle 2019-01-15 12:57:22 +01:00
Sara Arjona 74a6abc6bb Merge branch 'MDL-62439-master' of https://github.com/lucaboesch/moodle 2019-01-15 12:02:05 +01:00
Sara Arjona 64afd81e0b Merge branch 'MDL-63881-master' of https://github.com/lucaboesch/moodle 2019-01-15 11:37:07 +01:00
Andrew Nicols f93e2c5c1e MDL-52132 core_question: Comment is different if format has changed 2019-01-15 18:56:12 +11:00
Shamim Rezaie 305d2716f6 MDL-52132 qbehaviour_manualgraded: unit test for changing comment format 2019-01-15 18:56:03 +11:00
Andrew Nicols af540d426d MDL-49399 task: Add task log table 2019-01-15 07:56:20 +08:00
Andrew Nicols 702123a1dd MDL-49399 core: Add ability to specify a header col 2019-01-15 07:55:36 +08:00
Eloy Lafuente (stronk7) 8a2936f5fd Merge branch 'MDL-63677-master' of git://github.com/sarjona/moodle 2019-01-14 23:03:51 +01:00
sam marshall ff13ae5906 MDL-64454 Admin: Configuration option for cron frequency warning
This change makes the warning time (default 200 seconds) configurable
in config.php.
2019-01-14 17:07:37 +00:00
sam marshall b18034ed67 MDL-64454 Admin: Warning if cron does not run frequently
There is an existing warning if cron doesn't run at all (hasn't run
for 24 hours). This commit adds a warning if cron hasn't run for 3
minutes, based on the recommendation that cron should run every
minute.
2019-01-14 17:07:36 +00:00
Sara Arjona 0f1377cc31 Merge branch 'MDL-60082-master' of git://github.com/damyon/moodle 2019-01-14 12:03:06 +01:00
Damyon Wiese 65834189e9 MDL-64570 accessibility: purpose login fields
Provide the autocomplete attribute and username / current-password values to username
and password fields in login forms.

https://www.w3.org/WAI/WCAG21/Understanding/identify-input-purpose.html
2019-01-14 16:16:34 +08:00
Shamim Rezaie 98e019455e MDL-64551 core_question: Fix double ampersand escaping in tag button 2019-01-14 18:21:41 +11:00
Jun Pataleta c617a7271a MDL-63620 group: Option to enable group messaging for imported groups 2019-01-14 13:31:23 +08:00
Jun Pataleta e5e5b37749 MDL-63620 group: Option for group messaging when auto-creating groups 2019-01-14 13:29:42 +08:00
Mark Nelson 4cec9fca96 MDL-64566 core_message: removed unnecessary DB call 2019-01-14 09:45:38 +08:00
Charles Fulton 7868aab181 MDL-64528 core_completion: prevent toggling completion in frozen context 2019-01-12 07:37:21 -08:00
Paul Holden 1cd62f2bc8 MDL-64190 mod_quiz: use password unmask config element.
Also created required admin setting class for creating unmask password
elements with an 'advanced' checkbox control.
2019-01-11 15:11:24 +00:00
Paul Holden 1a36b8b5aa MDL-64190 search_solr: use password unmask config elements. 2019-01-11 15:11:24 +00:00
Davo Smith 223fc57d27 MDL-64552 admin: use hideIf instead of disabledIf (where appropriate) 2019-01-11 11:27:33 +00:00
Tim Hunt a44065edaa MDL-61441 accesslib: get_users_by_capability groups perf improvement 2019-01-11 11:26:41 +00:00
Tim Hunt e5153d93c0 MDL-64393 drag-drop qtypes: be more robust when page layout changes 2019-01-11 11:25:13 +00:00
Tim Hunt 096a5b9949 MDL-64464 drag-drop qtypes: allow <span lang=".."> id draggables
This is for accessibility, so that screen readers can read the drag
items with correct pronunciation.
2019-01-11 11:13:11 +00:00
Tim Hunt c942cad763 MDL-64465 qtypes: fix incorrect context passed to format_string 2019-01-11 11:12:24 +00:00
Sara Arjona c654e35007 MDL-63677 core_user: Avoid redirection during signup
Purge cache just for the current user to avoid redirection when 2
simultaneous users try to sign up at the same time and some policy
has to be agreed.
The 'createduser' invalidation event has been removed also because
is not used any more.
Thanks John Azinheira for spotting it!
2019-01-11 10:20:59 +01:00
Neill Magill 1b43c84980 MDL-63103 filebrowser: Speed up finding activities with files
Before this change the query examined at every course_module record in
the context table.

With this change we use the course_modules table to more efficiently
find all the activities in the course, which means that many less
records in the context table need to be examined.
2019-01-11 08:58:39 +00:00
VinhLe 2ea8fbb0bd MDL-64469 Question bank: Change link questions in category question.
Make it easier to navigate from the category list to the questions in a category.
2019-01-11 11:28:49 +07:00
VinhLe 26208463fe MDL-64031 enrol_manual: Fix hard-coded list of user fields.
Respect get_extra_user_fields() in PHP code
2019-01-11 11:24:15 +07:00
Peter cea8e2763b MDL-64238 mod_lesson: Check enrollment calendar_action generator
* Updated unit tests to account for participants
2019-01-11 07:56:18 +08:00
Luca Bösch 3b2f691f62 MDL-63881 tool_dataprivacy: 'Contact the privacy officer' profile link. 2019-01-10 22:19:26 +01:00
Luca Bösch 1bfed23bf5 MDL-62439 output: Debugstringids in overlay windows. 2019-01-10 22:18:50 +01:00
Sara Arjona 4c5b60a0f9 weekly release 3.7dev 2019-01-10 17:51:25 +01:00
Sara Arjona 51df6c5a47 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2019-01-10 17:51:23 +01:00
Jake Dallimore 2336493501 Merge branch 'MDL-64004-master' of git://github.com/damyon/moodle 2019-01-10 10:59:56 +08:00
AMOS bot 9f463258d9 Automatically generated installer lang files 2019-01-10 00:08:34 +00:00
Marcus Fabriczy e49603cb5c MDL-54804 templates: Prevent posting when no option is selected
When no value is set for an option element and a user selects it, a
POST request is made, which is incorrect. Usually that option is a
placeholder value, e.g., "Choose..." - the form expecting the end user
to choose an actual value.
2019-01-10 09:04:25 +10:30
Eloy Lafuente (stronk7) dbe8fe303b Merge branch 'MDL-64479' of https://github.com/timhunt/moodle 2019-01-09 23:33:36 +01:00
Sara Arjona c2fc318d4e Merge branch 'MDL-64043-master' of git://github.com/ryanwyllie/moodle 2019-01-09 17:55:34 +01:00
Eloy Lafuente (stronk7) a887977cba Merge branch 'MDL-63686-master' of git://github.com/andrewnicols/moodle 2019-01-09 12:36:09 +01:00
Andrew Nicols 889b585b29 MDL-63686 core: recordset => records when fetching contexts 2019-01-09 19:08:08 +08:00
Tim Hunt d434dd7ae7 MDL-64479 dd-qtypes: fix questions with non-consecutive groups 2019-01-09 10:18:19 +00:00
Jake Dallimore 111dfd2db5 Merge branch 'MDL-64375-master' of git://github.com/damyon/moodle 2019-01-09 15:33:09 +08:00
Damyon Wiese f13f5ab7f6 MDL-62143 accessibility: Label breadcrumbs 2019-01-09 15:14:04 +08:00
Andrew Nicols 8cd02f0c51 Merge branch 'MDL-62550-master-2' of https://github.com/snake/moodle 2019-01-09 15:09:00 +08:00
Jake Dallimore f68426d1fb Merge branch 'MDL-64345-master' of https://github.com/s-cenni/MDL-64345 2019-01-09 14:13:38 +08:00
Jake Dallimore 0dd2bca8ef MDL-62550 core_privacy: remove theme specific js from retention js
Now that we've fixed the element ids, we no longer need a selector for
each theme. The same selector will work for all themes, whether they be
bs2 or b24 based.
2019-01-09 11:34:28 +08:00
Jake Dallimore e6f068722d MDL-62550 core_theme: remove unused #fgroup_ and #fitem_ rules
These ids didn't exists in form elements in Boost until now, so we'll
remove the rules to prevent them having any effect now.
2019-01-09 11:34:28 +08:00
Jake Dallimore 574861588a MDL-62550 core_form: bring back the form item unique ids to fix js fails
This id matches the id seen on the clean theme elements and is needed by
the forms js.
2019-01-09 11:34:26 +08:00
Jake Dallimore f49e93d406 Merge branch 'MDL-63761-master' of git://github.com/damyon/moodle 2019-01-09 09:05:38 +08:00
Eloy Lafuente (stronk7) 3dd0251dd4 Merge branch 'MDL-64285-master' of git://github.com/junpataleta/moodle 2019-01-09 00:09:15 +01:00
Andrew Nicols b22cb349ed Merge branch 'MDL-64409' of git://github.com/stronk7/moodle 2019-01-09 06:58:34 +08:00
Andrew Nicols 2b1f1abde3 Merge branch 'MDL-24951' of git://github.com/stronk7/moodle 2019-01-09 06:41:00 +08:00
Andrew Nicols a1b1892ed9 Merge branch 'MDL-64426' of git://github.com/stronk7/moodle 2019-01-09 06:37:55 +08:00
Eloy Lafuente (stronk7) c7f9834e29 MDL-64426 core_message: fix context::instance_by_id() wrong use 2019-01-08 23:01:52 +01:00
Eloy Lafuente (stronk7) 644d0e2d97 MDL-24951 mod_forum: Apply new string to related scenarios
Plus amend an scenario name that was clearly incorrect.
2019-01-08 16:51:36 +01:00
Michael Hawkins 6360f87cdc MDL-64395 groups: Added XSS Risk to the manage groups capability 2019-01-08 16:24:48 +01:00
Michael Hawkins 14f9bad3ce MDL-64372 userpix: Escape fullname string on userpix index page 2019-01-08 16:24:48 +01:00
Sara Arjona 502650a3e2 MDL-64222 badge: Removed backpackurl from the edit_form 2019-01-08 16:24:48 +01:00
Eloy Lafuente (stronk7) 2c4463bf0f Merge branch 'MDL-64509-master-enfix' of git://github.com/mudrd8mz/moodle 2019-01-08 16:17:06 +01:00
Eloy Lafuente (stronk7) 5e57176a91 Merge branch 'MDL-64474-master-2' of git://github.com/junpataleta/moodle 2019-01-08 16:10:44 +01:00
Andrew Nicols bbf4a7f38b Merge branch 'MDL-58596-master' of git://github.com/vmdef/moodle 2019-01-08 16:14:58 +08:00
Andrew Nicols 50466ac4e4 Merge branch 'MDL-64426-master-2' of https://github.com/snake/moodle 2019-01-08 15:58:40 +08:00
Jake Dallimore e66e867f6e MDL-64426 core_message: fix filter support in api::get_conversations()
Conversation name and subname should support filters, so the data should
be passed through format_string, and advertised in the external params
as PARAM_TEXT.
2019-01-08 15:50:43 +08:00
Leon Stringer 8f402dbc66 MDL-58596 core_stats: fixed infinite loop cause by DST change 2019-01-08 07:37:42 +00:00
Víctor Déniz Falcón 5007d1cb04 MDL-58596 core_stats: unit test for stats_get_base_weekly 2019-01-08 07:36:48 +00:00
Jake Dallimore 662371fd65 Merge branch 'MDL-63686-master' of git://github.com/andrewnicols/moodle 2019-01-08 14:37:31 +08:00
Andrew Nicols ccbdced987 MDL-63686 core: Preload parent contexts 2019-01-08 14:11:00 +08:00
Andrew Nicols f0b09fe329 Merge branch 'MDL-24951-master' of git://github.com/Chocolate-lightning/moodle 2019-01-08 13:46:11 +08:00
Andrew Nicols 66f13f8f7f Merge branch 'MDL-64497-master' of https://github.com/sammarshallou/moodle 2019-01-08 12:25:34 +08:00
Andrew Nicols 024b5c5b9f Merge branch 'MDL-63722-master' of git://github.com/rezaies/moodle 2019-01-08 12:04:19 +08:00
Andrew Nicols 8feef7308a Merge branch 'MDL-64400-master' of git://github.com/aanabit/moodle 2019-01-08 08:27:06 +08:00
Andrew Nicols 792267c3b4 Merge branch 'MDL-63276' of https://github.com/stronk7/moodle 2019-01-08 06:55:37 +08:00
Eloy Lafuente (stronk7) 11825f1439 Merge branch 'MDL-63809-master-5' of git://github.com/rezaies/moodle 2019-01-07 22:12:45 +01:00
David Mudrák a92458880c MDL-64509 lang: Use the fixed strings in tests 2019-01-07 20:07:57 +01:00
Helen Foster 65d70aa81b MDL-64509 lang: Import fixed English strings (en_fix)
Significant string change: enablerunnow_desc,tool_task - including
mention of pathtophp requirement
2019-01-07 14:40:34 +01:00
Sara Arjona cb7b59941f Merge branch 'MDL-64419-master' of git://github.com/bmbrands/moodle 2019-01-07 14:10:36 +01:00
Andrew Nicols 3311321660 Merge branch 'MDL-57636_master' of https://github.com/dasistwas/moodle 2019-01-07 13:45:04 +08:00
Jake Dallimore a5d2ad5dfc Merge branch 'MDL-64348-master' of git://github.com/ryanwyllie/moodle 2019-01-07 12:08:31 +08:00
Ryan Wyllie c77ba4890a MDL-64348 javascript: change template loading to a buffer
Changed the template loading to buffer the requests for templates
so that they can be sent in batches to the server to save large
volumes of network requests.
2019-01-07 09:03:06 +08:00
Ryan Wyllie 2b92891a88 MDL-64348 javascript: change template loading to also load dependencies
Changed the getTemplate function in templates.js to use the
core_output_load_template_with_dependencies function to load the
requested template and all of the dependencies required to render it.

The dependencies are added to the relevant caches so that when the
template is rendered they aren't re-requested from the server.
2019-01-07 09:03:06 +08:00
Ryan Wyllie fbbed5c603 MDL-64348 javascript: add cache_strings to str.js
Added a function to allow a set of strings to be added to the
str.js caches if they've been loaded outside of that module.
2019-01-07 09:03:06 +08:00
Ryan Wyllie e0034b5da6 MDL-64348 template: add load_template_with_dependencies external func 2019-01-07 09:03:06 +08:00
Dmitrii Metelkin d00f04fd53 MDL-63623 admin_cli: add a script to uninstall plugins 2019-01-07 10:58:30 +11:00
David Bogner 8b9fc06993 MDL-57636 frontpage: Fix display enrolled courses 2019-01-04 11:18:47 +01:00
Ryan Wyllie 0664130b88 MDL-64348 templates: add mustache_template_source_loader class 2019-01-04 15:38:27 +08:00
Ryan Wyllie dc10aa06d9 MDL-64166 message: reduce size of conversation counts in overview 2019-01-04 12:12:54 +08:00
Ryan Wyllie 13d09efb8e MDL-64144 message: show message date in message search results 2019-01-04 11:43:04 +08:00
Damyon Wiese 9a4c6a245c MDL-64375 gradingform_rubric: Styles for overflow
Allow people to define lots of levels, and make the scroll region just the rubric table,
not the entire content region.
2019-01-04 08:44:10 +08:00
sam marshall fc570e6699 MDL-64497 GDPR: moodle_content_writer can cause endless loop
Fixes a buggy function by replacing it with a call to file_get_contents,
and adds error detection on a couple of file accesses.
2019-01-03 16:54:38 +00:00
Jake Dallimore 87bf7fa912 Merge branch 'MDL-49651-master' of git://github.com/Chocolate-lightning/moodle 2019-01-03 10:45:07 +08:00
Peter bcb6549edb MDL-64486 mod_glossary: Add missing separator for special links 2019-01-03 08:33:59 +08:00
Eloy Lafuente (stronk7) a12207be25 MDL-63276 upgrade: clean < 3.2.0 upgrade steps
3.7 (min PHP 7.1) requires 3.2 (first version supporting PHP 7.1)

This just deletes all the upgrade steps previous to 3.2.0. Some
small adjustments, like adding missing MOODLE_INTERNAL or tweaking
globals can also be applied when needed.

Also includes an upgrade step to prevent upgrading from any
version < 2016120500 (v3.2.0) as anti-cheating measure.

Next commit will get rid of/deprecate all the upgradelib functions
not used anymore in codebase. (note there isn't any this time).
2019-01-03 01:17:17 +01:00
Eloy Lafuente (stronk7) f580d20adf MDL-63276 travis support: Bump to PHP 7.1 required 2019-01-03 01:17:17 +01:00
Eloy Lafuente (stronk7) 422947e070 MDL-63276 install: PHP min version checker bump to PHP 7.1 2019-01-03 01:17:17 +01:00
Eloy Lafuente (stronk7) 504d1a9cc0 MDL-63276 environment: PHP 7.1 and Moodle 3.2 required 2019-01-03 01:12:50 +01:00
Jake Dallimore a3a6e3c905 MDL-64412 core_message: remove ordering code from message_search_users()
This code is no longer needed as get_member_info() now respects the
ordering of the $userids param.
2019-01-02 15:21:07 +08:00
Jake Dallimore 9e6734a790 MDL-64412 core_message: get_member_info() respects provided ordering
This change makes sure the function returns the member information in
the same order as those users provided in the $userids param.
2019-01-02 15:21:06 +08:00
Peter 538603b200 MDL-63148 mod_scorm: Accept userid param in event action
* Update lib scorm functions to accept and use a passed in userid
* Additional phpunit tests
2019-01-02 14:32:59 +08:00
Michael Hawkins 341070d5b3 MDL-62968 Boost: Adding editor SCSS support 2019-01-02 13:35:19 +08:00
Damyon Wiese 091365330a MDL-63761 grade: Performance fix for regrading
Don't use a separate variable to count the number of items in finalids.
2019-01-02 10:23:20 +08:00
Dan Marsden 1240b3f2e7 MDL-64237 mod_scorm: Remove large unused index from scorm_scoes_track 2018-12-31 12:46:56 +13:00
Eloy Lafuente (stronk7) f37f00be53 MDL-63276 environment: 3.7 base information
This is a direct copy of the 3.6 branch to
have changes under control easier in next commits.
2018-12-30 18:05:30 +01:00
Jun Pataleta e2b812fc40 MDL-64474 auth_oauth2: Properly update user profile data
* Updating of user profile data from OAuth2 issuer should only be
performed for fields that can be synced externally (fields defined in
\auth_plugin_base::$userfields)
* Only update user profile data for users which use OAuth2 as their
default authentication mechanism.
2018-12-28 16:52:37 +08:00
Amaia Anabitarte 0f38e62970 MDL-64400 core_messages: Mark notifications sent via email as read 2018-12-27 09:15:53 +01:00
Amaia Anabitarte 57afd82ab0 MDL-64400 core_messages: Allow cron to delete unread notifications too 2018-12-27 09:15:53 +01:00
Mathew 0dbe9025b5 MDL-24951 mod_forum: Check user capability to know what message to show.
If the user has the following capabilty: mod/forum:canposttomygroups then show them
the more technical of the strings. Otherwise we use something a bit easier for them to ask their
tutor or teacher about.
2018-12-24 09:15:34 +08:00
Mathew 299dc536aa MDL-49651 mod_forum: Respect course visibility in cron
This checks the courses' current visibility and the users permissions.
If they have the permission to view the course when it is hidden they'll get messages.

We already have checks for the users enrolled & subscription status.
2018-12-24 09:11:15 +08:00
Gareth Barnard fc9ce45cca MDL-64432 theme_bootstrapbase: Favourites myoverview icon tooltip. 2018-12-21 11:34:42 +00:00
Sara Arjona 706c8d1936 MDL-64441 badges: Remove notice when language is empty 2018-12-20 16:20:05 +01:00
Eloy Lafuente (stronk7) 91165842db MDL-64409 behat: Update master to use 3.37.0 behat extension tag 2018-12-20 12:28:17 +01:00
Adrian Greeve 38a1b4f203 weekly release 3.7dev 2018-12-20 11:09:10 +01:00
Adrian Greeve c10e9970e1 NOBUG: Fixed SVG browser compatibility 2018-12-20 11:09:08 +01:00
Adrian Greeve 03573e1a58 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2018-12-20 11:09:07 +01:00
Andrew Nicols 13bd9babb4 Merge branch 'MDL-64038-master' of git://github.com/bmbrands/moodle 2018-12-20 13:53:51 +08:00
Andrew Nicols 4617420250 Merge branch 'MDL-63512-master' of git://github.com/peterRd/moodle 2018-12-20 13:03:31 +08:00
Peter 94dafd0c06 MDL-63512 mod_lesson: Update the lesson css to exclude mediaplugin div 2018-12-20 12:49:10 +08:00
Andrew Nicols bf197c166c Merge branch 'MDL-62223-master' of git://github.com/Kathrin84/moodle 2018-12-20 11:32:50 +08:00
Andrew Nicols 116b7c089a MDL-58855 glossary: Remove behat logout line 2018-12-20 10:27:57 +08:00
Andrew Nicols 1cd08af7f4 Merge branch 'MDL-58855-master' of git://github.com/peterRd/moodle 2018-12-20 10:26:24 +08:00
Mark Johnson 7672471236 MDL-64123 webservices: Add valueused to completion data 2018-12-19 16:26:35 +00:00
Stephen Bourget 3e42942d73 MDL-63614 badges: Add COMPLETION_FAIL support to badge criteria 2018-12-19 10:16:51 -05:00
Adrian Greeve 21fc1b9682 Merge branch 'MDL-64392-master' of git://github.com/bmbrands/moodle 2018-12-19 12:02:43 +01:00
Jun Pataleta 43db4e9c56 Merge branch 'MDL-61767-master' of git://github.com/andrewnicols/moodle 2018-12-19 18:36:21 +08:00
Andrew Nicols c9f2a8c2cf MDL-61767 auth_oauth: Reduce updated fields 2018-12-19 18:15:39 +08:00
Adrian Greeve 7f1fd5000d Merge branch 'MDL-59954-master' of git://github.com/peterRd/moodle 2018-12-19 10:51:42 +01:00
Shamim Rezaie b6ece79d81 MDL-63722 javascript: misinterpret as outside click if DOM is modified 2018-12-19 16:01:09 +11:00
Jake Dallimore 57e94e365e Merge branch 'MDL-64229_master' of git://github.com/markn86/moodle 2018-12-19 11:37:15 +08:00
Peter c8b67bee88 MDL-58855 mod_glossary: Add pending approval identifier glossary
Add a new label to indicate whether a tagged glossary item is pending approval or not
2018-12-19 11:30:27 +08:00
Jake Dallimore a2f6288fa1 Merge branch 'MDL-64216-m' of https://github.com/micaherne/moodle 2018-12-19 11:07:41 +08:00
Jun Pataleta e63084ec1b Merge branch 'MDL-60474-master' of git://github.com/damyon/moodle 2018-12-19 10:14:13 +08:00
Damyon Wiese 064f15033f MDL-60474 assign: Consistent user filters
Use the current filters and sorting on the user grading table in the single
page grading app when it is possible.

This replaces the popover used to configure the filters to one that closely matches the
one from the grading table. It supports standard filters, workflow filters and allocated marker filters.

It will also support group filtering and suspended user filtering but we don't show the controls for those in
the single grading page.
2018-12-19 10:10:23 +08:00
Andrew Nicols 54fbe39ee1 Merge branch 'MDL-63512-master' of git://github.com/peterRd/moodle 2018-12-19 09:48:46 +08:00
Andrew Nicols 0ab2d87c50 Merge branch 'MDL-64061-master-amdload' of git://github.com/mudrd8mz/moodle 2018-12-19 09:10:09 +08:00
Peter 6afbdf2778 MDL-59954 mod_course: Remove file size restriction on D&D on course page
Remove file size restrictions for teachers on course page.
Use user_max_upload_file_size instead of the max_file_size
2018-12-19 08:36:45 +08:00
AMOS bot c80d033f66 Automatically generated installer lang files 2018-12-19 00:08:52 +00:00
Adrian Greeve c6f2f4a64c Merge branch 'MDL-63844-master' of git://github.com/aanabit/moodle 2018-12-18 18:11:38 +01:00
Amaia Anabitarte 26b34c30d3 MDL-63844 enrol: Reordering status_field constructor parameters 2018-12-18 17:57:57 +01:00
Rohan Khajuria 6676f20214 MDL-63844 enrolmentdetails: add time-enrolled field 2018-12-18 17:06:49 +01:00
Adrian Greeve 648afe76f8 Merge branch 'MDL-64025-master' of https://github.com/christianwolters/moodle 2018-12-18 15:58:06 +01:00
Adrian Greeve 1ccaa71b04 Merge branch 'MDL-63794-master-2' of git://github.com/mihailges/moodle 2018-12-18 12:13:35 +01:00
Bas Brands eecff277da MDL-64171 block_myoverview: change course summary view image size
Size reduced from 7rem to 5rem for smaller devices
and for courses without a description.
2018-12-18 10:38:00 +01:00
Stefan Erlachner b1f2b4fdfc MDL-64414 lib/evalmath: add AND, OR functions to evalmath 2018-12-18 09:40:29 +01:00
Michael Hawkins 418831e096 MDL-64240 mod_forum: Clean forum post text before storing
Previously only edited messages were cleaned, so longer strings could
be stored in the database, which would never be displayed.
This update takes into account trusted text before cleaning (as editing does).
2018-12-18 14:10:43 +08:00
Michael Hawkins b6995c29ec MDL-64240 mod_forum: Update word count to use current message length
Previously this used the length of the message stored in the database,
before scripts etc are cleaned to display the content. That resulted
in cases where the count would seem much larger than the message size.
2018-12-18 14:10:43 +08:00
Shamim Rezaie 8e93e515ed MDL-63809 question: handling bad questions in question_has_capability_on 2018-12-18 15:05:37 +11:00
Tim Hunt b195523758 MDL-63809 question bank: ensure question_has_capability_on can be called 2018-12-18 14:54:28 +11:00
Damyon Wiese 1879a74ed7 MDL-60082 assign: Grading worksheet with no grade
If the grade type is NONE - do not include the maxgrade column.
2018-12-18 11:12:17 +08:00
Jake Dallimore 1c30321e7f Merge branch 'MDL-64309_master' of git://github.com/markn86/moodle 2018-12-18 11:11:23 +08:00
Jake Dallimore 78f8d05e1c Merge branch 'master_MDL-49673' of git://github.com/danmarsden/moodle 2018-12-18 10:51:37 +08:00
Simey Lameze a6243b09f3 MDL-64425 block_timeline: fix incorrect get_string parameter 2018-12-18 10:23:12 +08:00
Andrew Nicols df9f6cbb29 Merge branch 'MDL-63773_assign_hideif' of git://github.com/davosmith/moodle 2018-12-18 09:38:33 +08:00
Dan Marsden 91a2215eea MDL-49673 mod_assign: Tidy up hidegrader patch 2018-12-18 14:33:42 +13:00
Damyon Wiese fd25c7d5f8 MDL-64004 webservice: Do not update accesstime
Do not update the automatically update the course access time when a
course is accessed via a webservice or ajax.
2018-12-18 09:06:07 +08:00
Bas Brands aeb5664d5f MDL-64419 core_message: fix user info in bootstrapbase message drawer
* updated the bootstrapbase template for the messaging conversation menu
info option to match the menu in
"/core_message/message_drawer_view_conversation_header_content_type_private.mustache"
2018-12-17 15:50:27 +01:00
Sara Cenni 607a6ca9d6 MDL-64345 core: Make FB logo upgrade cross-DB compatible 2018-12-17 11:48:30 +01:00
Jun Pataleta 6776651372 Merge branch 'MDL-59629-master' of git://github.com/peterRd/moodle 2018-12-17 15:57:52 +08:00
Andrew Nicols 58049e0a36 MDL-63607 behat: Remove theme from config whitelist 2018-12-17 15:53:53 +08:00
Damyon Wiese 56fb4e81df MDL-62963 boost: Increase contrast btn-secondary
The background colour of these buttons is too light, so they don't look like buttons.
2018-12-17 15:45:49 +08:00
Andrew Nicols 8f65d27593 Merge branch 'MDL-52966_static_cache_core_filetypes_get_types' of https://github.com/enovation/moodle 2018-12-17 15:38:09 +08:00
Andrew Nicols 4542981969 Merge branch 'MDL-60019-master' of git://github.com/peterRd/moodle 2018-12-17 15:34:50 +08:00
Andrew Nicols 05bbf5ab39 Merge branch 'MDL-61633-master' of https://github.com/lucisgit/moodle 2018-12-17 15:28:29 +08:00
Andrew Nicols a59064f60a Merge branch 'MDL-60518-master' of git://github.com/aanabit/moodle 2018-12-17 14:59:22 +08:00
Jun Pataleta 4aa3939581 Merge branch 'MDL-63260' of https://github.com/timhunt/moodle 2018-12-17 14:10:21 +08:00
Damyon Wiese 20e6ece866 MDL-63378 theme_boost: Contrast of menu items
Enforce the :active menu text colour during a mouse click on an action menu.
2018-12-17 14:01:42 +08:00
Mihail Geshoski 6c52667722 MDL-63794 block_myoverview: Display the course category name in block 2018-12-17 13:21:55 +08:00
Mihail Geshoski d657d80db0 MDL-63794 block_myoverview: Add behat tests 2018-12-17 13:21:55 +08:00
Damyon Wiese 22b8fe5eb7 MDL-64107 questions: Increase highlight contrast
When a question has just been edited, it is highlighted. We need to ensure
the colour contrast of text on background is accessible.
2018-12-17 12:35:26 +08:00
Jun Pataleta 31a111b981 Merge branch 'MDL-60008-master' of git://github.com/damyon/moodle 2018-12-17 11:48:45 +08:00
Jake Dallimore 4813015e11 Merge branch 'MDL-62756_master' of https://github.com/miotto/moodle 2018-12-17 11:20:01 +08:00
Andrew Nicols fbde034e29 Merge branch 'MDL-64388-master' of git://github.com/bmbrands/moodle 2018-12-17 09:12:58 +08:00
Christian Wolters d596f5ca6d MDL-64025 admin_bookmarks: Enable bookmarking of admin categories 2018-12-16 15:43:49 +01:00
John Beedell 410a088a91 MDL-64404 qtype: gapselect currency like options dont show 2018-12-14 16:24:43 +00:00
Bas Brands 02955a84d1 MDL-64392 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 clean and boost.
2018-12-14 16:28:36 +01:00
Bas Brands 442f142522 MDL-64038 core_message: add default group image
add default group image to improve the alignment
of group names in the message drawer group messages section
2018-12-14 14:09:28 +01:00
Bas Brands fed67b6784 MDL-64388 core_themes: update docs on new required output method
* Method standard_after_main_region_html was added to the core_renderer
used by the messaging ui to message drawer
2018-12-14 11:25:44 +01:00
Amaia Anabitarte 45cc006c91 MDL-60518 core_competency: Set $USER global variable for tests 2018-12-14 10:28:34 +01:00
Frédéric Massart b91ddd160e MDL-60518 core_user: A user with ID 0 is never a real user 2018-12-14 10:28:34 +01:00
Mirko Otto 5cfd7a7286 MDL-62756 form: Remove any click handler first.
The handler has the old state variable. Remove any click handler first.
2018-12-14 10:26:58 +01:00
Andrew Nicols 3b017210d3 MDL-60432 auth_cas: Update with PR changes 2018-12-14 13:27:14 +08:00
Andrew Nicols 26a07f2ebb MDL-60432 auth_cas: Removed unused file 2018-12-14 13:22:25 +08:00
Fabrice Ménard ddb9b02b05 MDL-60432 auth_cas: Using Identity Providers for Authentication CAS
Using Identity Providers for  Authentication CAS , instead of cas_form.html
2018-12-14 13:06:37 +08:00
Jun Pataleta a4dbc1de80 MDL-64285 core: Skip 64 bits check for 32-bit PHP versions in unit tests 2018-12-14 11:13:40 +08:00
Jun Pataleta c482e6bd51 MDL-64285 core: Fix environment check test
* Looping the environment results and skipping some items mean that
if a test gets skipped, the rest of the environment results won't be
tested. It's better to use a data provider for this in order to
individually test each environment result.
2018-12-14 11:13:40 +08:00
Peter 917a0e282c MDL-59629 mod_block: Set the default region in add_region
Check and update default region in add_region if none set.
2018-12-14 10:29:10 +08:00
Peter a25863a3c0 MDL-63512 mod_lesson: Fix video links provided in feedback 2018-12-14 10:26:00 +08:00
Alex Walker f14afd2936 MDL-49673 mod_assign: option to hide grader 2018-12-14 13:50:06 +13:00
Jake Dallimore 33a388eff7 weekly release 3.7dev 2018-12-14 07:51:42 +08:00
Tony Butler 31e1884de2 MDL-61633 assignfeedback_editpdf: Scroll back to top when changing pages 2018-12-13 12:14:25 +00:00
Olivier Piton 85e81896fc MDL-61535 report_security: SQL Perf improvement 2018-12-13 12:02:23 +08:00
Mark Nelson 9b39f28214 MDL-64229 core_message: ensure profile pic links to profile 2018-12-13 12:01:06 +08:00
Martin Mastny c65dadbcea MDL-61767 auth_oauth2: Updating user fields on successful login 2018-12-13 11:22:36 +08:00
Jake Dallimore 3ec018067a Merge branch 'MDL-62624-master' of git://github.com/mihailges/moodle 2018-12-12 16:13:28 +08:00
Damyon Wiese c85be29355 MDL-63916 backup: Do not display timestamp
Convert the date+time field to a userdate for display.
2018-12-12 12:18:32 +08:00
Jun Pataleta ca6824e284 Merge branch 'MDL-41507-master' of git://github.com/rezaies/moodle 2018-12-12 11:18:02 +08:00
Shamim Rezaie ea191cf1b4 MDL-41507 core_group: Consistent default value for FEATURE_GROUPS 2018-12-12 14:03:45 +11:00
Jake Dallimore bf4205ea78 Merge branch 'MDL-64003-master' of https://github.com/aanabit/moodle 2018-12-12 10:02:55 +08:00
Jake Dallimore 39ac02f424 MDL-63887 auth_ldap: fix unclean exit from sync when users not found
We should return, not exit, and we should clean up before we do.
2018-12-12 09:42:13 +08:00
Jake Dallimore 84e8e17820 Merge branch 'MDL-63887_master' of git://github.com/markn86/moodle 2018-12-12 09:41:34 +08:00
Jake Dallimore f9479eb8ca Merge branch 'MDL-63150-master' of git://github.com/peterRd/moodle 2018-12-12 08:32:16 +08:00
Jake Dallimore 909654806f Merge branch 'MDL-63145-master' of git://github.com/peterRd/moodle 2018-12-12 08:29:40 +08:00
Jake Dallimore fb029c996b Merge branch 'MDL-63147-master' of git://github.com/peterRd/moodle 2018-12-12 08:25:02 +08:00
Peter 73a8110d3a MDL-63145 mod_page: Accept userid param as override
Accept a userid as an override in the lib function instead of
relying on $USER
2018-12-12 07:25:35 +08:00
Peter dcb7662ee7 MDL-63150 mod_url: Accept a userid override in event action
Accept a userid in the event action instead of depending on $USER
2018-12-12 07:13:09 +08:00
Peter 3ff8068fc5 MDL-63147 mod_resource: Accept userid in resource event_action 2018-12-12 07:06:53 +08:00
Tim Hunt 2fbd8e9ec0 MDL-63260 qtype_random: orphaned random questions should be deleted
This fix is based on some original code written by Bo Pierce.
2018-12-11 13:59:13 +00:00
Kathrin Osswald ee6484497b MDL-62223 mod_assign: Improve submission statements 2018-12-11 13:59:10 +01:00
Amaia Anabitarte f8b46dabe8 MDL-64003 core_message: Use sql_like_escape() in message_search_users 2018-12-11 11:52:18 +01:00
Jake Dallimore 85b0a914f0 Merge branch 'MDL-64357_master' of git://github.com/markn86/moodle 2018-12-11 17:43:59 +08:00
Mark Nelson e56eb26aec MDL-64357 ltiservice_gradebookservices: updated unit tests 2018-12-11 17:02:40 +08:00
Claude Vervoort 9d6f9d1d47 MDL-64357 ltiservice_gradebookservices: fix cleanup deleting lineitems 2018-12-11 14:22:49 +08:00
Damyon Wiese c539c67d6b MDL-64313 assign: feedback viewed event
When a student views their submission, if it has feedback create an event.
2018-12-11 14:03:30 +08:00
Jake Dallimore dd202b5e5a Merge branch 'MDL-62922-master' of git://github.com/junpataleta/moodle 2018-12-11 12:50:18 +08:00
Jun Pataleta 796a2d81f1 Merge branch 'MDL-64280-master' of https://github.com/lucaboesch/moodle 2018-12-11 09:54:03 +08:00
Luca Bösch d388e8ecc2 MDL-64280 core_outcome: Add/remove outcome buttons style. 2018-12-10 17:55:35 +01:00
Jun Pataleta 9da570bde0 Merge branch 'MDL-64275-master' of git://github.com/ryanwyllie/moodle 2018-12-10 15:04:01 +08:00
Jun Pataleta 077f144293 Merge branch 'MDL-62061-master' of git://github.com/abgreeve/moodle 2018-12-10 14:47:17 +08:00
Mihail Geshoski 7fed7636a7 MDL-62624 lesson: Fix alignment in matching questions in boost 2018-12-10 13:46:50 +08:00
Shamim Rezaie 29d0db89eb MDL-63785 core_webservice: performance improvement 2018-12-10 14:52:13 +11:00
Shamim Rezaie 66e15651fe MDL-63785 block_rss_client: performance improvement 2018-12-10 14:52:13 +11:00
Shamim Rezaie a6d0837e18 MDL-63785 profilefield_textarea: performance improvement 2018-12-10 14:52:12 +11:00
Shamim Rezaie 1ae48ab484 MDL-63785 profilefield_datetime: performance improvement 2018-12-10 14:52:12 +11:00
Shamim Rezaie 033a061a0a MDL-63785 profilefield_checkbox: performance improvement 2018-12-10 14:52:12 +11:00
Shamim Rezaie 10bbc95e03 MDL-63785 profilefield_text: performance improvement 2018-12-10 14:52:12 +11:00
Shamim Rezaie 2b1efa16da MDL-63785 profilefield_menu: performance improvement 2018-12-10 14:52:12 +11:00
Shamim Rezaie 07bab537a0 MDL-63785 block_community: performance improvement 2018-12-10 14:52:12 +11:00
Shamim Rezaie dfb3677c32 MDL-63785 core_user: performance improvement 2018-12-10 14:52:12 +11:00
Shamim Rezaie 45e6809b1f MDL-63785 repository_onedrive: performance improvement 2018-12-10 14:52:12 +11:00
Shamim Rezaie 6b20a81cb4 MDL-63785 core_repository: performance improvement 2018-12-10 14:52:12 +11:00
Shamim Rezaie d4269920de MDL-63785 block_html : performance improvement 2018-12-10 14:52:12 +11:00
Shamim Rezaie e68a25f395 MDL-63785 auth_oauth2: performance improvement 2018-12-10 14:52:12 +11:00
Shamim Rezaie a246822931 MDL-63785 auth_mnet: performance improvement 2018-12-10 14:52:12 +11:00
Shamim Rezaie 28dfbe77bf MDL-63785 core_portfolio: performance improvement 2018-12-10 14:52:12 +11:00
Shamim Rezaie cb624f41d8 MDL-63785 core_enrol: performance improvement 2018-12-10 14:52:11 +11:00
Shamim Rezaie ab29f4815b MDL-63785 message_airnotifier: performance improvement 2018-12-10 14:52:11 +11:00
Jun Pataleta 0e15a4b92b Merge branch 'MDL-64332' of https://github.com/timhunt/moodle 2018-12-10 09:57:52 +08:00
Peter fa729309c4 MDL-60019 mod_block: Redundant code in block_navigation.php
Remove the redundant code as reported from the mentioned file.
2018-12-10 09:48:00 +08:00
Jake Dallimore 44890bd738 weekly on-sync release 3.7dev 2018-12-10 08:10:39 +08:00
Jake Dallimore ea260b8eb3 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2018-12-10 08:10:39 +08:00
Andrew Nicols 102d6ea352 MDL-64359 core: Respect shutdown handlers on SIG 2018-12-08 17:40:09 +08:00
Adrian Greeve a1b0ac60fe MDL-64339 core_comment: Update comment display to link to profile. 2018-12-07 11:13:16 +01:00
Ryan Wyllie 9acc0bc6ec MDL-64134 message: hide empty sections in search results 2018-12-07 10:56:56 +08:00
Ryan Wyllie e79a79ad83 MDL-64275 message: fix update unread conversation counts 2018-12-07 09:22:24 +08:00
AMOS bot a25c3d3536 Automatically generated installer lang files 2018-12-07 00:09:20 +00:00
Tim Hunt d6388d0acf MDL-64332 questions: idnumber should not prevent easy duplication 2018-12-06 14:41:28 +00:00
Davo Smith 67809990f6 MDL-63773 mod_assign: switch instance form to hideIf 2018-12-06 13:31:45 +00:00
Davo Smith 540a0e23f1 MDL-63773 assignfeedback_comments: switch instance form to hideIf 2018-12-06 13:31:45 +00:00
Davo Smith a029b9aff5 MDL-63773 assignsubmission_file: switch instance form to hideIf 2018-12-06 13:31:45 +00:00
Davo Smith f203fbf9b6 MDL-63773 assignsubmission_onlinetext: switch instance form to hideIf 2018-12-06 13:31:44 +00:00
Adrian Greeve 34adbfe0b1 MDL-62061 core_privacy: Stop directories being created.
This stops directories being created in the root directory
while running unit tests.
2018-12-06 11:25:32 +01:00
papillon326 43dcb956ba MDL-63887 auth_ldap: avoid infinite loop when search limit is reached 2018-12-06 15:39:35 +08:00
papillon326 8707682e3a MDL-63887 auth_ldap: changed variable names to be conform to core 2018-12-06 15:39:35 +08:00
Jun Pataleta 5fd1f89004 Merge branch 'MDL-64283-master' of git://github.com/damyon/moodle 2018-12-06 14:58:01 +08:00
Ryan Wyllie f12864eb0e MDL-64043 message: stop group conversation header re-rendering 2018-12-06 14:51:20 +08:00
Damyon Wiese 3ea40cdb62 MDL-60008 assign: Button height fix
The heights of the buttons to hide/show panels are arbitrarily big. There is not need to set them specifically.
2018-12-06 13:33:21 +08:00
Damyon Wiese 3adea4e265 MDL-60008 assign: editpdf menus
The edit pdf menus are all broken on small screen sizes. They consume 100% of the page with for no reason.
2018-12-06 13:33:21 +08:00
Damyon Wiese 66c262777c MDL-60008 assign: Less z-index
Remove the z-index values from the expand / collapse panels. They cause errors when mixed with dialogues.
2018-12-06 13:33:21 +08:00
Damyon Wiese e3511e7978 MDL-60008 assign: Info messages
Better support for information messages from the conversion process.
2018-12-06 13:33:12 +08:00
Damyon Wiese 86c577093b MDL-60008 assignfeedback_editpdf: Show warnings
When not all files are available in the online pdf, display a warning to graders
that some files must be downloaded.
2018-12-06 12:11:47 +08:00
Damyon Wiese 0888ebc1f9 MDL-60008 assign: Best effort document conversion
Basically we should produce a combined PDF from all the files that it was possible to convert.
If any one submission input file fails conversion, it should just be omitted in the result.
2018-12-06 12:11:47 +08:00
Jake Dallimore c7bd047d24 Merge branch 'MDL-63710-master' of https://github.com/ilya-catalyst/moodle 2018-12-06 11:34:09 +08:00
Jake Dallimore 4f9bb83472 Merge branch 'MDL-46783' of https://github.com/timhunt/moodle 2018-12-06 10:22:57 +08:00
Ilya Tregubov f408e1f888 MDL-63710 repository: Delete orphaned file records. 2018-12-06 12:39:31 +11:00
Jun Pataleta e96eb02e46 Merge branch 'master-MDL-64290-imscc-restore-temp-dir' of https://github.com/mspall/moodle 2018-12-06 08:57:32 +08:00
AMOS bot 2ef4d711e0 Automatically generated installer lang files 2018-12-06 00:07:49 +00:00
Michael Spall f1a22c4a1b MDL-64290 backup imscc: Use correct tempdir for imscc restore
Use configured temp directory $CFG->tempdir instead of hard coded
$CFG->dataroot . '/temp/backup/'
Remove unused variable, $CFG
2018-12-05 10:44:14 -07:00
Tim Hunt ab1272a0da MDL-46783 accesslib: add tests for MDL-63772 and MDL-63818
MDL-46783, MDL-63772 and MDL-63818 were originally coded on the
assumption that MDL-46783 would get integrated first. However it wasn't.
Therefore, it was not easy to add unit tests for MDL-63772 and MDL-63818
at the time, but it is now, so here they are.
2018-12-05 16:44:57 +00:00
Tim Hunt 939218c2b6 MDL-46783 permissions: let some moodle/ caps be overriden in all mods
The capabilities changed ('contextlevel' => CONTEXT_COURSE changed to
'contextlevel' => CONTEXT_MODULE) are:

* moodle/site:accessallgroups
* moodle/site:viewfullnames
* moodle/site:trustcontent
* moodle/site:viewuseridentity

This list came from reviewing the _get_extra_capabilities functions in
all core activities. They were all somewhat inconsistent, but I think it
makes sense that these capabilities are consistently overridable in all
activities. E.g. moodle/site:accessallgroups affects conditional
availability even if there is no other user of groups, and
moodle/site:viewuseridentity and moodle/site:viewfullnames affect the
logs report, if nothing else.

As a result of this, several _get_extra_capabilities functions are no
longer needed, and all the rest have been simplified.
2018-12-05 16:44:25 +00:00
Mark Nelson 0db6fd3603 MDL-64309 core_message: minor string changes to drawer 2018-12-05 18:18:46 +08:00
Jun Pataleta eb1a477635 MDL-62922 core_user: Check auth mechanism before validating password
* External authentication mechanisms (e.g. via oauth2, etc.) don't store
  password in the user table, so we shouldn't be requiring password in
  such case when creating users via the core_user_create_users WS
  function.
2018-12-05 15:29:54 +08:00
Jun Pataleta f8b5fcd304 Merge branch 'MDL-64274-master' of git://github.com/ryanwyllie/moodle 2018-12-05 14:56:21 +08:00
Ryan Wyllie a2bce0d0d8 MDL-64274 message: deleteMessages in message_repository return promise 2018-12-05 14:43:21 +08:00
Jake Dallimore ccf5f09103 Merge branch 'MDL-64198-master' of https://github.com/lucaboesch/moodle 2018-12-05 14:30:16 +08:00
Roger Barras fcebc9b042 MDL-60267 user: Fix set default data for the user profile field 2018-12-05 14:15:48 +08:00
Marina Glancy 4bfcadbaa1 MDL-64324 core_form: randomly generate id attribute on forms
otherwise there are id collisions in forms loaded in AJAX requests
2018-12-04 18:42:05 +01:00
Eloy Lafuente (stronk7) cb7f6a6f99 weekly on-sync release 3.7dev
Amended to keep it on-sync with 3.6.1 emergency release
2018-12-04 17:46:09 +01:00
Luca Bösch c21b42e76a MDL-64198 course: set formatted modulename for togglecompletion js. 2018-12-04 14:35:06 +01:00
Michael Aherne 11361acfb5 MDL-64216 privacy: Split query to use indexes. 2018-12-04 13:01:07 +00:00
Eloy Lafuente (stronk7) 0465a942c3 weekly on-sync release 3.7dev 2018-12-04 13:06:15 +01:00
Jake Dallimore 8108bc0b5e Merge branch 'MDL-63223-master' of git://github.com/bmbrands/moodle 2018-12-04 12:06:13 +08:00
Jun Pataleta a939ad80ba Merge branch 'MDL-64307_master' of git://github.com/markn86/moodle 2018-12-04 12:03:39 +08:00
Mark Nelson 7c8ba89d5e MDL-64307 core_message: do not include disabled conversations in count 2018-12-04 11:48:16 +08:00
Mark Nelson 7bb22a298c MDL-64307 core: set all individual conversations to enabled 2018-12-04 11:45:47 +08:00
Jun Pataleta 6b3931e783 Merge branch 'MDL-64206_master' of git://github.com/markn86/moodle 2018-12-04 10:53:03 +08:00
Damyon Wiese 41c8df2583 Merge branch 'MDL-64286' of https://github.com/timhunt/moodle 2018-12-03 15:46:40 +08:00
Damyon Wiese e67feef907 Merge branch 'MDL-64155-master' of git://github.com/vmdef/moodle 2018-12-03 15:26:08 +08:00
Jake Dallimore 9f79c2dbd6 Merge branch 'MDL-63459' of https://github.com/timhunt/moodle 2018-12-03 14:21:31 +08:00
Mark Nelson 4b0cf053dc MDL-64206 core: updated FB logo URL 2018-12-03 12:20:51 +08:00
Andrew Nicols 0178ee5594 Merge branch 'MDL-64300' of git://github.com/stronk7/moodle 2018-12-03 08:28:06 +08:00
Andrew Nicols feee85a6c1 Merge branch 'MDL-64299' of git://github.com/stronk7/moodle 2018-12-03 07:53:38 +08:00
Eloy Lafuente (stronk7) f47c8f3525 MDL-64300 upgrade: add 3.6.0 separation line to all upgrade scripts 2018-12-02 18:36:40 +01:00
Eloy Lafuente (stronk7) 5471eb1758 MDL-64299 backup: Bump release to 3.7 2018-12-02 18:21:52 +01:00
Eloy Lafuente (stronk7) 2cea0bd6c6 weekly back-to-dev release 3.7dev 2018-12-02 00:25:11 +01:00
Eloy Lafuente (stronk7) 2c608daca7 NOBUG: Change travis.yml back to master 2018-12-02 00:18:46 +01:00
Tim Hunt a3796190a6 MDL-64286 qtype_gapselect: removed unneeded line of code
The extended Behat test show the qtype works fine without it.
2018-11-30 12:33:54 +00:00
Damyon Wiese afd5c94dbf MDL-64283 competency: Correct numbering in tests 2018-11-30 09:30:50 +08:00
Víctor Déniz Falcón 0eac5cf446 MDL-64155 block_recentlyaccessedcourses: considering enrolment status 2018-11-29 15:37:17 +00:00
Victor Deniz fdf2abf871 MDL-64155 core: get_recent_courses considers enrolment status 2018-11-29 15:37:17 +00:00
Víctor Déniz Falcón 87173da483 MDL-64155 core: use favourite API to generate SQL 2018-11-29 15:37:17 +00:00
Bas Brands c8ff3ce496 MDL-63223 theme_boost: flexbox for login pagin footer 2018-11-26 16:06:30 +01:00
Tim Hunt 614077863b MDL-63459 qtype_calculatedmulti: fix incorrect hint object type 2018-11-26 12:52:09 +00:00
Tim Hunt 1e8374c370 MDL-63459 qtype_calculatedmulti: unit test should test this qtype
This also demonstrates the bug to be fixed
2018-11-26 12:49:47 +00:00
Damyon Wiese 263a58338f MDL-64211 badges: Display links to related badges 2018-11-26 14:51:18 +08:00
Marco Ferrante e45c86375a MDL-64071 auth: enhanced diagnostic of LDAP auth config 2018-11-20 13:30:51 +01:00
David Mudrák fcee9eaafa MDL-64061 javascript: Allow js_call_amd() be called without a function
Not all AMD modules need an explicit function call to start working. The
patch makes the function name optional, in which case the js_call_amd()
simply loads the module.
2018-11-16 14:31:57 +01:00
Juan Leyva 34ad1a017e MDL-63958 course: Return raw mimetype apart from description 2018-11-15 14:37:07 +01:00
Tomasz Muras c126a29f5a MDL-52966 core: static cache fix for file types. 2018-07-17 15:37:15 +02:00
11704 changed files with 825261 additions and 425113 deletions
-90
View File
@@ -1,90 +0,0 @@
# Generated by "grunt ignorefiles"
*/**/yui/src/*/meta/
*/**/build/
node_modules/
vendor/
admin/tool/policy/amd/src/jquery-eu-cookie-law-popup.js
admin/tool/usertours/amd/src/tour.js
auth/cas/CAS/
enrol/lti/ims-blti/
filter/algebra/AlgParser.pm
filter/tex/mimetex.*
lib/editor/atto/plugins/html/yui/src/codemirror/
lib/editor/atto/plugins/html/yui/src/beautify/
lib/editor/atto/yui/src/rangy/js/*.*
lib/editor/tinymce/plugins/pdw/tinymce/
lib/editor/tinymce/plugins/spellchecker/rpc.php
lib/editor/tinymce/tiny_mce/
lib/mlbackend/php/phpml/
lib/adodb/
lib/bennu/
lib/evalmath/
lib/lessphp/
lib/phpexcel/
lib/google/
lib/htmlpurifier/
lib/jabber/
lib/minify/matthiasmullie-minify/
lib/minify/matthiasmullie-pathconverter/
lib/pear/Auth/RADIUS.php
lib/pear/Crypt/CHAP.php
lib/pear/HTML/Common.php
lib/pear/HTML/QuickForm.php
lib/pear/HTML/QuickForm/
lib/pear/PEAR.php
lib/phpmailer/
lib/simplepie/
lib/tcpdf/
lib/typo3/
lib/yuilib/
lib/yuilib/gallery/
lib/jquery/
lib/html2text/
lib/markdown/
lib/recaptchalib.php
lib/xhprof/
lib/horde/
lib/requirejs/
lib/amd/src/loglevel.js
lib/mustache/
lib/amd/src/mustache.js
lib/graphlib.php
lib/php-css-parser/
lib/rtlcss/
lib/scssphp/
lib/spout/
lib/amd/src/chartjs-lazy.js
lib/maxmind/GeoIp2/
lib/maxmind/MaxMind/
lib/ltiprovider/
lib/amd/src/truncate.js
lib/fonts/
lib/amd/src/adapter.js
lib/validateurlsyntax.php
lib/amd/src/popper.js
lib/geopattern-php/
media/player/videojs/amd/src/video-lazy.js
media/player/videojs/amd/src/Youtube-lazy.js
media/player/videojs/videojs/
media/player/videojs/amd/src/videojs-flash-lazy.js
media/player/videojs/videojs/video-js.swf
mod/assign/feedback/editpdf/fpdi/
repository/s3/S3.php
theme/boost/scss/bootstrap/
theme/boost/amd/src/alert.js
theme/boost/amd/src/button.js
theme/boost/amd/src/carousel.js
theme/boost/amd/src/collapse.js
theme/boost/amd/src/dropdown.js
theme/boost/amd/src/modal.js
theme/boost/amd/src/popover.js
theme/boost/amd/src/scrollspy.js
theme/boost/amd/src/tab.js
theme/boost/amd/src/tooltip.js
theme/boost/amd/src/util.js
theme/boost/amd/src/tether.js
theme/boost/scss/fontawesome/
theme/bootstrapbase/less/bootstrap/
theme/bootstrapbase/javascript/html5shiv.js
theme/bootstrapbase/amd/src/bootstrap.js
theme/bootstrapbase/less/fontawesome/
+37 -2
View File
@@ -1,5 +1,6 @@
{
'plugins': [
'babel',
'promise',
],
'env': {
@@ -203,11 +204,45 @@
}
},
{
files: ["**/amd/src/*.js"],
files: ["**/amd/src/*.js", "**/amd/src/**/*.js", "Gruntfile*.js", "babel-plugin-add-module-to-define.js", "jsdoc.conf.js"],
// We support es6 now. Woot!
env: {
es6: true
},
// We're using babel transpiling so use their parser
// for linting.
parser: 'babel-eslint',
// Check AMD with some slightly stricter rules.
rules: {
'no-unused-vars': 'error',
'no-implicit-globals': 'error'
'no-implicit-globals': 'error',
// Disable all of the rules that have babel versions.
'new-cap': 'off',
// Not using this rule for the time being because it isn't
// compatible with jQuery and ES6.
'no-invalid-this': 'off',
'object-curly-spacing': 'off',
'quotes': 'off',
'semi': 'off',
'no-unused-expressions': 'off',
// Enable all of the babel version of these rules.
'babel/new-cap': ['warn', { 'properties': false }],
// Not using this rule for the time being because it isn't
// compatible with jQuery and ES6.
'babel/no-invalid-this': 'off',
'babel/object-curly-spacing': 'warn',
// This is off in the original style int.
'babel/quotes': 'off',
'babel/semi': 'error',
'babel/no-unused-expressions': 'error',
// === Promises ===
// We have Promise now that we're using ES6.
'promise/no-native': 'off',
'promise/avoid-new': 'off'
},
parserOptions: {
'ecmaVersion': 9,
'sourceType': 'module'
}
}
]
+7 -3
View File
@@ -3,6 +3,8 @@
"Feature": 0,
"Background": 2,
"Scenario": 2,
"Examples": 4,
"example": 6,
"Step": 4,
"given": 4,
"and": 4
@@ -14,7 +16,9 @@
"no-multiple-empty-lines": "on",
"no-partially-commented-tag-lines": "on",
"no-trailing-spaces": "on",
"no-unamed-features": "on",
"no-unamed-scenarios": "on",
"no-scenario-outlines-without-examples": "on"
"no-unnamed-features": "on",
"no-unnamed-scenarios": "on",
"no-scenario-outlines-without-examples": "on",
"no-examples-in-scenarios": "on",
"new-line-at-eof": ["on", "yes"]
}
-2
View File
@@ -1,5 +1,3 @@
**/yui/build/** -diff
**/amd/build/** -diff
lib/dml/oci_native_moodle_package.sql text eol=lf
theme/bootstrapbase/style/editor.css -diff
theme/bootstrapbase/style/moodle.css -diff
+2
View File
@@ -0,0 +1,2 @@
# Primary donations pages.
custom: ["https://moodle.com/donations/", moodle.org]
+71
View File
@@ -0,0 +1,71 @@
<?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/>.
/**
* Template configuraton file for github actions CI/CD.
*
* @package core
* @copyright 2020 onwards Eloy Lafuente (stronk7) {@link https://stronk7.com}
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
// This cannot be used out from a github actions workflow, so just exit.
getenv('GITHUB_WORKFLOW') || die; // phpcs:ignore moodle.Files.MoodleInternal.MoodleInternalGlobalState
unset($CFG);
global $CFG;
$CFG = new stdClass();
$CFG->dbtype = getenv('dbtype');
$CFG->dblibrary = 'native';
$CFG->dbhost = '127.0.0.1';
$CFG->dbname = 'test';
$CFG->dbuser = 'test';
$CFG->dbpass = 'test';
$CFG->prefix = 'm_';
$CFG->dboptions = ['dbcollation' => 'utf8mb4_bin'];
$host = 'localhost';
$CFG->wwwroot = "http://{$host}";
$CFG->dataroot = realpath(dirname(__DIR__)) . '/moodledata';
$CFG->admin = 'admin';
$CFG->directorypermissions = 0777;
// Debug options - possible to be controlled by flag in future.
$CFG->debug = (E_ALL | E_STRICT); // DEBUG_DEVELOPER.
$CFG->debugdisplay = 1;
$CFG->debugstringids = 1; // Add strings=1 to url to get string ids.
$CFG->perfdebug = 15;
$CFG->debugpageinfo = 1;
$CFG->allowthemechangeonurl = 1;
$CFG->passwordpolicy = 0;
$CFG->cronclionly = 0;
$CFG->pathtophp = getenv('pathtophp');
$CFG->phpunit_dataroot = realpath(dirname(__DIR__)) . '/phpunitdata';
$CFG->phpunit_prefix = 't_';
define('TEST_EXTERNAL_FILES_HTTP_URL', 'http://localhost:8080');
define('TEST_EXTERNAL_FILES_HTTPS_URL', 'http://localhost:8080');
define('TEST_SESSION_REDIS_HOST', 'localhost');
define('TEST_CACHESTORE_REDIS_TESTSERVERS', 'localhost');
// TODO: add others (solr, mongodb, memcached, ldap...).
// Too much for now: define('PHPUNIT_LONGTEST', true); // Only leaves a few tests out and they are run later by CI.
require_once(__DIR__ . '/lib/setup.php');
+109
View File
@@ -0,0 +1,109 @@
name: Core
on:
push:
branches-ignore:
- master
- MOODLE_[0-9]+_STABLE
tags-ignore:
- v[0-9]+.[0-9]+.[0-9]+*
env:
php: 7.4
jobs:
Grunt:
runs-on: ubuntu-18.04
steps:
- name: Checking out code
uses: actions/checkout@v2
- name: Configuring node & npm
shell: bash -l {0}
run: nvm install
- name: Installing node stuff
run: npm install
- name: Running grunt
run: npx grunt
- name: Looking for uncommitted changes
# Add all files to the git index and then run diff --cached to see all changes.
# This ensures that we get the status of all files, including new files.
# We ignore npm-shrinkwrap.json to make the tasks immune to npm changes.
run: |
git add .
git reset -- npm-shrinkwrap.json
git diff --cached --exit-code
PHPUnit:
runs-on: ${{ matrix.os }}
services:
exttests:
image: moodlehq/moodle-exttests
ports:
- 8080:80
redis:
image: redis
ports:
- 6379:6379
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-18.04
php: 7.2
db: mysqli
- os: ubuntu-18.04
php: 7.4
db: pgsql
steps:
- name: Setting up DB mysql
if: ${{ matrix.db == 'mysqli' }}
uses: johanmeiring/mysql-action@tmpfs-patch
with:
collation server: utf8mb4_bin
mysql version: 5.7
mysql database: test
mysql user: test
mysql password: test
use tmpfs: true
- name: Setting up DB pgsql
if: ${{ matrix.db == 'pgsql' }}
uses: m4nu56/postgresql-action@v1
with:
postgresql version: 9.6
postgresql db: test
postgresql user: test
postgresql password: test
- name: Configuring git vars
uses: rlespinasse/github-slug-action@v3.x
- name: Setting up PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
- name: Checking out code from ${{ env.GITHUB_REF_SLUG }}
uses: actions/checkout@v2
- name: Setting up PHPUnit
env:
dbtype: ${{ matrix.db }}
run: |
echo "pathtophp=$(which php)" >> $GITHUB_ENV # Inject installed pathtophp to env. The template config needs it.
cp .github/workflows/config-template.php config.php
mkdir ../moodledata
sudo locale-gen en_AU.UTF-8
php admin/tool/phpunit/cli/init.php --no-composer-self-update
- name: Running PHPUnit tests
env:
dbtype: ${{ matrix.db }}
run: vendor/bin/phpunit -v
+17 -2
View File
@@ -9,15 +9,24 @@
#
# See gitignore(5) man page for more details
#
# Swap files (vim)
[._]*.s[a-v][a-z]
[._]*.sw[a-p]
[._]s[a-rt-v][a-z]
[._]ss[a-gi-z]
[._]sw[a-p]
# Temporary files including undo
*~
#
/config.php
/lib/editor/tinymce/extra/tools/temp/
*~
*.swp
/tags
/TAGS
/cscope.*
/.patches/
/.idea/
.phpstorm.*
/nbproject/
CVS
.DS_Store
@@ -25,6 +34,7 @@ CVS
/.project
/.buildpath
/.cache
.phpunit.result.cache
phpunit.xml
# Composer support. Do not ignore composer.json, or composer.lock. These should be shipped by us.
composer.phar
@@ -36,3 +46,8 @@ composer.phar
/lib/yuilib/*/*/*-coverage.js
atlassian-ide-plugin.xml
/node_modules/
/.vscode/
moodle-plugin-ci.phar
.eslintignore
.stylelintignore
/jsdoc
+19
View File
@@ -0,0 +1,19 @@
# Moodle JavaScript Documentation
```
.-..-.
_____ | || |
/____/-.---_ .---. .---. .-.| || | .---.
| | _ _ |/ _ \/ _ \/ _ || |/ __ \
* | | | | | || |_| || |_| || |_| || || |___/
|_| |_| |_|\_____/\_____/\_____||_|\_____)
Moodle - the world's open source learning platform
```
## About
This generated documentation includes API documentation for JavaScript written in the AMD and ES2015 module formats within Moodle.
## Related information
See [https://docs.moodle.org/dev](https://docs.moodle.org/dev) for other related Developer Documentation.
+131
View File
@@ -0,0 +1,131 @@
// 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/>.
/**
* Helper functions for working with Moodle component names, directories, and sources.
*
* @copyright 2019 Andrew Nicols <andrew@nicols.co.uk>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
"use strict";
/* eslint-env node */
// Do not include any plugins as stanard.
const plugins = [];
plugins.push('plugins/markdown');
/**
* Get the source configuration.
*
* @return {Object}
*/
const getSource = () => {
const glob = require('glob');
const path = require('path');
const ComponentList = require(path.resolve('GruntfileComponents.js'));
const thirdPartyPaths = ComponentList.getThirdPartyPaths();
const source = {
include: [],
includePattern: ".+\\.js$",
};
let includeList = [];
ComponentList.getAmdSrcGlobList().forEach(async pattern => {
includeList.push(...glob.sync(pattern));
});
const cwdLength = process.cwd().length + 1;
includeList.forEach(path => {
if (source.include.indexOf(path) !== -1) {
// Ensure no duplicates.
return;
}
const relPath = path.substring(cwdLength);
if (thirdPartyPaths.indexOf(relPath) !== -1) {
return;
}
source.include.push(path);
});
source.include.push('.grunt/jsdoc/README.md');
return source;
};
const tags = {
// Allow the use of unknown tags.
// We have a lot of legacy uses of these.
allowUnknownTags: true,
// We make use of jsdoc and closure dictionaries as standard.
dictionaries: [
'jsdoc',
'closure',
],
};
// Template configuraiton.
const templates = {
cleverLinks: false,
monospaceLinks: false,
};
module.exports = {
opts: {
destination: "./jsdoc/",
template: "node_modules/docdash",
},
plugins,
recurseDepth: 10,
source: getSource(),
sourceType: 'module',
tags,
templates,
docdash: {
collapse: true,
search: true,
sort: true,
sectionOrder: [
"Namespaces",
"Modules",
"Events",
"Classes",
"Externals",
"Mixins",
"Tutorials",
"Interfaces"
],
"menu": {
"Developer Docs": {
href: "https://docs.moodle.org/dev",
target: "_blank",
"class": "menu-item",
id: "devdocs"
},
"MDN Docs": {
href: "https://developer.mozilla.org/en-US/docs/Web/JavaScript",
target: "_blank",
"class": "menu-item",
id: "mdndocs",
},
},
typedefs: true,
},
};
+2
View File
@@ -0,0 +1,2 @@
**/amd/**
/*.js
+1
View File
@@ -0,0 +1 @@
v14.15.0
-93
View File
@@ -1,93 +0,0 @@
# Generated by "grunt ignorefiles"
**/yui/build/*
theme/bootstrapbase/style/
theme/clean/style/custom.css
theme/more/style/custom.css
theme/boost/style/moodle.css
node_modules/
vendor/
admin/tool/policy/amd/src/jquery-eu-cookie-law-popup.js
admin/tool/usertours/amd/src/tour.js
auth/cas/CAS/
enrol/lti/ims-blti/
filter/algebra/AlgParser.pm
filter/tex/mimetex.*
lib/editor/atto/plugins/html/yui/src/codemirror/
lib/editor/atto/plugins/html/yui/src/beautify/
lib/editor/atto/yui/src/rangy/js/*.*
lib/editor/tinymce/plugins/pdw/tinymce/
lib/editor/tinymce/plugins/spellchecker/rpc.php
lib/editor/tinymce/tiny_mce/
lib/mlbackend/php/phpml/
lib/adodb/
lib/bennu/
lib/evalmath/
lib/lessphp/
lib/phpexcel/
lib/google/
lib/htmlpurifier/
lib/jabber/
lib/minify/matthiasmullie-minify/
lib/minify/matthiasmullie-pathconverter/
lib/pear/Auth/RADIUS.php
lib/pear/Crypt/CHAP.php
lib/pear/HTML/Common.php
lib/pear/HTML/QuickForm.php
lib/pear/HTML/QuickForm/
lib/pear/PEAR.php
lib/phpmailer/
lib/simplepie/
lib/tcpdf/
lib/typo3/
lib/yuilib/
lib/yuilib/gallery/
lib/jquery/
lib/html2text/
lib/markdown/
lib/recaptchalib.php
lib/xhprof/
lib/horde/
lib/requirejs/
lib/amd/src/loglevel.js
lib/mustache/
lib/amd/src/mustache.js
lib/graphlib.php
lib/php-css-parser/
lib/rtlcss/
lib/scssphp/
lib/spout/
lib/amd/src/chartjs-lazy.js
lib/maxmind/GeoIp2/
lib/maxmind/MaxMind/
lib/ltiprovider/
lib/amd/src/truncate.js
lib/fonts/
lib/amd/src/adapter.js
lib/validateurlsyntax.php
lib/amd/src/popper.js
lib/geopattern-php/
media/player/videojs/amd/src/video-lazy.js
media/player/videojs/amd/src/Youtube-lazy.js
media/player/videojs/videojs/
media/player/videojs/amd/src/videojs-flash-lazy.js
media/player/videojs/videojs/video-js.swf
mod/assign/feedback/editpdf/fpdi/
repository/s3/S3.php
theme/boost/scss/bootstrap/
theme/boost/amd/src/alert.js
theme/boost/amd/src/button.js
theme/boost/amd/src/carousel.js
theme/boost/amd/src/collapse.js
theme/boost/amd/src/dropdown.js
theme/boost/amd/src/modal.js
theme/boost/amd/src/popover.js
theme/boost/amd/src/scrollspy.js
theme/boost/amd/src/tab.js
theme/boost/amd/src/tooltip.js
theme/boost/amd/src/util.js
theme/boost/amd/src/tether.js
theme/boost/scss/fontawesome/
theme/bootstrapbase/less/bootstrap/
theme/bootstrapbase/javascript/html5shiv.js
theme/bootstrapbase/amd/src/bootstrap.js
theme/bootstrapbase/less/fontawesome/
+71 -93
View File
@@ -2,84 +2,86 @@
# 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
php:
# We only run the highest and lowest supported versions to reduce the load on travis-ci.org.
- 7.2
- 7.0
os: linux
dist: bionic
services:
- mysql
- docker
addons:
postgresql: "9.6"
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
# Redis tests are currently failing on php 7.2 due to https://bugs.php.net/bug.php?id=75628
# services:
# - redis-server
branches:
except:
- master
- /MOODLE_[0-9]+_STABLE/
- /^v[0-9]+\.[0-9]+\.[0-9]+.*/
env:
# Although we want to run these jobs and see failures as quickly as possible, we also want to get the slowest job to
# start first so that the total run time is not too high.
#
# We only run MySQL on PHP 7.2, so run that first.
# CI Tests should be second-highest in priority as these only take <= 60 seconds to run under normal circumstances.
# Postgres is significantly is pretty reasonable in its run-time.
# Run unit tests on MySQL
- DB=mysqli TASK=PHPUNIT
# Run CI Tests without running PHPUnit.
- DB=none TASK=CITEST
# Run unit tests on Postgres
- DB=pgsql TASK=PHPUNIT
# 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 grunt/npm install on highest version ('node' is an alias for the latest node.js version.)
# First all the lowest php ones (7.2)
- php: 7.2
env: DB=none TASK=GRUNT NVM_VERSION='lts/carbon'
env: DB=none TASK=CITEST
- php: 7.2
env: DB=none TASK=GRUNT NVM_VERSION='lts/carbon'
exclude:
# MySQL - it's just too slow.
# Exclude it on all versions except for 7.2
- if: env(MOODLE_DATABASE) = "pgsql" OR env(MOODLE_DATABASE) = "all" OR env(MOODLE_DATABASE) IS NOT present
php: 7.2
env: DB=pgsql TASK=PHPUNIT
- env: DB=mysqli TASK=PHPUNIT
php: 7.0
- if: env(MOODLE_DATABASE) = "mysqli" OR env(MOODLE_DATABASE) = "all"
php: 7.2
env: DB=mysqli TASK=PHPUNIT
# Then, conditionally, all the highest php ones (7.4)
- if: env(MOODLE_PHP) = "all"
php: 7.4
env: DB=none TASK=CITEST
- if: env(MOODLE_PHP) = "all"
php: 7.4
env: DB=none TASK=GRUNT NVM_VERSION='lts/carbon'
- if: env(MOODLE_PHP) = "all" AND (env(MOODLE_DATABASE) = "pgsql" OR env(MOODLE_DATABASE) = "all" OR env(MOODLE_DATABASE) IS NOT present)
php: 7.4
env: DB=pgsql TASK=PHPUNIT
- if: env(MOODLE_PHP) = "all" AND (env(MOODLE_DATABASE) = "mysqli" OR env(MOODLE_DATABASE) = "all")
php: 7.4
env: DB=mysqli TASK=PHPUNIT
cache:
directories:
- $HOME/.composer/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
install:
- >
if [ "$DB" = 'mysqli' ];
then
sudo mkdir /mnt/ramdisk
sudo mount -t tmpfs -o size=1024m tmpfs /mnt/ramdisk
sudo stop mysql
sudo service mysql stop
sudo mv /var/lib/mysql /mnt/ramdisk
sudo ln -s /mnt/ramdisk/mysql /var/lib/mysql
sudo start mysql
sudo service mysql restart
fi
- >
if [ "$DB" = 'pgsql' ];
@@ -99,10 +101,8 @@ install:
echo 'auth.json' >> .git/info/exclude
fi
# Enable Redis.
# Redis tests are currently failing on php 7.2 due to https://bugs.php.net/bug.php?id=75628
# echo 'extension="redis.so"' > /tmp/redis.ini
# phpenv config-add /tmp/redis.ini
echo 'extension="redis.so"' > /tmp/redis.ini
phpenv config-add /tmp/redis.ini
# Install composer dependencies.
# We need --no-interaction in case we hit API limits for composer. This causes it to fall back to a standard clone.
@@ -120,7 +120,7 @@ install:
before_script:
- phpenv config-rm xdebug.ini
- >
if [ "$TASK" = 'PHPUNIT' -o "$TASK" = 'UPGRADE' ];
if [ "$TASK" = 'PHPUNIT' ];
then
# Copy generic configuration in place.
cp config-dist.php config.php ;
@@ -173,12 +173,25 @@ before_script:
mkdir -p "$HOME"/roots/phpunit
# The phpunit dataroot and prefix..
# Redis tests are currently failing on php 7.2 due to https://bugs.php.net/bug.php?id=75628
# -e "/require_once/i \\define('TEST_SESSION_REDIS_HOST', '127.0.0.1');" \
sed -i \
-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');" \
config.php ;
# Redis session tests, but not for PHP 7.2 and up. See MDL-60978 for more info.
redissession="define('TEST_SESSION_REDIS_HOST', '127.0.0.1');"
sed -i \
-e "/require_once/i \\${redissession}" \
config.php ;
# Initialise PHPUnit for Moodle.
php admin/tool/phpunit/cli/init.php
@@ -207,7 +220,7 @@ before_script:
# We need the official upstream for comparison
git remote add upstream https://github.com/moodle/moodle.git;
git fetch upstream MOODLE_36_STABLE;
git fetch upstream MOODLE_310_STABLE;
export GIT_PREVIOUS_COMMIT="`git merge-base FETCH_HEAD $TRAVIS_COMMIT`";
export GIT_COMMIT="$TRAVIS_COMMIT";
export UPSTREAM_FETCH_HEAD=`git rev-parse FETCH_HEAD`
@@ -218,32 +231,6 @@ before_script:
export phpcmd=`which php`;
fi
########################################################################
# Upgrade test
########################################################################
- >
if [ "$TASK" = 'UPGRADE' ];
then
# We need the official upstream.
git remote add upstream https://github.com/moodle/moodle.git;
# Checkout 30 STABLE branch (the first version compatible with PHP 7.x)
git fetch upstream MOODLE_30_STABLE;
git checkout MOODLE_30_STABLE;
# Perform the upgrade
php admin/cli/install_database.php --agree-license --adminpass=Password --adminemail=admin@example.com --fullname="Upgrade test" --shortname=Upgrade;
# Return to the previous commit
git checkout -;
# Perform the upgrade
php admin/cli/upgrade.php --non-interactive --allow-unstable ;
# The local_ci repository can be used to check upgrade savepoints.
git clone https://github.com/moodlehq/moodle-local_ci.git local/ci ;
fi
script:
- >
if [ "$TASK" = 'PHPUNIT' ];
@@ -269,19 +256,10 @@ script:
git diff --cached --exit-code ;
fi
########################################################################
# Upgrade test
########################################################################
after_script:
- >
if [ "$TASK" = 'UPGRADE' ];
if [ "$TASK" = 'PHPUNIT' ];
then
cp local/ci/check_upgrade_savepoints/check_upgrade_savepoints.php ./check_upgrade_savepoints.php
result=`php check_upgrade_savepoints.php`;
# Check if there are problems
count=`echo "$result" | grep -P "ERROR|WARN" | wc -l` ;
if (($count > 0));
then
echo "$result"
exit 1 ;
fi
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
+609 -138
View File
@@ -20,18 +20,137 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
/**
* Grunt configuration
*/
/* eslint-env node */
/**
* Calculate the cwd, taking into consideration the `root` option (for Windows).
*
* @param {Object} grunt
* @returns {String} The current directory as best we can determine
*/
const getCwd = grunt => {
const fs = require('fs');
const path = require('path');
let cwd = fs.realpathSync(process.env.PWD || process.cwd());
// Windows users can't run grunt in a subdirectory, so allow them to set
// the root by passing --root=path/to/dir.
if (grunt.option('root')) {
const root = grunt.option('root');
if (grunt.file.exists(__dirname, root)) {
cwd = fs.realpathSync(path.join(__dirname, root));
grunt.log.ok('Setting root to ' + cwd);
} else {
grunt.fail.fatal('Setting root to ' + root + ' failed - path does not exist');
}
}
return cwd;
};
/**
* Register any stylelint tasks.
*
* @param {Object} grunt
* @param {Array} files
* @param {String} fullRunDir
*/
const registerStyleLintTasks = (grunt, files, fullRunDir) => {
const getCssConfigForFiles = files => {
return {
stylelint: {
css: {
// Use a fully-qualified path.
src: files,
options: {
configOverrides: {
rules: {
// These rules have to be disabled in .stylelintrc for scss compat.
"at-rule-no-unknown": true,
}
}
}
},
},
};
};
const getScssConfigForFiles = files => {
return {
stylelint: {
scss: {
options: {syntax: 'scss'},
src: files,
},
},
};
};
let hasCss = true;
let hasScss = true;
if (files) {
// Specific files were passed. Just set them up.
grunt.config.merge(getCssConfigForFiles(files));
grunt.config.merge(getScssConfigForFiles(files));
} else {
// The stylelint system does not handle the case where there was no file to lint.
// Check whether there are any files to lint in the current directory.
const glob = require('glob');
const scssSrc = [];
glob.sync(`${fullRunDir}/**/*.scss`).forEach(path => scssSrc.push(path));
if (scssSrc.length) {
grunt.config.merge(getScssConfigForFiles(scssSrc));
} else {
hasScss = false;
}
const cssSrc = [];
glob.sync(`${fullRunDir}/**/*.css`).forEach(path => cssSrc.push(path));
if (cssSrc.length) {
grunt.config.merge(getCssConfigForFiles(cssSrc));
} else {
hasCss = false;
}
}
const scssTasks = ['sass'];
if (hasScss) {
scssTasks.unshift('stylelint:scss');
}
scssTasks.unshift('ignorefiles');
grunt.registerTask('scss', scssTasks);
const cssTasks = ['ignorefiles'];
if (hasCss) {
cssTasks.push('stylelint:css');
}
grunt.registerTask('rawcss', cssTasks);
grunt.registerTask('css', ['scss', 'rawcss']);
};
/**
* Grunt configuration.
*
* @param {Object} grunt
*/
module.exports = function(grunt) {
var path = require('path'),
tasks = {},
cwd = process.env.PWD || process.cwd(),
async = require('async'),
DOMParser = require('xmldom').DOMParser,
xpath = require('xpath'),
semver = require('semver');
const path = require('path');
const tasks = {};
const async = require('async');
const DOMParser = require('xmldom').DOMParser;
const xpath = require('xpath');
const semver = require('semver');
const watchman = require('fb-watchman');
const watchmanClient = new watchman.Client();
const fs = require('fs');
const ComponentList = require(path.resolve('GruntfileComponents.js'));
const sass = require('node-sass');
// Verify the node version is new enough.
var expected = semver.validRange(grunt.file.readJSON('package.json').engines.node);
@@ -40,22 +159,65 @@ module.exports = function(grunt) {
grunt.fail.fatal('Node version not satisfied. Require ' + expected + ', version installed: ' + actual);
}
// Windows users can't run grunt in a subdirectory, so allow them to set
// the root by passing --root=path/to/dir.
if (grunt.option('root')) {
var root = grunt.option('root');
if (grunt.file.exists(__dirname, root)) {
cwd = path.join(__dirname, root);
grunt.log.ok('Setting root to ' + cwd);
} else {
grunt.fail.fatal('Setting root to ' + root + ' failed - path does not exist');
}
// Detect directories:
// * gruntFilePath The real path on disk to this Gruntfile.js
// * cwd The current working directory, which can be overridden by the `root` option
// * relativeCwd The cwd, relative to the Gruntfile.js
// * componentDirectory The root directory of the component if the cwd is in a valid component
// * inComponent Whether the cwd is in a valid component
// * runDir The componentDirectory or cwd if not in a component, relative to Gruntfile.js
// * fullRunDir The full path to the runDir
const gruntFilePath = fs.realpathSync(process.cwd());
const cwd = getCwd(grunt);
const relativeCwd = path.relative(gruntFilePath, cwd);
const componentDirectory = ComponentList.getOwningComponentDirectory(relativeCwd);
const inComponent = !!componentDirectory;
const runDir = inComponent ? componentDirectory : relativeCwd;
const fullRunDir = fs.realpathSync(gruntFilePath + path.sep + runDir);
grunt.log.debug('============================================================================');
grunt.log.debug(`= Node version: ${process.versions.node}`);
grunt.log.debug(`= grunt version: ${grunt.package.version}`);
grunt.log.debug(`= process.cwd: '` + process.cwd() + `'`);
grunt.log.debug(`= process.env.PWD: '${process.env.PWD}'`);
grunt.log.debug(`= path.sep '${path.sep}'`);
grunt.log.debug('============================================================================');
grunt.log.debug(`= gruntFilePath: '${gruntFilePath}'`);
grunt.log.debug(`= relativeCwd: '${relativeCwd}'`);
grunt.log.debug(`= componentDirectory: '${componentDirectory}'`);
grunt.log.debug(`= inComponent: '${inComponent}'`);
grunt.log.debug(`= runDir: '${runDir}'`);
grunt.log.debug(`= fullRunDir: '${fullRunDir}'`);
grunt.log.debug('============================================================================');
if (inComponent) {
grunt.log.ok(`Running tasks for component directory ${componentDirectory}`);
}
var inAMD = path.basename(cwd) == 'amd';
let files = null;
if (grunt.option('files')) {
// Accept a comma separated list of files to process.
files = grunt.option('files').split(',');
}
// If the cwd is the amd directory in the current component then it will be empty.
// If the cwd is a child of the component's AMD directory, the relative directory will not start with ..
const inAMD = !path.relative(`${componentDirectory}/amd`, cwd).startsWith('..');
// Globbing pattern for matching all AMD JS source files.
var amdSrc = [inAMD ? cwd + '/src/*.js' : '**/amd/src/*.js'];
let amdSrc = [];
if (inComponent) {
amdSrc.push(componentDirectory + "/amd/src/*.js");
amdSrc.push(componentDirectory + "/amd/src/**/*.js");
} else {
amdSrc = ComponentList.getAmdSrcGlobList();
}
let yuiSrc = [];
if (inComponent) {
yuiSrc.push(componentDirectory + "/yui/src/**/*.js");
} else {
yuiSrc = ComponentList.getYuiSrcGlobList(gruntFilePath + '/');
}
/**
* Function to generate the destination for the uglify task
@@ -67,10 +229,9 @@ module.exports = function(grunt) {
* @param {String} srcPath the matched src path
* @return {String} The rewritten destination path.
*/
var uglifyRename = function(destPath, srcPath) {
var babelRename = function(destPath, srcPath) {
destPath = srcPath.replace('src', 'build');
destPath = destPath.replace('.js', '.min.js');
destPath = path.resolve(cwd, destPath);
return destPath;
};
@@ -81,70 +242,133 @@ module.exports = function(grunt) {
* @return {array} The list of thirdparty paths.
*/
var getThirdPartyPathsFromXML = function() {
var thirdpartyfiles = grunt.file.expand('*/**/thirdpartylibs.xml');
var libs = ['node_modules/', 'vendor/'];
const thirdpartyfiles = ComponentList.getThirdPartyLibsList(gruntFilePath + '/');
const libs = ['node_modules/', 'vendor/'];
thirdpartyfiles.forEach(function(file) {
var dirname = path.dirname(file);
const dirname = path.dirname(file);
var doc = new DOMParser().parseFromString(grunt.file.read(file));
var nodes = xpath.select("/libraries/library/location/text()", doc);
const doc = new DOMParser().parseFromString(grunt.file.read(file));
const nodes = xpath.select("/libraries/library/location/text()", doc);
nodes.forEach(function(node) {
var lib = path.join(dirname, node.toString());
if (grunt.file.isDir(lib)) {
// Ensure trailing slash on dirs.
lib = lib.replace(/\/?$/, '/');
}
nodes.forEach(function(node) {
let lib = path.posix.join(dirname, node.toString());
if (grunt.file.isDir(lib)) {
// Ensure trailing slash on dirs.
lib = lib.replace(/\/?$/, '/');
}
// Look for duplicate paths before adding to array.
if (libs.indexOf(lib) === -1) {
libs.push(lib);
}
});
// Look for duplicate paths before adding to array.
if (libs.indexOf(lib) === -1) {
libs.push(lib);
}
});
});
return libs;
};
/**
* Get the list of feature files to pass to the gherkin linter.
*
* @returns {Array}
*/
const getGherkinLintTargets = () => {
if (files) {
// Specific files were requested. Only check these.
return files;
}
if (inComponent) {
return [`${runDir}/tests/behat/*.feature`];
}
return ['**/tests/behat/*.feature'];
};
// Project configuration.
grunt.initConfig({
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')},
amd: {src: amdSrc},
// 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: ['**/yui/src/**/*.js', '!*/**/yui/src/*/meta/*.js']}
yui: {src: files ? files : yuiSrc},
},
uglify: {
amd: {
babel: {
options: {
sourceMaps: true,
comments: false,
plugins: [
'transform-es2015-modules-amd-lazy',
'system-import-transformer',
// This plugin modifies the Babel transpiling for "export default"
// so that if it's used then only the exported value is returned
// by the generated AMD module.
//
// It also adds the Moodle plugin name to the AMD module definition
// so that it can be imported as expected in other modules.
path.resolve('babel-plugin-add-module-to-define.js'),
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-syntax-import-meta',
['@babel/plugin-proposal-class-properties', {'loose': false}],
'@babel/plugin-proposal-json-strings'
],
presets: [
['minify', {
// This minification plugin needs to be disabled because it breaks the
// source map generation and causes invalid source maps to be output.
simplify: false,
builtIns: false
}],
['@babel/preset-env', {
targets: {
browsers: [
">0.25%",
"last 2 versions",
"not ie <= 10",
"not op_mini all",
"not Opera > 0",
"not dead"
]
},
modules: false,
useBuiltIns: false
}]
]
},
dist: {
files: [{
expand: true,
src: amdSrc,
rename: uglifyRename
}],
options: {report: 'none'}
src: files ? files : amdSrc,
rename: babelRename
}]
}
},
less: {
bootstrapbase: {
files: {
"theme/bootstrapbase/style/moodle.css": "theme/bootstrapbase/less/moodle.less",
"theme/bootstrapbase/style/editor.css": "theme/bootstrapbase/less/editor.less",
},
jsdoc: {
dist: {
options: {
compress: false // We must not compress to keep the comments.
}
}
configure: ".grunt/jsdoc/jsdoc.conf.js",
},
},
},
sass: {
dist: {
files: {
"theme/boost/style/moodle.css": "theme/boost/scss/preset/default.scss"
"theme/boost/style/moodle.css": "theme/boost/scss/preset/default.scss",
"theme/classic/style/moodle.css": "theme/classic/scss/classicgrunt.scss"
}
},
options: {
includePaths: ["theme/boost/scss/"]
implementation: sass,
includePaths: ["theme/boost/scss/", "theme/classic/scss/"]
}
},
watch: {
@@ -152,83 +376,72 @@ module.exports = function(grunt) {
nospawn: true // We need not to spawn so config can be changed dynamically.
},
amd: {
files: ['**/amd/src/**/*.js'],
files: inComponent
? ['amd/src/*.js', 'amd/src/**/*.js']
: ['**/amd/src/**/*.js'],
tasks: ['amd']
},
bootstrapbase: {
files: ["theme/bootstrapbase/less/**/*.less"],
tasks: ["css"]
boost: {
files: [inComponent ? 'scss/**/*.scss' : 'theme/boost/scss/**/*.scss'],
tasks: ['scss']
},
rawcss: {
files: [
'**/*.css',
],
excludes: [
'**/moodle.css',
'**/editor.css',
],
tasks: ['rawcss']
},
yui: {
files: ['**/yui/src/**/*.js'],
files: inComponent
? ['yui/src/*.json', 'yui/src/**/*.js']
: ['**/yui/src/**/*.js'],
tasks: ['yui']
},
gherkinlint: {
files: ['**/tests/behat/*.feature'],
files: [inComponent ? 'tests/behat/*.feature' : '**/tests/behat/*.feature'],
tasks: ['gherkinlint']
}
},
shifter: {
options: {
recursive: true,
paths: [cwd]
// Shifter takes a relative path.
paths: files ? files : [runDir]
}
},
gherkinlint: {
options: {
files: ['**/tests/behat/*.feature'],
files: getGherkinLintTargets(),
}
},
stylelint: {
less: {
options: {
syntax: 'less',
configOverrides: {
rules: {
// These rules have to be disabled in .stylelintrc for scss compat.
"at-rule-no-unknown": true,
}
}
},
src: ['theme/**/*.less']
},
scss: {
options: {syntax: 'scss'},
src: ['*/**/*.scss']
},
css: {
src: ['*/**/*.css'],
options: {
configOverrides: {
rules: {
// These rules have to be disabled in .stylelintrc for scss compat.
"at-rule-no-unknown": true,
}
}
}
}
}
});
/**
* Generate ignore files (utilising thirdpartylibs.xml data)
*/
tasks.ignorefiles = function() {
// An array of paths to third party directories.
var thirdPartyPaths = getThirdPartyPathsFromXML();
// Generate .eslintignore.
var eslintIgnores = ['# Generated by "grunt ignorefiles"', '*/**/yui/src/*/meta/', '*/**/build/'].concat(thirdPartyPaths);
grunt.file.write('.eslintignore', eslintIgnores.join('\n'));
// Generate .stylelintignore.
var stylelintIgnores = [
'# Generated by "grunt ignorefiles"',
'**/yui/build/*',
'theme/bootstrapbase/style/',
'theme/clean/style/custom.css',
'theme/more/style/custom.css',
'theme/boost/style/moodle.css'
].concat(thirdPartyPaths);
grunt.file.write('.stylelintignore', stylelintIgnores.join('\n'));
// An array of paths to third party directories.
const thirdPartyPaths = getThirdPartyPathsFromXML();
// Generate .eslintignore.
const eslintIgnores = [
'# Generated by "grunt ignorefiles"',
'*/**/yui/src/*/meta/',
'*/**/build/',
].concat(thirdPartyPaths);
grunt.file.write('.eslintignore', eslintIgnores.join('\n') + '\n');
// Generate .stylelintignore.
const stylelintIgnores = [
'# Generated by "grunt ignorefiles"',
'**/yui/build/*',
'theme/boost/style/moodle.css',
'theme/classic/style/moodle.css',
].concat(thirdPartyPaths);
grunt.file.write('.stylelintignore', stylelintIgnores.join('\n') + '\n');
};
/**
@@ -320,19 +533,32 @@ 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/dist/linter.js');
const featureFinder = require('gherkin-lint/dist/feature-finder.js');
const configParser = require('gherkin-lint/dist/config-parser.js');
const formatter = require('gherkin-lint/dist/formatters/stylish.js');
// Run the linter.
return linter.lint(
featureFinder.getFeatureFiles(grunt.file.expand(options.files)),
configParser.getConfiguration(configParser.defaultConfigFileName)
)
.then(results => {
// Print the results out uncondtionally.
formatter.printResults(results);
return results;
})
.then(results => {
// Report on the results.
// The done function takes a bool whereby a falsey statement causes the task to fail.
return results.every(result => result.errors.length === 0);
})
.then(done); // eslint-disable-line promise/no-callback-in-promise
};
tasks.startup = function() {
@@ -350,44 +576,289 @@ module.exports = function(grunt) {
}
};
/**
* This is a wrapper task to handle the grunt watch command. It attempts to use
* Watchman to monitor for file changes, if it's installed, because it's much faster.
*
* If Watchman isn't installed then it falls back to the grunt-contrib-watch file
* watcher for backwards compatibility.
*/
tasks.watch = function() {
var watchTaskDone = this.async();
var watchInitialised = false;
var watchTaskQueue = {};
var processingQueue = false;
// Grab the tasks and files that have been queued up and execute them.
var processWatchTaskQueue = function() {
if (!Object.keys(watchTaskQueue).length || processingQueue) {
// If there is nothing in the queue or we're already processing then wait.
return;
}
processingQueue = true;
// Grab all tasks currently in the queue.
var queueToProcess = watchTaskQueue;
// Reset the queue.
watchTaskQueue = {};
async.forEachSeries(
Object.keys(queueToProcess),
function(task, next) {
var files = queueToProcess[task];
var filesOption = '--files=' + files.join(',');
grunt.log.ok('Running task ' + task + ' for files ' + filesOption);
// Spawn the task in a child process so that it doesn't kill this one
// if it failed.
grunt.util.spawn(
{
// Spawn with the grunt bin.
grunt: true,
// Run from current working dir and inherit stdio from process.
opts: {
cwd: fullRunDir,
stdio: 'inherit'
},
args: [task, filesOption]
},
function(err, res, code) {
if (code !== 0) {
// The grunt task failed.
grunt.log.error(err);
}
// Move on to the next task.
next();
}
);
},
function() {
// No longer processing.
processingQueue = false;
// Once all of the tasks are done then recurse just in case more tasks
// were queued while we were processing.
processWatchTaskQueue();
}
);
};
const originalWatchConfig = grunt.config.get(['watch']);
const watchConfig = Object.keys(originalWatchConfig).reduce(function(carry, key) {
if (key == 'options') {
return carry;
}
const value = originalWatchConfig[key];
const taskNames = value.tasks;
const files = value.files;
let excludes = [];
if (value.excludes) {
excludes = value.excludes;
}
taskNames.forEach(function(taskName) {
carry[taskName] = {
files,
excludes,
};
});
return carry;
}, {});
watchmanClient.on('error', function(error) {
// We have to add an error handler here and parse the error string because the
// example way from the docs to check if Watchman is installed doesn't actually work!!
// See: https://github.com/facebook/watchman/issues/509
if (error.message.match('Watchman was not found')) {
// If watchman isn't installed then we should fallback to the other watch task.
grunt.log.ok('It is recommended that you install Watchman for better performance using the "watch" command.');
// Fallback to the old grunt-contrib-watch task.
grunt.renameTask('watch-grunt', 'watch');
grunt.task.run(['watch']);
// This task is finished.
watchTaskDone(0);
} else {
grunt.log.error(error);
// Fatal error.
watchTaskDone(1);
}
});
watchmanClient.on('subscription', function(resp) {
if (resp.subscription !== 'grunt-watch') {
return;
}
resp.files.forEach(function(file) {
grunt.log.ok('File changed: ' + file.name);
var fullPath = fullRunDir + '/' + file.name;
Object.keys(watchConfig).forEach(function(task) {
const fileGlobs = watchConfig[task].files;
var match = fileGlobs.some(function(fileGlob) {
return grunt.file.isMatch(`**/${fileGlob}`, fullPath);
});
if (match) {
// If we are watching a subdirectory then the file.name will be relative
// to that directory. However the grunt tasks expect the file paths to be
// relative to the Gruntfile.js location so let's normalise them before
// adding them to the queue.
var relativePath = fullPath.replace(gruntFilePath + '/', '');
if (task in watchTaskQueue) {
if (!watchTaskQueue[task].includes(relativePath)) {
watchTaskQueue[task] = watchTaskQueue[task].concat(relativePath);
}
} else {
watchTaskQueue[task] = [relativePath];
}
}
});
});
processWatchTaskQueue();
});
process.on('SIGINT', function() {
// Let the user know that they may need to manually stop the Watchman daemon if they
// no longer want it running.
if (watchInitialised) {
grunt.log.ok('The Watchman daemon may still be running and may need to be stopped manually.');
}
process.exit();
});
// Initiate the watch on the current directory.
watchmanClient.command(['watch-project', fullRunDir], function(watchError, watchResponse) {
if (watchError) {
grunt.log.error('Error initiating watch:', watchError);
watchTaskDone(1);
return;
}
if ('warning' in watchResponse) {
grunt.log.error('warning: ', watchResponse.warning);
}
var watch = watchResponse.watch;
var relativePath = watchResponse.relative_path;
watchInitialised = true;
watchmanClient.command(['clock', watch], function(clockError, clockResponse) {
if (clockError) {
grunt.log.error('Failed to query clock:', clockError);
watchTaskDone(1);
return;
}
// Generate the expression query used by watchman.
// Documentation is limited, but see https://facebook.github.io/watchman/docs/expr/allof.html for examples.
// We generate an expression to match any value in the files list of all of our tasks, but excluding
// all value in the excludes list of that task.
//
// [anyof, [
// [allof, [
// [anyof, [
// ['match', validPath, 'wholename'],
// ['match', validPath, 'wholename'],
// ],
// [not,
// [anyof, [
// ['match', invalidPath, 'wholename'],
// ['match', invalidPath, 'wholename'],
// ],
// ],
// ],
var matchWholeName = fileGlob => ['match', fileGlob, 'wholename'];
var matches = Object.keys(watchConfig).map(function(task) {
const matchAll = [];
matchAll.push(['anyof'].concat(watchConfig[task].files.map(matchWholeName)));
if (watchConfig[task].excludes.length) {
matchAll.push(['not', ['anyof'].concat(watchConfig[task].excludes.map(matchWholeName))]);
}
return ['allof'].concat(matchAll);
});
matches = ['anyof'].concat(matches);
var sub = {
expression: matches,
// Which fields we're interested in.
fields: ["name", "size", "type"],
// Add our time constraint.
since: clockResponse.clock
};
if (relativePath) {
/* eslint-disable camelcase */
sub.relative_root = relativePath;
}
watchmanClient.command(['subscribe', watch, 'grunt-watch', sub], function(subscribeError) {
if (subscribeError) {
// Probably an error in the subscription criteria.
grunt.log.error('failed to subscribe: ', subscribeError);
watchTaskDone(1);
return;
}
grunt.log.ok('Listening for changes to files in ' + fullRunDir);
});
});
});
};
// On watch, we dynamically modify config to build only affected files. This
// method is slightly complicated to deal with multiple changed files at once (copied
// from the grunt-contrib-watch readme).
var changedFiles = Object.create(null);
var onChange = grunt.util._.debounce(function() {
var files = Object.keys(changedFiles);
grunt.config('eslint.amd.src', files);
grunt.config('eslint.yui.src', files);
grunt.config('uglify.amd.files', [{expand: true, src: files, rename: uglifyRename}]);
grunt.config('shifter.options.paths', files);
grunt.config('stylelint.less.src', files);
grunt.config('gherkinlint.options.files', files);
changedFiles = Object.create(null);
var files = Object.keys(changedFiles);
grunt.config('eslint.amd.src', files);
grunt.config('eslint.yui.src', files);
grunt.config('shifter.options.paths', files);
grunt.config('gherkinlint.options.files', files);
grunt.config('babel.dist.files', [{expand: true, src: files, rename: babelRename}]);
changedFiles = Object.create(null);
}, 200);
grunt.event.on('watch', function(action, filepath) {
changedFiles[filepath] = action;
onChange();
changedFiles[filepath] = action;
onChange();
});
// Register NPM tasks.
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-eslint');
grunt.loadNpmTasks('grunt-stylelint');
grunt.loadNpmTasks('grunt-babel');
grunt.loadNpmTasks('grunt-jsdoc');
// Rename the grunt-contrib-watch "watch" task because we're going to wrap it.
grunt.renameTask('watch', 'watch-grunt');
// Register JS tasks.
grunt.registerTask('shifter', 'Run Shifter against the current directory', tasks.shifter);
grunt.registerTask('gherkinlint', 'Run gherkinlint against the current directory', tasks.gherkinlint);
grunt.registerTask('ignorefiles', 'Generate ignore files for linters', tasks.ignorefiles);
grunt.registerTask('watch', 'Run tasks on file changes', tasks.watch);
grunt.registerTask('yui', ['eslint:yui', 'shifter']);
grunt.registerTask('amd', ['eslint:amd', 'uglify']);
grunt.registerTask('amd', ['ignorefiles', 'eslint:amd', 'babel']);
grunt.registerTask('js', ['amd', 'yui']);
// Register CSS taks.
grunt.registerTask('css', ['stylelint:scss', 'sass', 'stylelint:less', 'less:bootstrapbase', 'stylelint:css']);
// Register CSS tasks.
registerStyleLintTasks(grunt, files, fullRunDir);
// Register the startup task.
grunt.registerTask('startup', 'Run the correct tasks for the current directory', tasks.startup);
+233
View File
@@ -0,0 +1,233 @@
// 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/>.
/**
* Helper functions for working with Moodle component names, directories, and sources.
*
* @copyright 2019 Andrew Nicols <andrew@nicols.co.uk>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
"use strict";
/* eslint-env node */
/** @var {Object} A list of subsystems in Moodle */
const componentData = {};
/**
* Load details of all moodle modules.
*
* @returns {object}
*/
const fetchComponentData = () => {
const fs = require('fs');
const path = require('path');
const glob = require('glob');
const gruntFilePath = process.cwd();
if (!Object.entries(componentData).length) {
componentData.subsystems = {};
componentData.pathList = [];
// Fetch the component definiitions from the distributed JSON file.
const components = JSON.parse(fs.readFileSync(`${gruntFilePath}/lib/components.json`));
// Build the list of moodle subsystems.
componentData.subsystems.lib = 'core';
componentData.pathList.push(process.cwd() + path.sep + 'lib');
for (const [component, thisPath] of Object.entries(components.subsystems)) {
if (thisPath) {
// Prefix "core_" to the front of the subsystems.
componentData.subsystems[thisPath] = `core_${component}`;
componentData.pathList.push(process.cwd() + path.sep + thisPath);
}
}
// The list of components incldues the list of subsystems.
componentData.components = componentData.subsystems;
// Go through each of the plugintypes.
Object.entries(components.plugintypes).forEach(([pluginType, pluginTypePath]) => {
// We don't allow any code in this place..?
glob.sync(`${pluginTypePath}/*/version.php`).forEach(versionPath => {
const componentPath = fs.realpathSync(path.dirname(versionPath));
const componentName = path.basename(componentPath);
const frankenstyleName = `${pluginType}_${componentName}`;
componentData.components[`${pluginTypePath}/${componentName}`] = frankenstyleName;
componentData.pathList.push(componentPath);
// Look for any subplugins.
const subPluginConfigurationFile = `${componentPath}/db/subplugins.json`;
if (fs.existsSync(subPluginConfigurationFile)) {
const subpluginList = JSON.parse(fs.readFileSync(fs.realpathSync(subPluginConfigurationFile)));
Object.entries(subpluginList.plugintypes).forEach(([subpluginType, subpluginTypePath]) => {
glob.sync(`${subpluginTypePath}/*/version.php`).forEach(versionPath => {
const componentPath = fs.realpathSync(path.dirname(versionPath));
const componentName = path.basename(componentPath);
const frankenstyleName = `${subpluginType}_${componentName}`;
componentData.components[`${subpluginTypePath}/${componentName}`] = frankenstyleName;
componentData.pathList.push(componentPath);
});
});
}
});
});
}
return componentData;
};
/**
* Get the list of paths to build AMD sources.
*
* @returns {Array}
*/
const getAmdSrcGlobList = () => {
const globList = [];
fetchComponentData().pathList.forEach(componentPath => {
globList.push(`${componentPath}/amd/src/*.js`);
globList.push(`${componentPath}/amd/src/**/*.js`);
});
return globList;
};
/**
* Get the list of paths to build YUI sources.
*
* @param {String} relativeTo
* @returns {Array}
*/
const getYuiSrcGlobList = relativeTo => {
const globList = [];
fetchComponentData().pathList.forEach(componentPath => {
const relativeComponentPath = componentPath.replace(relativeTo, '');
globList.push(`${relativeComponentPath}/yui/src/**/*.js`);
});
return globList;
};
/**
* Get the list of paths to thirdpartylibs.xml.
*
* @param {String} relativeTo
* @returns {Array}
*/
const getThirdPartyLibsList = relativeTo => {
const fs = require('fs');
const path = require('path');
return fetchComponentData().pathList
.map(componentPath => path.relative(relativeTo, componentPath) + '/thirdpartylibs.xml')
.map(componentPath => componentPath.replace(/\\/g, '/'))
.filter(path => fs.existsSync(path))
.sort();
};
/**
* Get the list of thirdparty library paths.
*
* @returns {array}
*/
const getThirdPartyPaths = () => {
const DOMParser = require('xmldom').DOMParser;
const fs = require('fs');
const path = require('path');
const xpath = require('xpath');
const thirdpartyfiles = getThirdPartyLibsList(fs.realpathSync('./'));
const libs = ['node_modules/', 'vendor/'];
const addLibToList = lib => {
if (!lib.match('\\*') && fs.statSync(lib).isDirectory()) {
// Ensure trailing slash on dirs.
lib = lib.replace(/\/?$/, '/');
}
// Look for duplicate paths before adding to array.
if (libs.indexOf(lib) === -1) {
libs.push(lib);
}
};
thirdpartyfiles.forEach(function(file) {
const dirname = path.dirname(file);
const xmlContent = fs.readFileSync(file, 'utf8');
const doc = new DOMParser().parseFromString(xmlContent);
const nodes = xpath.select("/libraries/library/location/text()", doc);
nodes.forEach(function(node) {
let lib = path.posix.join(dirname, node.toString());
addLibToList(lib);
});
});
return libs;
};
/**
* Find the name of the component matching the specified path.
*
* @param {String} path
* @returns {String|null} Name of matching component.
*/
const getComponentFromPath = path => {
const componentList = fetchComponentData().components;
if (componentList.hasOwnProperty(path)) {
return componentList[path];
}
return null;
};
/**
* Check whether the supplied path, relative to the Gruntfile.js, is in a known component.
*
* @param {String} checkPath The path to check. This can be with either Windows, or Linux directory separators.
* @returns {String|null}
*/
const getOwningComponentDirectory = checkPath => {
const path = require('path');
// Fetch all components into a reverse sorted array.
// This ensures that components which are within the directory of another component match first.
const pathList = Object.keys(fetchComponentData().components).sort().reverse();
for (const componentPath of pathList) {
// If the componentPath is the directory being checked, it will be empty.
// If the componentPath is a parent of the directory being checked, the relative directory will not start with ..
if (!path.relative(componentPath, checkPath).startsWith('..')) {
return componentPath;
}
}
return null;
};
module.exports = {
getAmdSrcGlobList,
getComponentFromPath,
getOwningComponentDirectory,
getYuiSrcGlobList,
getThirdPartyLibsList,
getThirdPartyPaths,
};
+1 -1
View File
@@ -2,7 +2,7 @@ MOODLE TRADEMARKS POLICY
========================
The word "Moodle" is trademarked in many countries around the world. The word
was originally an acronym: Modular Object-Oriented Dynamic Learning
was originally coined as an acronym: Modular Object-Oriented Dynamic Learning
Environment. The trademark is owned by Martin Dougiamas, Founder and Director
of Moodle.
-48
View File
@@ -1,48 +0,0 @@
<?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/>.
/**
* Admin settings search form
*
* @package admin
* @copyright 2016 Damyon Wiese
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
require_once $CFG->libdir.'/formslib.php';
/**
* Admin settings search form
*
* @package admin
* @copyright 2016 Damyon Wiese
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class admin_settings_search_form extends moodleform {
function definition () {
$mform = $this->_form;
//$mform->addElement('header', 'settingsheader', get_string('search', 'admin'));
$elements = [];
$elements[] = $mform->createElement('text', 'query', get_string('query', 'admin'));
$elements[] = $mform->createElement('submit', 'search', get_string('search'));
$mform->addGroup($elements);
$mform->setType('query', PARAM_RAW);
$mform->setDefault('query', optional_param('query', '', PARAM_RAW));
}
}
+5 -4
View File
@@ -33,8 +33,7 @@ $confirm = optional_param('confirm', 0, PARAM_BOOL);
$PAGE->set_url('/admin/antiviruses.php', array('action' => $action, 'antivirus' => $antivirus));
$PAGE->set_context(context_system::instance());
require_login();
require_capability('moodle/site:config', context_system::instance());
require_admin();
$returnurl = "$CFG->wwwroot/$CFG->admin/settings.php?section=manageantiviruses";
@@ -99,8 +98,10 @@ switch ($action) {
default:
break;
}
$new = implode(',', $activeantiviruses);
add_to_config_log('antiviruses', $CFG->antiviruses, $new, 'core');
set_config('antiviruses', $new);
set_config('antiviruses', implode(',', $activeantiviruses));
core_plugin_manager::reset_caches();
redirect ($returnurl);
redirect ($returnurl);
+1 -2
View File
@@ -11,8 +11,7 @@ require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/tablelib.php');
require_login();
require_capability('moodle/site:config', context_system::instance());
require_admin();
$returnurl = new moodle_url('/admin/settings.php', array('section'=>'manageauths'));
+5 -1
View File
@@ -30,7 +30,6 @@ $category = required_param('category', PARAM_SAFEDIR);
$return = optional_param('return','', PARAM_ALPHA);
$adminediting = optional_param('adminedit', -1, PARAM_BOOL);
/// no guest autologin
require_login(0, false);
$PAGE->set_context(context_system::instance());
$PAGE->set_url('/admin/category.php', array('category' => $category));
@@ -159,4 +158,9 @@ echo $outputhtml;
echo html_writer::end_tag('fieldset');
echo html_writer::end_tag('form');
$PAGE->requires->yui_module('moodle-core-formchangechecker', 'M.core_formchangechecker.init', [[
'formid' => 'adminsettings'
]]);
$PAGE->requires->string_for_js('changesmadereallygoaway', 'moodle');
echo $OUTPUT->footer();
+1
View File
@@ -50,6 +50,7 @@ class purge_caches extends \moodleform {
$mform->createElement('advcheckbox', 'theme', '', get_string('purgethemecache', 'admin')),
$mform->createElement('advcheckbox', 'lang', '', get_string('purgelangcache', 'admin')),
$mform->createElement('advcheckbox', 'js', '', get_string('purgejscache', 'admin')),
$mform->createElement('advcheckbox', 'template', '', get_string('purgetemplates', 'admin')),
$mform->createElement('advcheckbox', 'filter', '', get_string('purgefiltercache', 'admin')),
$mform->createElement('advcheckbox', 'muc', '', get_string('purgemuc', 'admin')),
$mform->createElement('advcheckbox', 'other', '', get_string('purgeothercaches', 'admin'))
@@ -0,0 +1,59 @@
<?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/>.
/**
* Testing outgoing mail configuration form
*
* @package core
* @copyright 2019 Victor Deniz <victor@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace core_admin\form;
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir.'/formslib.php');
/**
* Test mail form
*
* @package core
* @copyright 2019 Victor Deniz <victor@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class testoutgoingmailconf_form extends \moodleform {
/**
* Add elements to form
*/
public function definition() {
$mform = $this->_form;
// Recipient.
$options = ['maxlength' => '100', 'size' => '25', 'autocomplete' => 'email'];
$mform->addElement('text', 'recipient', get_string('testoutgoingmailconf_toemail', 'admin'), $options);
$mform->setType('recipient', PARAM_EMAIL);
$mform->addRule('recipient', get_string('required'), 'required');
$buttonarray = array();
$buttonarray[] = $mform->createElement('submit', 'send', get_string('testoutgoingmailconf_sendtest', 'admin'));
$buttonarray[] = $mform->createElement('cancel');
$mform->addGroup($buttonarray, 'buttonar', '', array(' '), false);
$mform->closeHeaderBefore('buttonar');
}
}
@@ -0,0 +1,71 @@
<?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/>.
/**
* External admin page class that allows a callback to be provided to determine whether page can be accessed
*
* @package core_admin
* @copyright 2019 Marina Glancy
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace core_admin\local\externalpage;
use admin_externalpage;
defined('MOODLE_INTERNAL') || die();
require_once("{$CFG->libdir}/adminlib.php");
/**
* Admin externalpage class
*
* @package core_admin
* @copyright 2019 Marina Glancy
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class accesscallback extends admin_externalpage {
/** @var callable $accesscheckcallback */
protected $accesscheckcallback;
/**
* Class constructor
*
* @param string $name
* @param string $visiblename
* @param string $url
* @param callable $accesscheckcallback The callback method that will be executed to check whether user has access to
* this page. The setting instance ($this) is passed as an argument to the callback. Should return boolean value
* @param bool $hidden
*/
public function __construct(string $name, string $visiblename, string $url, callable $accesscheckcallback,
bool $hidden = false) {
$this->accesscheckcallback = $accesscheckcallback;
parent::__construct($name, $visiblename, $url, [], $hidden);
}
/**
* Determines if the current user has access to this external page based on access callback
*
* @return bool
*/
public function check_access() {
return ($this->accesscheckcallback)($this);
}
}
@@ -0,0 +1,206 @@
<?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/>.
/**
* Auto complete admin setting.
*
* @package core_admin
* @copyright 2020 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace core_admin\local\settings;
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir . '/adminlib.php');
/**
* Auto complete setting class.
*
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright 2020 The Open University
*/
class autocomplete extends \admin_setting_configmultiselect {
/** @var boolean Should we allow typing new entries to the field? */
protected $tags = false;
/** @var string Name of an AMD module to send/process ajax requests. */
protected $ajax = '';
/** @var string Placeholder text for an empty list. */
protected $placeholder = '';
/** @var bool Whether the search has to be case-sensitive. */
protected $casesensitive = false;
/** @var bool Show suggestions by default - but this can be turned off. */
protected $showsuggestions = true;
/** @var string String that is shown when there are no selections. */
protected $noselectionstring = '';
/** @var string Delimiter to store values in database. */
protected $delimiter = ',';
/** @var string Should be multiple choices? */
protected $multiple = true;
/** @var string The link to manage choices. */
protected $manageurl = true;
/** @var string The text to display in manage link. */
protected $managetext = true;
/**
* Constructor
*
* @param string $name unique ascii name, either 'mysetting' for settings that in config, or 'myplugin/mysetting'
* for ones in config_plugins.
* @param string $visiblename localised
* @param string $description long localised info
* @param array $defaultsetting array of selected items
* @param array $choices options for autocomplete field
* @param array $attributes settings for autocomplete field
*/
public function __construct($name, $visiblename, $description, $defaultsetting, $choices, $attributes = null) {
if ($attributes === null) {
$attributes = [];
}
$this->placeholder = get_string('search');
$this->noselectionstring = get_string('noselection', 'form');
$defaultattributes = [
'tags',
'showsuggestions',
'placeholder',
'noselectionstring',
'ajax',
'casesensitive',
'delimiter',
'multiple',
'manageurl',
'managetext'
];
foreach ($defaultattributes as $attributename) {
if (isset($attributes[$attributename])) {
$this->$attributename = $attributes[$attributename];
}
}
parent::__construct($name, $visiblename, $description, $defaultsetting, $choices);
}
/**
* Returns the select setting(s)
*
* @return mixed null or array. Null if no settings else array of setting(s)
*/
public function get_setting() {
$result = $this->config_read($this->name);
if (is_null($result)) {
return null;
}
if ($result === '') {
return [];
}
return explode($this->delimiter, $result);
}
/**
* Saves setting(s) provided through $data
*
* @param array $data
*/
public function write_setting($data) {
if (!is_array($data)) {
return ''; // Ignore it.
}
if (!$this->load_choices() || empty($this->choices)) {
return '';
}
unset($data['xxxxx']);
$save = [];
foreach ($data as $value) {
if (!array_key_exists($value, $this->choices)) {
continue; // Ignore it.
}
$save[] = $value;
}
return ($this->config_write($this->name, implode($this->delimiter, $save)) ? '' : get_string('errorsetting', 'admin'));
}
/**
* Returns XHTML autocomplete field
*
* @param array $data Array of values to select by default
* @param string $query
* @return string XHTML autocomplete field
*/
public function output_html($data, $query = '') {
global $OUTPUT;
if (!$this->load_choices() or empty($this->choices)) {
return '';
}
$default = $this->get_defaultsetting();
if (empty($default)) {
$default = [];
}
if (is_null($data)) {
$data = [];
}
$context = [
'id' => $this->get_id(),
'name' => $this->get_full_name()
];
$defaults = [];
$options = [];
$template = 'core_admin/local/settings/autocomplete';
foreach ($this->choices as $value => $name) {
if (in_array($value, $default)) {
$defaults[] = $name;
}
$options[] = [
'value' => $value,
'text' => $name,
'selected' => in_array($value, $data),
'disabled' => false
];
}
$context['options'] = $options;
$context['tags'] = $this->tags;
$context['placeholder'] = $this->placeholder;
$context['casesensitive'] = $this->casesensitive;
$context['multiple'] = $this->multiple;
$context['showsuggestions'] = $this->showsuggestions;
$context['manageurl'] = $this->manageurl;
$context['managetext'] = $this->managetext;
if (is_null($default)) {
$defaultinfo = null;
} if (!empty($defaults)) {
$defaultinfo = implode(', ', $defaults);
} else {
$defaultinfo = get_string('none');
}
$element = $OUTPUT->render_from_template($template, $context);
return format_admin_setting($this, $this->visiblename, $element, $this->description, true, '', $defaultinfo, $query);
}
}
+195
View File
@@ -0,0 +1,195 @@
<?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/>.
/**
* File size admin setting.
*
* @package core_admin
* @copyright 2019 Shamim Rezaie <shamim@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace core_admin\local\settings;
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir . '/adminlib.php');
/**
* An admin setting to support entering and displaying of file sizes in Bytes, KB, MB or GB.
*
* @copyright 2019 Shamim Rezaie <shamim@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class filesize extends \admin_setting {
/** @var int The byte unit. Number of bytes in a byte */
const UNIT_B = 1;
/** @var int The kilobyte unit (number of bytes in a kilobyte) */
const UNIT_KB = 1024;
/** @var int The megabyte unit (number of bytes in a megabyte) */
const UNIT_MB = 1048576;
/** @var int The gigabyte unit (number of bytes in a gigabyte) */
const UNIT_GB = 1073741824;
/** @var int default size unit */
protected $defaultunit;
/**
* Constructor
*
* @param string $name unique ascii name, either 'mysetting' for settings that in config,
* or 'myplugin/mysetting' for ones in config_plugins.
* @param string $visiblename localised name
* @param string $description localised long description
* @param int|null $defaultvalue Value of the settings in bytes
* @param int|null $defaultunit GB, MB, etc. (in bytes)
*/
public function __construct(string $name, string $visiblename, string $description,
int $defaultvalue = null, int $defaultunit = null) {
$defaultsetting = self::parse_bytes($defaultvalue);
if ($defaultunit && array_key_exists($defaultunit, self::get_units())) {
$this->defaultunit = $defaultunit;
} else {
$this->defaultunit = self::UNIT_MB;
}
parent::__construct($name, $visiblename, $description, $defaultsetting);
}
/**
* Returns selectable units.
*
* @return array
*/
protected static function get_units(): array {
return [
self::UNIT_GB => get_string('sizegb'),
self::UNIT_MB => get_string('sizemb'),
self::UNIT_KB => get_string('sizekb'),
self::UNIT_B => get_string('sizeb'),
];
}
/**
* Converts bytes to some more user friendly string.
*
* @param int $bytes The number of bytes we want to convert from
* @return string
*/
protected static function get_size_text(int $bytes): string {
if (empty($bytes)) {
return get_string('none');
}
return display_size($bytes);
}
/**
* Finds suitable units for given file size.
*
* @param int $bytes The number of bytes
* @return array Parsed file size in the format of ['v' => value, 'u' => unit]
*/
protected static function parse_bytes(int $bytes): array {
foreach (self::get_units() as $unit => $unused) {
if ($bytes % $unit === 0) {
return ['v' => (int)($bytes / $unit), 'u' => $unit];
}
}
return ['v' => (int)$bytes, 'u' => self::UNIT_B];
}
/**
* Get the selected file size as array.
*
* @return array|null An array containing 'v' => xx, 'u' => xx, or null if not set
*/
public function get_setting(): ?array {
$bytes = $this->config_read($this->name);
if (is_null($bytes)) {
return null;
}
return self::parse_bytes($bytes);
}
/**
* Store the file size as bytes.
*
* @param array $data Must be form 'h' => xx, 'm' => xx
* @return string The error string if any
*/
public function write_setting($data): string {
if (!is_array($data)) {
return '';
}
if (!is_numeric($data['v']) || $data['v'] < 0) {
return get_string('errorsetting', 'admin');
}
$bytes = $data['v'] * $data['u'];
$result = $this->config_write($this->name, $bytes);
return ($result ? '' : get_string('errorsetting', 'admin'));
}
/**
* Returns file size text+select fields.
*
* @param array $data The current setting value. Must be form 'v' => xx, 'u' => xx.
* @param string $query Admin search query to be highlighted.
* @return string File size text+select fields and wrapping div(s).
*/
public function output_html($data, $query = ''): string {
global $OUTPUT;
$default = $this->get_defaultsetting();
if (is_number($default)) {
$defaultinfo = self::get_size_text($default);
} else if (is_array($default)) {
$defaultinfo = self::get_size_text($default['v'] * $default['u']);
} else {
$defaultinfo = null;
}
$inputid = $this->get_id() . 'v';
$units = self::get_units();
$defaultunit = $this->defaultunit;
$context = (object) [
'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,
'name' => $title,
'selected' => ($data['v'] == 0 && $unit == $defaultunit) || $unit == $data['u']
];
}, array_keys($units), $units)
];
$element = $OUTPUT->render_from_template('core_admin/setting_configfilesize', $context);
return format_admin_setting($this, $this->visiblename, $element, $this->description, $inputid, '', $defaultinfo, $query);
}
}
@@ -0,0 +1,74 @@
<?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/>.
/**
* Payment gateway admin setting.
*
* @package core_admin
* @copyright 2020 Shamim Rezaie <shamim@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace core_admin\local\settings;
/**
* Generic class for managing plugins in a table that allows re-ordering and enable/disable of each plugin.
*/
class manage_payment_gateway_plugins extends \admin_setting_manage_plugins {
/**
* Get the admin settings section title (use get_string).
*
* @return string
*/
public function get_section_title() {
return get_string('type_paygw_plural', 'plugin');
}
/**
* Get the type of plugin to manage.
*
* @return string
*/
public function get_plugin_type() {
return 'paygw';
}
/**
* Get the name of the second column.
*
* @return string
*/
public function get_info_column_name() {
return get_string('supportedcurrencies', 'core_payment');
}
/**
* Get the type of plugin to manage.
*
* @param plugininfo The plugin info class.
* @return string
*/
public function get_info_column($plugininfo) {
$codes = $plugininfo->get_supported_currencies();
$currencies = [];
foreach ($codes as $c) {
$currencies[$c] = new \lang_string($c, 'core_currencies');
}
return implode(get_string('listsep', 'langconfig') . ' ', $currencies);
}
}
+292
View File
@@ -0,0 +1,292 @@
<?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/>.
/**
* Task log table.
*
* @package core_admin
* @copyright 2018 Andrew Nicols <andrew@nicols.co.uk>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace core_admin;
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir . '/tablelib.php');
/**
* Table to display list of task logs.
*
* @copyright 2018 Andrew Nicols <andrew@nicols.co.uk>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class task_log_table extends \table_sql {
/**
* Constructor for the task_log table.
*
* @param string $filter
* @param int $resultfilter
*/
public function __construct(string $filter = '', int $resultfilter = null) {
global $DB;
if (-1 === $resultfilter) {
$resultfilter = null;
}
parent::__construct('tasklogs');
$columnheaders = [
'classname' => get_string('name'),
'type' => get_string('tasktype', 'admin'),
'userid' => get_string('user', 'admin'),
'timestart' => get_string('task_starttime', 'admin'),
'duration' => get_string('task_duration', 'admin'),
'hostname' => get_string('hostname', 'tool_task'),
'pid' => get_string('pid', 'tool_task'),
'db' => get_string('task_dbstats', 'admin'),
'result' => get_string('task_result', 'admin'),
'actions' => '',
];
$this->define_columns(array_keys($columnheaders));
$this->define_headers(array_values($columnheaders));
// The name column is a header.
$this->define_header_column('classname');
// This table is not collapsible.
$this->collapsible(false);
// The actions class should not wrap. Use the BS text utility class.
$this->column_class('actions', 'text-nowrap');
// Allow pagination.
$this->pageable(true);
// Allow sorting. Default to sort by timestarted DESC.
$this->sortable(true, 'timestart', SORT_DESC);
// Add filtering.
$where = [];
$params = [];
if (!empty($filter)) {
$orwhere = [];
$filter = str_replace('\\', '\\\\', $filter);
// Check the class name.
$orwhere[] = $DB->sql_like('classname', ':classfilter', false, false);
$params['classfilter'] = '%' . $DB->sql_like_escape($filter) . '%';
$orwhere[] = $DB->sql_like('output', ':outputfilter', false, false);
$params['outputfilter'] = '%' . $DB->sql_like_escape($filter) . '%';
$where[] = "(" . implode(' OR ', $orwhere) . ")";
}
if (null !== $resultfilter) {
$where[] = 'tl.result = :result';
$params['result'] = $resultfilter;
}
$where = implode(' AND ', $where);
$this->set_sql('', '', $where, $params);
}
/**
* Query the db. Store results in the table object for use by build_table.
*
* @param int $pagesize size of page for paginated displayed table.
* @param bool $useinitialsbar do you want to use the initials bar. Bar
* will only be used if there is a fullname column defined for the table.
*/
public function query_db($pagesize, $useinitialsbar = true) {
global $DB;
// Fetch the attempts.
$sort = $this->get_sql_sort();
if ($sort) {
$sort = "ORDER BY $sort";
}
$extrafields = get_extra_user_fields(\context_system::instance());
$userfields = \user_picture::fields('u', $extrafields, 'userid2', 'user');
$where = '';
if (!empty($this->sql->where)) {
$where = "WHERE {$this->sql->where}";
}
$sql = "SELECT
tl.id, tl.type, tl.component, tl.classname, tl.userid, tl.timestart, tl.timeend,
tl.hostname, tl.pid,
tl.dbreads, tl.dbwrites, tl.result,
tl.dbreads + tl.dbwrites AS db,
tl.timeend - tl.timestart AS duration,
{$userfields}
FROM {task_log} tl
LEFT JOIN {user} u ON u.id = tl.userid
{$where}
{$sort}";
$this->pagesize($pagesize, $DB->count_records_sql("SELECT COUNT('x') FROM {task_log} tl {$where}", $this->sql->params));
if (!$this->is_downloading()) {
$this->rawdata = $DB->get_records_sql($sql, $this->sql->params, $this->get_page_start(), $this->get_page_size());
} else {
$this->rawdata = $DB->get_records_sql($sql, $this->sql->params);
}
}
/**
* Format the name cell.
*
* @param \stdClass $row
* @return string
*/
public function col_classname($row) : string {
$output = '';
if (class_exists($row->classname)) {
$task = new $row->classname;
if ($task instanceof \core\task\scheduled_task) {
$output = $task->get_name();
}
}
$output .= \html_writer::tag('div', "\\{$row->classname}", [
'class' => 'task-class',
]);
return $output;
}
/**
* Format the type cell.
*
* @param \stdClass $row
* @return string
*/
public function col_type($row) : string {
if (\core\task\database_logger::TYPE_SCHEDULED == $row->type) {
return get_string('task_type:scheduled', 'admin');
} else {
return get_string('task_type:adhoc', 'admin');
}
}
/**
* Format the timestart cell.
*
* @param \stdClass $row
* @return string
*/
public function col_result($row) : string {
if ($row->result) {
return get_string('task_result:failed', 'admin');
} else {
return get_string('success');
}
}
/**
* Format the timestart cell.
*
* @param \stdClass $row
* @return string
*/
public function col_timestart($row) : string {
return userdate($row->timestart, get_string('strftimedatetimeshort', 'langconfig'));
}
/**
* Format the duration cell.
*
* @param \stdClass $row
* @return string
*/
public function col_duration($row) : string {
$duration = round($row->timeend - $row->timestart, 2);
if (empty($duration)) {
// The format_time function returns 'now' when the difference is exactly 0.
// Note: format_time performs concatenation in exactly this fashion so we should do this for consistency.
return '0 ' . get_string('secs', 'moodle');
}
return format_time($duration);
}
/**
* Format the DB details cell.
*
* @param \stdClass $row
* @return string
*/
public function col_db($row) : string {
$output = '';
$output .= \html_writer::div(get_string('task_stats:dbreads', 'admin', $row->dbreads));
$output .= \html_writer::div(get_string('task_stats:dbwrites', 'admin', $row->dbwrites));
return $output;
}
/**
* Format the actions cell.
*
* @param \stdClass $row
* @return string
*/
public function col_actions($row) : string {
global $OUTPUT;
$actions = [];
$url = new \moodle_url('/admin/tasklogs.php', ['logid' => $row->id]);
// Quick view.
$actions[] = $OUTPUT->action_icon(
$url,
new \pix_icon('e/search', get_string('view')),
new \popup_action('click', $url)
);
// Download.
$actions[] = $OUTPUT->action_icon(
new \moodle_url($url, ['download' => true]),
new \pix_icon('t/download', get_string('download'))
);
return implode('&nbsp;', $actions);
}
/**
* Format the user cell.
*
* @param \stdClass $row
* @return string
*/
public function col_userid($row) : string {
if (empty($row->userid)) {
return '';
}
$user = (object) [];
username_load_fields_from_object($user, $row, 'user');
return fullname($user);
}
}
+131
View File
@@ -0,0 +1,131 @@
<?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/>.
/**
* Task executor for adhoc tasks.
*
* @package core
* @subpackage cli
* @copyright 2018 Andrew Nicols <andrew@nicols.co.uk>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define('CLI_SCRIPT', true);
require(__DIR__ . '/../../config.php');
require_once("{$CFG->libdir}/clilib.php");
require_once("{$CFG->libdir}/cronlib.php");
list($options, $unrecognized) = cli_get_params(
[
'execute' => false,
'help' => false,
'keep-alive' => 0,
'showsql' => false,
'showdebugging' => false,
'ignorelimits' => false,
'force' => false,
], [
'h' => 'help',
'e' => 'execute',
'k' => 'keep-alive',
'i' => 'ignorelimits',
'f' => 'force',
]
);
if ($unrecognized) {
$unrecognized = implode("\n ", $unrecognized);
cli_error(get_string('cliunknowoption', 'admin', $unrecognized));
}
if ($options['help'] or empty($options['execute'])) {
$help = <<<EOT
Ad hoc cron tasks.
Options:
-h, --help Print out this help
--showsql Show sql queries before they are executed
--showdebugging Show developer level debugging information
-e, --execute Run all queued adhoc tasks
-k, --keep-alive=N Keep this script alive for N seconds and poll for new adhoc tasks
-i --ignorelimits Ignore task_adhoc_concurrency_limit and task_adhoc_max_runtime limits
-f, --force Run even if cron is disabled
Example:
\$sudo -u www-data /usr/bin/php admin/cli/adhoc_task.php --execute
EOT;
echo $help;
die;
}
if ($options['showdebugging']) {
set_debugging(DEBUG_DEVELOPER, true);
}
if ($options['showsql']) {
$DB->set_debug(true);
}
if (CLI_MAINTENANCE) {
echo "CLI maintenance mode active, cron execution suspended.\n";
exit(1);
}
if (moodle_needs_upgrading()) {
echo "Moodle upgrade pending, cron execution suspended.\n";
exit(1);
}
if (empty($options['execute'])) {
exit(0);
}
if (!get_config('core', 'cron_enabled') && !$options['force']) {
mtrace('Cron is disabled. Use --force to override.');
exit(1);
}
if (empty($options['keep-alive'])) {
$options['keep-alive'] = 0;
}
if (!empty($CFG->showcronsql)) {
$DB->set_debug(true);
}
if (!empty($CFG->showcrondebugging)) {
set_debugging(DEBUG_DEVELOPER, true);
}
$checklimits = empty($options['ignorelimits']);
core_php_time_limit::raise();
// Increase memory limit.
raise_memory_limit(MEMORY_EXTRA);
// Emulate normal session - we use admin account by default.
cron_setup_user();
$humantimenow = date('r', time());
$keepalive = (int)$options['keep-alive'];
\core\local\cli\shutdown::script_supports_graceful_exit();
mtrace("Server Time: {$humantimenow}\n");
cron_run_adhoc_tasks(time(), $keepalive, $checklimits);
+7 -2
View File
@@ -83,7 +83,7 @@ Examples:
Stores the given configuration variable in the shell variable, escaped
so that it can be safely used as a shell argument.
# php cfg.php --name=theme --set=clean
# php cfg.php --name=theme --set=classic
Sets the given configuration variable to the given value.
# php cfg.php --name=noemailever --unset
@@ -124,7 +124,12 @@ if ($options['unset'] || $options['set'] !== null) {
cli_error('The configuration variable is hard-set in the config.php, unable to change.', 4);
}
set_config($options['name'], $options['set'], $options['component']);
$new = $options['set'];
$old = get_config($options['component'], $options['name']);
if ($new !== $old) {
set_config($options['name'], $options['set'], $options['component']);
add_to_config_log($options['name'], $old, $new, $options['component']);
}
exit(0);
}
+171
View File
@@ -0,0 +1,171 @@
<?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/>.
/**
* CLI tool for system checks
*
* @package core
* @category check
* @copyright 2020 Brendan Heywood (brendan@catalyst-au.net)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define('CLI_SCRIPT', true);
require(__DIR__ . '/../../config.php');
require_once($CFG->libdir.'/clilib.php');
use core\check\result;
list($options, $unrecognized) = cli_get_params([
'help' => false,
'filter' => '',
'type' => 'status',
'verbose' => false,
], [
'h' => 'help',
'f' => 'filter',
'v' => 'verbose',
't' => 'type',
]);
if ($unrecognized) {
$unrecognized = implode("\n ", $unrecognized);
cli_error(get_string('cliunknowoption', 'admin', $unrecognized));
}
$checks = \core\check\manager::get_checks($options['type']);
$types = join(', ', \core\check\manager::TYPES);
$help = "Run Moodle system checks
Options:
-h, --help Print out this help
-f, --filter Filter to a subset of checks
-t, --type Which set of checks? Defaults to 'status'
One of $types
-v, --verbose Show details of all checks, not just failed checks
Example:
sudo -u www-data php admin/cli/checks.php
sudo -u www-data php admin/cli/checks.php -v
sudo -u www-data php admin/cli/checks.php -v --filter=environment
";
if ($options['help']) {
echo $help;
die();
}
$filter = $options['filter'];
if ($filter) {
$checks = array_filter($checks, function($check, $key) use ($filter) {
$ref = $check->get_ref();
return (strpos($ref, $filter) !== false);
}, 1);
}
// These shell exit codes and labels align with the NRPE standard.
$exitcodes = [
result::NA => 0,
result::OK => 0,
result::INFO => 0,
result::UNKNOWN => 3,
result::WARNING => 1,
result::ERROR => 2,
result::CRITICAL => 2,
];
$exitlabel = [
result::NA => 'OK',
result::OK => 'OK',
result::INFO => 'OK',
result::UNKNOWN => 'UNKNOWN',
result::WARNING => 'WARNING',
result::ERROR => 'CRITICAL',
result::CRITICAL => 'CRITICAL',
];
$format = "% 10s| % -60s\n";
$spacer = "----------+--------------------------------------------------------------------\n";
$prefix = ' |';
$output = '';
$header = $exitlabel[result::OK] . ': ' . get_string('checksok', '', $options['type']) . "\n";
$exitcode = $exitcodes[result::OK];
foreach ($checks as $check) {
$ref = $check->get_ref();
$result = $check->get_result();
$status = $result->get_status();
$checkexitcode = $exitcodes[$status];
// Summary is treated as html.
$summary = $result->get_summary();
$summary = html_to_text($summary, 60, false);
if ($checkexitcode > $exitcode) {
$exitcode = $checkexitcode;
$header = $exitlabel[$status] . ': ' . $check->get_name() . " (" . $check->get_ref() . ")\n";
}
if (empty($messages[$status])) {
$messages[$status] = $result;
}
$len = strlen(get_string('status' . $status));
if ($options['verbose'] ||
$status == result::WARNING ||
$status == result::CRITICAL ||
$status == result::ERROR) {
$output .= sprintf(
$format,
$OUTPUT->check_result($result),
sprintf('%s (%s)', $check->get_name(), $ref)
);
$summary = str_replace("\n", "\n" . $prefix . ' ', $summary);
$output .= sprintf( $format, '', ' ' . $summary);
if ($options['verbose']) {
$actionlink = $check->get_action_link();
if ($actionlink) {
$output .= sprintf( $format, '', ' ' . $actionlink->url);
}
$output .= sprintf( $format, '', '');
}
}
}
// Print NRPE header.
print $header;
// Only show the table header if there is anything to show.
if ($output) {
print sprintf($format,
get_string('status'). ' ',
get_string('check')
) . $spacer;
print $output;
}
// NRPE shell exit code.
exit($exitcode);
+120 -3
View File
@@ -35,8 +35,25 @@ require_once($CFG->libdir.'/clilib.php'); // cli only functions
require_once($CFG->libdir.'/cronlib.php');
// now get cli options
list($options, $unrecognized) = cli_get_params(array('help'=>false),
array('h'=>'help'));
list($options, $unrecognized) = cli_get_params(
[
'help' => false,
'stop' => false,
'list' => false,
'force' => false,
'enable' => false,
'disable' => false,
'disable-wait' => false,
], [
'h' => 'help',
's' => 'stop',
'l' => 'list',
'f' => 'force',
'e' => 'enable',
'd' => 'disable',
'w' => 'disable-wait',
]
);
if ($unrecognized) {
$unrecognized = implode("\n ", $unrecognized);
@@ -48,7 +65,13 @@ if ($options['help']) {
"Execute periodic cron actions.
Options:
-h, --help Print out this help
-h, --help Print out this help
-s, --stop Notify all other running cron processes to stop after the current task
-l, --list Show the list of currently running tasks and how long they have been running
-f, --force Execute task even if cron is disabled
-e, --enable Enable cron
-d, --disable Disable cron
-w, --disable-wait=600 Disable cron and wait until all tasks finished or fail after N seconds (optional param)
Example:
\$sudo -u www-data /usr/bin/php admin/cli/cron.php
@@ -58,4 +81,98 @@ Example:
die;
}
if ($options['stop']) {
// By clearing the caches this signals to other running processes
// to exit after finishing the current task.
\core\task\manager::clear_static_caches();
die;
}
if ($options['enable']) {
set_config('cron_enabled', 1);
mtrace('Cron has been enabled for the site.');
exit(0);
}
if ($options['disable']) {
set_config('cron_enabled', 0);
\core\task\manager::clear_static_caches();
mtrace('Cron has been disabled for the site.');
exit(0);
}
if ($options['list']) {
$tasks = \core\task\manager::get_running_tasks();
mtrace('The list of currently running tasks:');
$format = "%7s %-12s %-9s %-20s %-52s\n";
printf ($format,
'PID',
'HOST',
'TYPE',
'TIME',
'CLASSNAME'
);
foreach ($tasks as $task) {
printf ($format,
$task->pid,
substr($task->hostname, 0, 12),
$task->type,
format_time(time() - $task->timestarted),
substr($task->classname, 0, 52)
);
}
exit(0);
}
if ($wait = $options['disable-wait']) {
$started = time();
if (true === $wait) {
// Default waiting time.
$waitsec = 600;
} else {
$waitsec = $wait;
$wait = true;
}
set_config('cron_enabled', 0);
\core\task\manager::clear_static_caches();
mtrace('Cron has been disabled for the site.');
mtrace('Allocating '. format_time($waitsec) . ' for the tasks to finish.');
$lastcount = 0;
while ($wait) {
$tasks = \core\task\manager::get_running_tasks();
if (count($tasks) == 0) {
mtrace('');
mtrace('All scheduled and adhoc tasks finished.');
exit(0);
}
if (time() - $started >= $waitsec) {
mtrace('');
mtrace('Wait time ('. format_time($waitsec) . ') elapsed, but ' . count($tasks) . ' task(s) still running.');
mtrace('Exiting with code 1.');
exit(1);
}
if (count($tasks) !== $lastcount) {
mtrace('');
mtrace(count($tasks) . " tasks currently running.", '');
$lastcount = count($tasks);
} else {
mtrace('.', '');
}
sleep(1);
}
}
if (!get_config('core', 'cron_enabled') && !$options['force']) {
mtrace('Cron is disabled. Use --force to override.');
exit(1);
}
\core\local\cli\shutdown::script_supports_graceful_exit();
cron_run();
+138
View File
@@ -0,0 +1,138 @@
<?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/>.
/**
* Fix orphaned calendar events that were broken by MDL-67494.
*
* This script will look for all the calendar events which userids
* where broken by a wrong upgrade step, affecting to Moodle 3.9.5
* and up.
*
* It performs checks to both:
* a) Detect if the site was affected (ran the wrong upgrade step).
* b) Look for orphaned calendar events, categorising them as:
* - standard: site / category / course / group / user events
* - subscription: events created via subscriptions.
* - action: normal action events, created to show common important dates.
* - override: user and group override events, particular, that some activities support.
* - custom: other events, not being any of the above, common or particular.
* By specifying it (--fix) try to recover as many broken events (missing userid) as
* possible. Standard, subscription, action, override events in core are fully supported but
* override or custom events should be fixed by each plugin as far as there isn't any standard
* API (plugin-wise) to launch a rebuild of the calendar events.
*
* @package core
* @copyright 2021 onwards Simey Lameze <simey@moodle.com>
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define('CLI_SCRIPT', true);
require_once(__DIR__ . '/../../config.php');
require_once($CFG->libdir . "/clilib.php");
require_once($CFG->libdir . '/db/upgradelib.php');
// Supported options.
$long = ['fix' => false, 'help' => false];
$short = ['f' => 'fix', 'h' => 'help'];
// CLI options.
[$options, $unrecognized] = cli_get_params($long, $short);
if ($unrecognized) {
$unrecognized = implode("\n ", $unrecognized);
cli_error(get_string('cliunknowoption', 'admin', $unrecognized));
}
if ($options['help']) {
$help = <<<EOT
Fix orphaned calendar events.
This script detects calendar events that have had their
userid lost. By default it will perform various checks
and report them, showing the site status in an easy way.
Also, optionally (--fix), it wil try to recover as many
lost userids as possible from different sources. Note that
this script aims to process well-know events in core,
leaving custom events in 3rd part plugins mostly unmodified
because there isn't any consistent way to regenerate them.
For more details: https://tracker.moodle.org/browse/MDL-71156
Options:
-h, --help Print out this help.
-f, --fix Fix the orphaned calendar events in the DB.
If not specified only check and report problems to STDERR.
Usage:
- Only report: \$ sudo -u www-data /usr/bin/php admin/cli/fix_orphaned_calendar_events.php
- Report and fix: \$ sudo -u www-data /usr/bin/php admin/cli/fix_orphaned_calendar_events.php -f
EOT;
cli_writeln($help);
die;
}
// Check various usual pre-requisites.
if (empty($CFG->version)) {
cli_error('Database is not yet installed.');
}
$admin = get_admin();
if (!$admin) {
cli_error('Error: No admin account was found.');
}
if (moodle_needs_upgrading()) {
cli_error('Moodle upgrade pending, script execution suspended.');
}
// Do everything as admin by default.
\core\session\manager::set_user($admin);
// Report current site status.
cli_heading('Checking the site status');
$needsfix = upgrade_calendar_site_status();
// Report current calendar events status.
cli_heading('Checking the calendar events status');
$info = upgrade_calendar_events_status();
$hasbadevents = $info['total']->bad > 0 || $info['total']->bad != $info['other']->bad;
$needsfix = $needsfix || $hasbadevents;
// If, selected, fix as many calendar events as possible.
if ($options['fix']) {
// If the report has told us that the fix was not needed... ask for confirmation!
if (!$needsfix) {
cli_writeln("This site DOES NOT NEED to run the calendar events fix.");
$input = cli_input('Are you completely sure that you want to run the fix? (y/N)', 'N', ['y', 'Y', 'n', 'N']);
if (strtolower($input) != 'y') {
exit(0);
}
cli_writeln("");
}
cli_heading('Fixing as many as possible calendar events');
upgrade_calendar_events_fix_remaining($info);
// Report current (after fix) calendar events status.
cli_heading('Checking the calendar events status (after fix)');
upgrade_calendar_events_status();
} else if ($needsfix) {
// Fix option was not provided but problem events have been found. Notify the user and provide info how to fix these events.
cli_writeln("This site NEEDS to run the calendar events fix!");
cli_writeln("To fix the calendar events, re-run this script with the --fix option.");
}
+199 -181
View File
@@ -215,6 +215,7 @@ define('SITEID', 1);
//Database types
$databases = array('mysqli' => moodle_database::get_driver_instance('mysqli', 'native'),
'auroramysql' => moodle_database::get_driver_instance('auroramysql', 'native'),
'mariadb'=> moodle_database::get_driver_instance('mariadb', 'native'),
'pgsql' => moodle_database::get_driver_instance('pgsql', 'native'),
'oci' => moodle_database::get_driver_instance('oci', 'native'),
@@ -266,6 +267,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);
@@ -391,7 +393,6 @@ if ($interactive) {
$CFG->wwwroot = $wwwroot;
$CFG->httpswwwroot = $CFG->wwwroot;
//We need dataroot before lang download
$CFG->dataroot = $options['dataroot'];
if ($interactive) {
@@ -514,100 +515,105 @@ if ($interactive) {
$database = $databases[$CFG->dbtype];
// ask for db host
if ($interactive) {
cli_separator();
cli_heading(get_string('databasehost', 'install'));
if ($options['dbhost'] !== '') {
$prompt = get_string('clitypevaluedefault', 'admin', $options['dbhost']);
// We cannot do any validation until all DB connection data is provided.
$hintdatabase = '';
do {
echo $hintdatabase;
// Ask for db host.
if ($interactive) {
cli_separator();
cli_heading(get_string('databasehost', 'install'));
if ($options['dbhost'] !== '') {
$prompt = get_string('clitypevaluedefault', 'admin', $options['dbhost']);
} else {
$prompt = get_string('clitypevalue', 'admin');
}
$CFG->dbhost = cli_input($prompt, $options['dbhost']);
} else {
$prompt = get_string('clitypevalue', 'admin');
$CFG->dbhost = $options['dbhost'];
}
$CFG->dbhost = cli_input($prompt, $options['dbhost']);
} else {
$CFG->dbhost = $options['dbhost'];
}
// Ask for db name.
if ($interactive) {
cli_separator();
cli_heading(get_string('databasename', 'install'));
if ($options['dbname'] !== '') {
$prompt = get_string('clitypevaluedefault', 'admin', $options['dbname']);
} else {
$prompt = get_string('clitypevalue', 'admin');
}
$CFG->dbname = cli_input($prompt, $options['dbname']);
// ask for db name
if ($interactive) {
cli_separator();
cli_heading(get_string('databasename', 'install'));
if ($options['dbname'] !== '') {
$prompt = get_string('clitypevaluedefault', 'admin', $options['dbname']);
} else {
$prompt = get_string('clitypevalue', 'admin');
$CFG->dbname = $options['dbname'];
}
$CFG->dbname = cli_input($prompt, $options['dbname']);
} else {
$CFG->dbname = $options['dbname'];
}
// Ask for db prefix.
if ($interactive) {
cli_separator();
cli_heading(get_string('dbprefix', 'install'));
//TODO: solve somehow the prefix trouble for oci.
if ($options['prefix'] !== '') {
$prompt = get_string('clitypevaluedefault', 'admin', $options['prefix']);
} else {
$prompt = get_string('clitypevalue', 'admin');
}
$CFG->prefix = cli_input($prompt, $options['prefix']);
// ask for db prefix
if ($interactive) {
cli_separator();
cli_heading(get_string('dbprefix', 'install'));
//TODO: solve somehow the prefix trouble for oci
if ($options['prefix'] !== '') {
$prompt = get_string('clitypevaluedefault', 'admin', $options['prefix']);
} else {
$prompt = get_string('clitypevalue', 'admin');
$CFG->prefix = $options['prefix'];
}
$CFG->prefix = cli_input($prompt, $options['prefix']);
} else {
$CFG->prefix = $options['prefix'];
}
// Ask for db port.
if ($interactive) {
cli_separator();
cli_heading(get_string('databaseport', 'install'));
$prompt = get_string('clitypevaluedefault', 'admin', $options['dbport']);
$CFG->dboptions['dbport'] = (int) cli_input($prompt, $options['dbport']);
// ask for db port
if ($interactive) {
cli_separator();
cli_heading(get_string('databaseport', 'install'));
$prompt = get_string('clitypevaluedefault', 'admin', $options['dbport']);
$CFG->dboptions['dbport'] = (int)cli_input($prompt, $options['dbport']);
} else {
$CFG->dboptions['dbport'] = (int)$options['dbport'];
}
if ($CFG->dboptions['dbport'] <= 0) {
$CFG->dboptions['dbport'] = '';
}
// ask for db socket
if ($CFG->ostype === 'WINDOWS') {
$CFG->dboptions['dbsocket'] = '';
} else if ($interactive and empty($CFG->dboptions['dbport'])) {
cli_separator();
cli_heading(get_string('databasesocket', 'install'));
$prompt = get_string('clitypevaluedefault', 'admin', $options['dbsocket']);
$CFG->dboptions['dbsocket'] = cli_input($prompt, $options['dbsocket']);
} else {
$CFG->dboptions['dbsocket'] = $options['dbsocket'];
}
// ask for db user
if ($interactive) {
cli_separator();
cli_heading(get_string('databaseuser', 'install'));
if ($options['dbuser'] !== '') {
$prompt = get_string('clitypevaluedefault', 'admin', $options['dbuser']);
} else {
$prompt = get_string('clitypevalue', 'admin');
$CFG->dboptions['dbport'] = (int) $options['dbport'];
}
if ($CFG->dboptions['dbport'] <= 0) {
$CFG->dboptions['dbport'] = '';
}
$CFG->dbuser = cli_input($prompt, $options['dbuser']);
} else {
$CFG->dbuser = $options['dbuser'];
}
// Ask for db socket.
if ($CFG->ostype === 'WINDOWS') {
$CFG->dboptions['dbsocket'] = '';
} else if ($interactive and empty($CFG->dboptions['dbport'])) {
cli_separator();
cli_heading(get_string('databasesocket', 'install'));
$prompt = get_string('clitypevaluedefault', 'admin', $options['dbsocket']);
$CFG->dboptions['dbsocket'] = cli_input($prompt, $options['dbsocket']);
} else {
$CFG->dboptions['dbsocket'] = $options['dbsocket'];
}
// Ask for db user.
if ($interactive) {
cli_separator();
cli_heading(get_string('databaseuser', 'install'));
if ($options['dbuser'] !== '') {
$prompt = get_string('clitypevaluedefault', 'admin', $options['dbuser']);
} else {
$prompt = get_string('clitypevalue', 'admin');
}
$CFG->dbuser = cli_input($prompt, $options['dbuser']);
} else {
$CFG->dbuser = $options['dbuser'];
}
// Ask for db password.
if ($interactive) {
cli_separator();
cli_heading(get_string('databasepass', 'install'));
// ask for db password
if ($interactive) {
cli_separator();
cli_heading(get_string('databasepass', 'install'));
do {
if ($options['dbpass'] !== '') {
$prompt = get_string('clitypevaluedefault', 'admin', $options['dbpass']);
} else {
@@ -615,110 +621,118 @@ if ($interactive) {
}
$CFG->dbpass = cli_input($prompt, $options['dbpass']);
if (function_exists('distro_pre_create_db')) { // Hook for distros needing to do something before DB creation
$distro = distro_pre_create_db($database, $CFG->dbhost, $CFG->dbuser, $CFG->dbpass, $CFG->dbname, $CFG->prefix, array('dbpersist'=>0, 'dbport'=>$CFG->dboptions['dbport'], 'dbsocket'=>$CFG->dboptions['dbsocket']), $distro);
if (function_exists('distro_pre_create_db')) { // Hook for distros needing to do something before DB creation.
$distro = distro_pre_create_db($database, $CFG->dbhost, $CFG->dbuser, $CFG->dbpass, $CFG->dbname, $CFG->prefix,
array('dbpersist' => 0, 'dbport' => $CFG->dboptions['dbport'], 'dbsocket' => $CFG->dboptions['dbsocket']),
$distro);
}
$hint_database = install_db_validate($database, $CFG->dbhost, $CFG->dbuser, $CFG->dbpass, $CFG->dbname, $CFG->prefix, array('dbpersist'=>0, 'dbport'=>$CFG->dboptions['dbport'], 'dbsocket'=>$CFG->dboptions['dbsocket']));
} while ($hint_database !== '');
$hintdatabase = install_db_validate($database, $CFG->dbhost, $CFG->dbuser, $CFG->dbpass, $CFG->dbname, $CFG->prefix,
array('dbpersist' => 0, 'dbport' => $CFG->dboptions['dbport'], 'dbsocket' => $CFG->dboptions['dbsocket']));
} else {
$CFG->dbpass = $options['dbpass'];
$hint_database = install_db_validate($database, $CFG->dbhost, $CFG->dbuser, $CFG->dbpass, $CFG->dbname, $CFG->prefix, array('dbpersist'=>0, 'dbport'=>$CFG->dboptions['dbport'], 'dbsocket'=>$CFG->dboptions['dbsocket']));
if ($hint_database !== '') {
cli_error(get_string('dbconnectionerror', 'install'));
}
}
// ask for fullname
if ($interactive) {
cli_separator();
cli_heading(get_string('fullsitename', 'moodle'));
if ($options['fullname'] !== '') {
$prompt = get_string('clitypevaluedefault', 'admin', $options['fullname']);
} else {
$prompt = get_string('clitypevalue', 'admin');
$CFG->dbpass = $options['dbpass'];
$hintdatabase = install_db_validate($database, $CFG->dbhost, $CFG->dbuser, $CFG->dbpass, $CFG->dbname, $CFG->prefix,
array('dbpersist' => 0, 'dbport' => $CFG->dboptions['dbport'], 'dbsocket' => $CFG->dboptions['dbsocket']));
if ($hintdatabase !== '') {
cli_error(get_string('dbconnectionerror', 'install'));
}
}
} while ($hintdatabase !== '');
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));
}
}
// 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'));
// ask for shortname
if ($interactive) {
cli_separator();
cli_heading(get_string('shortsitename', 'moodle'));
if ($options['fullname'] !== '') {
$prompt = get_string('clitypevaluedefault', 'admin', $options['fullname']);
} else {
$prompt = get_string('clitypevalue', 'admin');
}
if ($options['shortname'] !== '') {
$prompt = get_string('clitypevaluedefault', 'admin', $options['shortname']);
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['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 shortname.
if ($interactive) {
cli_separator();
cli_heading(get_string('shortsitename', 'moodle'));
// 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']);
if ($options['shortname'] !== '') {
$prompt = get_string('clitypevaluedefault', 'admin', $options['shortname']);
} else {
$prompt = get_string('clitypevalue', 'admin');
}
do {
$options['shortname'] = cli_input($prompt, $options['shortname']);
} while (empty($options['shortname']));
} else {
if (empty($options['shortname'])) {
$a = (object)['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']);
} 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);
}
// 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();
@@ -737,22 +751,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'));
}
}
@@ -801,7 +819,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.
+6 -6
View File
@@ -82,11 +82,6 @@ require_once($CFG->libdir.'/installlib.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/componentlib.class.php');
// make sure no tables are installed yet
if ($DB->get_tables() ) {
cli_error(get_string('clitablesexist', 'install'));
}
$CFG->early_install_lang = true;
get_string_manager(true);
@@ -109,12 +104,17 @@ list($options, $unrecognized) = cli_get_params(
)
);
// We show help text even if tables are installed.
if ($options['help']) {
echo $help;
die;
}
// Make sure no tables are installed yet.
if ($DB->get_tables() ) {
cli_error(get_string('clitablesexist', 'install'));
}
if (!$options['agree-license']) {
cli_error('You have to agree to the license. --help prints out the help'); // TODO: localize
}
+8 -8
View File
@@ -119,7 +119,7 @@ if (!empty($options['collation'])) {
if ($dbcollation->value !== $collation || $dbcharset->value !== $charset) {
// Try to convert the DB.
echo "Converting database to '$collation' for $CFG->wwwroot:\n";
$sql = "ALTER DATABASE $CFG->dbname DEFAULT CHARACTER SET $charset DEFAULT COLLATE = $collation";
$sql = "ALTER DATABASE `$CFG->dbname` DEFAULT CHARACTER SET $charset DEFAULT COLLATE = $collation";
try {
$DB->change_database_structure($sql);
} catch (exception $e) {
@@ -146,7 +146,7 @@ if (!empty($options['collation'])) {
} else {
try {
$DB->change_database_structure("ALTER TABLE $table->name CONVERT TO CHARACTER SET $charset COLLATE $collation");
$DB->change_database_structure("ALTER TABLE `$table->name` CONVERT TO CHARACTER SET $charset COLLATE $collation");
echo "CONVERTED\n";
$converted++;
} catch (ddl_exception $e) {
@@ -163,7 +163,7 @@ if (!empty($options['collation'])) {
}
}
$sql = "SHOW FULL COLUMNS FROM $table->name WHERE collation IS NOT NULL";
$sql = "SHOW FULL COLUMNS FROM `$table->name` WHERE collation IS NOT NULL";
$rs2 = $DB->get_recordset_sql($sql);
foreach ($rs2 as $column) {
$column = (object)array_change_key_case((array)$column, CASE_LOWER);
@@ -181,7 +181,7 @@ if (!empty($options['collation'])) {
$notnull = ($column->null === 'NO') ? 'NOT NULL' : 'NULL';
$default = (!is_null($column->default) and $column->default !== '') ? "DEFAULT '$column->default'" : '';
// primary, unique and inc are not supported for texts
$sql = "ALTER TABLE $table->name
$sql = "ALTER TABLE `$table->name`
MODIFY COLUMN $column->field $column->type
CHARACTER SET $charset
COLLATE $collation $notnull $default";
@@ -192,11 +192,11 @@ if (!empty($options['collation'])) {
$default = !is_null($column->default) ? "DEFAULT '$column->default'" : '';
if ($rowformat != '') {
$sql = "ALTER TABLE $table->name $rowformat";
$sql = "ALTER TABLE `$table->name` $rowformat";
$DB->change_database_structure($sql);
}
$sql = "ALTER TABLE $table->name
$sql = "ALTER TABLE `$table->name`
MODIFY COLUMN $column->field $column->type
CHARACTER SET $charset
COLLATE $collation $notnull $default";
@@ -315,8 +315,8 @@ function mysql_set_row_format($tablename, $charset, $collation, $engine) {
if ($rs->row_format == 'Compact' || $rs->row_format == 'Redundant') {
$rowformat = $DB->get_row_format_sql($engine, $collation);
// Try to convert to compressed format and then try updating the collation again.
$DB->change_database_structure("ALTER TABLE $tablename $rowformat");
$DB->change_database_structure("ALTER TABLE $tablename CONVERT TO CHARACTER SET $charset COLLATE $collation");
$DB->change_database_structure("ALTER TABLE `$tablename` $rowformat");
$DB->change_database_structure("ALTER TABLE `$tablename` CONVERT TO CHARACTER SET $charset COLLATE $collation");
} else {
// Row format may not be the problem. Can not diagnose problem. Send fail reply.
return false;
+2 -2
View File
@@ -158,7 +158,7 @@ if (!empty($options['info'])) {
}
foreach ($fixtables as $table) {
$DB->change_database_structure("ALTER TABLE {$prefix}$table ROW_FORMAT=Compressed");
$DB->change_database_structure("ALTER TABLE `{$prefix}$table` ROW_FORMAT=Compressed");
echo str_pad($prefix . $table, 32, ' ', STR_PAD_RIGHT) . " ... Compressed\n";
}
@@ -189,7 +189,7 @@ if (!empty($options['info'])) {
echo "SET GLOBAL innodb_file_per_table=1;\n";
echo "SET GLOBAL innodb_file_format=Barracuda;\n";
foreach ($fixtables as $table) {
echo "ALTER TABLE {$prefix}$table ROW_FORMAT=Compressed;\n";
echo "ALTER TABLE `{$prefix}$table` ROW_FORMAT=Compressed;\n";
}
echo "\n";
exit(0);
+1 -1
View File
@@ -94,7 +94,7 @@ if ($options['password'] == '' ) {
$errmsg = '';//prevent eclipse warning
if (!$options['ignore-password-policy'] ) {
if (!check_password_policy($password, $errmsg)) {
if (!check_password_policy($password, $errmsg, $user)) {
cli_error(html_to_text($errmsg, 0));
}
}
+109
View File
@@ -0,0 +1,109 @@
<?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/>.
/**
* This script allows to restore a course from CLI.
*
* @package core
* @subpackage cli
* @copyright 2020 Catalyst IT
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define('CLI_SCRIPT', 1);
require(__DIR__ . '/../../config.php');
require_once($CFG->libdir . '/clilib.php');
require_once($CFG->dirroot . "/backup/util/includes/restore_includes.php");
list($options, $unrecognized) = cli_get_params([
'file' => '',
'categoryid' => '',
'showdebugging' => false,
'help' => false,
], [
'f' => 'file',
'c' => 'categoryid',
's' => 'showdebugging',
'h' => 'help',
]);
if ($unrecognized) {
$unrecognized = implode("\n ", $unrecognized);
cli_error(get_string('cliunknowoption', 'admin', $unrecognized));
}
if ($options['help'] || !($options['file']) || !($options['categoryid'])) {
$help = <<<EOL
Restore backup into provided category.
Options:
-f, --file=STRING Path to the backup file.
-c, --categoryid=INT ID of the category to restore too.
-s, --showdebugging Show developer level debugging information
-h, --help Print out this help.
Example:
\$sudo -u www-data /usr/bin/php admin/cli/restore_backup.php --file=/path/to/backup/file.mbz --categoryid=1\n
EOL;
echo $help;
exit(0);
}
if ($options['showdebugging']) {
set_debugging(DEBUG_DEVELOPER, true);
}
if (!$admin = get_admin()) {
print_error('noadmins');
}
if (!file_exists($options['file'])) {
print_error('filenotfound');
}
if (!$category = $DB->get_record('course_categories', ['id' => $options['categoryid']], 'id')) {
print_error('invalidcategoryid');
}
$backupdir = "restore_" . uniqid();
$path = $CFG->tempdir . DIRECTORY_SEPARATOR . "backup" . DIRECTORY_SEPARATOR . $backupdir;
cli_heading(get_string('extractingbackupfileto', 'backup', $path));
$fp = get_file_packer('application/vnd.moodle.backup');
$fp->extract_to_pathname($options['file'], $path);
cli_heading(get_string('preprocessingbackupfile'));
try {
list($fullname, $shortname) = restore_dbops::calculate_course_names(0, get_string('restoringcourse', 'backup'),
get_string('restoringcourseshortname', 'backup'));
$courseid = restore_dbops::create_new_course($fullname, $shortname, $category->id);
$rc = new restore_controller($backupdir, $courseid, backup::INTERACTIVE_NO,
backup::MODE_GENERAL, $admin->id, backup::TARGET_NEW_COURSE);
$rc->execute_precheck();
$rc->execute_plan();
$rc->destroy();
} catch (Exception $e) {
cli_heading(get_string('cleaningtempdata'));
fulldelete($path);
print_error('generalexceptionmessage', 'error', '', $e->getMessage());
}
cli_heading(get_string('restoredcourseid', 'backup', $courseid));
exit(0);
+168
View File
@@ -0,0 +1,168 @@
<?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/>.
/**
* CLI task execution.
*
* @package core
* @subpackage cli
* @copyright 2014 Petr Skoda
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define('CLI_SCRIPT', true);
require(__DIR__ . '/../../config.php');
require_once("$CFG->libdir/clilib.php");
require_once("$CFG->libdir/cronlib.php");
list($options, $unrecognized) = cli_get_params(
[
'help' => false,
'list' => false,
'execute' => false,
'showsql' => false,
'showdebugging' => false,
'force' => false,
], [
'h' => 'help',
'f' => 'force',
]
);
if ($unrecognized) {
$unrecognized = implode("\n ", $unrecognized);
cli_error(get_string('cliunknowoption', 'admin', $unrecognized));
}
if ($options['help'] or (!$options['list'] and !$options['execute'])) {
$help =
"Scheduled cron tasks.
Options:
--execute=\\some\\task Execute scheduled task manually
--list List all scheduled tasks
--showsql Show sql queries before they are executed
--showdebugging Show developer level debugging information
-h, --help Print out this help
-f, --force Execute task even if cron is disabled
Example:
\$sudo -u www-data /usr/bin/php admin/cli/scheduled_task.php --execute=\\core\\task\\session_cleanup_task
";
echo $help;
die;
}
if ($options['showdebugging']) {
set_debugging(DEBUG_DEVELOPER, true);
}
if ($options['showsql']) {
$DB->set_debug(true);
}
if ($options['list']) {
cli_heading("List of scheduled tasks ($CFG->wwwroot)");
$shorttime = get_string('strftimedatetimeshort');
$tasks = \core\task\manager::get_all_scheduled_tasks();
echo str_pad(get_string('scheduledtasks', 'tool_task'), 50, ' ') . ' ' . str_pad(get_string('runpattern', 'tool_task'), 17, ' ')
. ' ' . str_pad(get_string('lastruntime', 'tool_task'), 40, ' ') . get_string('nextruntime', 'tool_task') . "\n";
foreach ($tasks as $task) {
$class = '\\' . get_class($task);
$schedule = $task->get_minute() . ' '
. $task->get_hour() . ' '
. $task->get_day() . ' '
. $task->get_day_of_week() . ' '
. $task->get_month() . ' '
. $task->get_day_of_week();
$nextrun = $task->get_next_run_time();
$lastrun = $task->get_last_run_time();
$plugininfo = core_plugin_manager::instance()->get_plugin_info($task->get_component());
$plugindisabled = $plugininfo && $plugininfo->is_enabled() === false && !$task->get_run_if_component_disabled();
if ($plugindisabled) {
$nextrun = get_string('plugindisabled', 'tool_task');
} else if ($task->get_disabled()) {
$nextrun = get_string('taskdisabled', 'tool_task');
} else if ($nextrun > time()) {
$nextrun = userdate($nextrun);
} else {
$nextrun = get_string('asap', 'tool_task');
}
if ($lastrun) {
$lastrun = userdate($lastrun);
} else {
$lastrun = get_string('never');
}
echo str_pad($class, 50, ' ') . ' ' . str_pad($schedule, 17, ' ') .
' ' . str_pad($lastrun, 40, ' ') . ' ' . $nextrun . "\n";
}
exit(0);
}
if ($execute = $options['execute']) {
if (!$task = \core\task\manager::get_scheduled_task($execute)) {
mtrace("Task '$execute' not found");
exit(1);
}
if (moodle_needs_upgrading()) {
mtrace("Moodle upgrade pending, cannot execute tasks.");
exit(1);
}
if (!get_config('core', 'cron_enabled') && !$options['force']) {
mtrace('Cron is disabled. Use --force to override.');
exit(1);
}
\core\task\manager::scheduled_task_starting($task);
// Increase memory limit.
raise_memory_limit(MEMORY_EXTRA);
// Emulate normal session - we use admin account by default.
cron_setup_user();
// Execute the task.
\core\local\cli\shutdown::script_supports_graceful_exit();
$cronlockfactory = \core\lock\lock_config::get_lock_factory('cron');
if (!$cronlock = $cronlockfactory->get_lock('core_cron', 10)) {
mtrace('Cannot obtain cron lock');
exit(129);
}
if (!$lock = $cronlockfactory->get_lock('\\' . get_class($task), 10)) {
$cronlock->release();
mtrace('Cannot obtain task lock');
exit(130);
}
$task->set_lock($lock);
if (!$task->is_blocking()) {
$cronlock->release();
} else {
$task->set_cron_lock($cronlock);
}
cron_run_inner_scheduled_task($task);
}
+7 -7
View File
@@ -38,17 +38,17 @@ if ($unrecognized) {
}
// If necessary add files that should be ignored - such as in 3rd party plugins.
$blacklist = array();
$ignorelist = array();
$path = $options['path'];
if (!file_exists($path)) {
cli_error("Invalid path $path");
}
if ($options['ie9fix']) {
core_admin_recurse_svgs($path, '', 'core_admin_svgtool_ie9fix', $blacklist);
core_admin_recurse_svgs($path, '', 'core_admin_svgtool_ie9fix', $ignorelist);
} else if ($options['noaspectratio']) {
core_admin_recurse_svgs($path, '', 'core_admin_svgtool_noaspectratio', $blacklist);
core_admin_recurse_svgs($path, '', 'core_admin_svgtool_noaspectratio', $ignorelist);
} else {
$help =
@@ -153,9 +153,9 @@ function core_admin_svgtool_noaspectratio($file) {
* @param string $base
* @param string $sub
* @param string $filecallback
* @param array $blacklist
* @param array $ignorelist List of files to be ignored and skipped.
*/
function core_admin_recurse_svgs($base, $sub, $filecallback, $blacklist) {
function core_admin_recurse_svgs($base, $sub, $filecallback, $ignorelist) {
if (is_dir("$base/$sub")) {
$items = new DirectoryIterator("$base/$sub");
foreach ($items as $item) {
@@ -163,7 +163,7 @@ function core_admin_recurse_svgs($base, $sub, $filecallback, $blacklist) {
continue;
}
$file = $item->getFilename();
core_admin_recurse_svgs("$base/$sub", $file, $filecallback, $blacklist);
core_admin_recurse_svgs("$base/$sub", $file, $filecallback, $ignorelist);
}
unset($item);
unset($items);
@@ -174,7 +174,7 @@ function core_admin_recurse_svgs($base, $sub, $filecallback, $blacklist) {
return;
}
$file = realpath("$base/$sub");
if (in_array($file, $blacklist)) {
if (in_array($file, $ignorelist)) {
return;
}
$filecallback($file);
+171
View File
@@ -0,0 +1,171 @@
<?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/>.
/**
* CLI script to uninstall plugins.
*
* @package core
* @subpackage cli
* @copyright 2018 Dmitrii Metelkin <dmitriim@catalyst-au.net>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define('CLI_SCRIPT', true);
require(__DIR__ . '/../../config.php');
require_once($CFG->libdir . '/clilib.php');
require_once($CFG->libdir . '/adminlib.php');
$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
--run Execute uninstall. If this option is not set, then the script will be run in a dry mode.
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.
# php uninstall_plugins.php --purge-missing
A dry run of uninstalling all missing plugins.
# php uninstall_plugins.php --purge-missing --run
Run uninstall of all missing plugins.
# php uninstall_plugins.php --plugins=mod_assign,mod_forum
A dry run of uninstalling mod_assign and mod_forum plugins.
# php uninstall_plugins.php --plugins=mod_assign,mod_forum --run
Run uninstall for mod_assign and mod_forum plugins.
";
list($options, $unrecognised) = cli_get_params([
'help' => false,
'show-all' => false,
'show-contrib' => false,
'show-missing' => false,
'purge-missing' => false,
'plugins' => false,
'run' => false,
], [
'h' => 'help'
]);
if ($unrecognised) {
$unrecognised = implode(PHP_EOL.' ', $unrecognised);
cli_error(get_string('cliunknowoption', 'core_admin', $unrecognised));
}
if ($options['help']) {
cli_writeln($help);
exit(0);
}
$pluginman = core_plugin_manager::instance();
$plugininfo = $pluginman->get_plugins();
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'] || $options['show-contrib']) {
cli_writeln($pluginstring);
} else {
if ($plugin->get_status() === core_plugin_manager::PLUGIN_STATUS_MISSING) {
cli_writeln($pluginstring);
}
}
}
}
exit(0);
}
if ($options['purge-missing']) {
foreach ($plugininfo as $type => $plugins) {
foreach ($plugins as $name => $plugin) {
if ($plugin->get_status() === core_plugin_manager::PLUGIN_STATUS_MISSING) {
$pluginstring = $plugin->component . "\t" . $plugin->displayname;
if ($pluginman->can_uninstall_plugin($plugin->component)) {
if ($options['run']) {
cli_writeln('Uninstalling: ' . $pluginstring);
$progress = new progress_trace_buffer(new text_progress_trace(), true);
$pluginman->uninstall_plugin($plugin->component, $progress);
$progress->finished();
cli_write($progress->get_buffer());
} else {
cli_writeln('Will be uninstalled: ' . $pluginstring);
}
} else {
cli_writeln('Can not be uninstalled: ' . $pluginstring);
}
}
}
}
exit(0);
}
if ($options['plugins']) {
$components = explode(',', $options['plugins']);
foreach ($components as $component) {
$plugin = $pluginman->get_plugin_info($component);
if (is_null($plugin)) {
cli_writeln('Unknown plugin: ' . $component);
} else {
$pluginstring = $plugin->component . "\t" . $plugin->displayname;
if ($pluginman->can_uninstall_plugin($plugin->component)) {
if ($options['run']) {
cli_writeln('Uninstalling: ' . $pluginstring);
$progress = new progress_trace_buffer(new text_progress_trace(), true);
$pluginman->uninstall_plugin($plugin->component, $progress);
$progress->finished();
cli_write($progress->get_buffer());
} else {
cli_writeln('Will be uninstalled: ' . $pluginstring);
}
} else {
cli_writeln('Can not be uninstalled: ' . $pluginstring);
}
}
}
exit(0);
}
cli_writeln($help);
exit(0);
+9 -2
View File
@@ -52,7 +52,8 @@ list($options, $unrecognized) = cli_get_params(
'allow-unstable' => false,
'help' => false,
'lang' => $lang,
'verbose-settings' => false
'verbose-settings' => false,
'is-pending' => false,
),
array(
'h' => 'help'
@@ -88,6 +89,8 @@ Options:
--verbose-settings Show new settings values. By default only the name of
new core or plugin settings are displayed. This option
outputs the new values as well as the setting name.
--is-pending If an upgrade is needed it exits with an error code of
2 so it distinct from other types of errors.
-h, --help Print out this help
Example:
@@ -116,6 +119,10 @@ if (!moodle_needs_upgrading()) {
cli_error(get_string('cliupgradenoneed', 'core_admin', $newversion), 0);
}
if ($options['is-pending']) {
cli_error(get_string('cliupgradepending', 'core_admin'), 2);
}
// Test environment first.
list($envstatus, $environment_results) = check_moodle_environment(normalize_version($release), ENV_SELECT_RELEASE);
if (!$envstatus) {
@@ -130,7 +137,7 @@ if (!$envstatus) {
// Test plugin dependencies.
$failed = array();
if (!core_plugin_manager::instance()->all_plugins_ok($version, $failed)) {
if (!core_plugin_manager::instance()->all_plugins_ok($version, $failed, $CFG->branch)) {
cli_problem(get_string('pluginscheckfailed', 'admin', array('pluginslist' => implode(', ', array_unique($failed)))));
cli_error(get_string('pluginschecktodo', 'admin'));
}
+84
View File
@@ -0,0 +1,84 @@
<?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/>.
/**
* Content bank and its plugins settings.
*
* @package core
* @subpackage contentbank
* @copyright 2020 Amaia Anabitarte <amaia@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
$action = required_param('action', PARAM_ALPHANUMEXT);
$name = required_param('name', PARAM_PLUGIN);
$syscontext = context_system::instance();
$PAGE->set_url('/admin/contentbank.php');
$PAGE->set_context($syscontext);
require_admin();
require_sesskey();
$return = new moodle_url('/admin/settings.php', array('section' => 'managecontentbanktypes'));
$plugins = core_plugin_manager::instance()->get_plugins_of_type('contenttype');
$sortorder = array_flip(array_keys($plugins));
if (!isset($plugins[$name])) {
print_error('contenttypenotfound', 'error', $return, $name);
}
switch ($action) {
case 'disable':
if ($plugins[$name]->is_enabled()) {
set_config('disabled', 1, 'contentbank_'. $name);
}
break;
case 'enable':
if (!$plugins[$name]->is_enabled()) {
unset_config('disabled', 'contentbank_'. $name);
}
break;
case 'up':
if ($sortorder[$name]) {
$currentindex = $sortorder[$name];
$seq = array_keys($plugins);
$seq[$currentindex] = $seq[$currentindex - 1];
$seq[$currentindex - 1] = $name;
set_config('contentbank_plugins_sortorder', implode(',', $seq));
}
break;
case 'down':
if ($sortorder[$name] < count($sortorder) - 1) {
$currentindex = $sortorder[$name];
$seq = array_keys($plugins);
$seq[$currentindex] = $seq[$currentindex + 1];
$seq[$currentindex + 1] = $name;
set_config('contentbank_plugins_sortorder', implode(',', $seq));
}
break;
}
core_plugin_manager::reset_caches();
$cache = cache::make('core', 'contentbank_enabled_extensions');
$cache->purge();
$cache = cache::make('core', 'contentbank_context_extensions');
$cache->purge();
redirect($return);
+1 -2
View File
@@ -32,8 +32,7 @@ $syscontext = context_system::instance();
$PAGE->set_url('/admin/courseformats.php');
$PAGE->set_context($syscontext);
require_login();
require_capability('moodle/site:config', $syscontext);
require_admin();
require_sesskey();
$return = new moodle_url('/admin/settings.php', array('section' => 'manageformats'));
+61
View File
@@ -0,0 +1,61 @@
<?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/>.
/**
* Allows the admin to enable, disable and uninstall custom fields
*
* @package core_admin
* @copyright 2018 Daniel Neis Araujo
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
$action = required_param('action', PARAM_ALPHANUMEXT);
$customfieldname = required_param('field', PARAM_PLUGIN);
$syscontext = context_system::instance();
$PAGE->set_url('/admin/customfields.php');
$PAGE->set_context($syscontext);
require_admin();
require_sesskey();
$return = new moodle_url('/admin/settings.php', array('section' => 'managecustomfields'));
$customfieldplugins = core_plugin_manager::instance()->get_plugins_of_type('customfield');
$sortorder = array_flip(array_keys($customfieldplugins));
if (!isset($customfieldplugins[$customfieldname])) {
print_error('customfieldnotfound', 'error', $return, $customfieldname);
}
switch ($action) {
case 'disable':
if ($customfieldplugins[$customfieldname]->is_enabled()) {
set_config('disabled', 1, 'customfield_'. $customfieldname);
core_plugin_manager::reset_caches();
}
break;
case 'enable':
if (!$customfieldplugins[$customfieldname]->is_enabled()) {
unset_config('disabled', 'customfield_'. $customfieldname);
core_plugin_manager::reset_caches();
}
break;
}
redirect($return);
+1 -2
View File
@@ -33,8 +33,7 @@ $syscontext = context_system::instance();
$PAGE->set_url('/admin/dataformats.php');
$PAGE->set_context($syscontext);
require_login();
require_capability('moodle/site:config', $syscontext);
require_admin();
require_sesskey();
$return = new moodle_url('/admin/settings.php', array('section' => 'managedataformats'));
+1 -2
View File
@@ -15,8 +15,7 @@ $confirm = optional_param('confirm', 0, PARAM_BOOL);
$PAGE->set_url('/admin/editors.php', array('action'=>$action, 'editor'=>$editor));
$PAGE->set_context(context_system::instance());
require_login();
require_capability('moodle/site:config', context_system::instance());
require_admin();
$returnurl = "$CFG->wwwroot/$CFG->admin/settings.php?section=manageeditors";
+1 -2
View File
@@ -35,8 +35,7 @@ $confirm = optional_param('confirm', 0, PARAM_BOOL);
$PAGE->set_url('/admin/enrol.php');
$PAGE->set_context(context_system::instance());
require_login();
require_capability('moodle/site:config', context_system::instance());
require_admin();
require_sesskey();
$enabled = enrol_get_plugins(true);
File diff suppressed because it is too large Load Diff
+45 -16
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,13 +235,13 @@ 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();
}
// check plugin dependencies
$failed = array();
if (!core_plugin_manager::instance()->all_plugins_ok($version, $failed)) {
if (!core_plugin_manager::instance()->all_plugins_ok($version, $failed, $CFG->branch)) {
$PAGE->navbar->add(get_string('pluginscheck', 'admin'));
$PAGE->set_title($strinstallation);
$PAGE->set_heading($strinstallation . ' - Moodle ' . $CFG->target_release);
@@ -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)) {
@@ -508,8 +508,9 @@ if (!$cache and $version > $CFG->version) { // upgrade
} else {
// 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);
if (!core_plugin_manager::instance()->all_plugins_ok($version, $failed, $CFG->branch)) {
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);
@@ -682,9 +700,10 @@ if (!$cache and moodle_needs_upgrading()) {
// Make sure plugin dependencies are always checked.
$failed = array();
if (!$pluginman->all_plugins_ok($version, $failed)) {
if (!$pluginman->all_plugins_ok($version, $failed, $CFG->branch)) {
$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');
}
@@ -823,9 +842,12 @@ if (isset($SESSION->pluginuninstallreturn)) {
// Print default admin page with notifications.
$errorsdisplayed = defined('WARN_DISPLAY_ERRORS_ENABLED');
// We make the assumption that at least one schedule task should run once per day.
$lastcron = $DB->get_field_sql('SELECT MAX(lastruntime) FROM {task_scheduled}');
$lastcron = get_config('tool_task', 'lastcronstart');
$cronoverdue = ($lastcron < time() - 3600 * 24);
$lastcroninterval = get_config('tool_task', 'lastcroninterval');
$expectedfrequency = $CFG->expectedcronfrequency ?? MINSECS;
$croninfrequent = !$cronoverdue && ($lastcroninterval > ($expectedfrequency + MINSECS) || $lastcron < time() - $expectedfrequency);
$dbproblems = $DB->diagnose();
$maintenancemode = !empty($CFG->maintenance_enabled);
@@ -879,6 +901,12 @@ if (empty($CFG->disabledevlibdirscheck) && (is_dir($CFG->dirroot.'/vendor') || i
// Check if the site is being foced onto ssl.
$overridetossl = !empty($CFG->overridetossl);
// Check if moodle campaign content setting is enabled or not.
$showcampaigncontent = !isset($CFG->showcampaigncontent) || $CFG->showcampaigncontent;
// Encourage admins to enable the user feedback feature if it is not enabled already.
$showfeedbackencouragement = empty($CFG->enableuserfeedback);
admin_externalpage_setup('adminnotifications');
$output = $PAGE->get_renderer('core', 'admin');
@@ -886,4 +914,5 @@ $output = $PAGE->get_renderer('core', 'admin');
echo $output->admin_notifications_page($maturity, $insecuredataroot, $errorsdisplayed, $cronoverdue, $dbproblems,
$maintenancemode, $availableupdates, $availableupdatesfetch, $buggyiconvnomb,
$registered, $cachewarnings, $eventshandlers, $themedesignermode, $devlibdir,
$mobileconfigured, $overridetossl, $invalidforgottenpasswordurl);
$mobileconfigured, $overridetossl, $invalidforgottenpasswordurl, $croninfrequent,
$showcampaigncontent, $showfeedbackencouragement);
-57
View File
@@ -1,57 +0,0 @@
<?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/>.
/**
* Allows admin to configure licenses.
*/
require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/licenselib.php');
require_login();
require_capability('moodle/site:config', context_system::instance());
$returnurl = "$CFG->wwwroot/$CFG->admin/settings.php?section=managelicenses";
$action = optional_param('action', '', PARAM_ALPHANUMEXT);
$license = optional_param('license', '', PARAM_SAFEDIR);
////////////////////////////////////////////////////////////////////////////////
// process actions
if (!confirm_sesskey()) {
redirect($returnurl);
}
$return = true;
switch ($action) {
case 'disable':
license_manager::disable($license);
break;
case 'enable':
license_manager::enable($license);
break;
default:
break;
}
if ($return) {
redirect ($returnurl);
}
+1 -2
View File
@@ -35,8 +35,7 @@ $confirm = optional_param('confirm', 0, PARAM_BOOL);
$PAGE->set_url('/admin/media.php');
$PAGE->set_context(context_system::instance());
require_login();
require_capability('moodle/site:config', context_system::instance());
require_admin();
require_sesskey();
$plugins = core_plugin_manager::instance()->get_plugins_of_type('media');
+100 -26
View File
@@ -25,47 +25,121 @@ require_once(__DIR__ . '/../config.php');
require_once($CFG->dirroot . '/message/lib.php');
require_once($CFG->libdir.'/adminlib.php');
// This is an admin page
// This is an admin page.
admin_externalpage_setup('managemessageoutputs');
// Get the submitted params
$disable = optional_param('disable', 0, PARAM_INT);
$enable = optional_param('enable', 0, PARAM_INT);
// Fetch processors.
$allprocessors = get_message_processors();
$processors = array_filter($allprocessors, function($processor) {
return $processor->enabled;
});
$disabledprocessors = array_filter($allprocessors, function($processor) {
return !$processor->enabled;
});
$headingtitle = get_string('managemessageoutputs', 'message');
// Fetch message providers.
$providers = get_message_providers();
// Fetch the manage message outputs interface.
$preferences = get_message_output_default_preferences();
if (!empty($disable) && confirm_sesskey()) {
if (!$processor = $DB->get_record('message_processors', array('id'=>$disable))) {
print_error('outputdoesnotexist', 'message');
if (($form = data_submitted()) && confirm_sesskey()) {
$newpreferences = array();
// Prepare default message outputs settings.
foreach ($providers as $provider) {
$componentproviderbase = $provider->component.'_'.$provider->name;
$disableprovidersetting = $componentproviderbase.'_disable';
$providerdisabled = false;
if (!isset($form->$disableprovidersetting)) {
$providerdisabled = true;
$newpreferences[$disableprovidersetting] = 1;
} else {
$newpreferences[$disableprovidersetting] = 0;
}
foreach (array('permitted', 'loggedin', 'loggedoff') as $setting) {
$value = null;
$componentprovidersetting = $componentproviderbase.'_'.$setting;
if ($setting == 'permitted') {
// If we deal with permitted select element, we need to create individual
// setting for each possible processor. Note that this block will
// always be processed first after entring parental foreach iteration
// so we can change form values on this stage.
foreach ($processors as $processor) {
$value = '';
if (isset($form->{$componentprovidersetting}[$processor->name])) {
$value = $form->{$componentprovidersetting}[$processor->name];
}
// Ensure that loggedin loggedoff options are set correctly for this permission.
if (($value == 'disallowed') || $providerdisabled) {
// It might be better to unset them, but I can't figure out why that cause error.
$form->{$componentproviderbase.'_loggedin'}[$processor->name] = 0;
$form->{$componentproviderbase.'_loggedoff'}[$processor->name] = 0;
} else if ($value == 'forced') {
$form->{$componentproviderbase.'_loggedin'}[$processor->name] = 1;
$form->{$componentproviderbase.'_loggedoff'}[$processor->name] = 1;
}
// Record the site preference.
$newpreferences[$processor->name.'_provider_'.$componentprovidersetting] = $value;
}
} 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.
$newpreferences['message_provider_'.$componentprovidersetting] = $value;
}
}
}
\core_message\api::update_processor_status($processor, 0); // Disable output.
core_plugin_manager::reset_caches();
}
if (!empty($enable) && confirm_sesskey()) {
if (!$processor = $DB->get_record('message_processors', array('id'=>$enable))) {
print_error('outputdoesnotexist', 'message');
// Update database.
$transaction = $DB->start_delegated_transaction();
// Save processors enabled/disabled status.
foreach ($allprocessors as $processor) {
$enabled = isset($form->{$processor->name});
\core_message\api::update_processor_status($processor, $enabled);
}
\core_message\api::update_processor_status($processor, 1); // Enable output.
core_plugin_manager::reset_caches();
}
if ($disable || $enable) {
foreach ($newpreferences as $name => $value) {
set_config($name, $value, 'message');
}
$transaction->allow_commit();
core_plugin_manager::reset_caches();
$url = new moodle_url('message.php');
redirect($url);
}
// Page settings
$PAGE->set_context(context_system::instance());
$PAGE->requires->js_init_call('M.core_message.init_defaultoutputs');
// Grab the renderer
$renderer = $PAGE->get_renderer('core', 'message');
// Display the manage message outputs interface
$processors = get_message_processors();
$messageoutputs = $renderer->manage_messageoutputs($processors);
// Display the page
// Display the page.
echo $OUTPUT->header();
echo $OUTPUT->heading($headingtitle);
echo $messageoutputs;
echo $renderer->manage_messageoutput_settings($allprocessors, $processors, $providers, $preferences);
echo $OUTPUT->footer();
-3
View File
@@ -34,9 +34,6 @@ $step = optional_param('step', 'verify', PARAM_ALPHA);
$hostid = required_param('hostid', PARAM_INT);
$context = context_system::instance();
$mnet = get_mnet_environment();
$PAGE->set_url('/admin/mnet/delete.php');
+1 -1
View File
@@ -156,7 +156,7 @@ class mnet_review_host_form extends moodleform {
if ($mnet_peer && !empty($mnet_peer->deleted)) {
$radioarray = array();
$radioarray[] = $mform->createElement('static', 'deletedinfo', '',
$OUTPUT->container(get_string('deletedhostinfo', 'mnet'), 'deletedhostinfo'));
$OUTPUT->container(get_string('deletedhostinfo', 'mnet'), 'alert alert-warning'));
$radioarray[] = $mform->createElement('radio', 'deleted', '', get_string('yes'), 1);
$radioarray[] = $mform->createElement('radio', 'deleted', '', get_string('no'), 0);
$mform->addGroup($radioarray, 'radioar', get_string('deleted'), array(' ', ' '), false);
+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 {
+2 -3
View File
@@ -43,9 +43,8 @@ $confirminstallupdate = optional_param('confirminstallupdate', false, PARAM_BOOL
// NOTE: do not use admin_externalpage_setup() here because it loads
// full admin tree which is not possible during uninstallation.
require_login();
require_admin();
$syscontext = context_system::instance();
require_capability('moodle/site:config', $syscontext);
// URL params we want to maintain on redirects.
$pageparams = array('updatesonly' => $updatesonly, 'contribonly' => $contribonly);
@@ -54,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);
@@ -93,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);
+2 -2
View File
@@ -31,7 +31,7 @@ require_once($CFG->libdir . '/adminlib.php');
require_once($CFG->libdir . '/tablelib.php');
// Check permissions.
require_login();
require_login(null, false);
$systemcontext = context_system::instance();
require_capability('moodle/question:config', $systemcontext);
@@ -170,7 +170,7 @@ foreach ($sortedbehaviours as $behaviour => $behaviourname) {
if ($version) {
$row[] = $version;
} else {
$row[] = html_writer::tag('span', get_string('nodatabase', 'admin'), array('class' => 'disabled'));
$row[] = html_writer::tag('span', get_string('nodatabase', 'admin'), array('class' => 'text-muted'));
}
// Other question types required by this one.
+3 -3
View File
@@ -30,12 +30,12 @@ require_once($CFG->libdir . '/questionlib.php');
require_once($CFG->libdir . '/adminlib.php');
require_once($CFG->libdir . '/tablelib.php');
// Check permissions.
admin_externalpage_setup('manageqtypes');
$systemcontext = context_system::instance();
require_capability('moodle/question:config', $systemcontext);
$canviewreports = has_capability('report/questioninstances:view', $systemcontext);
admin_externalpage_setup('manageqtypes');
$thispageurl = new moodle_url('/admin/qtypes.php');
$qtypes = question_bank::get_all_qtypes();
@@ -172,7 +172,7 @@ foreach ($sortedqtypes as $qtypename => $localname) {
if ($version) {
$row[] = $version;
} else {
$row[] = html_writer::tag('span', get_string('nodatabase', 'admin'), array('class' => 'disabled'));
$row[] = html_writer::tag('span', get_string('nodatabase', 'admin'), array('class' => 'text-muted'));
}
// Other question types required by this one.
+2 -2
View File
@@ -45,8 +45,8 @@ $error = optional_param('error', '', PARAM_ALPHANUM);
admin_externalpage_setup('registrationmoodleorg');
if ($url !== HUB_MOODLEORGHUBURL) {
// Allow other plugins to confirm registration on hubs other than moodle.net . Plugins implementing this
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');
foreach ($callbacks as $plugintype => $plugins) {
+1 -2
View File
@@ -32,5 +32,4 @@
defined('MOODLE_INTERNAL') || die();
debugging('Support for alternative hubs has been removed from Moodle in 3.4. For communication with moodle.net ' .
'see lib/classes/hub/ .', DEBUG_DEVELOPER);
debugging('Support for alternative hubs has been removed from Moodle in 3.4.', DEBUG_DEVELOPER);
+18 -16
View File
@@ -22,7 +22,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 1999 onwards Martin Dougiamas http://dougiamas.com
*
* This page displays the site registration form for Moodle.net.
* This page displays the site registration form.
* It handles redirection to the hub to continue the registration workflow process.
* It also handles update operation by web service.
*/
@@ -32,24 +32,25 @@ require_once($CFG->libdir . '/adminlib.php');
admin_externalpage_setup('registrationmoodleorg');
$unregistration = optional_param('unregistration', 0, PARAM_INT);
$unregistration = optional_param('unregistration', false, PARAM_BOOL);
$confirm = optional_param('confirm', false, PARAM_BOOL);
if ($unregistration && \core\hub\registration::is_registered()) {
$siteunregistrationform = new \core\hub\site_unregistration_form();
if ($confirm) {
require_sesskey();
\core\hub\registration::unregister(false, false);
if ($siteunregistrationform->is_cancelled()) {
redirect(new moodle_url('/admin/registration/index.php'));
} else if ($data = $siteunregistrationform->get_data()) {
\core\hub\registration::unregister($data->unpublishalladvertisedcourses,
$data->unpublishalluploadedcourses);
if (!\core\hub\registration::is_registered()) {
redirect(new moodle_url('/admin/registration/index.php'));
}
}
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('unregisterfrom', 'hub', 'Moodle.net'), 3, 'main');
$siteunregistrationform->display();
echo $OUTPUT->confirm(
get_string('registerwithmoodleorgremove', 'core_hub'),
new moodle_url(new moodle_url('/admin/registration/index.php', ['unregistration' => 1, 'confirm' => 1])),
new moodle_url(new moodle_url('/admin/registration/index.php'))
);
echo $OUTPUT->footer();
exit;
}
@@ -82,7 +83,7 @@ if ($fromform = $siteregistrationform->get_data()) {
echo $OUTPUT->header();
// Current status of registration on Moodle.net.
// Current status of registration.
$notificationtype = \core\output\notification::NOTIFY_ERROR;
if (\core\hub\registration::is_registered()) {
@@ -104,11 +105,11 @@ if (\core\hub\registration::is_registered()) {
// Heading.
if (\core\hub\registration::is_registered()) {
echo $OUTPUT->heading(get_string('updatesite', 'hub', 'Moodle.net'));
echo $OUTPUT->heading(get_string('registerwithmoodleorgupdate', 'core_hub'));
} else if ($isinitialregistration) {
echo $OUTPUT->heading(get_string('completeregistration', 'hub'));
echo $OUTPUT->heading(get_string('registerwithmoodleorgcomplete', 'core_hub'));
} else {
echo $OUTPUT->heading(get_string('registerwithmoodleorg', 'admin'));
echo $OUTPUT->heading(get_string('registerwithmoodleorg', 'core_hub'));
}
$renderer = $PAGE->get_renderer('core', 'admin');
@@ -119,8 +120,9 @@ $siteregistrationform->display();
if (\core\hub\registration::is_registered()) {
// Unregister link.
$unregisterhuburl = new moodle_url("/admin/registration/index.php", ['unregistration' => 1]);
echo html_writer::div(html_writer::link($unregisterhuburl, get_string('unregister', 'hub')), 'unregister');
echo html_writer::div(html_writer::link($unregisterhuburl, get_string('unregister', 'hub')), 'unregister mt-2');
} else if ($isinitialregistration) {
echo html_writer::div(html_writer::link(new moodle_url($returnurl), get_string('skipregistration', 'hub')), 'skipregistration');
echo html_writer::div(html_writer::link(new moodle_url($returnurl), get_string('skipregistration', 'hub')),
'skipregistration mt-2');
}
echo $OUTPUT->footer();
+3 -3
View File
@@ -39,8 +39,8 @@ $token = optional_param('token', '', PARAM_TEXT);
admin_externalpage_setup('registrationmoodleorg');
if ($url !== HUB_MOODLEORGHUBURL) {
// Allow other plugins to renew registration on hubs other than moodle.net . Plugins implementing this
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');
foreach ($callbacks as $plugintype => $plugins) {
@@ -56,7 +56,7 @@ if ($url !== HUB_MOODLEORGHUBURL) {
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('renewregistration', 'hub'), 3, 'main');
$hublink = html_writer::tag('a', 'Moodle.net', array('href' => HUB_MOODLEORGHUBURL));
$hublink = html_writer::tag('a', HUB_MOODLEORGHUBURL, array('href' => HUB_MOODLEORGHUBURL));
$deletedregmsg = get_string('previousregistrationdeleted', 'hub', $hublink);
+204 -100
View File
@@ -253,7 +253,7 @@ class core_admin_renderer extends plugin_renderer_base {
$out .= $this->output->container(get_string('cancelinstallinfodir', 'core_plugin', $pluginfo->rootdir));
if ($repotype = $pluginman->plugin_external_source($pluginfo->component)) {
$out .= $this->output->container(get_string('uninstalldeleteconfirmexternal', 'core_plugin', $repotype),
'uninstalldeleteconfirmexternal');
'alert alert-warning mt-2');
}
}
@@ -281,6 +281,9 @@ class core_admin_renderer extends plugin_renderer_base {
* @param bool $mobileconfigured Whether the mobile web services have been enabled
* @param bool $overridetossl Whether or not ssl is being forced.
* @param bool $invalidforgottenpasswordurl Whether the forgotten password URL does not link to a valid URL.
* @param bool $croninfrequent If true, warn that cron hasn't run in the past few minutes
* @param bool $showcampaigncontent Whether the campaign content should be visible or not.
* @param bool $showfeedbackencouragement Whether the feedback encouragement content should be displayed or not.
*
* @return string HTML to output.
*/
@@ -288,7 +291,9 @@ class core_admin_renderer extends plugin_renderer_base {
$cronoverdue, $dbproblems, $maintenancemode, $availableupdates, $availableupdatesfetch,
$buggyiconvnomb, $registered, array $cachewarnings = array(), $eventshandlers = 0,
$themedesignermode = false, $devlibdir = false, $mobileconfigured = false,
$overridetossl = false, $invalidforgottenpasswordurl = false) {
$overridetossl = false, $invalidforgottenpasswordurl = false, $croninfrequent = false,
$showcampaigncontent = false, bool $showfeedbackencouragement = false) {
global $CFG;
$output = '';
@@ -302,6 +307,7 @@ class core_admin_renderer extends plugin_renderer_base {
$output .= $this->display_errors_warning($errorsdisplayed);
$output .= $this->buggy_iconv_warning($buggyiconvnomb);
$output .= $this->cron_overdue_warning($cronoverdue);
$output .= $this->cron_infrequent_warning($croninfrequent);
$output .= $this->db_problems($dbproblems);
$output .= $this->maintenance_mode_warning($maintenancemode);
$output .= $this->overridetossl_warning($overridetossl);
@@ -310,6 +316,8 @@ class core_admin_renderer extends plugin_renderer_base {
$output .= $this->registration_warning($registered);
$output .= $this->mobile_configuration_warning($mobileconfigured);
$output .= $this->forgotten_password_url_warning($invalidforgottenpasswordurl);
$output .= $this->userfeedback_encouragement($showfeedbackencouragement);
$output .= $this->campaign_content($showcampaigncontent);
//////////////////////////////////////////////////////////////////////////////////////////////////
//// IT IS ILLEGAL AND A VIOLATION OF THE GPL TO HIDE, REMOVE OR MODIFY THIS COPYRIGHT NOTICE ///
@@ -359,14 +367,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();
}
@@ -430,7 +439,7 @@ class core_admin_renderer extends plugin_renderer_base {
if ($repotype = $pluginman->plugin_external_source($pluginfo->component)) {
$confirm .= $this->output->container(get_string('uninstalldeleteconfirmexternal', 'core_plugin', $repotype),
'uninstalldeleteconfirmexternal');
'alert alert-warning mt-2');
}
// After any uninstall we must execute full upgrade to finish the cleanup!
@@ -509,7 +518,7 @@ class core_admin_renderer extends plugin_renderer_base {
* @return string HTML to output.
*/
protected function warning($message, $type = 'warning') {
return $this->box($message, 'generalbox admin' . $type);
return $this->box($message, 'generalbox alert alert-' . $type);
}
/**
@@ -524,7 +533,7 @@ class core_admin_renderer extends plugin_renderer_base {
return $this->warning(get_string('datarootsecuritywarning', 'admin', $CFG->dataroot));
} else if ($insecuredataroot == INSECURE_DATAROOT_ERROR) {
return $this->warning(get_string('datarootsecurityerror', 'admin', $CFG->dataroot), 'error');
return $this->warning(get_string('datarootsecurityerror', 'admin', $CFG->dataroot), 'danger');
} else {
return '';
@@ -542,7 +551,7 @@ class core_admin_renderer extends plugin_renderer_base {
if ($devlibdir) {
$moreinfo = new moodle_url('/report/security/index.php');
$warning = get_string('devlibdirpresent', 'core_admin', ['moreinfourl' => $moreinfo->out()]);
return $this->warning($warning, 'error');
return $this->warning($warning, 'danger');
} else {
return '';
@@ -599,19 +608,27 @@ class core_admin_renderer extends plugin_renderer_base {
return '';
}
if (empty($CFG->cronclionly)) {
$url = new moodle_url('/admin/cron.php');
if (!empty($CFG->cronremotepassword)) {
$url = new moodle_url('/admin/cron.php', array('password' => $CFG->cronremotepassword));
}
$check = new \tool_task\check\cronrunning();
$result = $check->get_result();
return $this->warning($result->get_summary() . '&nbsp;' . $this->help_icon('cron', 'admin'));
}
return $this->warning(get_string('cronwarning', 'admin', $url->out()) . '&nbsp;' .
$this->help_icon('cron', 'admin'));
/**
* Render an appropriate message if cron is not being run frequently (recommended every minute).
*
* @param bool $croninfrequent
* @return string HTML to output.
*/
public function cron_infrequent_warning(bool $croninfrequent) : string {
global $CFG;
if (!$croninfrequent) {
return '';
}
// $CFG->cronclionly is not empty: cron can run only from CLI.
return $this->warning(get_string('cronwarningcli', 'admin') . '&nbsp;' .
$this->help_icon('cron', 'admin'));
$check = new \tool_task\check\cronrunning();
$result = $check->get_result();
return $this->warning($result->get_summary() . '&nbsp;' . $this->help_icon('cron', 'admin'));
}
/**
@@ -701,7 +718,7 @@ class core_admin_renderer extends plugin_renderer_base {
return $this->warning(
$this->container(get_string('maturitycorewarning', 'admin', $maturitylevel)) .
$this->container($this->doc_link('admin/versions', get_string('morehelp'))),
'error');
'danger');
}
/*
@@ -717,7 +734,7 @@ class core_admin_renderer extends plugin_renderer_base {
}
$warning = (get_string('testsiteupgradewarning', 'admin', $testsite));
return $this->warning($warning, 'error');
return $this->warning($warning, 'danger');
}
/**
@@ -752,7 +769,7 @@ class core_admin_renderer extends plugin_renderer_base {
$level = 'warning';
if ($maturity == MATURITY_ALPHA) {
$level = 'error';
$level = 'danger';
}
$maturitylevel = get_string('maturity' . $maturity, 'admin');
@@ -803,7 +820,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) {
@@ -823,8 +840,7 @@ class core_admin_renderer extends plugin_renderer_base {
*/
protected function registration_warning($registered) {
if (!$registered) {
if (!$registered && site_is_public()) {
if (has_capability('moodle/site:config', context_system::instance())) {
$registerbutton = $this->single_button(new moodle_url('/admin/registration/index.php'),
get_string('register', 'admin'));
@@ -868,6 +884,20 @@ class core_admin_renderer extends plugin_renderer_base {
return $output;
}
/**
* Display campaign content.
*
* @param bool $showcampaigncontent Whether the campaign content should be visible or not.
* @return string the campaign content raw html.
*/
protected function campaign_content(bool $showcampaigncontent): string {
if (!$showcampaigncontent) {
return '';
}
return $this->render_from_template('core/campaign_content', ['lang' => current_language()]);
}
/**
* Display a warning about the forgotten password URL not linking to a valid URL.
*
@@ -893,7 +923,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)) {
@@ -913,7 +943,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)) {
@@ -921,9 +952,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;
}
@@ -935,7 +966,7 @@ class core_admin_renderer extends plugin_renderer_base {
protected function release_notes_link() {
$releasenoteslink = get_string('releasenoteslink', 'admin', 'http://docs.moodle.org/dev/Releases');
$releasenoteslink = str_replace('target="_blank"', 'onclick="this.target=\'_blank\'"', $releasenoteslink); // extremely ugly validation hack
return $this->box($releasenoteslink, 'generalbox releasenoteslink');
return $this->box($releasenoteslink, 'generalbox alert alert-info');
}
/**
@@ -964,7 +995,7 @@ class core_admin_renderer extends plugin_renderer_base {
* @return string HTML code
*/
public function plugins_check_table(core_plugin_manager $pluginman, $version, array $options = array()) {
global $CFG;
$plugininfo = $pluginman->get_plugins();
if (empty($plugininfo)) {
@@ -1035,7 +1066,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);
@@ -1043,44 +1074,46 @@ class core_admin_renderer extends plugin_renderer_base {
if ($isstandard = $plugin->is_standard()) {
$row->attributes['class'] .= ' standard';
$sourcelabel = html_writer::span(get_string('sourcestd', 'core_plugin'), 'sourcetext label');
$sourcelabel = html_writer::span(get_string('sourcestd', 'core_plugin'), 'sourcetext badge badge-secondary');
} else {
$row->attributes['class'] .= ' extension';
$sourcelabel = html_writer::span(get_string('sourceext', 'core_plugin'), 'sourcetext label label-info');
$sourcelabel = html_writer::span(get_string('sourceext', 'core_plugin'), 'sourcetext badge badge-info');
}
$coredependency = $plugin->is_core_dependency_satisfied($version);
$incompatibledependency = $plugin->is_core_compatible_satisfied($CFG->branch);
$otherpluginsdependencies = $pluginman->are_dependencies_satisfied($plugin->get_other_required_plugins());
$dependenciesok = $coredependency && $otherpluginsdependencies;
$dependenciesok = $coredependency && $otherpluginsdependencies && $incompatibledependency;
$statuscode = $plugin->get_status();
$row->attributes['class'] .= ' status-' . $statuscode;
$statusclass = 'statustext label ';
$statusclass = 'statustext badge ';
switch ($statuscode) {
case core_plugin_manager::PLUGIN_STATUS_NEW:
$statusclass .= $dependenciesok ? 'label-success' : 'label-warning';
$statusclass .= $dependenciesok ? 'badge-success' : 'badge-warning';
break;
case core_plugin_manager::PLUGIN_STATUS_UPGRADE:
$statusclass .= $dependenciesok ? 'label-info' : 'label-warning';
$statusclass .= $dependenciesok ? 'badge-info' : 'badge-warning';
break;
case core_plugin_manager::PLUGIN_STATUS_MISSING:
case core_plugin_manager::PLUGIN_STATUS_DOWNGRADE:
case core_plugin_manager::PLUGIN_STATUS_DELETE:
$statusclass .= 'label-important';
$statusclass .= 'badge-danger';
break;
case core_plugin_manager::PLUGIN_STATUS_NODB:
case core_plugin_manager::PLUGIN_STATUS_UPTODATE:
$statusclass .= $dependenciesok ? '' : 'label-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')
);
}
@@ -1089,7 +1122,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')
);
}
@@ -1101,8 +1134,11 @@ class core_admin_renderer extends plugin_renderer_base {
}
$status = new html_table_cell($sourcelabel.' '.$status);
$requires = new html_table_cell($this->required_column($plugin, $pluginman, $version));
if ($plugin->pluginsupported != null) {
$requires = new html_table_cell($this->required_column($plugin, $pluginman, $version, $CFG->branch));
} else {
$requires = new html_table_cell($this->required_column($plugin, $pluginman, $version));
}
$statusisboring = in_array($statuscode, array(
core_plugin_manager::PLUGIN_STATUS_NODB, core_plugin_manager::PLUGIN_STATUS_UPTODATE));
@@ -1159,7 +1195,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) {
@@ -1167,16 +1203,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')
);
}
@@ -1185,15 +1221,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.
@@ -1261,12 +1299,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();
@@ -1280,18 +1319,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) {
@@ -1299,12 +1338,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.
@@ -1343,9 +1383,9 @@ class core_admin_renderer extends plugin_renderer_base {
$supportedmoodles = array();
foreach ($plugin->version->supportedmoodles as $moodle) {
if ($CFG->branch == str_replace('.', '', $moodle->release)) {
$supportedmoodles[] = html_writer::span($moodle->release, 'label label-success');
$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');
}
}
@@ -1359,7 +1399,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 = '';
@@ -1370,38 +1410,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
);
}
@@ -1433,38 +1474,54 @@ class core_admin_renderer extends plugin_renderer_base {
* @param \core\plugininfo\base $plugin the plugin we are rendering the row for.
* @param core_plugin_manager $pluginman provides data on all the plugins.
* @param string $version
* @param int $branch the current Moodle branch
* @return string HTML code
*/
protected function required_column(\core\plugininfo\base $plugin, core_plugin_manager $pluginman, $version) {
protected function required_column(\core\plugininfo\base $plugin, core_plugin_manager $pluginman, $version, $branch = null) {
$requires = array();
$displayuploadlink = false;
$displayupdateslink = false;
foreach ($pluginman->resolve_requirements($plugin, $version) as $reqname => $reqinfo) {
$requirements = $pluginman->resolve_requirements($plugin, $version, $branch);
foreach ($requirements 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';
$label = html_writer::span(get_string('dependencyfails', 'core_plugin'), 'label label-important');
$label = html_writer::span(get_string('dependencyfails', 'core_plugin'), 'badge badge-danger');
}
$requires[] = html_writer::tag('li',
html_writer::span(get_string('moodleversion', 'core_plugin', $plugin->versionrequires), 'dep dep-core').
if ($branch != null && !$plugin->is_core_compatible_satisfied($branch)) {
$requires[] = html_writer::tag('li',
html_writer::span(get_string('incompatibleversion', 'core_plugin', $branch), 'dep dep-core').
' '.$label, array('class' => $class));
} else if ($branch != null && $plugin->pluginsupported != null) {
$requires[] = html_writer::tag('li',
html_writer::span(get_string('moodlebranch', 'core_plugin',
array('min' => $plugin->pluginsupported[0], 'max' => $plugin->pluginsupported[1])), 'dep dep-core').
' '.$label, array('class' => $class));
} else if ($reqinfo->reqver != ANY_VERSION) {
$requires[] = html_writer::tag('li',
html_writer::span(get_string('moodleversion', 'core_plugin', $plugin->versionrequires), 'dep dep-core').
' '.$label, array('class' => $class));
}
} else {
$actions = array();
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) {
$label = html_writer::span(get_string('dependencymissing', 'core_plugin'), 'label label-warning');
$label .= ' '.html_writer::span(get_string('dependencyavailable', 'core_plugin'), 'label label-warning');
$label = html_writer::span(get_string('dependencymissing', 'core_plugin'), 'badge badge-warning');
$label .= ' '.html_writer::span(get_string('dependencyavailable', 'core_plugin'), 'badge badge-warning');
$class = 'requires-failed requires-missing requires-available';
$actions[] = html_writer::link(
new moodle_url('https://moodle.org/plugins/view.php', array('plugin' => $reqname)),
@@ -1472,24 +1529,24 @@ class core_admin_renderer extends plugin_renderer_base {
);
} else {
$label = html_writer::span(get_string('dependencymissing', 'core_plugin'), 'label label-important');
$label = html_writer::span(get_string('dependencymissing', 'core_plugin'), 'badge badge-danger');
$label .= ' '.html_writer::span(get_string('dependencyunavailable', 'core_plugin'),
'label label-important');
'badge badge-danger');
$class = 'requires-failed requires-missing requires-unavailable';
}
$displayuploadlink = true;
} else if ($reqinfo->status == $pluginman::REQUIREMENT_STATUS_OUTDATED) {
if ($reqinfo->availability == $pluginman::REQUIREMENT_AVAILABLE) {
$label = html_writer::span(get_string('dependencyfails', 'core_plugin'), 'label label-warning');
$label .= ' '.html_writer::span(get_string('dependencyavailable', 'core_plugin'), 'label label-warning');
$label = html_writer::span(get_string('dependencyfails', 'core_plugin'), 'badge badge-warning');
$label .= ' '.html_writer::span(get_string('dependencyavailable', 'core_plugin'), 'badge badge-warning');
$class = 'requires-failed requires-outdated requires-available';
$displayupdateslink = true;
} else {
$label = html_writer::span(get_string('dependencyfails', 'core_plugin'), 'label label-important');
$label = html_writer::span(get_string('dependencyfails', 'core_plugin'), 'badge badge-danger');
$label .= ' '.html_writer::span(get_string('dependencyunavailable', 'core_plugin'),
'label label-important');
'badge badge-danger');
$class = 'requires-failed requires-outdated requires-unavailable';
}
$displayuploadlink = true;
@@ -1513,13 +1570,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'
);
@@ -1529,12 +1587,20 @@ 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'
);
}
// Check if supports is present, and $branch is not in, only if $incompatible check was ok.
if ($plugin->pluginsupported != null && $class == 'requires-ok' && $branch != null) {
if ($pluginman->check_explicitly_supported($plugin, $branch) == $pluginman::VERSION_NOT_SUPPORTED) {
$out .= html_writer::div(get_string('notsupported', 'core_plugin', $branch));
}
}
return $out;
}
@@ -1753,13 +1819,13 @@ class core_admin_renderer extends plugin_renderer_base {
$source = '';
} else {
$row->attributes['class'] .= ' extension';
$source = html_writer::div(get_string('sourceext', 'core_plugin'), 'source label label-info');
$source = html_writer::div(get_string('sourceext', 'core_plugin'), 'source badge badge-info');
}
if ($status === core_plugin_manager::PLUGIN_STATUS_MISSING) {
$msg = html_writer::div(get_string('status_missing', 'core_plugin'), 'statusmsg label label-important');
$msg = html_writer::div(get_string('status_missing', 'core_plugin'), 'statusmsg badge badge-danger');
} else if ($status === core_plugin_manager::PLUGIN_STATUS_NEW) {
$msg = html_writer::div(get_string('status_new', 'core_plugin'), 'statusmsg label label-success');
$msg = html_writer::div(get_string('status_new', 'core_plugin'), 'statusmsg badge badge-success');
} else {
$msg = '';
}
@@ -1881,7 +1947,7 @@ class core_admin_renderer extends plugin_renderer_base {
get_string('status'),
);
$servertable->colclasses = array('centeralign name', 'centeralign info', 'leftalign report', 'leftalign plugin', 'centeralign status');
$servertable->attributes['class'] = 'admintable environmenttable generaltable';
$servertable->attributes['class'] = 'admintable environmenttable generaltable table-sm';
$servertable->id = 'serverstatus';
$serverdata = array('ok'=>array(), 'warn'=>array(), 'error'=>array());
@@ -1894,7 +1960,7 @@ class core_admin_renderer extends plugin_renderer_base {
get_string('status'),
);
$othertable->colclasses = array('aligncenter info', 'alignleft report', 'alignleft plugin', 'aligncenter status');
$othertable->attributes['class'] = 'admintable environmenttable generaltable';
$othertable->attributes['class'] = 'admintable environmenttable generaltable table-sm';
$othertable->id = 'otherserverstatus';
$otherdata = array('ok'=>array(), 'warn'=>array(), 'error'=>array());
@@ -1990,7 +2056,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);
@@ -1998,15 +2064,15 @@ class core_admin_renderer extends plugin_renderer_base {
// Format error or warning line
if ($errorline) {
$messagetype = 'error';
$statusclass = 'label-important';
$statusclass = 'badge-danger';
} else if ($warningline) {
$messagetype = 'warn';
$statusclass = 'label-warning';
$statusclass = 'badge-warning';
} else {
$messagetype = 'ok';
$statusclass = 'label-success';
$statusclass = 'badge-success';
}
$status = html_writer::span($status, 'label ' . $statusclass);
$status = html_writer::span($status, 'badge ' . $statusclass);
// Here we'll store all the feedback found
$feedbacktext = '';
// Append the feedback if there is some
@@ -2091,6 +2157,44 @@ class core_admin_renderer extends plugin_renderer_base {
* @return string
*/
public function moodleorg_registration_message() {
return format_text(get_string('registermoodlenet', 'admin'), FORMAT_HTML, ['noclean' => true]);
$out = format_text(get_string('registerwithmoodleorginfo', 'core_hub'), FORMAT_MARKDOWN);
$out .= html_writer::link(
new moodle_url('/admin/settings.php', ['section' => 'moodleservices']),
$this->output->pix_icon('i/info', '').' '.get_string('registerwithmoodleorginfoapp', 'core_hub'),
['class' => 'btn btn-link', 'role' => 'opener', 'target' => '_href']
);
$out .= html_writer::link(
HUB_MOODLEORGHUBURL,
$this->output->pix_icon('i/stats', '').' '.get_string('registerwithmoodleorginfostats', 'core_hub'),
['class' => 'btn btn-link', 'role' => 'opener', 'target' => '_href']
);
$out .= html_writer::link(
HUB_MOODLEORGHUBURL.'/sites',
$this->output->pix_icon('i/location', '').' '.get_string('registerwithmoodleorginfosites', 'core_hub'),
['class' => 'btn btn-link', 'role' => 'opener', 'target' => '_href']
);
return $this->output->box($out);
}
/**
* Display message about benefits of enabling the user feedback feature.
*
* @param bool $showfeedbackencouragement Whether the encouragement content should be displayed or not
* @return string
*/
protected function userfeedback_encouragement(bool $showfeedbackencouragement): string {
$output = '';
if ($showfeedbackencouragement) {
$settingslink = new moodle_url('/admin/settings.php', ['section' => 'userfeedback']);
$output .= $this->warning(get_string('userfeedbackencouragement', 'admin', $settingslink->out()), 'info');
}
return $output;
}
}
+2 -2
View File
@@ -123,13 +123,13 @@ if (($action == 'edit') || ($action == 'new')) {
}
$instanceoptionnames = repository::static_function($repository, 'get_instance_option_names');
if (!empty($instanceoptionnames)) {
if (array_key_exists('enablecourseinstances', $fromform)) {
if (property_exists($fromform, 'enablecourseinstances')) {
$settings['enablecourseinstances'] = $fromform->enablecourseinstances;
}
else {
$settings['enablecourseinstances'] = 0;
}
if (array_key_exists('enableuserinstances', $fromform)) {
if (property_exists($fromform, 'enableuserinstances')) {
$settings['enableuserinstances'] = $fromform->enableuserinstances;
}
else {
+2 -5
View File
@@ -36,15 +36,12 @@ if (!is_siteadmin()) {
}
$admisselector = new core_role_admins_existing_selector();
$admisselector->set_extra_fields(array('username', 'email'));
$potentialadmisselector = new core_role_admins_potential_selector();
$potentialadmisselector->set_extra_fields(array('username', 'email'));
if (optional_param('add', false, PARAM_BOOL) and confirm_sesskey()) {
if ($userstoadd = $potentialadmisselector->get_selected_users()) {
$user = reset($userstoadd);
$username = fullname($user) . " ($user->username, $user->email)";
$username = $potentialadmisselector->output_user($user);
echo $OUTPUT->header();
$yesurl = new moodle_url('/admin/roles/admins.php', array('confirmadd'=>$user->id, 'sesskey'=>sesskey()));
echo $OUTPUT->confirm(get_string('confirmaddadmin', 'core_role', $username), $yesurl, $PAGE->url);
@@ -58,7 +55,7 @@ if (optional_param('add', false, PARAM_BOOL) and confirm_sesskey()) {
if ($USER->id == $user->id) {
// Can not remove self.
} else {
$username = fullname($user) . " ($user->username, $user->email)";
$username = $admisselector->output_user($user);
echo $OUTPUT->header();
$yesurl = new moodle_url('/admin/roles/admins.php', array('confirmdel'=>$user->id, 'sesskey'=>sesskey()));
echo $OUTPUT->confirm(get_string('confirmdeladmin', 'core_role', $username), $yesurl, $PAGE->url);
-19
View File
@@ -46,25 +46,6 @@ $controller = new $classformode[$mode]();
if (optional_param('submit', false, PARAM_BOOL) && data_submitted() && confirm_sesskey()) {
$controller->process_submission();
$event = null;
// Create event depending on mode.
switch ($mode) {
case 'assign':
$event = \core\event\role_allow_assign_updated::create(array('context' => $syscontext));
break;
case 'override':
$event = \core\event\role_allow_override_updated::create(array('context' => $syscontext));
break;
case 'switch':
$event = \core\event\role_allow_switch_updated::create(array('context' => $syscontext));
break;
case 'view':
$event = \core\event\role_allow_view_updated::create(array('context' => $syscontext));
break;
}
if ($event) {
$event->trigger();
}
redirect($baseurl);
}
@@ -46,4 +46,8 @@ class core_role_allow_assign_page extends core_role_allow_role_page {
public function get_intro_text() {
return get_string('configallowassign', 'core_admin');
}
protected function get_eventclass() {
return \core\event\role_allow_assign_updated::class;
}
}
@@ -46,4 +46,8 @@ class core_role_allow_override_page extends core_role_allow_role_page {
public function get_intro_text() {
return get_string('configallowoverride2', 'core_admin');
}
protected function get_eventclass() {
return \core\event\role_allow_override_updated::class;
}
}
+30
View File
@@ -59,12 +59,36 @@ abstract class core_role_allow_role_page {
*/
public function process_submission() {
global $DB;
$context = context_system::instance();
$this->load_current_settings();
// Delete all records, then add back the ones that should be allowed.
$DB->delete_records($this->tablename);
foreach ($this->roles as $fromroleid => $notused) {
foreach ($this->roles as $targetroleid => $alsonotused) {
$isallowed = $this->allowed[$fromroleid][$targetroleid];
if (optional_param('s_' . $fromroleid . '_' . $targetroleid, false, PARAM_BOOL)) {
$this->set_allow($fromroleid, $targetroleid);
// Only trigger events if this role allow relationship did not exist and the checkbox element
// has been submitted.
if (!$isallowed) {
$eventclass = $this->get_eventclass();
$eventclass::create([
'context' => $context,
'objectid' => $fromroleid,
'other' => ['targetroleid' => $targetroleid, 'allow' => true]
])->trigger();
}
} else if ($isallowed) {
// When the user has deselect an existing role allow checkbox but it is in the list of roles
// allowances.
$eventclass = $this->get_eventclass();
$eventclass::create([
'context' => $context,
'objectid' => $fromroleid,
'other' => ['targetroleid' => $targetroleid, 'allow' => false]
])->trigger();
}
}
}
@@ -161,4 +185,10 @@ abstract class core_role_allow_role_page {
* @return string
*/
public abstract function get_intro_text();
/**
* Returns the allow class respective event class name.
* @return string
*/
protected abstract function get_eventclass();
}
@@ -58,4 +58,8 @@ class core_role_allow_switch_page extends core_role_allow_role_page {
public function get_intro_text() {
return get_string('configallowswitch', 'core_admin');
}
protected function get_eventclass() {
return \core\event\role_allow_switch_updated::class;
}
}
+4
View File
@@ -74,4 +74,8 @@ class core_role_allow_view_page extends core_role_allow_role_page {
public function get_intro_text() {
return get_string('configallowview', 'core_admin');
}
protected function get_eventclass() {
return \core\event\role_allow_view_updated::class;
}
}
@@ -43,7 +43,7 @@ abstract class core_role_capability_table_base {
protected $id;
/** Added to the class="" attribute on output. */
protected $classes = array('rolecap');
protected $classes = array('rolecap table-hover');
/** Default number of capabilities in the table for the search UI to be shown. */
const NUM_CAPS_FOR_SEARCH = 12;
@@ -50,6 +50,7 @@ class core_role_check_capability_table extends core_role_capability_table_base {
$this->contextname = $contextname;
$this->stryes = get_string('yes');
$this->strno = get_string('no');
$this->add_classes(['table-striped']);
}
protected function add_header_cells() {
+5 -2
View File
@@ -69,8 +69,11 @@ class core_role_check_users_selector extends user_selector_base {
if ($coursecontext and $coursecontext != SITEID) {
$sql1 = " FROM {user} u
JOIN {user_enrolments} ue ON (ue.userid = u.id)
JOIN {enrol} e ON (e.id = ue.enrolid AND e.courseid = :courseid1)
JOIN (SELECT DISTINCT subu.id
FROM {user} subu
JOIN {user_enrolments} ue ON (ue.userid = subu.id)
JOIN {enrol} e ON (e.id = ue.enrolid AND e.courseid = :courseid1)
) subq ON subq.id = u.id
WHERE $wherecondition";
$params['courseid1'] = $coursecontext->instanceid;
@@ -55,6 +55,7 @@ class core_role_define_role_table_advanced extends core_role_capability_table_wi
foreach ($levels as $level => $classname) {
$this->allcontextlevels[$level] = context_helper::get_level_name($level);
}
$this->add_classes(['table-striped']);
}
protected function load_current_permissions() {
@@ -157,19 +158,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.
@@ -434,7 +435,7 @@ class core_role_define_role_table_advanced extends core_role_capability_table_wi
}
public function save_changes() {
global $DB;
global $DB, $USER;
if (!$this->roleid) {
// Creating role.
@@ -444,6 +445,20 @@ class core_role_define_role_table_advanced extends core_role_capability_table_wi
// Updating role.
$DB->update_record('role', $this->role);
// Trigger role updated event.
\core\event\role_updated::create([
'userid' => $USER->id,
'objectid' => $this->role->id,
'context' => $this->context,
'other' => [
'name' => $this->role->name,
'shortname' => $this->role->shortname,
'description' => $this->role->description,
'archetype' => $this->role->archetype,
'contextlevels' => $this->contextlevels
]
])->trigger();
// This will ensure the course contacts cache is purged so name changes get updated in
// the UI. It would be better to do this only when we know that fields affected are
// updated. But thats getting into the weeds of the coursecat cache and role edits
@@ -473,10 +488,17 @@ class core_role_define_role_table_advanced extends core_role_capability_table_wi
$addfunction = "core_role_set_{$type}_allowed";
$deltable = 'role_allow_'.$type;
$field = 'allow'.$type;
$eventclass = "\\core\\event\\role_allow_" . $type . "_updated";
$context = context_system::instance();
foreach ($current as $roleid) {
if (!in_array($roleid, $wanted)) {
$DB->delete_records($deltable, array('roleid'=>$this->roleid, $field=>$roleid));
$eventclass::create([
'context' => $context,
'objectid' => $this->roleid,
'other' => ['targetroleid' => $roleid, 'allow' => false]
])->trigger();
continue;
}
$key = array_search($roleid, $wanted);
@@ -488,6 +510,14 @@ class core_role_define_role_table_advanced extends core_role_capability_table_wi
$roleid = $this->roleid;
}
$addfunction($this->roleid, $roleid);
if (in_array($roleid, $wanted)) {
$eventclass::create([
'context' => $context,
'objectid' => $this->roleid,
'other' => ['targetroleid' => $roleid, 'allow' => true]
])->trigger();
}
}
}
@@ -589,7 +619,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'));
}
@@ -623,7 +655,7 @@ class core_role_define_role_table_advanced extends core_role_capability_table_wi
echo "</label>\n";
}
if ($helpicon) {
echo '<span class="pull-xs-right text-nowrap">'.$helpicon.'</span>';
echo '<span class="float-sm-right text-nowrap">'.$helpicon.'</span>';
}
echo '</div>';
if (isset($this->errors[$name])) {
@@ -66,9 +66,9 @@ class core_role_override_permissions_table_advanced extends core_role_capability
$rowattributes = parent::get_row_attributes($capability);
if ($this->permissions[$capability->name] !== 0) {
if (empty($rowattributes['class'])) {
$rowattributes['class'] = "overriddenpermission";
$rowattributes['class'] = "overriddenpermission table-warning";
} else {
$rowattributes['class'] .= " overriddenpermission";
$rowattributes['class'] .= " overriddenpermission table-warning";
}
}
return $rowattributes;
+2 -2
View File
@@ -96,7 +96,7 @@ class core_role_permissions_table extends core_role_capability_table_base {
"linkclass" => "preventlink", "adminurl" => $adminurl->out(), "icon" => "", "iconalt" => "");
if (isset($overridableroles[$id]) and ($allowoverrides or ($allowsafeoverrides and is_safe_capability($capability)))) {
$templatecontext['icon'] = 't/delete';
$templatecontext['iconalt'] = get_string('delete');
$templatecontext['iconalt'] = get_string('deletexrole', 'core_role', $name);
}
$neededroles[$id] = $renderer->render_from_template('core/permissionmanager_role', $templatecontext);
}
@@ -109,7 +109,7 @@ class core_role_permissions_table extends core_role_capability_table_base {
"icon" => "", "iconalt" => "");
if (isset($overridableroles[$id]) and prohibit_is_removable($id, $context, $capability->name)) {
$templatecontext['icon'] = 't/delete';
$templatecontext['iconalt'] = get_string('delete');
$templatecontext['iconalt'] = get_string('deletexrole', 'core_role', $name);
}
$forbiddenroles[$id] = $renderer->render_from_template('core/permissionmanager_role', $templatecontext);
}
+3 -14
View File
@@ -52,10 +52,12 @@ if ($return === 'manage') {
$returnurl = new moodle_url('/admin/roles/define.php', array('action'=>'view', 'roleid'=>$roleid));;
}
admin_externalpage_setup('defineroles', '', array('action' => $action, 'roleid' => $roleid),
new moodle_url('/admin/roles/define.php'));
// Check access permissions.
$systemcontext = context_system::instance();
require_capability('moodle/role:manage', $systemcontext);
admin_externalpage_setup('defineroles', '', array('action' => $action, 'roleid' => $roleid), new moodle_url('/admin/roles/define.php'));
// Export role.
if ($action === 'export') {
@@ -198,19 +200,6 @@ if (optional_param('cancel', false, PARAM_BOOL)) {
if (optional_param('savechanges', false, PARAM_BOOL) && confirm_sesskey() && $definitiontable->is_submission_valid()) {
$definitiontable->save_changes();
$tableroleid = $definitiontable->get_role_id();
// Trigger event.
$event = \core\event\role_capabilities_updated::create(
array(
'context' => $systemcontext,
'objectid' => $tableroleid
)
);
$event->set_legacy_logdata(array(SITEID, 'role', $action, 'admin/roles/define.php?action=view&roleid=' . $tableroleid,
$definitiontable->get_role_name(), '', $USER->id));
if (!empty($role)) {
$event->add_record_snapshot('role', $role);
}
$event->trigger();
if ($action === 'add') {
redirect(new moodle_url('/admin/roles/define.php', array('action'=>'view', 'roleid'=>$definitiontable->get_role_id())));
+2 -1
View File
@@ -46,10 +46,11 @@ if ($action) {
$baseurl = $CFG->wwwroot . '/' . $CFG->admin . '/roles/manage.php';
$defineurl = $CFG->wwwroot . '/' . $CFG->admin . '/roles/define.php';
admin_externalpage_setup('defineroles');
// Check access permissions.
$systemcontext = context_system::instance();
require_capability('moodle/role:manage', $systemcontext);
admin_externalpage_setup('defineroles');
// Get some basic data we are going to need.
$roles = role_fix_names(get_all_roles(), $systemcontext, ROLENAME_ORIGINAL);
+1 -1
View File
@@ -51,7 +51,7 @@ M.core_role.init_cap_table_filter = function(Y, tableid, contextid) {
marginRight : 'auto'
});
// Create the capability search input.
this.input = Y.Node.create('<input class="form-control m-x-1" type="text"' +
this.input = Y.Node.create('<input class="form-control mx-1" type="text"' +
' id="'+this.table.get('id')+'capabilitysearch" value="'+Y.Escape.html(filtervalue)+'" />');
// Create a label for the search input.
this.label = Y.Node.create('<label for="' + this.input.get('id') + '">' +
-16
View File
@@ -134,22 +134,6 @@ $overridestable->read_submitted_permissions();
if (optional_param('savechanges', false, PARAM_BOOL) && confirm_sesskey()) {
$overridestable->save_changes();
$rolename = $overridableroles[$roleid];
// Trigger event.
$event = \core\event\role_capabilities_updated::create(
array(
'context' => $context,
'objectid' => $roleid,
)
);
$event->set_legacy_logdata(
array(
$course->id, 'role', 'override', 'admin/roles/override.php?contextid=' . $context->id . '&roleid=' . $roleid,
$rolename, '', $USER->id
)
);
$event->add_record_snapshot('role', $role);
$event->trigger();
redirect($returnurl);
}
+1 -1
View File
@@ -213,7 +213,7 @@ $arguments = array('contextid' => $contextid,
$PAGE->requires->strings_for_js(
array('roleprohibitinfo', 'roleprohibitheader', 'roleallowinfo', 'roleallowheader',
'confirmunassigntitle', 'confirmroleunprohibit', 'confirmroleprevent', 'confirmunassignyes',
'confirmunassignno'), 'core_role');
'confirmunassignno', 'deletexrole'), 'core_role');
$PAGE->requires->js_call_amd('core/permissionmanager', 'initialize', array($arguments));
$table = new core_role_permissions_table($context, $contextname, $allowoverrides, $allowsafeoverrides, $overridableroles);
echo $OUTPUT->box_start('generalbox capbox');
+7 -7
View File
@@ -536,7 +536,7 @@ class core_role_privacy_testcase extends provider_testcase {
$user1->id,
$admin->id
];
$this->assertEquals($expected, $userlist2->get_userids(), '', 0.0, 10, true);
$this->assertEqualsCanonicalizing($expected, $userlist2->get_userids());
// The user list for coursecontext1 should user1, user2 and admin (role creator).
$userlist3 = new \core_privacy\local\request\userlist($coursecontext1, $component);
@@ -547,7 +547,7 @@ class core_role_privacy_testcase extends provider_testcase {
$user2->id,
$admin->id
];
$this->assertEquals($expected, $userlist3->get_userids(), '', 0.0, 10, true);
$this->assertEqualsCanonicalizing($expected, $userlist3->get_userids());
// The user list for coursecatcontext should user2 and admin (role creator).
$userlist4 = new \core_privacy\local\request\userlist($coursecatcontext, $component);
@@ -557,7 +557,7 @@ class core_role_privacy_testcase extends provider_testcase {
$user2->id,
$admin->id
];
$this->assertEquals($expected, $userlist4->get_userids(), '', 0.0, 10, true);
$this->assertEqualsCanonicalizing($expected, $userlist4->get_userids());
// The user list for systemcontext should user1 and admin (role creator).
$userlist6 = new \core_privacy\local\request\userlist($systemcontext, $component);
@@ -567,7 +567,7 @@ class core_role_privacy_testcase extends provider_testcase {
$user1->id,
$admin->id
];
$this->assertEquals($expected, $userlist6->get_userids(), '', 0.0, 10, true);
$this->assertEqualsCanonicalizing($expected, $userlist6->get_userids());
// The user list for cmcontext should user1, user2 and admin (role creator).
$userlist7 = new \core_privacy\local\request\userlist($cmcontext, $component);
@@ -578,7 +578,7 @@ class core_role_privacy_testcase extends provider_testcase {
$user2->id,
$admin->id
];
$this->assertEquals($expected, $userlist7->get_userids(), '', 0.0, 10, true);
$this->assertEqualsCanonicalizing($expected, $userlist7->get_userids());
// The user list for blockcontext should user1 and admin (role creator).
$userlist8 = new \core_privacy\local\request\userlist($blockcontext, $component);
@@ -588,7 +588,7 @@ class core_role_privacy_testcase extends provider_testcase {
$user1->id,
$admin->id
];
$this->assertEquals($expected, $userlist8->get_userids(), '', 0.0, 10, true);
$this->assertEqualsCanonicalizing($expected, $userlist8->get_userids());
}
/**
@@ -744,4 +744,4 @@ class core_role_privacy_testcase extends provider_testcase {
}
return $rolesnames;
}
}
}
+1 -1
View File
@@ -45,7 +45,7 @@ $PAGE->set_pagelayout('admin');
// Check login and permissions.
if ($course->id == SITEID) {
require_login();
require_login(null, false);
$PAGE->set_context($usercontext);
} else {
require_login($course);
+10 -3
View File
@@ -68,9 +68,16 @@ if ($errormsg !== '') {
$showsettingslinks = true;
if ($hassiteconfig) {
require_once("admin_settings_search_form.php");
$form = new admin_settings_search_form();
$form->display();
$data = [
'action' => new moodle_url('/admin/search.php'),
'btnclass' => 'btn-primary',
'inputname' => 'query',
'searchstring' => get_string('search'),
'query' => $query,
'extraclasses' => 'd-flex justify-content-center'
];
echo $OUTPUT->render_from_template('core/search_input', $data);
echo '<hr>';
if ($query) {
echo admin_search_settings_html($query);
+9
View File
@@ -153,6 +153,7 @@ $table = new html_table();
$table->id = 'core-search-areas';
$table->head = [
get_string('searcharea', 'search'),
get_string('searchareacategories', 'search'),
get_string('enable'),
get_string('newestdocindexed', 'admin'),
get_string('searchlastrun', 'admin'),
@@ -165,6 +166,14 @@ foreach ($searchareas as $area) {
$areaid = $area->get_area_id();
$columns = array(new html_table_cell($area->get_visible_name()));
$areacategories = [];
foreach (\core_search\manager::get_search_area_categories() as $category) {
if (key_exists($areaid, $category->get_areas())) {
$areacategories[] = $category->get_visiblename();
}
}
$columns[] = new html_table_cell(implode(', ', $areacategories));
if ($area->is_enabled()) {
$columns[] = $OUTPUT->action_icon(admin_searcharea_action_url('disable', $areaid),
new pix_icon('t/hide', get_string('disable'), 'moodle', array('title' => '', 'class' => 'iconsmall')),
+7
View File
@@ -156,4 +156,11 @@ $PAGE->requires->yui_module('moodle-core-formchangechecker',
);
$PAGE->requires->string_for_js('changesmadereallygoaway', 'moodle');
if ($settingspage->has_dependencies()) {
$opts = [
'dependencies' => $settingspage->get_dependencies_for_javascript()
];
$PAGE->requires->js_call_amd('core/showhidesettings', 'init', [$opts]);
}
echo $OUTPUT->footer();
+50 -12
View File
@@ -24,11 +24,53 @@
defined('MOODLE_INTERNAL') || die();
if ($hassiteconfig) {
if ($hassiteconfig && \core_analytics\manager::is_analytics_enabled()) {
$settings = new admin_settingpage('analyticssite', new lang_string('analyticssiteinfo', 'analytics'));
$ADMIN->add('analytics', $settings);
if ($ADMIN->fulltree) {
$modeinstructions = [
'facetoface' => get_string('modeinstructionfacetoface', 'analytics'),
'blendedhybrid' => get_string('modeinstructionblendedhybrid', 'analytics'),
'fullyonline' => get_string('modeinstructionfullyonline', 'analytics'),
];
$settings->add(new admin_setting_configmultiselect('analytics/modeinstruction', get_string('modeinstruction', 'analytics'),
'', [], $modeinstructions));
$settings->add(new admin_setting_configtext_with_maxlength('analytics/percentonline',
get_string('percentonline', 'analytics'),
get_string('percentonline_help', 'analytics'), '', PARAM_INT, 3, 3));
$typeinstitutions = [
'typeinstitutionacademic' => get_string('typeinstitutionacademic', 'analytics'),
'typeinstitutiontraining' => get_string('typeinstitutiontraining', 'analytics'),
'typeinstitutionngo' => get_string('typeinstitutionngo', 'analytics'),
];
$settings->add(new admin_setting_configmultiselect('analytics/typeinstitution', get_string('typeinstitution', 'analytics'),
'', [], $typeinstitutions));
$levelinstitutions = [
'levelinstitutionisced0' => get_string('levelinstitutionisced0', 'analytics'),
'levelinstitutionisced1' => get_string('levelinstitutionisced1', 'analytics'),
'levelinstitutionisced2' => get_string('levelinstitutionisced2', 'analytics'),
'levelinstitutionisced3' => get_string('levelinstitutionisced3', 'analytics'),
'levelinstitutionisced4' => get_string('levelinstitutionisced4', 'analytics'),
'levelinstitutionisced5' => get_string('levelinstitutionisced5', 'analytics'),
'levelinstitutionisced6' => get_string('levelinstitutionisced6', 'analytics'),
'levelinstitutionisced7' => get_string('levelinstitutionisced7', 'analytics'),
'levelinstitutionisced8' => get_string('levelinstitutionisced8', 'analytics'),
];
$settings->add(new admin_setting_configmultiselect('analytics/levelinstitution',
get_string('levelinstitution', 'analytics'), '', [], $levelinstitutions));
}
$settings = new admin_settingpage('analyticssettings', new lang_string('analyticssettings', 'analytics'));
$ADMIN->add('analytics', $settings);
if ($ADMIN->fulltree) {
// Select the site prediction's processor.
$predictionprocessors = \core_analytics\manager::get_all_prediction_processors();
$predictors = array();
@@ -75,7 +117,7 @@ if ($hassiteconfig) {
$defaultreader, $options));
// Enable/disable time splitting methods.
$alltimesplittings = \core_analytics\manager::get_all_time_splittings();
$alltimesplittings = \core_analytics\manager::get_time_splitting_methods_for_evaluation(true);
$timesplittingoptions = array();
$timesplittingdefaults = array('\core\analytics\time_splitting\quarters_accum',
@@ -83,20 +125,16 @@ if ($hassiteconfig) {
foreach ($alltimesplittings as $key => $timesplitting) {
$timesplittingoptions[$key] = $timesplitting->get_name();
}
$settings->add(new admin_setting_configmultiselect('analytics/timesplittings',
new lang_string('enabledtimesplittings', 'analytics'), new lang_string('timesplittingmethod_help', 'analytics'),
$settings->add(new admin_setting_configmultiselect('analytics/defaulttimesplittingsevaluation',
new lang_string('defaulttimesplittingmethods', 'analytics'),
new lang_string('defaulttimesplittingmethods_help', 'analytics'),
$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'),
+34 -1
View File
@@ -25,7 +25,12 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) { // sp
$temp->add(new admin_setting_configcheckbox('allowcohortthemes', new lang_string('allowcohortthemes', 'admin'), new lang_string('configallowcohortthemes', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('allowthemechangeonurl', new lang_string('allowthemechangeonurl', 'admin'), new lang_string('configallowthemechangeonurl', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('allowuserblockhiding', new lang_string('allowuserblockhiding', 'admin'), new lang_string('configallowuserblockhiding', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('allowblockstodock', new lang_string('allowblockstodock', 'admin'), new lang_string('configallowblockstodock', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('langmenuinsecurelayout',
new lang_string('langmenuinsecurelayout', 'admin'),
new lang_string('langmenuinsecurelayout_desc', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('logininfoinsecurelayout',
new lang_string('logininfoinsecurelayout', 'admin'),
new lang_string('logininfoinsecurelayout_desc', 'admin'), 0));
$temp->add(new admin_setting_configtextarea('custommenuitems', new lang_string('custommenuitems', 'admin'),
new lang_string('configcustommenuitems', 'admin'), '', PARAM_RAW, '50', '10'));
$temp->add(new admin_setting_configtextarea(
@@ -77,6 +82,24 @@ preferences,moodle|/user/preferences.php|t/preferences',
$ADMIN->add('appearance', $temp);
// Course colours section.
$temp = new admin_settingpage('coursecolors', new lang_string('coursecolorsettings', 'admin'));
$temp->add(new admin_setting_heading('coursecolorheading', '',
new lang_string('coursecolorheading_desc', 'admin')));
$basecolors = ['#81ecec', '#74b9ff', '#a29bfe', '#dfe6e9', '#00b894',
'#0984e3', '#b2bec3', '#fdcb6e', '#fd79a8', '#6c5ce7'];
foreach ($basecolors as $key => $color) {
$number = $key + 1;
$name = 'core_admin/coursecolor' . $number;
$title = get_string('coursecolor', 'admin', $number);
$setting = new admin_setting_configcolourpicker($name, $title, '', $color);
$temp->add($setting);
}
$ADMIN->add('appearance', $temp);
// Calendar settings.
$temp = new admin_settingpage('calendar', new lang_string('calendarsettings','admin'));
@@ -180,6 +203,10 @@ preferences,moodle|/user/preferences.php|t/preferences',
'idnumber' => new lang_string('sort_idnumber', 'admin'),
);
$temp->add(new admin_setting_configselect('navsortmycoursessort', new lang_string('navsortmycoursessort', 'admin'), new lang_string('navsortmycoursessort_help', 'admin'), 'sortorder', $sortoptions));
$temp->add(new admin_setting_configcheckbox('navsortmycourseshiddenlast',
new lang_string('navsortmycourseshiddenlast', 'admin'),
new lang_string('navsortmycourseshiddenlast_help', 'admin'),
1));
$temp->add(new admin_setting_configtext('navcourselimit', new lang_string('navcourselimit', 'admin'),
new lang_string('confignavcourselimit', 'admin'), 10, PARAM_INT));
$temp->add(new admin_setting_configcheckbox('usesitenameforsitepages', new lang_string('usesitenameforsitepages', 'admin'), new lang_string('configusesitenameforsitepages', 'admin'), 0));
@@ -258,4 +285,10 @@ preferences,moodle|/user/preferences.php|t/preferences',
$temp->add(new admin_setting_configtextarea('additionalhtmlfooter', new lang_string('additionalhtmlfooter', 'admin'), new lang_string('additionalhtmlfooter_desc', 'admin'), '', PARAM_RAW));
$ADMIN->add('appearance', $temp);
$setting = new admin_setting_configcheckbox('cachetemplates', new lang_string('cachetemplates', 'admin'),
new lang_string('cachetemplates_help', 'admin'), 1);
$setting->set_updatedcallback('template_reset_all_caches');
$temp = new admin_settingpage('templates', new lang_string('templates', 'admin'));
$temp->add($setting);
$ADMIN->add('appearance', $temp);
} // end of speedup
+30 -3
View File
@@ -57,9 +57,15 @@ if (($hassiteconfig || has_any_capability(array(
new lang_string('badgesalt_desc', 'badges'),
'badges' . $SITE->timecreated, PARAM_ALPHANUM));
$globalsettings->add(new admin_setting_configcheckbox('badges_allowexternalbackpack',
new lang_string('allowexternalbackpack', 'badges'),
new lang_string('allowexternalbackpack_desc', 'badges'), 1));
$backpacks = badges_get_site_backpacks();
$choices = array();
$defaultchoice = 0;
foreach ($backpacks as $backpack) {
$choices[$backpack->id] = $backpack->backpackweburl;
if ($backpack->backpackweburl == BADGRIO_BACKPACKWEBURL) {
$defaultchoice = $backpack->id;
}
}
$globalsettings->add(new admin_setting_configcheckbox('badges_allowcoursebadges',
new lang_string('allowcoursebadges', 'badges'),
@@ -91,4 +97,25 @@ if (($hassiteconfig || has_any_capability(array(
array('moodle/badges:createbadge'), empty($CFG->enablebadges)
)
);
$backpacksettings = new admin_settingpage('backpacksettings', new lang_string('backpacksettings', 'badges'),
array('moodle/badges:manageglobalsettings'), empty($CFG->enablebadges));
$backpacksettings->add(new admin_setting_configcheckbox('badges_allowexternalbackpack',
new lang_string('allowexternalbackpack', 'badges'),
new lang_string('allowexternalbackpack_desc', 'badges'), 1));
$backpacksettings->add(new admin_setting_configselect('badges_site_backpack',
new lang_string('sitebackpack', 'badges'),
new lang_string('sitebackpack_help', 'badges'),
$defaultchoice, $choices));
$ADMIN->add('badges', $backpacksettings);
$ADMIN->add('badges',
new admin_externalpage('managebackpacks',
new lang_string('managebackpacks', 'badges'),
new moodle_url('/badges/backpacks.php'),
array('moodle/badges:manageglobalsettings'), empty($CFG->enablebadges) || empty($CFG->badges_allowexternalbackpack)
)
);
}
+166 -4
View File
@@ -22,6 +22,8 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
use core_admin\local\settings\filesize;
$capabilities = array(
'moodle/backup:backupcourse',
'moodle/category:manage',
@@ -37,6 +39,12 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
array('moodle/category:manage', 'moodle/course:create')
)
);
$ADMIN->add('courses',
new admin_externalpage('course_customfield', new lang_string('course_customfield', 'admin'),
$CFG->wwwroot . '/course/customfield.php',
array('moodle/course:configurecustomfields')
)
);
$ADMIN->add('courses',
new admin_externalpage('addcategory', new lang_string('addcategory', 'admin'),
new moodle_url('/course/editcategory.php', array('parent' => 0)),
@@ -69,6 +77,17 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
$temp->add(new admin_setting_configselect('moodlecourse/visible', new lang_string('visible'), new lang_string('visible_help'),
1, $choices));
// Enable/disable download course content.
$choices = [
DOWNLOAD_COURSE_CONTENT_DISABLED => new lang_string('no'),
DOWNLOAD_COURSE_CONTENT_ENABLED => new lang_string('yes'),
];
$downloadcontentsitedefault = new admin_setting_configselect('moodlecourse/downloadcontentsitedefault',
new lang_string('enabledownloadcoursecontent', 'course'),
new lang_string('downloadcoursecontent_help', 'course'), 0, $choices);
$downloadcontentsitedefault->add_dependent_on('downloadcoursecontentallowed');
$temp->add($downloadcontentsitedefault);
// Course format.
$temp->add(new admin_setting_heading('courseformathdr', new lang_string('type_format', 'plugin'), ''));
@@ -155,11 +174,32 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
$ADMIN->add('courses', $temp);
// Download course content.
$downloadcoursedefaulturl = new moodle_url('/admin/settings.php', ['section' => 'coursesettings']);
$temp = new admin_settingpage('downloadcoursecontent', new lang_string('downloadcoursecontent', 'course'));
$temp->add(new admin_setting_configcheckbox('downloadcoursecontentallowed',
new lang_string('downloadcoursecontentallowed', 'admin'),
new lang_string('downloadcoursecontentallowed_desc', 'admin', $downloadcoursedefaulturl->out()), 0));
// 50MB default maximum size per file when downloading course content.
$defaultmaxdownloadsize = 50 * filesize::UNIT_MB;
$temp->add(new filesize('maxsizeperdownloadcoursefile', new lang_string('maxsizeperdownloadcoursefile', 'admin'),
new lang_string('maxsizeperdownloadcoursefile_desc', 'admin'), $defaultmaxdownloadsize, filesize::UNIT_MB));
$temp->hide_if('maxsizeperdownloadcoursefile', 'downloadcoursecontentallowed');
$ADMIN->add('courses', $temp);
// "courserequests" settingpage.
$temp = new admin_settingpage('courserequest', new lang_string('courserequest'));
$temp->add(new admin_setting_configcheckbox('enablecourserequests', new lang_string('enablecourserequests', 'admin'), new lang_string('configenablecourserequests', 'admin'), 0));
$temp->add(new admin_settings_coursecat_select('defaultrequestcategory', new lang_string('defaultrequestcategory', 'admin'), new lang_string('configdefaultrequestcategory', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('requestcategoryselection', new lang_string('requestcategoryselection', 'admin'), new lang_string('configrequestcategoryselection', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('enablecourserequests',
new lang_string('enablecourserequests', 'admin'),
new lang_string('configenablecourserequests', 'admin'), 1));
$temp->add(new admin_settings_coursecat_select('defaultrequestcategory',
new lang_string('defaultrequestcategory', 'admin'),
new lang_string('configdefaultrequestcategory', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('lockrequestcategory',
new lang_string('lockrequestcategory', 'admin'),
new lang_string('configlockrequestcategory', 'admin'), 0));
$temp->add(new admin_setting_users_with_capability('courserequestnotify', new lang_string('courserequestnotify', 'admin'), new lang_string('configcourserequestnotify2', 'admin'), array(), 'moodle/site:approvecourse'));
$ADMIN->add('courses', $temp);
@@ -169,6 +209,56 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
$CFG->wwwroot . '/course/pending.php', array('moodle/site:approvecourse')));
}
// Add a category for the Activity Chooser.
$ADMIN->add('courses', new admin_category('activitychooser', new lang_string('activitychoosercategory', 'course')));
$temp = new admin_settingpage('activitychoosersettings', new lang_string('activitychoosersettings', 'course'));
// Tab mode for the activity chooser.
$temp->add(
new admin_setting_configselect(
'activitychoosertabmode',
new lang_string('activitychoosertabmode', 'course'),
new lang_string('activitychoosertabmode_desc', 'course'),
0,
[
0 => new lang_string('activitychoosertabmodeone', 'course'),
1 => new lang_string('activitychoosertabmodetwo', 'course'),
2 => new lang_string('activitychoosertabmodethree', 'course'),
]
)
);
// Build a list of plugins that use the footer callback.
$pluginswithfunction = get_plugins_with_function('custom_chooser_footer', 'lib.php');
$pluginsoptions = [];
$pluginsoptions[COURSE_CHOOSER_FOOTER_NONE] = get_string('activitychooserhidefooter', 'course');
if ($pluginswithfunction) {
foreach ($pluginswithfunction as $plugintype => $plugins) {
foreach ($plugins as $pluginname => $pluginfunction) {
$plugin = $plugintype.'_'.$pluginname;
$pluginsoptions[$plugin] = get_string('pluginname', $plugin);
}
}
}
// Select what plugin to show in the footer.
$temp->add(
new admin_setting_configselect(
'activitychooseractivefooter',
new lang_string('activitychooseractivefooter', 'course'),
new lang_string('activitychooseractivefooter_desc', 'course'),
COURSE_CHOOSER_FOOTER_NONE,
$pluginsoptions
)
);
$ADMIN->add('activitychooser', $temp);
$ADMIN->add('activitychooser',
new admin_externalpage('activitychooserrecommended', new lang_string('activitychooserrecommendations', 'course'),
new moodle_url('/course/recommendations.php'),
array('moodle/course:recommendactivity')
)
);
// Add a category for backups.
$ADMIN->add('courses', new admin_category('backups', new lang_string('backups','admin')));
@@ -200,6 +290,11 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_role_assignments', new lang_string('generalroleassignments','backup'), new lang_string('configgeneralroleassignments','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_activities', new lang_string('generalactivities','backup'), new lang_string('configgeneralactivities','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_blocks', new lang_string('generalblocks','backup'), new lang_string('configgeneralblocks','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock(
'backup/backup_general_files',
new lang_string('generalfiles', 'backup'),
new lang_string('configgeneralfiles', 'backup'),
array('value' => '1', 'locked' => 0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_filters', new lang_string('generalfilters','backup'), new lang_string('configgeneralfilters','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_comments', new lang_string('generalcomments','backup'), new lang_string('configgeneralcomments','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_badges', new lang_string('generalbadges','backup'), new lang_string('configgeneralbadges','backup'), array('value'=>1,'locked'=>0)));
@@ -212,7 +307,15 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
new lang_string('generalgroups', 'backup'), new lang_string('configgeneralgroups', 'backup'),
array('value' => 1, 'locked' => 0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_competencies', new lang_string('generalcompetencies','backup'), new lang_string('configgeneralcompetencies','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_contentbankcontent',
new lang_string('generalcontentbankcontent', 'backup'),
new lang_string('configgeneralcontentbankcontent', 'backup'),
['value' => 1, 'locked' => 0])
);
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_legacyfiles',
new lang_string('generallegacyfiles', 'backup'),
new lang_string('configlegacyfiles', 'backup'), array('value' => 1, 'locked' => 0)));
$ADMIN->add('backups', $temp);
// Create a page for general import configuration and defaults.
@@ -233,6 +336,15 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
new lang_string('generalgroups', 'backup'), new lang_string('configgeneralgroups', 'backup'),
array('value' => 1, 'locked' => 0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_import_competencies', new lang_string('generalcompetencies','backup'), new lang_string('configgeneralcompetencies','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock(
'backup/backup_import_contentbankcontent',
new lang_string('generalcontentbankcontent', 'backup'),
new lang_string('configgeneralcontentbankcontent', 'backup'),
['value' => 1, 'locked' => 0])
);
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_import_legacyfiles',
new lang_string('generallegacyfiles', 'backup'),
new lang_string('configlegacyfiles', 'backup'), array('value' => 1, 'locked' => 0)));
$ADMIN->add('backups', $temp);
@@ -259,6 +371,8 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
$maxkeptoptions = array(
0 => new lang_string('all'), 1 => '1',
2 => '2',
3 => '3',
4 => '4',
5 => '5',
10 => '10',
20 => '20',
@@ -330,11 +444,15 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_skip_modif_prev', new lang_string('skipmodifprev', 'backup'), new lang_string('skipmodifprevhelp', 'backup'), 0));
// Automated defaults section.
$temp->add(new admin_setting_heading('automatedsettings', new lang_string('automatedsettings','backup'), ''));
$temp->add(new admin_setting_heading('automatedsettings', new lang_string('automatedsettings','backup'), new lang_string('recyclebin_desc', 'backup')));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_users', new lang_string('generalusers', 'backup'), new lang_string('configgeneralusers', 'backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_role_assignments', new lang_string('generalroleassignments','backup'), new lang_string('configgeneralroleassignments','backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_activities', new lang_string('generalactivities','backup'), new lang_string('configgeneralactivities','backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_blocks', new lang_string('generalblocks','backup'), new lang_string('configgeneralblocks','backup'), 1));
$temp->add(new admin_setting_configcheckbox(
'backup/backup_auto_files',
new lang_string('generalfiles', 'backup'),
new lang_string('configgeneralfiles', 'backup'), '1'));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_filters', new lang_string('generalfilters','backup'), new lang_string('configgeneralfilters','backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_comments', new lang_string('generalcomments','backup'), new lang_string('configgeneralcomments','backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_badges', new lang_string('generalbadges','backup'), new lang_string('configgeneralbadges','backup'), 1));
@@ -346,6 +464,16 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_groups', new lang_string('generalgroups', 'backup'),
new lang_string('configgeneralgroups', 'backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_competencies', new lang_string('generalcompetencies','backup'), new lang_string('configgeneralcompetencies','backup'), 1));
$temp->add(new admin_setting_configcheckbox(
'backup/backup_auto_contentbankcontent',
new lang_string('generalcontentbankcontent', 'backup'),
new lang_string('configgeneralcontentbankcontent', 'backup'),
1)
);
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_legacyfiles',
new lang_string('generallegacyfiles', 'backup'),
new lang_string('configlegacyfiles', 'backup'), 1));
//$temp->add(new admin_setting_configcheckbox('backup/backup_auto_messages', new lang_string('messages', 'message'), new lang_string('backupmessageshelp','message'), 0));
//$temp->add(new admin_setting_configcheckbox('backup/backup_auto_blogs', new lang_string('blogs', 'blog'), new lang_string('backupblogshelp','blog'), 0));
@@ -406,6 +534,12 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
$temp->add(new admin_setting_configcheckbox_with_lock('restore/restore_general_competencies',
new lang_string('generalcompetencies', 'backup'),
new lang_string('configrestorecompetencies', 'backup'), array('value' => 1, 'locked' => 0)));
$temp->add(new admin_setting_configcheckbox_with_lock('restore/restore_general_contentbankcontent',
new lang_string('generalcontentbankcontent', 'backup'),
new lang_string('configrestorecontentbankcontent', 'backup'), array('value' => 1, 'locked' => 0)));
$temp->add(new admin_setting_configcheckbox_with_lock('restore/restore_general_legacyfiles',
new lang_string('generallegacyfiles', 'backup'),
new lang_string('configlegacyfiles', 'backup'), array('value' => 1, 'locked' => 0)));
// Restore defaults when merging into another course.
$temp->add(new admin_setting_heading('mergerestoredefaults', new lang_string('mergerestoredefaults', 'backup'), ''));
@@ -452,4 +586,32 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
$ADMIN->add('backups', $temp);
// Create a page for asynchronous backup and restore configuration and defaults.
$temp = new admin_settingpage('asyncgeneralsettings', new lang_string('asyncgeneralsettings', 'backup'));
$temp->add(new admin_setting_configcheckbox('enableasyncbackup', new lang_string('enableasyncbackup', 'backup'),
new lang_string('enableasyncbackup_help', 'backup'), 0, 1, 0));
$temp->add(new admin_setting_configcheckbox(
'backup/backup_async_message_users',
new lang_string('asyncemailenable', 'backup'),
new lang_string('asyncemailenabledetail', 'backup'), 0));
$temp->hide_if('backup/backup_async_message_users', 'enableasyncbackup');
$temp->add(new admin_setting_configtext(
'backup/backup_async_message_subject',
new lang_string('asyncmessagesubject', 'backup'),
new lang_string('asyncmessagesubjectdetail', 'backup'),
new lang_string('asyncmessagesubjectdefault', 'backup')));
$temp->hide_if('backup/backup_async_message_subject', 'backup/backup_async_message_users');
$temp->add(new admin_setting_confightmleditor(
'backup/backup_async_message',
new lang_string('asyncmessagebody', 'backup'),
new lang_string('asyncmessagebodydetail', 'backup'),
new lang_string('asyncmessagebodydefault', 'backup')));
$temp->hide_if('backup/backup_async_message', 'backup/backup_async_message_users');
$ADMIN->add('backups', $temp);
}
+16 -3
View File
@@ -10,7 +10,6 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$temp = new admin_settingpage('experimentalsettings', new lang_string('experimentalsettings', 'admin'));
//TODO: Re-enable cc-import once re-implemented in 2.0.x
//$temp->add(new admin_setting_configcheckbox('enableimsccimport', new lang_string('enable_cc_import', 'imscc'), new lang_string('enable_cc_import_description', 'imscc'), 0));
$temp->add(new admin_setting_configcheckbox('enablesafebrowserintegration', new lang_string('enablesafebrowserintegration', 'admin'), new lang_string('configenablesafebrowserintegration', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('dndallowtextandlinks', new lang_string('dndallowtextandlinks', 'admin'), new lang_string('configdndallowtextandlinks', 'admin'), 0));
@@ -29,15 +28,27 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$temp->add(new admin_setting_configcheckbox('forceclean', new lang_string('forceclean', 'core_admin'),
new lang_string('forceclean_desc', 'core_admin'), 0));
// Relative course dates mode setting.
$temp->add(new admin_setting_configcheckbox('enablecourserelativedates',
new lang_string('enablecourserelativedates', 'core_admin'),
new lang_string('enablecourserelativedates_desc', 'core_admin'), 0));
$ADMIN->add('experimental', $temp);
// "debugging" settingpage
$temp = new admin_settingpage('debugging', new lang_string('debugging', 'admin'));
$temp->add(new admin_setting_special_debug());
$temp->add(new admin_setting_configcheckbox('debugdisplay', new lang_string('debugdisplay', 'admin'), new lang_string('configdebugdisplay', 'admin'), ini_get_bool('display_errors')));
$temp->add(new admin_setting_configcheckbox('debugsmtp', new lang_string('debugsmtp', 'admin'), new lang_string('configdebugsmtp', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('debugdisplay', new lang_string('debugdisplay', 'admin'),
new lang_string('configdebugdisplay', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('perfdebug', new lang_string('perfdebug', 'admin'), new lang_string('configperfdebug', 'admin'), '7', '15', '7'));
$temp->add(new admin_setting_configcheckbox('debugstringids', new lang_string('debugstringids', 'admin'), new lang_string('debugstringids_desc', 'admin'), 0));
$temp->add(new admin_setting_configselect('debugsqltrace',
new lang_string('debugsqltrace', 'admin'),
new lang_string('debugsqltrace_desc', 'admin'), 0, array(
0 => new lang_string('disabled', 'admin'),
1 => new lang_string('debugsqltrace1', 'admin'),
2 => new lang_string('debugsqltrace2', 'admin'),
100 => new lang_string('debugsqltrace100', 'admin'))));
$temp->add(new admin_setting_configcheckbox('debugvalidators', new lang_string('debugvalidators', 'admin'), new lang_string('configdebugvalidators', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('debugpageinfo', new lang_string('debugpageinfo', 'admin'), new lang_string('configdebugpageinfo', 'admin'), 0));
$ADMIN->add('development', $temp);
@@ -59,6 +70,8 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$temp->add(new admin_setting_configcheckbox('profilingallowme', new lang_string('profilingallowme', 'admin'), new lang_string('profilingallowme_help', 'admin'), false));
// Allow PROFILEALL/PROFILEALLSTOP GPC.
$temp->add(new admin_setting_configcheckbox('profilingallowall', new lang_string('profilingallowall', 'admin'), new lang_string('profilingallowall_help', 'admin'), false));
$temp->add(new admin_setting_configtext('profilingslow', new lang_string('profilingslow', 'admin'),
new lang_string('profilingslow_help', 'admin'), 0, PARAM_FLOAT));
// TODO: Allow to skip PHP functions (XHPROF_FLAGS_NO_BUILTINS)
// TODO: Allow to skip call_user functions (ignored_functions array)
// Specify the life time (in minutes) of profiling runs.
+1 -1
View File
@@ -58,7 +58,7 @@ if (!during_initial_install()) { //do not use during installation
foreach ($roles as $role) {
if (empty($role->archetype) or $role->archetype === 'guest' or $role->archetype === 'frontpage' or $role->archetype === 'student') {
$options[$role->id] = $role->localname;
if ($role->archetype === 'frontpage') {
if ($role->archetype === 'frontpage' && !$defaultfrontpageroleid) {
$defaultfrontpageroleid = $role->id;
}
}
+44
View File
@@ -0,0 +1,44 @@
<?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/>.
/**
* H5P settings link.
*
* @package core_h5p
* @copyright 2019 Amaia Anabitarte <amaia@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
// H5P overview.
$ADMIN->add('h5p', new admin_externalpage('h5poverview', get_string('h5poverview', 'core_h5p'),
new moodle_url('/h5p/overview.php'), ['moodle/site:config']));
// Manage H5P libraries page.
$ADMIN->add('h5p', new admin_externalpage('h5pmanagelibraries', get_string('h5pmanage', 'core_h5p'),
new moodle_url('/h5p/libraries.php'), ['moodle/site:config', 'moodle/h5p:updatelibraries']));
// H5P settings.
$defaulth5plib = \core_h5p\local\library\autoloader::get_default_handler_library();
if (!empty($defaulth5plib)) {
// As for now this page only has this setting, it will be hidden if there isn't any H5P libraries handler defined.
$settings = new admin_settingpage('h5psettings', new lang_string('h5psettings', 'core_h5p'));
$ADMIN->add('h5p', $settings);
$settings->add(new admin_settings_h5plib_handler_select('h5plibraryhandler', new lang_string('h5plibraryhandler', 'core_h5p'),
new lang_string('h5plibraryhandler_help', 'core_h5p'), $defaulth5plib));
}
+2
View File
@@ -8,6 +8,8 @@ if ($hassiteconfig) {
$temp = new admin_settingpage('langsettings', new lang_string('languagesettings', 'admin'));
$temp->add(new admin_setting_configcheckbox('autolang', new lang_string('autolang', 'admin'), new lang_string('configautolang', 'admin'), 1));
$temp->add(new admin_setting_configselect('lang', new lang_string('lang', 'admin'), new lang_string('configlang', 'admin'), current_language(), get_string_manager()->get_list_of_translations())); // $CFG->lang might be set in installer already, default en is in setup.php
$temp->add(new admin_setting_configcheckbox('autolangusercreation', new lang_string('autolangusercreation', 'admin'),
new lang_string('configautolangusercreation', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('langmenu', new lang_string('langmenu', 'admin'), new lang_string('configlangmenu', 'admin'), 1));
$temp->add(new admin_setting_langlist());
$temp->add(new admin_setting_configcheckbox('langcache', new lang_string('langcache', 'admin'), new lang_string('langcache_desc', 'admin'), 1));
+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/>.
/**
* This file defines the settings pages for licenses.
*
* @package core
* @copyright 2020 Tom Dickman <tomdickman@catalyst-au.net>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir . '/licenselib.php');
if ($hassiteconfig) {
$temp = new admin_settingpage('licensesettings', new lang_string('licensesettings', 'admin'));
$licenses = license_manager::get_active_licenses_as_array();
$temp->add(new admin_setting_configselect('sitedefaultlicense',
new lang_string('configsitedefaultlicense', 'admin'),
new lang_string('configsitedefaultlicensehelp', 'admin'),
'unknown',
$licenses));
$temp->add(new admin_setting_configcheckbox('rememberuserlicensepref',
new lang_string('rememberuserlicensepref', 'admin'),
new lang_string('rememberuserlicensepref_help', 'admin'),
1));
$ADMIN->add('license', $temp);
}
+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
}
+78
View File
@@ -0,0 +1,78 @@
<?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/>.
/**
* Adds messaging related settings links for Messaging category to admin tree.
*
* @copyright 2019 Amaia Anabitarte <amaia@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
if ($hassiteconfig) {
$temp = new admin_settingpage('messages', new lang_string('messagingssettings', 'admin'));
$temp->add(new admin_setting_configcheckbox('messaging',
new lang_string('messaging', 'admin'),
new lang_string('configmessaging', 'admin'),
1));
$temp->add(new admin_setting_configcheckbox('messagingallusers',
new lang_string('messagingallusers', 'admin'),
new lang_string('configmessagingallusers', 'admin'),
0)
);
$temp->add(new admin_setting_configcheckbox('messagingdefaultpressenter',
new lang_string('messagingdefaultpressenter', 'admin'),
new lang_string('configmessagingdefaultpressenter', 'admin'),
1)
);
$options = array(
DAYSECS => new lang_string('secondstotime86400'),
WEEKSECS => new lang_string('secondstotime604800'),
2620800 => new lang_string('nummonths', 'moodle', 1),
7862400 => new lang_string('nummonths', 'moodle', 3),
15724800 => new lang_string('nummonths', 'moodle', 6),
0 => new lang_string('never')
);
$temp->add(new admin_setting_configselect(
'messagingdeletereadnotificationsdelay',
new lang_string('messagingdeletereadnotificationsdelay', 'admin'),
new lang_string('configmessagingdeletereadnotificationsdelay', 'admin'),
604800,
$options)
);
$temp->add(new admin_setting_configselect(
'messagingdeleteallnotificationsdelay',
new lang_string('messagingdeleteallnotificationsdelay', 'admin'),
new lang_string('configmessagingdeleteallnotificationsdelay', 'admin'),
2620800,
$options)
);
$temp->add(new admin_setting_configcheckbox('messagingallowemailoverride',
new lang_string('messagingallowemailoverride', 'admin'),
new lang_string('configmessagingallowemailoverride', 'admin'),
0));
$ADMIN->add('messaging', $temp);
$ADMIN->add('messaging', new admin_page_managemessageoutputs());
// Notification outputs plugins.
$plugins = core_plugin_manager::instance()->get_plugins_of_type('message');
core_collator::asort_objects_by_property($plugins, 'displayname');
foreach ($plugins as $plugin) {
/** @var \core\plugininfo\message $plugin */
$plugin->load_settings($ADMIN, 'messaging', $hassiteconfig);
}
}

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