Compare commits

...

4121 Commits

Author SHA1 Message Date
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 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
Jun Pataleta 5f1307ef9a Merge branch 'MDL-67187_master' of git://github.com/dmonllao/moodle 2019-11-11 22:22:08 +08: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
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
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
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
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
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
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
7867 changed files with 523244 additions and 343631 deletions
+11 -11
View File
@@ -4,8 +4,8 @@
node_modules/
vendor/
admin/tool/policy/amd/src/jquery-eu-cookie-law-popup.js
admin/tool/usertours/amd/src/tour.js
auth/cas/CAS/
cache/stores/mongodb/MongoDB/
enrol/lti/ims-blti/
filter/algebra/AlgParser.pm
filter/tex/mimetex.*
@@ -19,15 +19,12 @@ lib/mlbackend/php/phpml/
lib/adodb/
lib/bennu/
lib/evalmath/
lib/lessphp/
lib/phpexcel/
lib/phpspreadsheet/
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/
@@ -41,7 +38,6 @@ lib/yuilib/gallery/
lib/jquery/
lib/html2text/
lib/markdown/
lib/recaptchalib.php
lib/xhprof/
lib/horde/
lib/requirejs/
@@ -63,6 +59,11 @@ lib/amd/src/adapter.js
lib/validateurlsyntax.php
lib/amd/src/popper.js
lib/geopattern-php/
lib/php-jwt/
lib/babel-polyfill/
lib/mdn-polyfills/
lib/emoji-data/
lib/h5p/
media/player/videojs/amd/src/video-lazy.js
media/player/videojs/amd/src/Youtube-lazy.js
media/player/videojs/videojs/
@@ -76,15 +77,14 @@ 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/index.js
theme/boost/amd/src/modal.js
theme/boost/amd/src/popover.js
theme/boost/amd/src/sanitizer.js
theme/boost/amd/src/scrollspy.js
theme/boost/amd/src/tab.js
theme/boost/amd/src/toast.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/
theme/boost/scss/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"],
// 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'
}
}
]
-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
+10 -2
View File
@@ -9,10 +9,18 @@
#
# 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.*
+2
View File
@@ -0,0 +1,2 @@
**/amd/**
/*.js
+1
View File
@@ -0,0 +1 @@
v8.16.1
+12 -14
View File
@@ -1,14 +1,12 @@
# Generated by "grunt ignorefiles"
**/yui/build/*
theme/bootstrapbase/style/
theme/clean/style/custom.css
theme/more/style/custom.css
theme/boost/style/moodle.css
theme/classic/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/
cache/stores/mongodb/MongoDB/
enrol/lti/ims-blti/
filter/algebra/AlgParser.pm
filter/tex/mimetex.*
@@ -22,15 +20,12 @@ lib/mlbackend/php/phpml/
lib/adodb/
lib/bennu/
lib/evalmath/
lib/lessphp/
lib/phpexcel/
lib/phpspreadsheet/
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/
@@ -44,7 +39,6 @@ lib/yuilib/gallery/
lib/jquery/
lib/html2text/
lib/markdown/
lib/recaptchalib.php
lib/xhprof/
lib/horde/
lib/requirejs/
@@ -66,6 +60,11 @@ lib/amd/src/adapter.js
lib/validateurlsyntax.php
lib/amd/src/popper.js
lib/geopattern-php/
lib/php-jwt/
lib/babel-polyfill/
lib/mdn-polyfills/
lib/emoji-data/
lib/h5p/
media/player/videojs/amd/src/video-lazy.js
media/player/videojs/amd/src/Youtube-lazy.js
media/player/videojs/videojs/
@@ -79,15 +78,14 @@ 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/index.js
theme/boost/amd/src/modal.js
theme/boost/amd/src/popover.js
theme/boost/amd/src/sanitizer.js
theme/boost/amd/src/scrollspy.js
theme/boost/amd/src/tab.js
theme/boost/amd/src/toast.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/
theme/boost/scss/fontawesome/
+28 -29
View File
@@ -11,21 +11,18 @@ notifications:
language: php
dist: xenial
services:
- mysql
php:
# We only run the highest and lowest supported versions to reduce the load on travis-ci.org.
- 7.2
- 7.0
- 7.3
- 7.1.30 # Make this sticky because current default version (7.1.11) has a bug with redis-extension output (MDL-66062)
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
env:
# Although we want to run these jobs and see failures as quickly as possible, we also want to get the slowest job to
@@ -35,9 +32,6 @@ env:
# 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
@@ -54,32 +48,32 @@ matrix:
fast_finish: true
include:
# Run mysql only on 7.3 - it's just too slow
- php: 7.3
env: DB=mysqli TASK=PHPUNIT
# Run grunt/npm install on highest version ('node' is an alias for the latest node.js version.)
- php: 7.2
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
- env: DB=mysqli TASK=PHPUNIT
php: 7.0
cache:
directories:
- $HOME/.composer/cache
- $HOME/.npm
before_install:
# 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 +93,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.
@@ -173,12 +165,19 @@ 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 ;
# 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 +206,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 master;
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`
+311 -61
View File
@@ -24,6 +24,7 @@
* Grunt configuration
*/
/* eslint-env node */
module.exports = function(grunt) {
var path = require('path'),
tasks = {},
@@ -31,7 +32,10 @@ module.exports = function(grunt) {
async = require('async'),
DOMParser = require('xmldom').DOMParser,
xpath = require('xpath'),
semver = require('semver');
semver = require('semver'),
watchman = require('fb-watchman'),
watchmanClient = new watchman.Client(),
gruntFilePath = process.cwd();
// Verify the node version is new enough.
var expected = semver.validRange(grunt.file.readJSON('package.json').engines.node);
@@ -52,10 +56,23 @@ module.exports = function(grunt) {
}
}
var files = null;
if (grunt.option('files')) {
// Accept a comma separated list of files to process.
files = grunt.option('files').split(',');
}
var inAMD = path.basename(cwd) == 'amd';
// Globbing pattern for matching all AMD JS source files.
var amdSrc = [inAMD ? cwd + '/src/*.js' : '**/amd/src/*.js'];
var amdSrc = [];
if (inAMD) {
amdSrc.push(cwd + "/src/*.js");
amdSrc.push(cwd + "/src/**/*.js");
} else {
amdSrc.push("**/amd/src/*.js");
amdSrc.push("**/amd/src/**/*.js");
}
/**
* Function to generate the destination for the uglify task
@@ -67,10 +84,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;
};
@@ -112,39 +128,69 @@ module.exports = function(grunt) {
// 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},
amd: {src: files ? files : amdSrc},
// Check YUI module source files.
yui: {src: ['**/yui/src/**/*.js', '!*/**/yui/src/*/meta/*.js']}
yui: {src: files ? files : ['**/yui/src/**/*.js', '!*/**/yui/src/*/meta/*.js']}
},
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",
},
options: {
compress: false // We must not compress to keep the comments.
}
}
},
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/"]
includePaths: ["theme/boost/scss/", "theme/classic/scss/"]
}
},
watch: {
@@ -155,9 +201,13 @@ module.exports = function(grunt) {
files: ['**/amd/src/**/*.js'],
tasks: ['amd']
},
bootstrapbase: {
files: ["theme/bootstrapbase/less/**/*.less"],
tasks: ["css"]
boost: {
files: ['**/theme/boost/scss/**/*.scss'],
tasks: ['scss']
},
rawcss: {
files: ['**/*.css', '**/theme/**/!(moodle.css|editor.css)'],
tasks: ['rawcss']
},
yui: {
files: ['**/yui/src/**/*.js'],
@@ -171,33 +221,21 @@ module.exports = function(grunt) {
shifter: {
options: {
recursive: true,
paths: [cwd]
paths: files ? files : [cwd]
}
},
gherkinlint: {
options: {
files: ['**/tests/behat/*.feature'],
files: files ? files : ['**/tests/behat/*.feature'],
}
},
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']
src: files ? files : ['*/**/*.scss']
},
css: {
src: ['*/**/*.css'],
src: files ? files : ['*/**/*.css'],
options: {
configOverrides: {
rules: {
@@ -223,10 +261,8 @@ module.exports = function(grunt) {
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'
'theme/boost/style/moodle.css',
'theme/classic/style/moodle.css',
].concat(thirdPartyPaths);
grunt.file.write('.stylelintignore', stylelintIgnores.join('\n'));
};
@@ -350,44 +386,258 @@ 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: cwd,
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();
}
);
};
var watchConfig = grunt.config.get(['watch']);
watchConfig = Object.keys(watchConfig).reduce(function(carry, key) {
if (key == 'options') {
return carry;
}
var value = watchConfig[key];
var fileGlobs = value.files;
var taskNames = value.tasks;
taskNames.forEach(function(taskName) {
carry[taskName] = fileGlobs;
});
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 = cwd + '/' + file.name;
Object.keys(watchConfig).forEach(function(task) {
var fileGlobs = watchConfig[task];
var match = fileGlobs.every(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', cwd], 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;
}
// Use the matching patterns specified in the watch config.
var matches = Object.keys(watchConfig).map(function(task) {
var fileGlobs = watchConfig[task];
var fileGlobMatches = fileGlobs.map(function(fileGlob) {
return ['match', fileGlob, 'wholename'];
});
return ['allof'].concat(fileGlobMatches);
});
var sub = {
expression: ["anyof"].concat(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 ' + cwd);
});
});
});
};
// 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');
// 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', ['eslint:amd', 'babel']);
grunt.registerTask('js', ['amd', 'yui']);
// Register CSS taks.
grunt.registerTask('css', ['stylelint:scss', 'sass', 'stylelint:less', 'less:bootstrapbase', 'stylelint:css']);
grunt.registerTask('css', ['stylelint:scss', 'sass', 'stylelint:css']);
grunt.registerTask('scss', ['stylelint:scss', 'sass']);
grunt.registerTask('rawcss', ['stylelint:css']);
// Register the startup task.
grunt.registerTask('startup', 'Run the correct tasks for the current directory', tasks.startup);
+1 -2
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";
+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'));
+1 -2
View File
@@ -30,8 +30,7 @@ $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);
require_admin();
$PAGE->set_context(context_system::instance());
$PAGE->set_url('/admin/category.php', array('category' => $category));
$PAGE->set_pagetype('admin-setting-' . $category);
+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'];
$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');
}
}
+194
View File
@@ -0,0 +1,194 @@
<?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'],
'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);
}
}
+288
View File
@@ -0,0 +1,288 @@
<?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'),
'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.*,
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);
}
}
+1 -1
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
+98 -92
View File
@@ -157,7 +157,6 @@ $CFG->lang = 'en';
$CFG->dirroot = dirname(dirname(__DIR__));
$CFG->libdir = "$CFG->dirroot/lib";
$CFG->wwwroot = "http://localhost";
$CFG->httpswwwroot = $CFG->wwwroot;
$CFG->docroot = 'http://docs.moodle.org';
$CFG->running_installer = true;
$CFG->early_install_lang = true;
@@ -389,8 +388,6 @@ if ($interactive) {
}
}
$CFG->wwwroot = $wwwroot;
$CFG->httpswwwroot = $CFG->wwwroot;
//We need dataroot before lang download
$CFG->dataroot = $options['dataroot'];
@@ -514,100 +511,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,19 +617,23 @@ 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'));
} else {
$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 !== '');
// ask for fullname
if ($interactive) {
@@ -710,7 +716,7 @@ if ($interactive) {
cli_separator();
cli_heading(get_string('cliadminemail', 'install'));
$prompt = get_string('clitypevaluedefault', 'admin', $options['adminemail']);
$options['adminemail'] = cli_input($prompt);
$options['adminemail'] = cli_input($prompt, $options['adminemail']);
}
// Validate that the address provided was an e-mail address.
+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
}
+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));
}
}
+163
View File
@@ -0,0 +1,163 @@
<?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-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-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-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']) {
foreach ($plugininfo as $type => $plugins) {
foreach ($plugins as $name => $plugin) {
$pluginstring = $plugin->component . "\t" . $plugin->displayname;
if ($options['show-all']) {
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);
+8 -1
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) {
+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);
+364
View File
@@ -2451,6 +2451,370 @@
<VENDOR name="oracle" version="11.2" />
</DATABASE>
<PHP version="7.0.0" level="required">
<RESTRICT function="restrict_php_version_74" message="unsupportedphpversion74" />
</PHP>
<PCREUNICODE level="optional">
<FEEDBACK>
<ON_CHECK message="pcreunicodewarning" />
</FEEDBACK>
</PCREUNICODE>
<PHP_EXTENSIONS>
<PHP_EXTENSION name="iconv" level="required">
<FEEDBACK>
<ON_ERROR message="iconvrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="mbstring" level="optional">
<FEEDBACK>
<ON_CHECK message="mbstringrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="curl" level="required">
<FEEDBACK>
<ON_ERROR message="curlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="openssl" level="required">
<FEEDBACK>
<ON_ERROR message="opensslrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="tokenizer" level="optional">
<FEEDBACK>
<ON_CHECK message="tokenizerrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="xmlrpc" level="optional">
<FEEDBACK>
<ON_CHECK message="xmlrpcrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="soap" level="optional">
<FEEDBACK>
<ON_CHECK message="soaprecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="ctype" level="required">
<FEEDBACK>
<ON_ERROR message="ctyperequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="zip" level="required">
<FEEDBACK>
<ON_ERROR message="ziprequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="zlib" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="gd" level="required">
<FEEDBACK>
<ON_ERROR message="gdrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="simplexml" level="required">
<FEEDBACK>
<ON_ERROR message="simplexmlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="spl" level="required">
<FEEDBACK>
<ON_ERROR message="splrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="pcre" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="dom" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="xml" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="xmlreader" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="intl" level="required">
<FEEDBACK>
<ON_ERROR message="intlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="json" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="hash" level="required"/>
<PHP_EXTENSION name="fileinfo" level="required"/>
</PHP_EXTENSIONS>
<PHP_SETTINGS>
<PHP_SETTING name="memory_limit" value="96M" level="required">
<FEEDBACK>
<ON_ERROR message="settingmemorylimit" />
</FEEDBACK>
</PHP_SETTING>
<PHP_SETTING name="file_uploads" value="1" level="optional">
<FEEDBACK>
<ON_CHECK message="settingfileuploads" />
</FEEDBACK>
</PHP_SETTING>
<PHP_SETTING name="opcache.enable" value="1" level="optional">
<FEEDBACK>
<ON_CHECK message="opcacherecommended" />
</FEEDBACK>
</PHP_SETTING>
</PHP_SETTINGS>
<CUSTOM_CHECKS>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_database_storage_engine" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddbstorageengine" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="question/engine/upgrade/upgradelib.php" function="quiz_attempts_upgraded" level="required">
<FEEDBACK>
<ON_ERROR message="quizattemptsupgradedmessage" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_slasharguments" level="optional">
<FEEDBACK>
<ON_CHECK message="slashargumentswarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_database_tables_row_format" level="optional">
<FEEDBACK>
<ON_CHECK message="unsupporteddbtablerowformat" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_unoconv_version" level="optional">
<FEEDBACK>
<ON_CHECK message="unoconvwarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_libcurl_version" level="optional">
<FEEDBACK>
<ON_CHECK message="libcurlwarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_file_format" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddbfileformat" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_file_per_table" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddbfilepertable" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_large_prefix" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddblargeprefix" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_is_https" level="optional">
<FEEDBACK>
<ON_CHECK message="ishttpswarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_incomplete_unicode_support" level="optional">
<FEEDBACK>
<ON_CHECK message="incompleteunicodesupport" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_sixtyfour_bits" level="optional">
<FEEDBACK>
<ON_CHECK message="sixtyfourbitswarning" />
</FEEDBACK>
</CUSTOM_CHECK>
</CUSTOM_CHECKS>
</MOODLE>
<MOODLE version="3.7" requires="3.2">
<UNICODE level="required">
<FEEDBACK>
<ON_ERROR message="unicoderequired" />
</FEEDBACK>
</UNICODE>
<DATABASE level="required">
<VENDOR name="mariadb" version="5.5.31" />
<VENDOR name="mysql" version="5.6" />
<VENDOR name="postgres" version="9.4" />
<VENDOR name="mssql" version="10.0" />
<VENDOR name="oracle" version="11.2" />
</DATABASE>
<PHP version="7.1.0" level="required">
<RESTRICT function="restrict_php_version_74" message="unsupportedphpversion74" />
</PHP>
<PCREUNICODE level="optional">
<FEEDBACK>
<ON_CHECK message="pcreunicodewarning" />
</FEEDBACK>
</PCREUNICODE>
<PHP_EXTENSIONS>
<PHP_EXTENSION name="iconv" level="required">
<FEEDBACK>
<ON_ERROR message="iconvrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="mbstring" level="optional">
<FEEDBACK>
<ON_CHECK message="mbstringrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="curl" level="required">
<FEEDBACK>
<ON_ERROR message="curlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="openssl" level="required">
<FEEDBACK>
<ON_ERROR message="opensslrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="tokenizer" level="optional">
<FEEDBACK>
<ON_CHECK message="tokenizerrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="xmlrpc" level="optional">
<FEEDBACK>
<ON_CHECK message="xmlrpcrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="soap" level="optional">
<FEEDBACK>
<ON_CHECK message="soaprecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="ctype" level="required">
<FEEDBACK>
<ON_ERROR message="ctyperequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="zip" level="required">
<FEEDBACK>
<ON_ERROR message="ziprequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="zlib" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="gd" level="required">
<FEEDBACK>
<ON_ERROR message="gdrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="simplexml" level="required">
<FEEDBACK>
<ON_ERROR message="simplexmlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="spl" level="required">
<FEEDBACK>
<ON_ERROR message="splrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="pcre" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="dom" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="xml" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="xmlreader" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="intl" level="required">
<FEEDBACK>
<ON_ERROR message="intlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="json" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="hash" level="required"/>
<PHP_EXTENSION name="fileinfo" level="required"/>
</PHP_EXTENSIONS>
<PHP_SETTINGS>
<PHP_SETTING name="memory_limit" value="96M" level="required">
<FEEDBACK>
<ON_ERROR message="settingmemorylimit" />
</FEEDBACK>
</PHP_SETTING>
<PHP_SETTING name="file_uploads" value="1" level="optional">
<FEEDBACK>
<ON_CHECK message="settingfileuploads" />
</FEEDBACK>
</PHP_SETTING>
<PHP_SETTING name="opcache.enable" value="1" level="optional">
<FEEDBACK>
<ON_CHECK message="opcacherecommended" />
</FEEDBACK>
</PHP_SETTING>
</PHP_SETTINGS>
<CUSTOM_CHECKS>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_database_storage_engine" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddbstorageengine" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="question/engine/upgrade/upgradelib.php" function="quiz_attempts_upgraded" level="required">
<FEEDBACK>
<ON_ERROR message="quizattemptsupgradedmessage" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_slasharguments" level="optional">
<FEEDBACK>
<ON_CHECK message="slashargumentswarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_database_tables_row_format" level="optional">
<FEEDBACK>
<ON_CHECK message="unsupporteddbtablerowformat" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_unoconv_version" level="optional">
<FEEDBACK>
<ON_CHECK message="unoconvwarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_libcurl_version" level="optional">
<FEEDBACK>
<ON_CHECK message="libcurlwarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_file_format" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddbfileformat" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_file_per_table" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddbfilepertable" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_large_prefix" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddblargeprefix" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_is_https" level="optional">
<FEEDBACK>
<ON_CHECK message="ishttpswarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_incomplete_unicode_support" level="optional">
<FEEDBACK>
<ON_CHECK message="incompleteunicodesupport" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_sixtyfour_bits" level="optional">
<FEEDBACK>
<ON_CHECK message="sixtyfourbitswarning" />
</FEEDBACK>
</CUSTOM_CHECK>
</CUSTOM_CHECKS>
</MOODLE>
<MOODLE version="3.8" requires="3.2">
<UNICODE level="required">
<FEEDBACK>
<ON_ERROR message="unicoderequired" />
</FEEDBACK>
</UNICODE>
<DATABASE level="required">
<VENDOR name="mariadb" version="5.5.31" />
<VENDOR name="mysql" version="5.6" />
<VENDOR name="postgres" version="9.4" />
<VENDOR name="mssql" version="11.0" />
<VENDOR name="oracle" version="11.2" />
</DATABASE>
<PHP version="7.1.0" level="required">
</PHP>
<PCREUNICODE level="optional">
<FEEDBACK>
+5 -3
View File
@@ -823,9 +823,11 @@ 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 ?? 200;
$croninfrequent = !$cronoverdue && ($lastcroninterval > $expectedfrequency || $lastcron < time() - $expectedfrequency);
$dbproblems = $DB->diagnose();
$maintenancemode = !empty($CFG->maintenance_enabled);
@@ -886,4 +888,4 @@ $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);
+1 -2
View File
@@ -23,8 +23,7 @@ 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());
require_admin();
$returnurl = "$CFG->wwwroot/$CFG->admin/settings.php?section=managelicenses";
+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');
+80 -26
View File
@@ -25,47 +25,101 @@ 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;
});
// Fetch message providers.
$providers = get_message_providers();
// Fetch the manage message outputs interface.
$preferences = get_message_output_default_preferences();
$headingtitle = get_string('managemessageoutputs', 'message');
if (($form = data_submitted()) && confirm_sesskey()) {
$preferences = 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;
$preferences[$disableprovidersetting] = 1;
} else {
$preferences[$disableprovidersetting] = 0;
}
if (!empty($disable) && confirm_sesskey()) {
if (!$processor = $DB->get_record('message_processors', array('id'=>$disable))) {
print_error('outputdoesnotexist', 'message');
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.
$preferences[$processor->name.'_provider_'.$componentprovidersetting] = $value;
}
} else if (property_exists($form, $componentprovidersetting)) {
// We must be processing loggedin or loggedoff checkboxes. Store
// defained comma-separated processors as setting value.
// Using array_filter eliminates elements set to 0 above.
$value = join(',', array_keys(array_filter($form->{$componentprovidersetting})));
if (empty($value)) {
$value = null;
}
}
if ($setting != 'permitted') {
// We have already recoded site preferences for 'permitted' type.
$preferences['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 ($preferences 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 -2
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);
+1 -1
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);
+2 -2
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();
+1 -1
View File
@@ -46,7 +46,7 @@ $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
// 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();
+2 -2
View File
@@ -40,7 +40,7 @@ $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
// 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);
+73 -31
View File
@@ -281,6 +281,7 @@ 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
*
* @return string HTML to output.
*/
@@ -288,7 +289,7 @@ 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) {
global $CFG;
$output = '';
@@ -302,6 +303,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);
@@ -614,6 +616,24 @@ class core_admin_renderer extends plugin_renderer_base {
$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 '';
}
$expectedfrequency = $CFG->expectedcronfrequency ?? 200;
return $this->warning(get_string('croninfrequent', 'admin', $expectedfrequency) . '&nbsp;' .
$this->help_icon('cron', 'admin'));
}
/**
* Render an appropriate message if there are any problems with the DB set-up.
* @param bool $dbproblems
@@ -823,8 +843,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'));
@@ -1043,10 +1062,10 @@ 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);
@@ -1055,22 +1074,22 @@ class core_admin_renderer extends plugin_renderer_base {
$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-warning';
break;
}
$status = html_writer::span(get_string('status_' . $statuscode, 'core_plugin'), $statusclass);
@@ -1343,7 +1362,7 @@ 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');
}
@@ -1448,11 +1467,13 @@ class core_admin_renderer extends plugin_renderer_base {
$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');
}
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));
}
$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();
@@ -1463,8 +1484,8 @@ class core_admin_renderer extends plugin_renderer_base {
} 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 +1493,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;
@@ -1753,13 +1774,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 = '';
}
@@ -1998,15 +2019,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 +2112,27 @@ 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);
}
}
+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;
}
}
+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;
@@ -434,7 +434,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 +444,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 +487,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 +509,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();
}
}
}
@@ -623,7 +652,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])) {
+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');
+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);
+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();
+47 -4
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,8 +125,9 @@ 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)
);
+28 -1
View File
@@ -25,7 +25,6 @@ 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_configtextarea('custommenuitems', new lang_string('custommenuitems', 'admin'),
new lang_string('configcustommenuitems', 'admin'), '', PARAM_RAW, '50', '10'));
$temp->add(new admin_setting_configtextarea(
@@ -77,6 +76,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 +197,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 +279,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
+33 -3
View File
@@ -57,9 +57,11 @@ 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();
foreach ($backpacks as $backpack) {
$choices[$backpack->id] = $backpack->backpackweburl;
}
$globalsettings->add(new admin_setting_configcheckbox('badges_allowcoursebadges',
new lang_string('allowcoursebadges', 'badges'),
@@ -91,4 +93,32 @@ 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'),
1, $choices));
$warning = badges_verify_site_backpack();
if (!empty($warning)) {
$backpacksettings->add(new admin_setting_description('badges_site_backpack_verify',
new lang_string('sitebackpackverify', 'badges'),
$warning));
}
$ADMIN->add('badges', $backpacksettings);
$ADMIN->add('badges',
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)
)
);
}
+53 -4
View File
@@ -37,6 +37,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)),
@@ -157,9 +163,15 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
// "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);
@@ -200,6 +212,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)));
@@ -330,11 +347,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));
@@ -452,4 +473,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);
}
+7 -1
View File
@@ -29,13 +29,17 @@ 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('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_configcheckbox('debugvalidators', new lang_string('debugvalidators', 'admin'), new lang_string('configdebugvalidators', 'admin'), 0));
@@ -59,6 +63,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;
}
}
+29
View File
@@ -0,0 +1,29 @@
<?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();
// Settings page.
$ADMIN->add('h5p', new admin_externalpage('h5psettings', get_string('h5pmanage', 'core_h5p'),
new moodle_url('/h5p/libraries.php'), ['moodle/site:config', 'moodle/h5p:updatelibraries']));
+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);
}
}
+43 -12
View File
@@ -59,6 +59,18 @@ if ($hassiteconfig) {
$plugin->load_settings($ADMIN, 'formatsettings', $hassiteconfig);
}
// Custom fields.
$ADMIN->add('modules', new admin_category('customfieldsettings', new lang_string('customfields', 'core_customfield')));
$temp = new admin_settingpage('managecustomfields', new lang_string('managecustomfields', 'core_admin'));
$temp->add(new admin_setting_managecustomfields());
$ADMIN->add('customfieldsettings', $temp);
$plugins = core_plugin_manager::instance()->get_plugins_of_type('customfield');
core_collator::asort_objects_by_property($plugins, 'displayname');
foreach ($plugins as $plugin) {
/** @var \core\plugininfo\customfield $plugin */
$plugin->load_settings($ADMIN, 'customfieldsettings', $hassiteconfig);
}
// blocks
$ADMIN->add('modules', new admin_category('blocksettings', new lang_string('blocks')));
$ADMIN->add('blocksettings', new admin_page_manageblocks());
@@ -69,17 +81,6 @@ if ($hassiteconfig) {
$plugin->load_settings($ADMIN, 'blocksettings', $hassiteconfig);
}
// message outputs
$ADMIN->add('modules', new admin_category('messageoutputs', new lang_string('messageoutputs', 'message')));
$ADMIN->add('messageoutputs', new admin_page_managemessageoutputs());
$ADMIN->add('messageoutputs', new admin_page_defaultmessageoutputs());
$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, 'messageoutputs', $hassiteconfig);
}
// authentication plugins
$ADMIN->add('modules', new admin_category('authsettings', new lang_string('authentication', 'admin')));
@@ -174,6 +175,13 @@ if ($hassiteconfig) {
$plugin->load_settings($ADMIN, 'antivirussettings', $hassiteconfig);
}
// Machine learning backend plugins.
$ADMIN->add('modules', new admin_category('mlbackendsettings', new lang_string('mlbackendsettings', 'admin')));
$plugins = core_plugin_manager::instance()->get_plugins_of_type('mlbackend');
foreach ($plugins as $plugin) {
$plugin->load_settings($ADMIN, 'mlbackendsettings', $hassiteconfig);
}
/// License types
$ADMIN->add('modules', new admin_category('licensesettings', new lang_string('licenses')));
$temp = new admin_settingpage('managelicenses', new lang_string('managelicenses', 'admin'));
@@ -564,14 +572,37 @@ if ($hassiteconfig) {
$temp->add(new admin_setting_configduration('searchindextime',
new lang_string('searchindextime', 'admin'), new lang_string('searchindextime_desc', 'admin'),
600));
$temp->add(new admin_setting_heading('searchcoursesheading', new lang_string('searchablecourses', 'admin'), ''));
$options = [
0 => new lang_string('searchallavailablecourses_off', 'admin'),
1 => new lang_string('searchallavailablecourses_on', 'admin')
];
$temp->add(new admin_setting_configselect('searchallavailablecourses',
new lang_string('searchallavailablecourses', 'admin'),
new lang_string('searchallavailablecourses_desc', 'admin'),
new lang_string('searchallavailablecoursesdesc', 'admin'),
0, $options));
$temp->add(new admin_setting_configcheckbox('searchincludeallcourses',
new lang_string('searchincludeallcourses', 'admin'), new lang_string('searchincludeallcourses_desc', 'admin'),
0));
// Search display options.
$temp->add(new admin_setting_heading('searchdisplay', new lang_string('searchdisplay', 'admin'), ''));
$temp->add(new admin_setting_configcheckbox('searchenablecategories',
new lang_string('searchenablecategories', 'admin'),
new lang_string('searchenablecategories_desc', 'admin'),
0));
$options = [];
foreach (\core_search\manager::get_search_area_categories() as $category) {
$options[$category->get_name()] = $category->get_visiblename();
}
$temp->add(new admin_setting_configselect('searchdefaultcategory',
new lang_string('searchdefaultcategory', 'admin'),
new lang_string('searchdefaultcategory_desc', 'admin'),
\core_search\manager::SEARCH_AREA_CATEGORY_ALL, $options));
$temp->add(new admin_setting_configcheckbox('searchhideallcategory',
new lang_string('searchhideallcategory', 'admin'),
new lang_string('searchhideallcategory_desc', 'admin'),
0));
$ADMIN->add('searchplugins', $temp);
$ADMIN->add('searchplugins', new admin_externalpage('searchareas', new lang_string('searchareas', 'admin'),
+29 -7
View File
@@ -1,4 +1,29 @@
<?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 security related settings links for security category to admin tree.
*
* @copyright 1999 Martin Dougiamas http://dougiamas.com
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
use core_admin\local\settings\filesize;
if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
@@ -17,7 +42,7 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$temp->add(new admin_setting_configcheckbox('forcelogin', new lang_string('forcelogin', 'admin'), new lang_string('configforcelogin', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('forceloginforprofiles', new lang_string('forceloginforprofiles', 'admin'), new lang_string('configforceloginforprofiles', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('forceloginforprofileimage', new lang_string('forceloginforprofileimage', 'admin'), new lang_string('forceloginforprofileimage_help', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('opentogoogle', new lang_string('opentogoogle', 'admin'), new lang_string('configopentogoogle', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('opentowebcrawlers', new lang_string('opentowebcrawlers', 'admin'), new lang_string('configopentowebcrawlers', 'admin'), 0));
$temp->add(new admin_setting_configselect('allowindexing', new lang_string('allowindexing', 'admin'), new lang_string('allowindexing_desc', 'admin'),
0,
array(0 => new lang_string('allowindexingexceptlogin', 'admin'),
@@ -36,12 +61,9 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
// maxbytes set to 0 will allow the maximum server limit for uploads
$temp->add(new admin_setting_configselect('maxbytes', new lang_string('maxbytes', 'admin'), new lang_string('configmaxbytes', 'admin'), 0, $max_upload_choices));
// 100MB
$defaultuserquota = 104857600;
$params = new stdClass();
$params->bytes = $defaultuserquota;
$params->displaysize = display_size($defaultuserquota);
$temp->add(new admin_setting_configtext('userquota', new lang_string('userquota', 'admin'),
new lang_string('configuserquota', 'admin', $params), $defaultuserquota, PARAM_INT, 30));
$defaultuserquota = 100 * filesize::UNIT_MB;
$temp->add(new filesize('userquota', new lang_string('userquota', 'admin'),
new lang_string('userquota_desc', 'admin'), $defaultuserquota));
$temp->add(new admin_setting_configcheckbox('allowobjectembed', new lang_string('allowobjectembed', 'admin'), new lang_string('configallowobjectembed', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('enabletrusttext', new lang_string('enabletrusttext', 'admin'), new lang_string('configenabletrusttext', 'admin'), 0));
+106 -2
View File
@@ -4,7 +4,6 @@
if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
// "systempaths" settingpage
$temp = new admin_settingpage('systempaths', new lang_string('systempaths','admin'));
$temp->add(new admin_setting_configexecutable('pathtophp', new lang_string('pathtophp', 'admin'),
@@ -173,10 +172,15 @@ $temp->add(new admin_setting_configselect('tempdatafoldercleanup', new lang_stri
$ADMIN->add('server', $temp);
$temp->add(new admin_setting_configduration('filescleanupperiod',
new lang_string('filescleanupperiod', 'admin'),
new lang_string('filescleanupperiod_help', 'admin'),
86400));
$ADMIN->add('server', new admin_externalpage('environment', new lang_string('environment','admin'), "$CFG->wwwroot/$CFG->admin/environment.php"));
$ADMIN->add('server', new admin_externalpage('phpinfo', new lang_string('phpinfo'), "$CFG->wwwroot/$CFG->admin/phpinfo.php"));
$ADMIN->add('server', new admin_externalpage('testoutgoingmailconf', new lang_string('testoutgoingmailconf', 'admin'),
new moodle_url("$CFG->wwwroot/$CFG->admin/testoutgoingmailconf.php"), 'moodle/site:config', true));
// "performance" settingpage
@@ -212,6 +216,100 @@ $temp->add(new admin_setting_configtext('curltimeoutkbitrate', new lang_string('
$ADMIN->add('server', $temp);
$ADMIN->add('server', new admin_category('taskconfig', new lang_string('taskadmintitle', 'admin')));
$temp = new admin_settingpage('taskprocessing', new lang_string('taskprocessing','admin'));
$temp->add(
new admin_setting_configtext(
'task_scheduled_concurrency_limit',
new lang_string('task_scheduled_concurrency_limit', 'admin'),
new lang_string('task_scheduled_concurrency_limit_desc', 'admin'),
3,
PARAM_INT
)
);
$temp->add(
new admin_setting_configduration(
'task_scheduled_max_runtime',
new lang_string('task_scheduled_max_runtime', 'admin'),
new lang_string('task_scheduled_max_runtime_desc', 'admin'),
30 * MINSECS
)
);
$temp->add(
new admin_setting_configtext(
'task_adhoc_concurrency_limit',
new lang_string('task_adhoc_concurrency_limit', 'admin'),
new lang_string('task_adhoc_concurrency_limit_desc', 'admin'),
3,
PARAM_INT
)
);
$temp->add(
new admin_setting_configduration(
'task_adhoc_max_runtime',
new lang_string('task_adhoc_max_runtime', 'admin'),
new lang_string('task_adhoc_max_runtime_desc', 'admin'),
30 * MINSECS
)
);
$ADMIN->add('taskconfig', $temp);
$temp = new admin_settingpage('tasklogging', new lang_string('tasklogging','admin'));
$temp->add(
new admin_setting_configselect(
'task_logmode',
new lang_string('task_logmode', 'admin'),
new lang_string('task_logmode_desc', 'admin'),
\core\task\logmanager::MODE_ALL,
[
\core\task\logmanager::MODE_ALL => new lang_string('task_logmode_all', 'admin'),
\core\task\logmanager::MODE_FAILONLY => new lang_string('task_logmode_failonly', 'admin'),
\core\task\logmanager::MODE_NONE => new lang_string('task_logmode_none', 'admin'),
]
)
);
$temp->add(
new admin_setting_configcheckbox(
'task_logtostdout',
new lang_string('task_logtostdout', 'admin'),
new lang_string('task_logtostdout_desc', 'admin'),
1
)
);
if (\core\task\logmanager::uses_standard_settings()) {
$temp->add(
new admin_setting_configduration(
'task_logretention',
new \lang_string('task_logretention', 'admin'),
new \lang_string('task_logretention_desc', 'admin'),
28 * DAYSECS
)
);
$temp->add(
new admin_setting_configtext(
'task_logretainruns',
new \lang_string('task_logretainruns', 'admin'),
new \lang_string('task_logretainruns_desc', 'admin'),
20,
PARAM_INT
)
);
}
$ADMIN->add('taskconfig', $temp);
if (\core\task\logmanager::uses_standard_settings()) {
$ADMIN->add('taskconfig', new admin_externalpage(
'tasklogs',
new lang_string('tasklogs','admin'),
"{$CFG->wwwroot}/{$CFG->admin}/tasklogs.php"
));
}
// E-mail settings.
$ADMIN->add('server', new admin_category('email', new lang_string('categoryemail', 'admin')));
@@ -241,6 +339,10 @@ $temp->add(new admin_setting_configtextarea('allowedemaildomains',
new lang_string('allowedemaildomains', 'admin'),
new lang_string('configallowedemaildomains', 'admin'),
''));
$url = new moodle_url('/admin/testoutgoingmailconf.php');
$link = html_writer::link($url, get_string('testoutgoingmailconf', 'admin'));
$temp->add(new admin_setting_heading('testoutgoinmailc', new lang_string('testoutgoingmailconf', 'admin'),
new lang_string('testoutgoingmaildetail', 'admin', $link)));
$temp->add(new admin_setting_heading('emaildoesnotfit', new lang_string('doesnotfit', 'admin'),
new lang_string('doesnotfitdetail', 'admin')));
$charsets = get_list_of_charsets();
@@ -263,6 +365,8 @@ $choices = array(new lang_string('never', 'admin'),
new lang_string('onlynoreply', 'admin'));
$temp->add(new admin_setting_configselect('emailfromvia', new lang_string('emailfromvia', 'admin'),
new lang_string('configemailfromvia', 'admin'), 1, $choices));
$temp->add(new admin_setting_configtext('emailsubjectprefix', new lang_string('emailsubjectprefix', 'admin'),
new lang_string('configemailsubjectprefix', 'admin'), '', PARAM_RAW));
$ADMIN->add('email', $temp);
+26 -13
View File
@@ -13,19 +13,6 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$optionalsubsystems->add(new admin_setting_configcheckbox('enablewebservices', new lang_string('enablewebservices', 'admin'), new lang_string('configenablewebservices', 'admin'), 0));
$optionalsubsystems->add(new admin_setting_configcheckbox('messaging', new lang_string('messaging', 'admin'), new lang_string('configmessaging','admin'), 1));
$optionalsubsystems->add(new admin_setting_configcheckbox('messagingallusers',
new lang_string('messagingallusers', 'admin'),
new lang_string('configmessagingallusers', 'admin'),
0)
);
$options = array(DAYSECS=>new lang_string('secondstotime86400'), WEEKSECS=>new lang_string('secondstotime604800'), 2620800=>new lang_string('nummonths', 'moodle', 1), 15724800=>new lang_string('nummonths', 'moodle', 6),0=>new lang_string('never'));
$optionalsubsystems->add(new admin_setting_configselect('messagingdeletereadnotificationsdelay', new lang_string('messagingdeletereadnotificationsdelay', 'admin'), new lang_string('configmessagingdeletereadnotificationsdelay', 'admin'), 604800, $options));
$optionalsubsystems->add(new admin_setting_configcheckbox('messagingallowemailoverride', new lang_string('messagingallowemailoverride', 'admin'), new lang_string('configmessagingallowemailoverride','admin'), 0));
$optionalsubsystems->add(new admin_setting_configcheckbox('enablestats', new lang_string('enablestats', 'admin'), new lang_string('configenablestats', 'admin'), 0));
$optionalsubsystems->add(new admin_setting_configcheckbox('enablerssfeeds', new lang_string('enablerssfeeds', 'admin'), new lang_string('configenablerssfeeds', 'admin'), 0));
@@ -61,4 +48,30 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$optionalsubsystems->add(new admin_setting_configcheckbox('allowstealth', new lang_string('allowstealthmodules'),
new lang_string('allowstealthmodules_help'), 0, 1, 0));
$optionalsubsystems->add(new admin_setting_configcheckbox('enableanalytics', new lang_string('enableanalytics', 'admin'),
new lang_string('configenableanalytics', 'admin'), 1, 1, 0));
$fullunicodesupport = true;
if ($DB->get_dbfamily() == 'mysql') {
$collation = $DB->get_dbcollation();
$collationinfo = explode('_', $collation);
$charset = reset($collationinfo);
$fullunicodesupport = $charset === 'utf8mb4';
}
if ($fullunicodesupport) {
$optionalsubsystems->add(new admin_setting_configcheckbox(
'allowemojipicker',
new lang_string('allowemojipicker', 'admin'),
new lang_string('configallowemojipicker', 'admin'),
1
));
} else {
$optionalsubsystems->add(new admin_setting_description(
'allowemojipicker',
new lang_string('allowemojipicker', 'admin'),
new lang_string('configallowemojipickerincompatible', 'admin')
));
}
}
+2
View File
@@ -31,8 +31,10 @@ $ADMIN->add('root', new admin_category('grades', new lang_string('grades')));
$ADMIN->add('root', new admin_category('analytics', new lang_string('analytics', 'analytics')));
$ADMIN->add('root', new admin_category('competencies', new lang_string('competencies', 'core_competency')));
$ADMIN->add('root', new admin_category('badges', new lang_string('badges'), empty($CFG->enablebadges)));
$ADMIN->add('root', new admin_category('h5p', new lang_string('h5p', 'core_h5p')));
$ADMIN->add('root', new admin_category('location', new lang_string('location','admin')));
$ADMIN->add('root', new admin_category('language', new lang_string('language')));
$ADMIN->add('root', new admin_category('messaging', new lang_string('messagingcategory', 'admin')));
$ADMIN->add('root', new admin_category('modules', new lang_string('plugins', 'admin')));
$ADMIN->add('root', new admin_category('security', new lang_string('security','admin')));
$ADMIN->add('root', new admin_category('appearance', new lang_string('appearance','admin')));
+42 -11
View File
@@ -1,6 +1,6 @@
<?php
// This file defines settingpages and externalpages under the "users" category
// This file defines settingpages and externalpages under the "users" category.
$ADMIN->add('users', new admin_category('accounts', new lang_string('accounts', 'admin')));
$ADMIN->add('users', new admin_category('roles', new lang_string('permissions', 'role')));
@@ -13,15 +13,47 @@ if ($hassiteconfig
or has_capability('moodle/role:manage', $systemcontext)
or has_capability('moodle/role:assign', $systemcontext)
or has_capability('moodle/cohort:manage', $systemcontext)
or has_capability('moodle/cohort:view', $systemcontext)) { // speedup for non-admins, add all caps used on this page
or has_capability('moodle/cohort:view', $systemcontext)) { // Speedup for non-admins, add all caps used on this page.
// stuff under the "accounts" subcategory
// Stuff under the "accounts" subcategory.
$ADMIN->add('accounts', new admin_externalpage('editusers', new lang_string('userlist','admin'), "$CFG->wwwroot/$CFG->admin/user.php", array('moodle/user:update', 'moodle/user:delete')));
$ADMIN->add('accounts', new admin_externalpage('userbulk', new lang_string('userbulk','admin'), "$CFG->wwwroot/$CFG->admin/user/user_bulk.php", array('moodle/user:update', 'moodle/user:delete')));
$ADMIN->add('accounts', new admin_externalpage('addnewuser', new lang_string('addnewuser'), "$CFG->wwwroot/user/editadvanced.php?id=-1", 'moodle/user:create'));
// "User default preferences" settingpage.
// User management settingpage.
$temp = new admin_settingpage('usermanagement', new lang_string('usermanagement', 'admin'));
if ($ADMIN->fulltree) {
$choices = array();
$choices['realname'] = new lang_string('fullnameuser');
$choices['lastname'] = new lang_string('lastname');
$choices['firstname'] = new lang_string('firstname');
$choices['username'] = new lang_string('username');
$choices['email'] = new lang_string('email');
$choices['city'] = new lang_string('city');
$choices['country'] = new lang_string('country');
$choices['confirmed'] = new lang_string('confirmed', 'admin');
$choices['suspended'] = new lang_string('suspended', 'auth');
$choices['profile'] = new lang_string('profilefields', 'admin');
$choices['courserole'] = new lang_string('courserole', 'filters');
$choices['anycourses'] = new lang_string('anycourses', 'filters');
$choices['systemrole'] = new lang_string('globalrole', 'role');
$choices['cohort'] = new lang_string('idnumber', 'core_cohort');
$choices['firstaccess'] = new lang_string('firstaccess', 'filters');
$choices['lastaccess'] = new lang_string('lastaccess');
$choices['neveraccessed'] = new lang_string('neveraccessed', 'filters');
$choices['timemodified'] = new lang_string('lastmodified');
$choices['nevermodified'] = new lang_string('nevermodified', 'filters');
$choices['auth'] = new lang_string('authentication');
$choices['idnumber'] = new lang_string('idnumber');
$choices['lastip'] = new lang_string('lastip');
$choices['mnethostid'] = new lang_string('mnetidprovider', 'mnet');
$temp->add(new admin_setting_configmultiselect('userfiltersdefault', new lang_string('userfiltersdefault', 'admin'),
new lang_string('userfiltersdefault_desc', 'admin'), array('realname'), $choices));
}
$ADMIN->add('accounts', $temp);
// User default preferences settingpage.
$temp = new admin_settingpage('userdefaultpreferences', new lang_string('userdefaultpreferences', 'admin'));
if ($ADMIN->fulltree) {
$choices = array();
@@ -62,9 +94,9 @@ if ($hassiteconfig
$ADMIN->add('accounts', new admin_externalpage('cohorts', new lang_string('cohorts', 'cohort'), $CFG->wwwroot . '/cohort/index.php', array('moodle/cohort:manage', 'moodle/cohort:view')));
// stuff under the "roles" subcategory
// Stuff under the "roles" subcategory.
// "userpolicies" settingpage
// User policies settingpage.
$temp = new admin_settingpage('userpolicies', new lang_string('userpolicies', 'admin'));
if ($ADMIN->fulltree) {
if (!during_initial_install()) {
@@ -138,7 +170,7 @@ if ($hassiteconfig
$temp->add(new admin_setting_configselect('restorernewroleid', new lang_string('restorernewroleid', 'admin'),
new lang_string('restorernewroleid_help', 'admin'), $defaultteacherid, $restorersnewrole));
// release memory
// Release memory.
unset($otherroles);
unset($guestroles);
unset($userroles);
@@ -174,12 +206,11 @@ if ($hassiteconfig
// Options include fields from the user table that might be helpful to
// distinguish when adding or listing users ('I want to add the John
// Smith from Science faculty').
// Username is not included as an option because in some sites, it might
// be a security problem to reveal usernames even to trusted staff.
// Custom user profile fields are not currently supported.
$temp->add(new admin_setting_configmulticheckbox('showuseridentity',
new lang_string('showuseridentity', 'admin'),
new lang_string('showuseridentity_desc', 'admin'), array('email' => 1), array(
'username' => new lang_string('username'),
'idnumber' => new lang_string('idnumber'),
'email' => new lang_string('email'),
'phone1' => new lang_string('phone1'),
@@ -210,7 +241,7 @@ if ($hassiteconfig
$ADMIN->add('roles', new admin_externalpage('assignroles', new lang_string('assignglobalroles', 'role'), "$CFG->wwwroot/$CFG->admin/roles/assign.php?contextid=".$systemcontext->id, 'moodle/role:assign'));
$ADMIN->add('roles', new admin_externalpage('checkpermissions', new lang_string('checkglobalpermissions', 'role'), "$CFG->wwwroot/$CFG->admin/roles/check.php?contextid=".$systemcontext->id, array('moodle/role:assign', 'moodle/role:safeoverride', 'moodle/role:override', 'moodle/role:manage')));
} // end of speedup
} // End of speedup.
// Privacy settings.
if ($hassiteconfig) {
@@ -255,4 +286,4 @@ if ($hassiteconfig) {
new lang_string('sitepolicyguest_help', 'core_admin'), (isset($CFG->sitepolicy) ? $CFG->sitepolicy : ''), PARAM_RAW));
$ADMIN->add('privacy', $temp);
}
}
+89
View File
@@ -0,0 +1,89 @@
<?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.
*
* @package admin
* @copyright 2018 Andrew Nicols <andrew@nicols.co.uk>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(__DIR__ . '/../config.php');
require_once("{$CFG->libdir}/adminlib.php");
require_once("{$CFG->libdir}/tablelib.php");
require_once("{$CFG->libdir}/filelib.php");
$filter = optional_param('filter', '', PARAM_RAW);
$result = optional_param('result', null, PARAM_INT);
$pageurl = new \moodle_url('/admin/tasklogs.php');
$pageurl->param('filter', $filter);
$PAGE->set_url($pageurl);
$PAGE->set_context(context_system::instance());
$PAGE->set_pagelayout('admin');
$strheading = get_string('tasklogs', 'tool_task');
$PAGE->set_title($strheading);
$PAGE->set_heading($strheading);
admin_externalpage_setup('tasklogs');
$logid = optional_param('logid', null, PARAM_INT);
$download = optional_param('download', false, PARAM_BOOL);
if (null !== $logid) {
$log = $DB->get_record('task_log', ['id' => $logid], '*', MUST_EXIST);
if ($download) {
$filename = str_replace('\\', '_', $log->classname) . "-{$log->id}.log";
header("Content-Disposition: attachment; filename=\"{$filename}\"");
}
readstring_accel($log->output, 'text/plain');
exit;
}
$renderer = $PAGE->get_renderer('tool_task');
echo $OUTPUT->header();
echo $OUTPUT->render_from_template('core_admin/tasklogs', (object) [
'action' => $pageurl->out(),
'filter' => $filter,
'resultfilteroptions' => [
(object) [
'value' => -1,
'title' => get_string('all'),
'selected' => (-1 === $result),
],
(object) [
'value' => 0,
'title' => get_string('success'),
'selected' => (0 === $result),
],
(object) [
'value' => 1,
'title' => get_string('task_result:failed', 'admin'),
'selected' => (1 === $result),
],
],
]);
$table = new \core_admin\task_log_table($filter, $result);
$table->baseurl = $pageurl;
$table->out(100, false);
echo $OUTPUT->footer();
+11 -6
View File
@@ -29,6 +29,7 @@
* element - The Element HTML
* forceltr - Force this element to be displayed LTR
* default - Default value
* dependenton - optional message listing the settings this one is dependent on
Example context (json):
{
@@ -43,8 +44,11 @@
"default": "Default value"
}
}}
<div class="form-item clearfix" id="{{id}}">
<div class="form-label">
{{!
Setting.
}}
<div class="form-item row" id="{{id}}">
<div class="form-label col-sm-3 text-sm-right">
<label {{#labelfor}}for="{{labelfor}}"{{/labelfor}}>
{{{title}}}
{{#override}}
@@ -54,16 +58,17 @@
<div class="form-warning">{{warning}}</div>
{{/warning}}
</label>
<span class="form-shortname">{{{name}}}</span>
<span class="form-shortname d-block small text-muted">{{{name}}}</span>
</div>
<div class="form-setting">
<div class="form-setting col-sm-9">
{{#error}}
<div><span class="error">{{error}}</span></div>
{{/error}}
{{{element}}}
{{#default}}
<div class="form-defaultinfo {{#forceltr}}text-ltr{{/forceltr}}">{{{default}}}</div>
<div class="form-defaultinfo text-muted {{#forceltr}}text-ltr{{/forceltr}}">{{{default}}}</div>
{{/default}}
<div class="form-description mt-3">{{{description}}}</div>
{{#dependenton}}<div class="form-dependenton mb-4 text-muted">{{{.}}}</div>{{/dependenton}}
</div>
<div class="form-description">{{{description}}}</div>
</div>
@@ -35,13 +35,16 @@
"haspreviewconfig": false
}
}}
{{!
Setting configcolourpicker.
}}
<div class="form-colourpicker defaultsnext">
<div class="admin_colourpicker clearfix">
{{#icon}}
{{>core/pix_icon}}
{{/icon}}
</div>
<input type="text" name="{{name}}" id="{{id}}" value="{{value}}" size="12" class="text-ltr">
<input type="text" name="{{name}}" id="{{id}}" value="{{value}}" size="12" class="form-control text-ltr">
{{#haspreviewconfig}}
<input type="button" id="{{id}}_preview" value={{#quote}}{{#str}}preview{{/str}}{{/quote}} class="admin_colourpicker_preview">
{{/haspreviewconfig}}
@@ -33,13 +33,18 @@
"options": [ { "name": "Minutes", "value": "mins", "selected": true } ]
}
}}
{{!
Setting configduration.
}}
<div class="form-duration defaultsnext">
<input type="text" size="5" id="{{id}}v" name="{{name}}[v]" value="{{value}}" class="text-ltr">
<label class="accesshide" for="{{id}}u">{{#str}}durationunits, admin{{/str}}</label>
<select id="{{id}}u" name="{{name}}[u]">
{{#options}}
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
{{/options}}
</select>
<div class="form-inline">
<input type="text" size="5" id="{{id}}v" name="{{name}}[v]" value="{{value}}" class="form-control text-ltr">
<label class="sr-only" for="{{id}}u">{{#str}}durationunits, admin{{/str}}</label>
<select id="{{id}}u" name="{{name}}[u]" class="form-control custom-select">
{{#options}}
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
{{/options}}
</select>
</div>
</div>
+14 -9
View File
@@ -38,15 +38,20 @@
"valid": false
}
}}
{{!
Setting configfile.
}}
<div class="form-file defaultsnext">
<input type="text" name="{{name}}" id="{{id}}" size="{{size}}" value="{{value}}" class="text-ltr" {{#readonly}}readonly{{/readonly}}>
{{#showvalidity}}
{{#valid}}
<span class="pathok">&#x2714;</span>
{{/valid}}
{{^valid}}
<span class="patherror">&#x2718;</span>
{{/valid}}
{{/showvalidity}}
<div class="form-inline">
<input type="text" name="{{name}}" id="{{id}}" size="{{size}}" value="{{value}}" class="form-control text-ltr" {{#readonly}}readonly{{/readonly}}>
{{#showvalidity}}
{{#valid}}
<span class="text-success">&#x2714;</span>
{{/valid}}
{{^valid}}
<span class="text-danger">&#x2718;</span>
{{/valid}}
{{/showvalidity}}
</div>
</div>
@@ -0,0 +1,50 @@
{{!
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 core_admin/setting_configfilesize
Admin file size setting template.
Context variables required for this template:
* name - form element name
* options - list of options for units containing name, value, selected
* value - yes
* id - element id
Example context (json):
{
"name": "test",
"value": "5",
"id": "test0",
"options": [ { "name": "KB", "value": "1024", "selected": true } ]
}
}}
{{!
Setting configfilesize.
}}
<div class="form-filesize defaultsnext">
<div class="form-inline">
<input type="text" size="5" id="{{id}}v" name="{{name}}[v]" value="{{value}}" class="form-control text-ltr">
<label class="sr-only" for="{{id}}u">{{#str}}filesizeunits, admin{{/str}}</label>
<select id="{{id}}u" name="{{name}}[u]" class="form-control custom-select">
{{#options}}
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
{{/options}}
</select>
</div>
</div>
@@ -34,9 +34,12 @@
{ "name": "Option 2", "value": "V", "selected": true } ]
}
}}
{{!
Setting configmultiselect.
}}
<div class="form-select">
<input type="hidden" name="{{name}}[xxxxx]" value="1">
<select id="{{id}}" name="{{name}}[]" size="{{size}}" multiple>
<select id="{{id}}" name="{{name}}[]" size="{{size}}" class="form-control" multiple>
{{#options}}
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
{{/options}}
@@ -53,13 +53,16 @@
]
}
}}
{{!
Setting configmultiselect with optgroup support.
}}
<div class="form-select">
<input type="hidden" name="{{name}}[xxxxx]" value="1">
<select id="{{id}}" name="{{name}}[]" size="{{size}}" multiple>
{{#options}}
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
{{/options}}
{{#optgroups}}
<select id="{{id}}" name="{{name}}[]" size="{{size}}" class="form-control" multiple>
{{#options}}
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
{{/options}}
{{#optgroups}}
<optgroup label="{{label}}">
{{#options}}
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
@@ -34,8 +34,11 @@
]
}
}}
{{!
Setting configselect.
}}
<div class="form-select defaultsnext">
<select id="{{id}}" name="{{name}}">
<select id="{{id}}" name="{{name}}" class="custom-select">
{{#options}}
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
{{/options}}
@@ -51,8 +51,11 @@
]
}
}}
{{!
Setting configselect with optgroup support.
}}
<div class="form-select defaultsnext">
<select id="{{id}}" name="{{name}}">
<select id="{{id}}" name="{{name}}" class="custom-select">
{{#options}}
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
{{/options}}
@@ -66,3 +69,4 @@
</select>
</div>
+4 -1
View File
@@ -37,6 +37,9 @@
"attributes": [ { "name": "readonly", "value": "readonly" } ]
}
}}
{{!
Setting configtext.
}}
<div class="form-text defaultsnext">
<input type="text" name="{{name}}" value="{{value}}" size="{{size}}" id="{{id}}" class="{{#forceltr}}text-ltr{{/forceltr}}"{{#attributes}} {{name}}="{{value}}"{{/attributes}}>
<input type="text" name="{{name}}" value="{{value}}" size="{{size}}" id="{{id}}" class="form-control {{#forceltr}}text-ltr{{/forceltr}}">
</div>
@@ -36,6 +36,9 @@
"id": "test0"
}
}}
{{!
Setting configtextarea.
}}
<div class="form-textarea">
<textarea rows="{{rows}}" cols="{{cols}}" id="{{id}}" name="{{name}}" spellcheck="true" class="{{#forceltr}}text-ltr{{/forceltr}}">{{value}}</textarea>
<textarea rows="{{rows}}" cols="{{cols}}" id="{{id}}" name="{{name}}" spellcheck="true" class="form-control {{#forceltr}}text-ltr{{/forceltr}}">{{value}}</textarea>
</div>
+18 -13
View File
@@ -39,18 +39,23 @@
]
}
}}
<div class="form-time defaultsnext text-ltr">
<label class="accesshide" for="{{id}}h">{{#str}}hours{{/str}}</label>
<select id="{{id}}h" name="{{name}}[h]">
{{#hours}}
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
{{/hours}}
</select>:
<label class="accesshide" for="{{id}}m">{{#str}}minutes{{/str}}</label>
<select id="{{id}}m" name="{{name}}[m]">
{{#minutes}}
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
{{/minutes}}
</select>
{{!
Setting configtime.
}}
<div class="form-time defaultsnext">
<div class="form-inline text-ltr">
<label class="sr-only" for="{{id}}h">{{#str}}hours{{/str}}</label>
<select id="{{id}}h" name="{{name}}[h]" class="custom-select">
{{#hours}}
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
{{/hours}}
</select>:
<label class="sr-only" for="{{id}}m">{{#str}}minutes{{/str}}</label>
<select id="{{id}}m" name="{{name}}[m]" class="custom-select">
{{#minutes}}
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
{{/minutes}}
</select>
</div>
</div>
@@ -37,9 +37,12 @@
]
}
}}
{{!
Setting courselist_frontpage.
}}
<div class="form-group">
{{#selects}}
<select id="{{id}}{{key}}" name="{{name}}[]" class="form-select">
<select id="{{id}}{{key}}" name="{{name}}[]" class="custom-select">
{{#options}}
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
{{/options}}
+6 -5
View File
@@ -34,12 +34,13 @@
{{!
Setting description.
}}
<div class="form-item form-horizontal clearfix">
<div class="form-label">
<div class="form-item row">
<div class="form-label col-sm-3 text-sm-right">
<label>
{{{title}}}
</label>
<span class="form-shortname ">{{{name}}}</span>
</div>
<div class="controls felement fstatic">{{{description}}}</div>
</div>
<div class="form-setting col-sm-9">
<div class="form-description">{{{description}}}</div>
</div>
</div>
@@ -29,7 +29,10 @@
]
}
}}
<table class="generaltable">
{{!
Setting devicedetectregex.
}}
<table class="table table-striped">
<thead>
<tr>
<th>{{#str}}devicedetectregexexpression, admin{{/str}}</th>
@@ -40,10 +43,10 @@
{{#expressions}}
<tr>
<td class="c{{index}}">
<input type="text" name="{{name}}[expression{{index}}]" class="form-text text-ltr" value="{{expression}}">
<input type="text" name="{{name}}[expression{{index}}]" class="form-control" value="{{expression}}">
</td>
<td class="c{{index}}">
<input type="text" name="{{name}}[value{{index}}]" class="form-text text-ltr" value="{{value}}">
<input type="text" name="{{name}}[value{{index}}]" class="form-control" value="{{value}}">
</td>
</tr>
{{/expressions}}
+4 -1
View File
@@ -32,6 +32,9 @@
]
}
}}
{{!
Setting emoticons.
}}
<div class="form-group">
<table id="emoticonsetting" class="admintable generaltable">
<thead>
@@ -48,7 +51,7 @@
<tr>
{{#fields}}
<td class="c{{index}}">
<input type="text" name="{{name}}[{{field}}]" class="form-text text-ltr" value="{{value}}">
<input type="text" name="{{name}}[{{field}}]" class="form-text form-control text-ltr" value="{{value}}">
</td>
{{/fields}}
<td>
@@ -37,8 +37,11 @@
"advanced": true
}
}}
{{!
Setting configselect.
}}
<div class="form-group">
<select id="{{id}}" name="{{name}}[value]" class="form-select">
<select id="{{id}}" name="{{name}}[value]" class="form-select custom-select">
{{#options}}
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
{{/options}}
+8 -3
View File
@@ -36,8 +36,11 @@
"showsave": true
}
}}
{{!
Settings.
}}
<form action="{{actionurl}}" method="post" id="adminsettings">
<div class="settingsform clearfix">
<div class="settingsform">
{{#params}}
<input type="hidden" name="{{name}}" value="{{value}}">
<input type="hidden" name="action" value="save-settings">
@@ -49,8 +52,10 @@
{{/title}}
{{{settings}}}
{{#showsave}}
<div class="form-buttons">
<input type="submit" class="form-submit" value={{#quote}}{{#str}}savechanges, admin{{/str}}{{/quote}}>
<div class="row">
<div class="offset-sm-3 col-sm-3">
<button type="submit" class="btn btn-primary">{{#str}}savechanges, admin{{/str}}</button>
</div>
</div>
{{/showsave}}
</div>
@@ -58,8 +58,10 @@
</fieldset>
{{/results}}
{{#showsave}}
<div class="form-buttons">
<input type="submit" class="form-submit" value={{#quote}}{{#str}}savechanges, admin{{/str}}{{/quote}}>
<div class="row">
<div class="offset-sm-3 col-sm-3">
<button type="submit" class="btn btn-primary">{{#str}}savechanges, admin{{/str}}</button>
</div>
</div>
{{/showsave}}
{{/hasresults}}
+34
View File
@@ -0,0 +1,34 @@
{{!
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 core_admin/tasklogs
Task Logs template.
}}
<form class="form-inline" method="GET" action="{{{action}}}">
<label class="sr-only" for="tasklog-filter">{{#str}}filter{{/str}}</label>
<input class="form-control" type="text" id="tasklog-filter" name="filter" value="{{{filter}}}">
<label class="sr-only" for="tasklog-resultfilter">{{#str}}resultfilter, admin{{/str}}</label>
<select class="form-control custom-select" name="result" id="tasklog-resultfilter">
{{#resultfilteroptions}}
<option value="{{{value}}}"{{#selected}} selected="selected"{{/selected}}>{{title}}</option>
{{/resultfilteroptions}}
</select>
<input class="btn btn-primary" type="submit" value="{{#str}}filter{{/str}}">
</form>
+97
View File
@@ -0,0 +1,97 @@
<?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/>.
/**
* Test output mail configuration page
*
* @copyright 2019 Victor Deniz <victor@moodle.com>, based on Michael Milette <michael.milette@tngconsulting.ca> code
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(__DIR__ . '/../config.php');
require_once($CFG->libdir.'/adminlib.php');
// This is an admin page.
admin_externalpage_setup('testoutgoingmailconf');
$headingtitle = get_string('testoutgoingmailconf', 'admin');
$homeurl = new moodle_url('/admin/category.php', array('category' => 'email'));
$returnurl = new moodle_url('/admin/testoutgoingconf.php');
$form = new core_admin\form\testoutgoingmailconf_form(null, ['returnurl' => $returnurl]);
if ($form->is_cancelled()) {
redirect($homeurl);
}
// Display the page.
echo $OUTPUT->header();
echo $OUTPUT->heading($headingtitle);
$data = $form->get_data();
if ($data) {
$emailuser = new stdClass();
$emailuser->email = $data->recipient;
$emailuser->id = -99;
$subject = get_string('testoutgoingmailconf_subject', 'admin', $SITE->fullname);
$messagetext = get_string('testoutgoingmailconf_message', 'admin');
// Manage Moodle debugging options.
$debuglevel = $CFG->debug;
$debugdisplay = $CFG->debugdisplay;
$debugsmtp = $CFG->debugsmtp ?? null; // This might not be set as it's optional.
$CFG->debugdisplay = true;
$CFG->debugsmtp = true;
$CFG->debug = 15;
// Send test email.
ob_start();
$success = email_to_user($emailuser, $USER, $subject, $messagetext);
$smtplog = ob_get_contents();
ob_end_clean();
// Restore Moodle debugging options.
$CFG->debug = $debuglevel;
$CFG->debugdisplay = $debugdisplay;
// Restore the debugsmtp config, if it was set originally.
unset($CFG->debugsmtp);
if (!is_null($debugsmtp)) {
$CFG->debugsmtp = $debugsmtp;
}
if ($success) {
$msgparams = new stdClass();
$msgparams->fromemail = $USER->email;
$msgparams->toemail = $emailuser->email;
$msg = get_string('testoutgoingmailconf_sentmail', 'admin', $msgparams);
$notificationtype = 'notifysuccess';
} else {
$notificationtype = 'notifyproblem';
// No communication between Moodle and the SMTP server - no error output.
if (trim($smtplog) == false) {
$msg = get_string('testoutgoingmailconf_errorcommunications', 'admin');
} else {
$msg = $smtplog;
}
}
// Show result.
echo $OUTPUT->notification($msg, $notificationtype);
}
$form->display();
echo $OUTPUT->footer();
+14 -41
View File
@@ -48,26 +48,16 @@ class behat_admin extends behat_base {
* @param TableNode $table
*/
public function i_set_the_following_administration_settings_values(TableNode $table) {
if (!$data = $table->getRowsHash()) {
return;
}
foreach ($data as $label => $value) {
// We expect admin block to be visible, otherwise go to homepage.
if (!$this->getSession()->getPage()->find('css', '.block_settings')) {
$this->getSession()->visit($this->locate_path('/'));
$this->wait(self::TIMEOUT * 1000, self::PAGE_READY_JS);
}
$this->execute('behat_navigation::i_select_from_flat_navigation_drawer', [get_string('administrationsite')]);
// Search by label.
$searchbox = $this->find_field(get_string('searchinsettings', 'admin'));
$searchbox->setValue($label);
$submitsearch = $this->find('css', 'form.adminsearchform input[type=submit]');
$submitsearch->press();
$this->wait(self::TIMEOUT * 1000, self::PAGE_READY_JS);
$this->execute('behat_forms::i_set_the_field_to', [get_string('query', 'admin'), $label]);
$this->execute("behat_forms::press_button", get_string('search', 'admin'));
// Admin settings does not use the same DOM structure than other moodle forms
// but we also need to use lib/behat/form_field/* to deal with the different moodle form elements.
@@ -78,40 +68,23 @@ class behat_admin extends behat_base {
// Single element settings.
try {
$fieldxpath = "//*[self::input | self::textarea | self::select][not(./@type = 'submit' or ./@type = 'image' or ./@type = 'hidden')]" .
"[@id=//label[contains(normalize-space(.), $label)]/@for or " .
"@id=//span[contains(normalize-space(.), $label)]/preceding-sibling::label[1]/@for]";
$fieldxpath = "//*[self::input | self::textarea | self::select]" .
"[not(./@type = 'submit' or ./@type = 'image' or ./@type = 'hidden')]" .
"[@id=//label[contains(normalize-space(.), $label)]/@for or " .
"@id=//span[contains(normalize-space(.), $label)]/preceding-sibling::label[1]/@for]";
$fieldnode = $this->find('xpath', $fieldxpath, $exception);
$formfieldtypenode = $this->find('xpath', $fieldxpath . "/ancestor::div[@class='form-setting']" .
"/child::div[contains(concat(' ', @class, ' '), ' form-')]/child::*/parent::div");
} catch (ElementNotFoundException $e) {
// Multi element settings, interacting only the first one.
$fieldxpath = "//*[label[normalize-space(.)= $label]|span[normalize-space(.)= $label]]/" .
"ancestor::div[contains(concat(' ', normalize-space(@class), ' '), ' form-item ')]" .
"/descendant::div[@class='form-group']/descendant::*[self::input | self::textarea | self::select]" .
"[not(./@type = 'submit' or ./@type = 'image' or ./@type = 'hidden')]";
$fieldnode = $this->find('xpath', $fieldxpath);
// It is the same one that contains the type.
$formfieldtypenode = $fieldnode;
$fieldxpath = "//*[label[contains(., $label)]|span[contains(., $label)]]" .
"/ancestor::div[contains(concat(' ', normalize-space(@class), ' '), ' form-item ')]" .
"/descendant::div[contains(concat(' ', @class, ' '), ' form-group ')]" .
"/descendant::*[self::input | self::textarea | self::select]" .
"[not(./@type = 'submit' or ./@type = 'image' or ./@type = 'hidden')]";
}
// Getting the class which contains the field type.
$classes = explode(' ', $formfieldtypenode->getAttribute('class'));
foreach ($classes as $class) {
if (substr($class, 0, 5) == 'form-') {
$type = substr($class, 5);
}
}
// Instantiating the appropiate field type.
$field = behat_field_manager::get_field_instance($type, $fieldnode, $this->getSession());
$field->set_value($value);
$this->find_button(get_string('savechanges'))->press();
$this->execute('behat_forms::i_set_the_field_with_xpath_to', [$fieldxpath, $value]);
$this->execute("behat_general::i_click_on", [get_string('savechanges'), 'button']);
}
}
@@ -1,57 +1,74 @@
@core @core_admin
Feature: Enable multiple accounts to have the same email address
In order to have multiple accounts registerd on the system with the same email address
@core @core_admin @core_user
Feature: Allowing multiple accounts to have the same email address
In order to manage user accounts
As an admin
I need to enable multiple accounts to be registered with the same email address and verify it is applied
I need to be able to set whether to allow multiple accounts with the same email or not
Background:
Given I log in as "admin"
Scenario: Enable registration of multiple accounts with the same email address
Scenario Outline: Create a user with the same email as an existing user
Given the following config values are set as admin:
| allowaccountssameemail | 1 |
When I navigate to "Users > Accounts > Add a new user" in site administration
| allowaccountssameemail | <allowsameemail> |
And the following "users" exist:
| username | firstname | lastname | email |
| s1 | John | Doe | s1@example.com |
When I log in as "admin"
And I navigate to "Users > Accounts > Add a new user" in site administration
And I set the following fields to these values:
| Username | testmultiemailuser1 |
| Choose an authentication method | Manual accounts |
| New password | test@User1 |
| First name | Test |
| Surname | Multi1 |
| Email address | testmultiemailuser@example.com |
| Username | s2 |
| First name | Jane |
| Surname | Doe |
| Email address | <email> |
| New password | test |
And I press "Create user"
And I should see "Test Multi1"
And I press "Add a new user"
And I set the following fields to these values:
| Username | testmultiemailuser2 |
| Choose an authentication method | Manual accounts |
| New password | test@User2 |
| First name | Test |
| Surname | Multi2 |
| Email address | testmultiemailuser@example.com |
And I press "Create user"
Then I should see "Test Multi2"
And I should not see "This email address is already registered"
Then I should <expect> "This email address is already registered."
Scenario: Disable registration of multiple accounts with the same email address
Examples:
| allowsameemail | email | expect |
| 0 | s1@example.com | see |
| 0 | S1@EXAMPLE.COM | see |
| 1 | s1@example.com | not see |
| 1 | S1@EXAMPLE.COM | not see |
Scenario Outline: Update a user with the same email as an existing user
Given the following config values are set as admin:
| allowaccountssameemail | 0 |
When I navigate to "Users > Accounts > Add a new user" in site administration
And I set the following fields to these values:
| Username | testmultiemailuser1 |
| Choose an authentication method | Manual accounts |
| New password | test@User1 |
| First name | Test |
| Surname | Multi1 |
| Email address | testmultiemailuser@example.com |
And I press "Create user"
And I should see "Test Multi1"
And I press "Add a new user"
And I set the following fields to these values:
| Username | testmultiemailuser2 |
| Choose an authentication method | Manual accounts |
| New password | test@User2 |
| First name | Test |
| Surname | Multi2 |
| Email address | testmultiemailuser@example.com |
And I press "Create user"
Then I should see "This email address is already registered"
| allowaccountssameemail | <allowsameemail> |
And the following "users" exist:
| username | firstname | lastname | email |
| s1 | John | Doe | s1@example.com |
| s2 | Jane | Doe | s2@example.com |
When I log in as "admin"
And I navigate to "Users > Accounts > Browse list of users" in site administration
And I click on "Edit" "link" in the "Jane Doe" "table_row"
And I set the field "Email address" to "<email>"
And I press "Update profile"
Then I should <expect> "This email address is already registered."
Examples:
| allowsameemail | email | expect |
| 0 | s1@example.com | see |
| 0 | S1@EXAMPLE.COM | see |
| 1 | s1@example.com | not see |
| 1 | S1@EXAMPLE.COM | not see |
| 0 | S2@EXAMPLE.COM | not see |
| 1 | S2@EXAMPLE.COM | not see |
Scenario Outline: Update own user profile with the same email as an existing user
Given the following config values are set as admin:
| allowaccountssameemail | <allowsameemail> |
And the following "users" exist:
| username | firstname | lastname | email |
| s1 | John | Doe | s1@example.com |
| s2 | Jane | Doe | s2@example.com |
When I log in as "s2"
And I open my profile in edit mode
And I set the field "Email address" to "<email>"
And I press "Update profile"
Then I should <expect> "This email address is already registered."
Examples:
| allowsameemail | email | expect |
| 0 | s1@example.com | see |
| 0 | S1@EXAMPLE.COM | see |
| 1 | s1@example.com | not see |
| 1 | S1@EXAMPLE.COM | not see |
| 0 | S2@EXAMPLE.COM | not see |
| 1 | S2@EXAMPLE.COM | not see |
+27 -5
View File
@@ -6,11 +6,11 @@ Feature: An administrator can filter user accounts by role, cohort and other pro
Background:
Given the following "users" exist:
| username | firstname | lastname | email | auth | confirmed |
| user1 | User | One | one@example.com | manual | 0 |
| user2 | User | Two | two@example.com | ldap | 1 |
| user3 | User | Three | three@example.com | manual | 1 |
| user4 | User | Four | four@example.com | ldap | 0 |
| username | firstname | lastname | email | auth | confirmed | lastip |
| user1 | User | One | one@example.com | manual | 0 | 127.0.1.1 |
| user2 | User | Two | two@example.com | ldap | 1 | 0.0.0.0 |
| user3 | User | Three | three@example.com | manual | 1 | 0.0.0.0 |
| user4 | User | Four | four@example.com | ldap | 0 | 127.0.1.2 |
And the following "cohorts" exist:
| name | idnumber |
| Cohort 1 | CH1 |
@@ -82,3 +82,25 @@ Feature: An administrator can filter user accounts by role, cohort and other pro
And I should not see "User Two"
And I should not see "User Three"
And I should see "User Four"
Scenario: Filter user accounts by last IP address
When I set the following fields to these values:
| id_lastip | 127.0.1.1 |
And I press "Add filter"
Then I should see "User One"
And I should not see "User Two"
And I should not see "User Three"
And I should not see "User Four"
And I press "Remove all filters"
And I set the following fields to these values:
| id_lastip | 127.0.1.2 |
And I press "Add filter"
And I should not see "User One"
And I should not see "User Two"
And I should not see "User Three"
And I should see "User Four"
And I press "Remove all filters"
And I should see "User One"
And I should see "User Two"
And I should see "User Three"
And I should see "User Four"
@@ -0,0 +1,150 @@
@core @core_admin @javascript
Feature: An administrator can configure the available user list filters
In order to have all needed user filters instantly at hand
As an admin
I want to configure the filters which are shown as default
Scenario: Do not change the user filter default configuration
When I log in as "admin"
And I navigate to "Users > Accounts > Browse list of users" in site administration
Then I should see "User full name"
And I should not see "Surname" in the "New filter" "fieldset"
And I should not see "Firstname" in the "New filter" "fieldset"
And I should not see "Username" in the "New filter" "fieldset"
And I should not see "Email address" in the "New filter" "fieldset"
And I should not see "City/town" in the "New filter" "fieldset"
And I should not see "Country" in the "New filter" "fieldset"
And I should not see "Confirmed" in the "New filter" "fieldset"
And I should not see "Suspended account" in the "New filter" "fieldset"
And I should not see "User profile fields" in the "New filter" "fieldset"
And I should not see "Course role" in the "New filter" "fieldset"
And I should not see "Enrolled in any course" in the "New filter" "fieldset"
And I should not see "System role" in the "New filter" "fieldset"
And I should not see "Cohort ID" in the "New filter" "fieldset"
And I should not see "First access" in the "New filter" "fieldset"
And I should not see "Last access" in the "New filter" "fieldset"
And I should not see "Last modified" in the "New filter" "fieldset"
And I should not see "Authentication" in the "New filter" "fieldset"
And I should not see "ID number" in the "New filter" "fieldset"
And I should not see "Last IP address" in the "New filter" "fieldset"
And I should not see "MNet ID provider" in the "New filter" "fieldset"
And I navigate to "Users > Accounts > Bulk user actions" in site administration
Then I should see "User full name"
And I should not see "Surname" in the "New filter" "fieldset"
And I should not see "Firstname" in the "New filter" "fieldset"
And I should not see "Username" in the "New filter" "fieldset"
And I should not see "Email address" in the "New filter" "fieldset"
And I should not see "City/town" in the "New filter" "fieldset"
And I should not see "Country" in the "New filter" "fieldset"
And I should not see "Confirmed" in the "New filter" "fieldset"
And I should not see "Suspended account" in the "New filter" "fieldset"
And I should not see "User profile fields" in the "New filter" "fieldset"
And I should not see "Course role" in the "New filter" "fieldset"
And I should not see "Enrolled in any course" in the "New filter" "fieldset"
And I should not see "System role" in the "New filter" "fieldset"
And I should not see "Cohort ID" in the "New filter" "fieldset"
And I should not see "First access" in the "New filter" "fieldset"
And I should not see "Last access" in the "New filter" "fieldset"
And I should not see "Last modified" in the "New filter" "fieldset"
And I should not see "Authentication" in the "New filter" "fieldset"
And I should not see "ID number" in the "New filter" "fieldset"
And I should not see "Last IP address" in the "New filter" "fieldset"
And I should not see "MNet ID provider" in the "New filter" "fieldset"
Scenario: Change the user filter default configuration to something else
Given the following config values are set as admin:
| userfiltersdefault | realname,username,email |
And I log in as "admin"
And I navigate to "Users > Accounts > Browse list of users" in site administration
Then I should see "User full name"
And I should not see "Surname" in the "New filter" "fieldset"
And I should not see "Firstname" in the "New filter" "fieldset"
And I should see "Username" in the "New filter" "fieldset"
And I should see "Email address" in the "New filter" "fieldset"
And I should not see "City/town" in the "New filter" "fieldset"
And I should not see "Country" in the "New filter" "fieldset"
And I should not see "Confirmed" in the "New filter" "fieldset"
And I should not see "Suspended account" in the "New filter" "fieldset"
And I should not see "User profile fields" in the "New filter" "fieldset"
And I should not see "Course role" in the "New filter" "fieldset"
And I should not see "Enrolled in any course" in the "New filter" "fieldset"
And I should not see "System role" in the "New filter" "fieldset"
And I should not see "Cohort ID" in the "New filter" "fieldset"
And I should not see "First access" in the "New filter" "fieldset"
And I should not see "Last access" in the "New filter" "fieldset"
And I should not see "Last modified" in the "New filter" "fieldset"
And I should not see "Authentication" in the "New filter" "fieldset"
And I should not see "ID number" in the "New filter" "fieldset"
And I should not see "Last IP address" in the "New filter" "fieldset"
And I should not see "MNet ID provider" in the "New filter" "fieldset"
And I navigate to "Users > Accounts > Bulk user actions" in site administration
Then I should see "User full name"
And I should not see "Surname" in the "New filter" "fieldset"
And I should not see "Firstname" in the "New filter" "fieldset"
And I should see "Username" in the "New filter" "fieldset"
And I should see "Email address" in the "New filter" "fieldset"
And I should not see "City/town" in the "New filter" "fieldset"
And I should not see "Country" in the "New filter" "fieldset"
And I should not see "Confirmed" in the "New filter" "fieldset"
And I should not see "Suspended account" in the "New filter" "fieldset"
And I should not see "User profile fields" in the "New filter" "fieldset"
And I should not see "Course role" in the "New filter" "fieldset"
And I should not see "Enrolled in any course" in the "New filter" "fieldset"
And I should not see "System role" in the "New filter" "fieldset"
And I should not see "Cohort ID" in the "New filter" "fieldset"
And I should not see "First access" in the "New filter" "fieldset"
And I should not see "Last access" in the "New filter" "fieldset"
And I should not see "Last modified" in the "New filter" "fieldset"
And I should not see "Authentication" in the "New filter" "fieldset"
And I should not see "ID number" in the "New filter" "fieldset"
And I should not see "Last IP address" in the "New filter" "fieldset"
And I should not see "MNet ID provider" in the "New filter" "fieldset"
Scenario: Change the user filter default configuration to no filter at all
Given the following config values are set as admin:
| userfiltersdefault | |
And I log in as "admin"
And I navigate to "Users > Accounts > Browse list of users" in site administration
Then I should see "User full name"
And I should not see "Surname" in the "New filter" "fieldset"
And I should not see "Firstname" in the "New filter" "fieldset"
And I should not see "Username" in the "New filter" "fieldset"
And I should not see "Email address" in the "New filter" "fieldset"
And I should not see "City/town" in the "New filter" "fieldset"
And I should not see "Country" in the "New filter" "fieldset"
And I should not see "Confirmed" in the "New filter" "fieldset"
And I should not see "Suspended account" in the "New filter" "fieldset"
And I should not see "User profile fields" in the "New filter" "fieldset"
And I should not see "Course role" in the "New filter" "fieldset"
And I should not see "Enrolled in any course" in the "New filter" "fieldset"
And I should not see "System role" in the "New filter" "fieldset"
And I should not see "Cohort ID" in the "New filter" "fieldset"
And I should not see "First access" in the "New filter" "fieldset"
And I should not see "Last access" in the "New filter" "fieldset"
And I should not see "Last modified" in the "New filter" "fieldset"
And I should not see "Authentication" in the "New filter" "fieldset"
And I should not see "ID number" in the "New filter" "fieldset"
And I should not see "Last IP address" in the "New filter" "fieldset"
And I should not see "MNet ID provider" in the "New filter" "fieldset"
And I navigate to "Users > Accounts > Bulk user actions" in site administration
Then I should see "User full name"
And I should not see "Surname" in the "New filter" "fieldset"
And I should not see "Firstname" in the "New filter" "fieldset"
And I should not see "Username" in the "New filter" "fieldset"
And I should not see "Email address" in the "New filter" "fieldset"
And I should not see "City/town" in the "New filter" "fieldset"
And I should not see "Country" in the "New filter" "fieldset"
And I should not see "Confirmed" in the "New filter" "fieldset"
And I should not see "Suspended account" in the "New filter" "fieldset"
And I should not see "User profile fields" in the "New filter" "fieldset"
And I should not see "Course role" in the "New filter" "fieldset"
And I should not see "Enrolled in any course" in the "New filter" "fieldset"
And I should not see "System role" in the "New filter" "fieldset"
And I should not see "Cohort ID" in the "New filter" "fieldset"
And I should not see "First access" in the "New filter" "fieldset"
And I should not see "Last access" in the "New filter" "fieldset"
And I should not see "Last modified" in the "New filter" "fieldset"
And I should not see "Authentication" in the "New filter" "fieldset"
And I should not see "ID number" in the "New filter" "fieldset"
And I should not see "Last IP address" in the "New filter" "fieldset"
And I should not see "MNet ID provider" in the "New filter" "fieldset"

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