Compare commits

...

3998 Commits

Author SHA1 Message Date
Eloy Lafuente (stronk7) 27d0c2181b Moodle release 3.6.7 2019-11-09 11:57:42 +01:00
Sara Arjona c6b6921b4e weekly release 3.6.6+ 2019-11-08 15:39:41 +01:00
Sara Arjona 1328297d48 Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-11-08 15:39:38 +01:00
Adrian Greeve b5c18dedf0 Merge branch 'MDL-67169_36' of https://github.com/stronk7/moodle into MOODLE_36_STABLE 2019-11-08 10:45:30 +08:00
Jake Dallimore 4c9c8e00db Merge branch 'MDL-67016-36-user-profile-see-own-courses' of https://github.com/danowar2k/moodle into MOODLE_36_STABLE 2019-11-08 10:22:58 +08:00
Sara Arjona 0c79de9112 Merge branch 'MDL-66683-36' of git://github.com/cescobedo/moodle into MOODLE_36_STABLE 2019-11-07 17:41:43 +01:00
cescobedo 829c7c9a1b 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:31:04 +01:00
Jake Dallimore abd981c6a7 MDL-66257 tool_cohortroles: unit test for users in multiple cohorts 2019-11-07 23:48:34 +08:00
cescobedo 4d10388df2 MDL-66257 tool_cohortroles: Unassign the role on removal cohortroles. 2019-11-07 23:48:34 +08:00
Eloy Lafuente (stronk7) d89e40d7d6 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:43:30 +01:00
Jun Pataleta 3efab60a57 Merge branch 'MDL-67084-36' of git://github.com/junpataleta/moodle into MOODLE_36_STABLE 2019-11-07 19:37:40 +08:00
Marina Glancy 1d7543be8c MDL-67084 core_form: duration element should export arrays 2019-11-07 19:22:15 +08:00
Jun Pataleta 116d8541d2 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:44:43 +08:00
Jun Pataleta 78d51b1fc6 MDL-66598 auth_oauth2: Add warning messages in confirm emails 2019-11-07 18:44:43 +08:00
Jun Pataleta fd753889a2 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:44:43 +08:00
Eloy Lafuente (stronk7) f6822347de Merge branch 'MDL-42638-36' of https://github.com/lucaboesch/moodle into MOODLE_36_STABLE 2019-11-06 22:47:41 +01:00
Sara Arjona dcd13e2b08 Merge branch 'MDL-66984-change_password_url-with-user-MOODLE_36_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_36_STABLE 2019-11-06 08:31:01 +01:00
Michael Hawkins 1137b7d072 MDL-66161 output: Escaping fatal error message and URL strings 2019-11-06 01:26:37 +01:00
Juan Leyva c7a5fc2f35 MDL-66377 user: Only allow active users to retrieve files via tokenpluginfile.php 2019-11-06 01:26:37 +01:00
Paul Holden 167a8dc276 MDL-66228 mod_lesson: ensure return URL parameters are always local. 2019-11-06 01:26:37 +01:00
AMOS bot bf569af16b Automatically generated installer lang files 2019-11-06 00:16:42 +00:00
Adrian Greeve 7c34492487 Merge branch 'MDL-67136-36' of git://github.com/mihailges/moodle into MOODLE_36_STABLE 2019-11-06 08:16:41 +08:00
Luca Bösch 9d1ded28c2 MDL-42638 filters: Have emoticons respect <pre>. 2019-11-05 16:09:04 +01:00
Eloy Lafuente (stronk7) a9749a86b8 weekly release 3.6.6+ 2019-11-05 13:34:23 +01:00
Eloy Lafuente (stronk7) 030b9db219 Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-11-05 13:34:21 +01:00
Mihail Geshoski 3cbb18b105 MDL-67136 mod_assign: Fix expand/collapse text submission in clean 2019-11-05 13:28:14 +08:00
Jake Dallimore b50f1289b6 Merge branch 'MDL-66455-36' of git://github.com/lameze/moodle into MOODLE_36_STABLE 2019-11-05 11:43:31 +08:00
AMOS bot 23c4e59166 Automatically generated installer lang files 2019-11-05 00:10:35 +00:00
Brendan Heywood ddc5472056 MDL-66984 auth: Allow $USER to be used in change_password_url 2019-11-05 10:32:47 +11:00
Jun Pataleta 3139dba346 Merge branch 'MDL-66582-36' of git://github.com/jleyva/moodle into MOODLE_36_STABLE 2019-11-04 19:35:11 +08:00
Juan Leyva 768057b4db 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-11-04 10:21:19 +01:00
Johan Dobbelstein e91e315d19 MDL-66582 auth: Fix empty auth_logo in 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-11-04 10:13:48 +01:00
Jake Dallimore c8238b4d45 Merge branch 'MDL-67093-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-11-04 15:41:32 +08:00
Jake Dallimore dcb601fede Merge branch 'MDL-67009_36' of https://github.com/stronk7/moodle into MOODLE_36_STABLE 2019-11-04 14:56:35 +08:00
Adrian Greeve 1fc5f07ed3 Merge branch 'MDL-43189-36' of git://github.com/snake/moodle into MOODLE_36_STABLE 2019-11-04 09:25:17 +08:00
Eloy Lafuente (stronk7) 1652dfe456 Merge branch 'MDL-66990-36-enfix' of git://github.com/mudrd8mz/moodle into MOODLE_36_STABLE 2019-11-03 23:15:29 +01:00
AMOS bot 3a4b7e8995 Automatically generated installer lang files 2019-11-02 00:09:38 +00:00
Helen Foster 716143b33c MDL-66990 lang: Import fixed English strings (en_fix)
Significant string changes:

* configenablecompletion,core_completion - including reason for setting
  activity completion conditions
* setuplink_desc,tool_mobile - including where the app download page
  link is displayed and leaving the setting empty
2019-11-01 11:28:31 +01:00
Shamim Rezaie 74ac275d08 MDL-43189 core: improve validating db settings during cli install 2019-11-01 15:39:55 +08:00
Shamim Rezaie 7a902dea3a MDL-43189 core: Validate db prefix during installation 2019-11-01 15:39:55 +08:00
Daniel Poggenpohl 88b7f71a50 MDL-67016 profile: current user should see his own courses 2019-10-31 14:40:53 +01:00
Eloy Lafuente (stronk7) a78ed9eed1 weekly release 3.6.6+ 2019-10-31 13:33:12 +01:00
Simey Lameze b4f299ec91 MDL-66455 calendar: add coverage for event types in subscription page 2019-10-31 18:48:15 +08:00
Simey Lameze 74d9dbf696 MDL-66455 calendar: show site level subscriptions 2019-10-31 18:48:15 +08:00
Adrian Greeve 567fa6adc3 Merge branch 'MDL-66247-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-10-31 14:41:10 +08:00
Andrew Nicols 4c3a2ea83c MDL-67093 grading: Fetch cm with get_fast_modinfo 2019-10-31 13:29:00 +08:00
Andrew Nicols c3cad10fcf Merge branch 'MDL-67088-36' of git://github.com/marinaglancy/moodle into MOODLE_36_STABLE 2019-10-31 11:08:34 +08:00
Marina Glancy e6993ed682 MDL-67088 mod_assign: compare time without case for MacOS compat 2019-10-30 19:21:43 +01:00
Andrew Nicols ac2b9ee95c MDL-66247 accessibility: Correct notification alert role support 2019-10-30 09:01:18 +08:00
Eloy Lafuente (stronk7) 55749ae39f weekly release 3.6.6+ 2019-10-29 21:01:40 +01:00
Eloy Lafuente (stronk7) d56954a828 Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-10-29 21:01:33 +01:00
Jake Dallimore 4eb1e079b3 Merge branch 'MDL-66945_36' of git://github.com/stronk7/moodle into MOODLE_36_STABLE 2019-10-29 14:56:35 +08:00
Andrew Nicols d673f8abd7 Merge branch 'MDL-67027-36' of https://github.com/paulholden/moodle into MOODLE_36_STABLE 2019-10-29 09:36:07 +08:00
Andrew Nicols 398dde36b3 MDL-66945 composer: Update behat extension
(using php70 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:40:23 +01:00
Jun Pataleta c92e401361 Merge branch 'm36_MDL-65811_Fix_Incorrect_ORDER_BY_Search' of https://github.com/scara/moodle into MOODLE_36_STABLE 2019-10-28 11:30:24 +08:00
AMOS bot ebb4054cd6 Automatically generated installer lang files 2019-10-28 00:09:26 +00:00
AMOS bot 7a68e34f61 Automatically generated installer lang files 2019-10-27 00:09:23 +00:00
Matteo Scaramuccia 9c82b32001 MDL-65811 database: Fix subsetting in MSSQL 2019-10-25 23:06:58 +02:00
Paul Holden 99c79db0c7 MDL-67027 calendar: fix event update form validation. 2019-10-25 17:36:47 +01:00
Eloy Lafuente (stronk7) 3f26d44a6f weekly release 3.6.6+ 2019-10-25 15:29:37 +02:00
Eloy Lafuente (stronk7) 48878c24fd Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-10-25 15:29:34 +02:00
Jake Dallimore 8dd23a1375 Merge branch 'MOODLE_36_MDL-66973' of https://github.com/golenkovm/moodle into MOODLE_36_STABLE 2019-10-25 11:10:42 +08:00
Jun Pataleta d1bd09fa41 Merge branch 'MDL-66543-36' of github.com:junpataleta/moodle into MOODLE_36_STABLE 2019-10-24 23:17:08 +08:00
Jun Pataleta db88f1f307 MDL-66543 core_form: Fix illegal whitespace 2019-10-24 23:14:47 +08:00
Jun Pataleta 03f1265690 Merge branch 'MDL-66543-36' of git://github.com/tobiasreischmann/moodle into MOODLE_36_STABLE 2019-10-24 23:08:29 +08:00
Tobias Reischmann 8fd70353e6 MDL-66543 forms: Make (hard) frozen textareas readonly (or disabled) 2019-10-24 13:43:07 +02:00
Eloy Lafuente (stronk7) 9d57a8057f Merge branch 'MDL-67001-36' of https://github.com/lucaboesch/moodle into MOODLE_36_STABLE 2019-10-24 13:27:54 +02:00
Eloy Lafuente (stronk7) 1f77d72592 MDL-67009 behat: get rid of invalid void type hinting for php70 2019-10-24 10:48:12 +02:00
Eloy Lafuente (stronk7) e2442de0b6 Merge branch 'MDL-66935-lock-clashes-MOODLE_36_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_36_STABLE 2019-10-24 10:03:55 +02:00
Adrian Greeve 5d5d2e6e42 Merge branch 'MDL-66876-36' of git://github.com/jleyva/moodle into MOODLE_36_STABLE 2019-10-24 15:17:25 +08:00
Luca Bösch 4112274408 MDL-67001 question: alignment and form spaces. 2019-10-24 07:59:24 +02:00
Brendan Heywood 1aabe01886 MDL-66935 core_lock: Fix resource key clashes in db and postgres locks 2019-10-24 15:07:49 +11:00
AMOS bot 734a176cf0 Automatically generated installer lang files 2019-10-24 00:09:34 +00:00
Eloy Lafuente (stronk7) d1d8f42cde Merge branch 'MDL-64298-36' of git://github.com/jleyva/moodle into MOODLE_36_STABLE 2019-10-23 22:22:00 +02:00
Eloy Lafuente (stronk7) 0123b42676 Merge branch 'MDL-67001-36' of https://github.com/lucaboesch/moodle into MOODLE_36_STABLE 2019-10-23 22:17:48 +02:00
Juan Leyva cb63696054 MDL-64298 gradereport_user: Fix WS returned parameter description
feedbackformat must be optional always
2019-10-23 17:16:30 +02:00
Juan Leyva a3bc3ce5b6 MDL-66876 core_filter: Fix context in Web Service warning 2019-10-23 17:07:47 +02:00
Luca Bösch d029483cde MDL-67001 question: alignment and form spaces. 2019-10-23 11:08:50 +02:00
Adrian Greeve 19115e20a7 Merge branch 'MDL-63125-36' of https://github.com/paulholden/moodle into MOODLE_36_STABLE 2019-10-23 11:10:31 +08:00
Sara Arjona 8cda42019a weekly release 3.6.6+ 2019-10-22 14:48:02 +02:00
Sara Arjona 4aca40f697 Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-10-22 14:47:59 +02:00
Mikhail Golenkov 84a8b1b2df MDL-66973 search: Reset Content writer after test. 2019-10-22 09:43:15 +11:00
Paul Holden 880dcd0f94 MDL-63125 forms: Behat test for form autocomplete element. 2019-10-21 23:25:21 +01:00
Eloy Lafuente (stronk7) 269bb26b3c Merge branch 'MDL-66980_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-10-21 20:27:03 +02:00
Sara Arjona 7d87eef1fc Merge branch 'MDL-61121-36-5' of git://github.com/mihailges/moodle into MOODLE_36_STABLE 2019-10-21 14:46:42 +02:00
Tim Hunt de672b1357 MDL-66980 question bank: fix load_many_for_cache missing record check 2019-10-21 11:19:06 +01:00
Jun Pataleta f48f788115 Merge branch 'MDL-66009-36' of https://github.com/grabs/moodle into MOODLE_36_STABLE 2019-10-21 16:15:07 +08:00
Jake Dallimore a0a3400c59 Merge branch 'MDL-66915-36' of https://github.com/MartinGauk/moodle into MOODLE_36_STABLE 2019-10-21 15:56:50 +08:00
Andrew Nicols 49592cea31 Merge branch 'MDL-66962-36' of https://github.com/lucaboesch/moodle into MOODLE_36_STABLE 2019-10-21 14:24:10 +08:00
Luca Bösch b4bc353659 MDL-66962 questions: Question bank table T title non breaking. 2019-10-21 08:17:45 +02:00
Andrew Nicols f074a0ee86 Merge branch 'MDL-66944_36' of https://github.com/t-schroeder/moodle into MOODLE_36_STABLE 2019-10-21 13:49:12 +08:00
Andrew Nicols 9c2abf9a02 Merge branch 'MDL-66946_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-10-21 13:08:34 +08:00
Jake Dallimore 17d08f6cc5 Merge branch 'MDL-66930-36' of https://github.com/lucaboesch/moodle into MOODLE_36_STABLE 2019-10-21 11:56:10 +08:00
Jake Dallimore 85fec2dfe4 Merge branch 'MDL-66960-36' of https://github.com/lucaboesch/moodle into MOODLE_36_STABLE 2019-10-21 10:42:12 +08:00
AMOS bot cd99faeb67 Automatically generated installer lang files 2019-10-19 00:09:27 +00:00
Tim Schroeder 9e0c4e13d7 MDL-66944 course: fixed copy-paste-error in comment 2019-10-19 00:06:58 +02:00
Tim Hunt ee2c305e37 MDL-66946 quiz reports: incorrectly show teachers sometimes 2019-10-18 17:43:23 +01:00
Luca Bösch 4a3222dc50 MDL-66960 questions: Top align all question bank titles exc "select all" 2019-10-18 16:35:30 +02:00
Luca Bösch 0abefe1f2b MDL-66930 quiz: Question type icon size and alignment in Boost. 2019-10-18 13:51:39 +02:00
Eloy Lafuente (stronk7) caa6f445e4 weekly release 3.6.6+ 2019-10-18 10:31:24 +02:00
Mihail Geshoski 907312d17a MDL-61121 assign: Declare variables in the local scope 2019-10-18 14:00:55 +08:00
Mihail Geshoski 14b13ec478 MDL-61121 assign: Improve accessibility in quick grading page tables 2019-10-18 14:00:55 +08:00
Mihail Geshoski 9e687b46e9 MDL-61121 assign: Improve accessibility - view full/view summary control 2019-10-18 14:00:55 +08:00
Jun Pataleta 5cd189b68d Merge branch 'MDL-66806_36' of git://github.com/dmonllao/moodle into MOODLE_36_STABLE 2019-10-18 09:34:24 +08:00
Andrew Nicols 5a774101e0 Merge branch 'MDL-66919_36' of https://github.com/stronk7/moodle into MOODLE_36_STABLE 2019-10-18 08:28:26 +08:00
Eloy Lafuente (stronk7) 6019d849b2 Merge branch 'MDL-64064-m36' of https://github.com/NeillM/moodle into MOODLE_36_STABLE 2019-10-17 23:09:24 +02:00
Andreas Grabs 3b1d619baf MDL-66009 mod_feedback: Nested dependency fails again 2019-10-17 09:19:43 +02:00
Eloy Lafuente (stronk7) 9eb88d21ba MDL-66919 behat: fix typo in error message
Also fix a couple of phpdocs that were incorrect.
2019-10-16 00:49:13 +02:00
Eloy Lafuente (stronk7) f2d10a9bb9 weekly release 3.6.6+ 2019-10-15 22:59:53 +02:00
Martin Gauk 580d8124c0 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 15:55:06 +02:00
Tim Hunt af46f59162 MDL-66796 question bank: fix more bugs with category editing 2019-10-15 11:23:20 +08:00
Jun Pataleta e194ef059f Merge branch 'MDL-66821_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-10-15 07:36:31 +08:00
Andrew Nicols a9be3e27e3 Merge branch 'MDL-66335_36' of https://github.com/stronk7/moodle into MOODLE_36_STABLE 2019-10-15 07:31:42 +08:00
Eloy Lafuente (stronk7) 0f9ed5c5e0 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-15 00:04:11 +02:00
Eloy Lafuente (stronk7) 989faa4667 Merge branch 'MDL-66335_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-10-14 18:56:50 +02:00
Paul Holden 45d210a442 MDL-63125 forms: allow item removal from single-select autocomplete. 2019-10-14 17:07:46 +01:00
Eloy Lafuente (stronk7) d0577075b6 Merge branch 'MDL-66559-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-10-14 16:41:05 +02:00
Tim Hunt 96e9075ac9 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 13:14:45 +01:00
Tim Hunt d714e336b6 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 13:14:41 +01:00
Tim Hunt 10bf14282c MDL-66335 behat: generic step for navigating direct to specific pages 2019-10-14 13:13:32 +01:00
Tim Hunt fa963675f4 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 12:00:03 +01:00
Sara Arjona 7511cf3462 Merge branch 'MDL-66836-m36' of https://github.com/sammarshallou/moodle into MOODLE_36_STABLE 2019-10-14 12:27:23 +02:00
Jake Dallimore 78be4e8724 Merge branch 'MDL-66659-36' of https://github.com/paulholden/moodle into MOODLE_36_STABLE 2019-10-14 15:34:32 +08:00
Andrew Nicols 86a58a82d8 MDL-66559 behat: Register component selectors earlier 2019-10-14 14:24:05 +08:00
Andrew Nicols 17342a4ff3 MDL-66559 behat: Update running suite 2019-10-14 14:17:47 +08:00
Jun Pataleta 3e50a250e9 Merge branch 'MDL-66796-36-fix' of https://github.com/snake/moodle into MOODLE_36_STABLE 2019-10-14 13:48:16 +08:00
Jake Dallimore 0143e8bcf4 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:41:40 +08:00
Jake Dallimore 21ee8ef703 Merge branch 'MDL-66559-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-10-14 11:10:35 +08:00
Jake Dallimore 77ccb0f467 Merge branch 'MDL-66796_36' of git://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-10-14 07:42:10 +08:00
Eloy Lafuente (stronk7) d12b2d9822 Merge branch 'MDL-66851-36' of git://github.com/mihailges/moodle into MOODLE_36_STABLE 2019-10-13 16:51:27 +02:00
Eloy Lafuente (stronk7) 6a81c53788 Merge branch 'MDL-65243-36' of git://github.com/mihailges/moodle into MOODLE_36_STABLE 2019-10-13 16:31:37 +02:00
Eloy Lafuente (stronk7) e2a4284326 Merge branch 'MDL-66779-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-10-13 02:13:27 +02:00
Eloy Lafuente (stronk7) ed9c55b892 Merge branch 'MOODLE_36_MDL-66864' of https://github.com/golenkovm/moodle into MOODLE_36_STABLE 2019-10-13 02:09:01 +02:00
Eloy Lafuente (stronk7) 4462ed30c7 Merge branch 'MDL-65584-36' of https://github.com/paulholden/moodle into MOODLE_36_STABLE 2019-10-13 01:49:59 +02:00
Eloy Lafuente (stronk7) badb6a92c4 weekly release 3.6.6+ 2019-10-11 22:43:37 +02:00
Eloy Lafuente (stronk7) c6f435069e Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-10-11 22:43:25 +02:00
Neill Magill ff9be7de2c 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:39:14 +01:00
Tim Hunt eec220f2fc MDL-66559 behat: Documentation for component selectors 2019-10-11 12:58:16 +08:00
Andrew Nicols 8694eaac19 MDL-66559 behat: Allow per-component selectors and replacements 2019-10-11 12:58:16 +08:00
Jake Dallimore 8aeddd78bf Merge branch 'MDL-66804-36' of https://github.com/paulholden/moodle into MOODLE_36_STABLE 2019-10-11 09:58:49 +08:00
Jun Pataleta 3df36d632c Merge branch 'MDL-66450-36' of git://github.com/bmbrands/moodle into MOODLE_36_STABLE 2019-10-11 09:20:21 +08:00
AMOS bot 7c31894342 Automatically generated installer lang files 2019-10-11 00:11:43 +00:00
Eloy Lafuente (stronk7) 8f89e0bde5 Merge branch 'MDL-66815_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-10-11 00:50:51 +02:00
Bas Brands 102e20c11b MDL-66450 theme_bootstrapbase: form autocomplete truncate listitems 2019-10-10 17:18:22 +02:00
David Monllaó ff698a03ec MDL-66806 analytics: No predictions for hidden courses 2019-10-10 10:09:43 +08:00
AMOS bot c917c9860c Automatically generated installer lang files 2019-10-10 00:09:35 +00:00
sam marshall fdf8e3668f 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:49:56 +01:00
Jun Pataleta 6d791cfa86 Merge branch 'MDL-66835_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-10-09 20:44:27 +08:00
Jun Pataleta e3d4c8d5a4 Merge branch 'MDL-66450-36' of git://github.com/bmbrands/moodle into MOODLE_36_STABLE 2019-10-09 20:39:15 +08:00
Bas Brands 6594812c15 MDL-66450 themes: form autocomplete truncate listitems 2019-10-09 14:28:05 +02:00
Tim Hunt ece21a4a2b MDL-66835 behat: steps for setting/checking fields in containers 2019-10-09 13:24:19 +01:00
Sara Arjona 479eda9446 Merge branch 'MDL-66852-36' of github.com:lucaboesch/moodle into MOODLE_36_STABLE 2019-10-09 12:58:16 +02:00
Damyon Wiese d498f9b7da MDL-65243 badges: Use real time api
Never add or subtract timestamps - use the time api to do it correctly.
2019-10-09 11:56:12 +08:00
Andrew Nicols 976ad2a7de MDL-66779 phpunit: Correct component name for core_grades 2019-10-09 09:35:16 +08:00
Andrew Nicols 507928af8a Merge branch 'MDL-66118-36-byebyemoodlenet' of git://github.com/mudrd8mz/moodle into MOODLE_36_STABLE 2019-10-09 08:51:55 +08:00
Luca Bösch 6b8b0e2468 MDL-66852 quiz: Style "Try another question like this one" button. 2019-10-08 11:26:08 +02:00
Eloy Lafuente (stronk7) df05ccb9af weekly release 3.6.6+ 2019-10-08 10:43:25 +02:00
Eloy Lafuente (stronk7) 1d82d302bd Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-10-08 10:43:18 +02:00
Mihail Geshoski 10a1109b79 MDL-66851 block_starredcourses: Hide 'hidden' courses from students
Thanks to Mark Sharp for the bug report and fix suggestion.
2019-10-08 09:54:23 +08:00
AMOS bot d6a6c93a88 Automatically generated installer lang files 2019-10-08 00:10:13 +00:00
Paul Holden d6fdedd4ab 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:23:43 +01:00
Eloy Lafuente (stronk7) a3de11a763 Merge branch 'MDL-66801_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-10-08 01:16:57 +02:00
Eloy Lafuente (stronk7) 051e6b38e2 Merge branch 'MDL-66764_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-10-07 22:51:25 +02:00
Mikhail Golenkov 2d1b49b953 MDL-66864 upgrade: Delete non-mutual contacts in chunks. 2019-10-07 16:34:42 +11:00
David Mudrák 71f49c970e 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:44:02 +02:00
David Mudrák 3bef0a6cf2 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:44:02 +02:00
David Mudrák 168a1fed2a 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:42:09 +02:00
Eloy Lafuente (stronk7) 3016cb824d weekly release 3.6.6+ 2019-10-04 16:01:35 +02:00
Jun Pataleta 9b1c66d4e5 Merge branch 'MDL-65315-36' of git://github.com/peterRd/moodle into MOODLE_36_STABLE 2019-10-04 10:24:59 +08:00
Peter 496eeb0f73 MDL-65315 badges: Update the class and issuer OBv2.0 url 2019-10-04 07:46:53 +08:00
Eloy Lafuente (stronk7) 77414d0d57 Merge branch 'MDL-56649-36' of git://github.com/bmbrands/moodle into MOODLE_36_STABLE 2019-10-03 19:37:34 +02:00
Jun Pataleta d1dbe6db4a Merge branch 'MDL-61450-36' of git://github.com/lameze/moodle into MOODLE_36_STABLE 2019-10-03 15:42:01 +08:00
Jun Pataleta 7070a23d97 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:39:25 +08:00
Simey Lameze dec2ad8603 MDL-61450 calendar: fix course event type permissions 2019-10-03 15:39:25 +08:00
Eloy Lafuente (stronk7) c89a1b99fd Merge branch 'MDL-66774-36-macedonia' of git://github.com/mudrd8mz/moodle into MOODLE_36_STABLE 2019-10-03 00:59:15 +02:00
Eloy Lafuente (stronk7) f30091c8dc Merge branch 'MDL-66197-36' of git://github.com/marinaglancy/moodle into MOODLE_36_STABLE 2019-10-03 00:45:52 +02:00
Eloy Lafuente (stronk7) 6f32cfee2b Merge branch 'MDL-65335_36_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_36_STABLE 2019-10-01 23:22:43 +02:00
Tim Hunt d6f442bf41 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:48:41 +01:00
Eloy Lafuente (stronk7) 896db11641 Merge branch 'MDL-65522-m36' of https://github.com/NeillM/moodle into MOODLE_36_STABLE 2019-10-01 16:13:16 +02:00
Eloy Lafuente (stronk7) fb23adbcd3 Merge branch 'MDL-66542_36' of https://github.com/t-schroeder/moodle into MOODLE_36_STABLE 2019-10-01 15:58:58 +02:00
Paul Holden 9bdca4fbe0 MDL-66659 core: observe viewfullnames capability in flexible_table. 2019-10-01 10:15:25 +01:00
Paul Holden 6442cf75ee MDL-66804 user: consistent user access times in privacy export. 2019-09-30 23:15:05 +01:00
Tim Hunt ed3fc39176 MDL-66801 questions: XML import/export should include category idnumbers 2019-09-30 19:00:37 +01:00
Tim Hunt eaca013a20 MDL-66796 question bank: 0 is a valid question category idnumber 2019-09-30 14:19:22 +01:00
Tim Schroeder 864cd27438 MDL-66542 lib: Fix quote escaping in JS quote helper 2019-09-30 10:11:33 +02:00
Neill Magill 0aa44e4539 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 09:00:15 +01:00
Jun Pataleta 4897a4a166 weekly release 3.6.6+ 2019-09-27 11:12:20 +08:00
Jun Pataleta 0bad3d746d Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-09-27 11:12:19 +08:00
David Mudrák 67125ee5f4 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 10:55:29 +02:00
Jun Pataleta 9d30d31afb Merge branch 'MDL-66262_36' of git://github.com/stronk7/moodle into MOODLE_36_STABLE 2019-09-26 11:34:33 +08:00
Eloy Lafuente (stronk7) cff6fab1cd Merge branch 'MDL-51327-36' of git://github.com/mihailges/moodle into MOODLE_36_STABLE 2019-09-26 00:05:06 +02:00
Eloy Lafuente (stronk7) d3843bbc7e Merge branch 'MDL-66685_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-09-25 23:58:07 +02:00
Eloy Lafuente (stronk7) f47a98b31f Merge branch 'MDL-66675-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-09-25 20:06:25 +02:00
Marina Glancy 48d8fb92ff MDL-66197 core: correct get parent language 2019-09-25 17:41:45 +02:00
Bas Brands d5f83a1a23 MDL-56649 themes: filepicker file exists buttons spacing 2019-09-25 12:25:10 +02:00
Tim Hunt a29971b021 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:05:24 +01:00
Jun Pataleta 16ec7c1d7c Merge branch 'MDL-66354-36' of http://github.com/dravek/moodle into MOODLE_36_STABLE 2019-09-25 16:42:46 +08:00
David Matamoros 4f4d28b56b MDL-66354 core_calendar: Notices in error.log on calendar events 2019-09-25 09:13:03 +02:00
Jun Pataleta 6de29467ce Merge branch 'MDL-66644-36-versionrequires' of git://github.com/mudrd8mz/moodle into MOODLE_36_STABLE 2019-09-25 14:53:20 +08:00
Eloy Lafuente (stronk7) cfc96245ba Merge branch 'MDL-65621-dimmed-courses-MOODLE_3.6' of https://github.com/stopfstedt/moodle into MOODLE_36_STABLE 2019-09-24 19:09:22 +02:00
Mihail Geshoski 935d259396 MDL-51327 core_course: Allow subdirs in edit section form 2019-09-24 09:09:38 +08:00
AMOS bot 9cfbcde257 Automatically generated installer lang files 2019-09-22 00:09:27 +00:00
Sara Arjona 9d7fd4b062 Merge branch 'MDL-46978-MOODLE_36_STABLE' of github.com:tuanngocnguyen/moodle into MOODLE_36_STABLE 2019-09-20 13:08:15 +02:00
Sara Arjona f1659f3f40 Merge branch 'MDL-66090_36' of git://github.com/dmonllao/moodle into MOODLE_36_STABLE 2019-09-20 12:46:36 +02:00
Mark Johnson c63863df2b MDL-65335 auth: Make oauth2 enabled check more efficient 2019-09-20 08:56:06 +01:00
Jake Dallimore 2fb35f856c Merge branch 'MDL-65970-36' of git://github.com/jleyva/moodle into MOODLE_36_STABLE 2019-09-20 14:29:29 +08:00
Sara Arjona 6709fdbb6d weekly release 3.6.6+ 2019-09-19 21:19:16 +02:00
Stefan Topfstedt 7f9e015071 MDL-66433 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-09-19 10:09:39 -07:00
Eloy Lafuente (stronk7) da01d735a1 Merge branch 'MDL-65878-36' of https://github.com/lucaboesch/moodle into MOODLE_36_STABLE 2019-09-19 15:57:58 +02:00
Luca Bösch 8ad9815afc MDL-65878 core_output: Move button not sticky to select field. 2019-09-19 12:16:45 +02:00
Luca Bösch a1ed46a130 MDL-65878 core_output: Move button not sticky to select field. 2019-09-19 12:04:15 +02:00
Eloy Lafuente (stronk7) c62a946756 Merge branch 'MDL-65878-36' of https://github.com/lucaboesch/moodle into MOODLE_36_STABLE 2019-09-19 09:41:26 +02:00
Luca Bösch 0846707178 MDL-65878 forum: add padding for export to portfolio option. 2019-09-19 09:23:22 +02:00
Nathan Nguyen 9b6d7fc1e0 MDL-46978 core_grades: preserve category total visibility 2019-09-19 14:11:52 +10:00
David Monllaó 51e71e8aa9 MDL-66090 analytics: Support user for notifications 2019-09-19 08:00:26 +08:00
Andrew Nicols e46ad4a1a1 MDL-66675 behat: Fix typo in step function name 2019-09-19 07:30:42 +08:00
Andrew Nicols dec33c29aa MDL-66675 behat: Add option to pause on behat failures 2019-09-19 07:30:41 +08:00
Andrew Nicols e44811963c MDL-66675 CLI: Add ANSI formatting options 2019-09-19 07:30:40 +08:00
Eloy Lafuente (stronk7) cb5ae56e63 Merge branch 'MDL-66641_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-09-18 20:30:14 +02:00
Eloy Lafuente (stronk7) 10f73026e9 Merge branch 'MDL-65878-36' of https://github.com/lucaboesch/moodle into MOODLE_36_STABLE 2019-09-18 20:08:09 +02:00
Luca Bösch d30be99a47 MDL-65878 core_output: Move button not sticky to select field. 2019-09-18 19:10:50 +02:00
Eloy Lafuente (stronk7) 9467ac7707 Merge branch 'MDL-63895-36' of git://github.com/vmdef/moodle into MOODLE_36_STABLE 2019-09-18 17:33:36 +02:00
Sara Arjona 4bac2a4bdb Merge branch 'MDL-66614_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-09-18 17:11:15 +02:00
Sara Arjona 790cae52ca Merge branch 'MDL-63293-36' of https://github.com/paulholden/moodle into MOODLE_36_STABLE 2019-09-18 13:40:16 +02:00
Sara Arjona e943107851 Merge branch 'MDL-66156-36' of https://github.com/snake/moodle into MOODLE_36_STABLE 2019-09-18 12:25:55 +02:00
Eloy Lafuente (stronk7) 3ff1ef47f8 Merge branch 'MDL-65026-36' of git://github.com/jleyva/moodle into MOODLE_36_STABLE 2019-09-18 01:01:55 +02:00
Juan Leyva 305111bcd3 MDL-65970 airnotifier: Set lower timeout for Push curl requests 2019-09-17 16:51:39 +02:00
Eloy Lafuente (stronk7) aadce0acfa Merge branch 'MDL-62915-36' of https://github.com/paulholden/moodle into MOODLE_36_STABLE 2019-09-17 16:22:16 +02:00
Sara Arjona fd0a5bef1e Merge branch 'MDL-66113-36' of git://github.com/jleyva/moodle into MOODLE_36_STABLE 2019-09-17 12:04:04 +02:00
Paul Holden e8c2c263b7 MDL-62915 tool_dataprivacy: don't let primary admin delete themselves. 2019-09-16 23:41:05 +01:00
Eloy Lafuente (stronk7) 878e330148 Merge branch 'MDL-66293-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-09-16 20:38:41 +02:00
Tim Hunt fd4de847ce MDL-66685 questions: should able to save an empty question usage 2019-09-16 14:36:17 +01:00
Juan Leyva a25615ff66 MDL-66113 assign: Apply user overrides in get_submission_status WS 2019-09-16 12:08:42 +02:00
Paul Holden 56d043a636 MDL-63293 enrol_manual: observe user paging config in enrol dialog. 2019-09-15 21:48:22 +01:00
Eloy Lafuente (stronk7) 1ed4e401f1 MDL-66262 env: Moodle 3.6.x and 3.7.x do not support PHP 7.4 2019-09-13 17:44:36 +02:00
Jake Dallimore f1246ad631 weekly release 3.6.6+ 2019-09-13 11:30:17 +08:00
Jake Dallimore b91f9efddc Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-09-13 11:30:16 +08:00
Eloy Lafuente (stronk7) 4c03ce0895 Merge branch 'MDL-66550-36-2' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-09-12 15:32:01 +02:00
Víctor Déniz Falcón 470e23e25b 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 11:58:09 +01:00
Shamim Rezaie 2af29ca628 MDL-66293 javascript: set maximum paging bar size to 10 2019-09-12 18:05:59 +10:00
Shamim Rezaie 5cb6386af1 MDL-66293 theme_bootstrapbase: Support setting bar size for paging bars 2019-09-12 18:05:59 +10:00
Andrew Nicols 0ac32aff37 MDL-66550 admin: The execute wrapper MUST be used in behat 2019-09-12 16:04:16 +08:00
Andrew Nicols 9400966aa9 MDL-66550 theme: Wrap JS calls in pendingJS 2019-09-12 14:59:17 +08:00
Jake Dallimore 55f56db61f MDL-66156 block_myoverview: remove orphaned course favourite records 2019-09-12 13:12:13 +08:00
Jake Dallimore 09b691381c MDL-66156 block_myoverview: purge course favourites on course deletion. 2019-09-12 13:12:12 +08:00
Shamim Rezaie 37e349dd89 MDL-66293 javascript: Added support to set bar size for paging bars 2019-09-12 14:24:34 +10:00
Andrew Nicols ddd9d6e95e Merge branch 'MDL-66498_36' of git://github.com/dmonllao/moodle into MOODLE_36_STABLE 2019-09-12 11:18:11 +08:00
Jake Dallimore 34a5bd4223 Merge branch 'MDL-64917-MOODLE_36_STABLE' of https://github.com/tuanngocnguyen/moodle into MOODLE_36_STABLE 2019-09-12 09:28:32 +08:00
Nathan Nguyen 734cd75ed3 MDL-64917 filepicker: change event dispatch 2019-09-12 11:00:43 +10:00
AMOS bot ee73cabac3 Automatically generated installer lang files 2019-09-12 00:09:30 +00:00
Andrew Nicols 9455300763 Merge branch 'MDL-66489-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-09-12 07:08:17 +08:00
Shamim Rezaie 5f4a113242 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:35:04 +10:00
Andrew Nicols b680e40303 Merge branch 'MDL-65429-36' of git://github.com/peterRd/moodle into MOODLE_36_STABLE 2019-09-11 14:23:04 +08:00
Jake Dallimore d1221854c8 Merge branch 'MDL-65493-36-2' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-09-11 13:45:56 +08:00
David Monllaó ec77087e21 MDL-66498 analytics: get_samples() with no params limit 2019-09-11 12:46:54 +08:00
David Monllaó af06a498dc MDL-66498 analytics: Avoid get_in_or_equal for big arrays
Also, join directly with context table.
2019-09-11 12:46:55 +08:00
Andrew Nicols 2ba7a4066d Merge branch 'MDL-66328_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-09-11 12:21:45 +08:00
Jake Dallimore 3475c90d37 Merge branch 'MDL-66550-36-2' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-09-11 10:40:32 +08:00
Eloy Lafuente (stronk7) f6c82c8a86 Merge branch 'MDL-65310-36' of https://github.com/tsmilan/moodle into MOODLE_36_STABLE 2019-09-11 00:44:53 +02:00
David Mudrák 8a65065551 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:35 +02:00
Andrew Nicols ec372682b8 MDL-66550 forum: Target fields in a fieldset for behat test 2019-09-10 21:24:20 +08:00
Andrew Nicols 85b30e2ac5 MDL-66550 behat: Transform fields to search in a fieldset 2019-09-10 21:24:20 +08:00
Andrew Nicols 0c7478e4fa MDL-66550 behat: Standardise finding in core functionality 2019-09-10 21:24:20 +08:00
Andrew Nicols 1b52ec70f0 MDL-66550 behat: Add ability to transform a specific selector 2019-09-10 21:24:15 +08:00
Andrew Nicols f4f245e011 MDL-66550 behat: Normalise selectors better 2019-09-10 21:24:07 +08:00
Tim Hunt 7d8ad43bd2 MDL-66641 quiz stats: discriminativeefficiency is already out of 100 2019-09-10 12:12:16 +01:00
Jake Dallimore a3de6b7961 Merge branch 'MDL-66409-edit-numerical/moodle36' of https://github.com/RaAstons/moodle into MOODLE_36_STABLE 2019-09-10 13:35:21 +08:00
Andrew Nicols 153502a7f5 Merge branch 'MDL-63250-36' of https://github.com/Kathrin84/moodle into MOODLE_36_STABLE 2019-09-10 12:41:01 +08:00
Tim Hunt d5bb3640d5 MDL-66328 groups: overview page can require lots of memory 2019-09-09 11:20:30 +01:00
Raphaël Santos 5c37c61b42 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:41:49 +02:00
David Monllao 926ff49e12 MDL-66498 analytics: SQL IN in chunks 2019-09-06 13:35:54 +08:00
Jake Dallimore 7de0c0f1ad Moodle release 3.6.6 2019-09-06 11:50:42 +08:00
Trisha Milan 90b9c2e2d3 MDL-65310 block_timeline: Hide activities without due date 2019-09-06 13:49:00 +10:00
Andrew Nicols c50947b75e MDL-65493 core: Add pendingJS around pubsub.publish 2019-09-06 08:41:11 +08:00
Andrew Nicols c61928e007 MDL-65493 message: The execute wrapper MUST be used 2019-09-06 08:41:11 +08:00
Andrew Nicols 6f09229a3d MDL-65493 message: JS fixes for random behat fails 2019-09-06 08:41:11 +08:00
Andrew Nicols 16291ec5bd MDL-65493 theme_bootstrapbase: Emulate transition ends for BS2 events 2019-09-06 08:41:11 +08:00
Andrew Nicols d96c728295 MDL-65493 theme_bootstrapbase: Pending JS checks for transitions 2019-09-06 08:41:11 +08:00
Eloy Lafuente (stronk7) 95abbe12ba weekly release 3.6.5+ 2019-09-05 17:14:37 +02:00
Eloy Lafuente (stronk7) 2e33ec271b Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-09-05 17:14:34 +02:00
Andrew Nicols 17da93d42b MDL-66614 pgsql DML: Update get_records_sql to consume less memory
This is a backport of MDL-66327.

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-09-05 16:05:27 +01:00
Eloy Lafuente (stronk7) 2efbb5dcc0 Merge branch 'MDL-66560-36' of https://github.com/lucaboesch/moodle into MOODLE_36_STABLE 2019-09-05 15:58:38 +02:00
Jake Dallimore 8a7f86f387 Merge branch 'MDL-56223-36' of git://github.com/lameze/moodle into MOODLE_36_STABLE 2019-09-05 17:20:50 +08:00
Simey Lameze 0b5aad45af MDL-56223 calendar: fix wrong create_calendar_events WS phpdoc 2019-09-05 17:16:14 +08:00
Simey Lameze aa97b1530f MDL-56223 calendar: show the number of deleted events 2019-09-05 17:16:14 +08:00
Simey Lameze a2a489d1f8 MDL-56223 calendar: skip events updating if nothing has changed 2019-09-05 17:16:14 +08:00
Luca Bösch c04c03594e MDL-66560 import: Format course search UI elements. 2019-09-05 06:39:56 +02:00
Jake Dallimore e3147eec7d Merge branch 'MDL-66551-36' of git://github.com/lameze/moodle into MOODLE_36_STABLE 2019-09-05 11:16:53 +08:00
Simey Lameze 37e178e755 MDL-66551 core_user: remove orphaned calendar subscriptions 2019-09-05 10:59:04 +08:00
Simey Lameze 3ee7064392 MDL-66551 core_user: delete_user() should remove users calendar subs 2019-09-05 10:52:38 +08:00
Andrew Nicols de6225210d Merge branch 'MDL-66391-36' of https://bitbucket.org/isprynt/moodle into MOODLE_36_STABLE 2019-09-05 10:00:27 +08:00
Eloy Lafuente (stronk7) f9dc45fee6 Merge branch 'MDL-66072-36-3' of git://github.com/peterRd/moodle into MOODLE_36_STABLE 2019-09-05 02:48:32 +02:00
Peter d5f387f922 MDL-66072 core: Remove ancillary sharing functions and code 2019-09-05 08:44:36 +08:00
Peter c3ef9e4380 MDL-66072 core: Remove course sharing and related capabilities 2019-09-05 08:44:30 +08:00
Eloy Lafuente (stronk7) 99a75cba2c Merge branch 'MDL-66560-36' of https://github.com/lucaboesch/moodle into MOODLE_36_STABLE 2019-09-05 02:18:04 +02:00
AMOS bot 5000628be5 Automatically generated installer lang files 2019-09-05 00:12:06 +00:00
Luca Bösch 3d348a4638 MDL-66560 import: Format course search UI elements. 2019-09-05 00:41:53 +02:00
Segun Babalola 1d88fac6f6 MDL-66391 core_course: Fix to send correct Ajax parameter for userid 2019-09-04 12:22:36 +01:00
Andrew Nicols 179762bd02 Merge branch 'MDL-66137-36_mod_assign_marking_workflow_incorrect_grade_display' of https://github.com/tomdickman/moodle into MOODLE_36_STABLE 2019-09-04 13:48:18 +08:00
Tom Dickman b51509778b 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 15:08:49 +10:00
Andrew Nicols 245e70eeab Merge branch 'MDL-66554-36' of git://github.com/jleyva/moodle into MOODLE_36_STABLE 2019-09-04 12:41:30 +08:00
Andrew Nicols 98e7475aea Merge branch 'MDL-66500-36-unoconvwarning' of git://github.com/mudrd8mz/moodle into MOODLE_36_STABLE 2019-09-04 12:14:53 +08:00
Ryan Wyllie 6981a6f83b 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:24:05 +08:00
Ryan Wyllie d41890c0f7 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:24:05 +08:00
Jake Dallimore 3f3cace28c Merge branch 'MDL-66265-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-09-04 11:07:17 +08:00
Andrew Nicols ba4d2dee9a MDL-66265 javascript: More specific overrides in eslintrc 2019-09-04 10:49:13 +08:00
Eloy Lafuente (stronk7) d8cb31ce19 Merge branch 'MDL-66265-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-09-04 02:14:28 +02:00
AMOS bot aa0f8fd86d Automatically generated installer lang files 2019-09-04 00:11:18 +00:00
Eloy Lafuente (stronk7) c4b7a43793 Merge branch 'MDL-66532-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-09-04 02:01:30 +02:00
Andrew Nicols 98a450e721 MDL-66265 javascript: Add jshint ignore for ES6 files in root dir 2019-09-04 06:53:45 +08:00
Andrew Nicols f8e02a34a7 MDL-66265 javascript: Add basic jshint ignores 2019-09-04 06:53:45 +08:00
Andrew Nicols b8a1748e48 MDL-66265 javascript: Bump jshint version 2019-09-04 06:53:45 +08:00
Andrew Nicols b043d306c3 MDL-66532 javascript: Lock NPM version for NVM 2019-09-04 06:53:44 +08:00
Andrew Nicols dd159713a8 MDL-66532 javascript: Lock NPM version for NVM 2019-09-04 06:45:51 +08:00
Eloy Lafuente (stronk7) 53c8bd1b2f Merge branch 'MDL-63315-m36' of https://github.com/sammarshallou/moodle into MOODLE_36_STABLE 2019-09-04 00:19:33 +02:00
Eloy Lafuente (stronk7) ed903633b3 Merge branch 'MDL-66120-36' of git://github.com/peterRd/moodle into MOODLE_36_STABLE 2019-09-03 12:12:47 +02:00
Andrew Nicols a029dfbc5b Merge branch 'MDL-66434-36' of https://github.com/lucaboesch/moodle into MOODLE_36_STABLE 2019-09-03 12:41:27 +08:00
Andrew Nicols 4aa04de246 Merge branch 'MDL-62161-36' of https://github.com/paulholden/moodle into MOODLE_36_STABLE 2019-09-03 11:50:34 +08:00
Andrew Nicols b1aba64aee Merge branch 'MDL-65042-36' of git://github.com/jleyva/moodle into MOODLE_36_STABLE 2019-09-03 09:29:51 +08:00
AMOS bot 51759ac646 Automatically generated installer lang files 2019-09-03 00:11:42 +00:00
Eloy Lafuente (stronk7) 0e884990f0 Merge branch 'MDL-66457-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-09-03 00:55:04 +02:00
sam marshall 7b2442a913 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:10:58 +01:00
Peter efe8b11186 MDL-66120 block_community: Disable community block and related caps
Disable community block access
2019-09-02 15:57:58 +08:00
Juan Leyva 1dca6b0fcf MDL-66501 tool_mobile: Prevent URLs in custom scheme 2019-09-02 15:29:55 +08:00
Jun Pataleta 64f0c4ceaa MDL-66187 format_singleactivity: Make sure available types is not empty 2019-09-02 05:06:37 +02:00
Andrew Nicols eacdff4e4f MDL-66187 course: Respect :addinstance in single activity format 2019-09-02 05:06:37 +02:00
Simey Lameze 1acf5e5da2 MDL-65749 lib: fix phpmailer file handling 2019-09-02 05:06:37 +02:00
Andrew Nicols 49523e0349 MDL-66181 course: Only assign roles that the user is allowed to assign 2019-09-02 05:06:37 +02:00
Andrew Nicols f63284d2eb MDL-66181 behat: You check checkboxes, not click them 2019-09-02 05:06:37 +02:00
Michael Hawkins 08e8818abe MDL-55451 mod_forum: Limit subscription redirect to internal URLs 2019-09-02 05:06:37 +02:00
David Monllaó 9dce35eae8 MDL-66069 mlbackend_python: Bump to a new version of the package 2019-09-02 05:06:37 +02:00
Andrew Nicols 8c21a3d340 Merge branch 'MDL-66472-36' of https://github.com/Dagefoerde/moodle into MOODLE_36_STABLE 2019-09-02 11:03:58 +08:00
Andrew Nicols 4a7316c071 Merge branch 'MDL-33087-36' of https://github.com/paulholden/moodle into MOODLE_36_STABLE 2019-09-02 10:48:35 +08:00
David Mudrák 1f69f00697 MDL-66504 lang: Use the new strings in the Behat scenario 2019-09-01 12:36:22 +02:00
Helen Foster 7334de1e6c MDL-66504 lang: Import fixed English strings (en_fix)
Significant string changes:

- 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:35:25 +02:00
Paul Holden ca1929d390 MDL-62161 user: preserve all selected users between searches. 2019-08-30 14:37:27 +01:00
Paul Holden 0fb84542b5 MDL-33087 tool_capability: correct role override link. 2019-08-30 14:34:41 +01:00
Andrew Nicols 2bfb88591a MDL-66457 behat: simplify selector search 2019-08-30 15:13:07 +08:00
Luca Bösch 46ebab12cf MDL-66434 mod_data: Align 'Field description' field as all other fields. 2019-08-30 07:56:10 +02:00
Jake Dallimore 2baf9a81d8 weekly release 3.6.5+ 2019-08-30 13:12:09 +08:00
Peter e49444d535 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:08:19 +08:00
Juan Leyva 1da54dc846 MDL-66554 mod_scorm: Set module viewed in WS 2019-08-29 20:46:18 +01:00
Jake Dallimore 0e314a4320 Merge branch 'MDL-66139_36' of https://github.com/stronk7/moodle into MOODLE_36_STABLE 2019-08-29 11:51:56 +08:00
Adrian Greeve 23fe5c9110 Merge branch 'MDL-65975-36' of git://github.com/jleyva/moodle into MOODLE_36_STABLE 2019-08-29 10:20:39 +08:00
Netica Informática 4639c08029 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:59:28 +02:00
Eloy Lafuente (stronk7) 3aa3952340 Merge branch 'MDL-63852-36' of https://github.com/lucaboesch/moodle into MOODLE_36_STABLE 2019-08-28 17:41:20 +02:00
Eloy Lafuente (stronk7) 80d85657b7 Merge branch 'MOODLE_36_STABLE_MDL-65116' of https://github.com/yao9394/moodle into MOODLE_36_STABLE 2019-08-28 16:59:28 +02:00
Adrian Greeve d631bfb4ef Merge branch 'MDL-66230-36' of https://github.com/paulholden/moodle into MOODLE_36_STABLE 2019-08-28 14:57:10 +08:00
Eloy Lafuente (stronk7) 6191d50b8a MDL-66184 core: Update composer to apply for php 7.0.0 as min
With behat extension v3.36.2 we started requiring php 7.0.0
(same requirement than core 3.6.x). This bumps all the components
in the lock file to suit that requirement.

Generated with php 7.0.x.
2019-08-27 00:32:36 +02:00
David Mudrák 2bcad30213 MDL-66500 lang: Do not mark unoconvwarning as deprecated
It has been deprecated by mistake.
2019-08-26 21:31:06 +02:00
Eloy Lafuente (stronk7) a93b0d75ed Merge branch 'MDL-66309-m36' of https://github.com/sammarshallou/moodle into MOODLE_36_STABLE 2019-08-26 20:25:28 +02:00
Eloy Lafuente (stronk7) ec160fed59 Merge branch 'MDL-66312-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-08-26 19:42:18 +02:00
Jan Dageförde 7ef1e8818d MDL-66472 forms: Fix regression autocomplete not closing 2019-08-26 17:55:53 +02:00
Eloy Lafuente (stronk7) 5f5e77c4ef weekly release 3.6.5+ 2019-08-23 19:16:28 +02:00
Jun Pataleta a7a2fb253f Merge branch 'MDL-66483_36' of git://github.com/stronk7/moodle into MOODLE_36_STABLE 2019-08-23 20:14:56 +08:00
sam marshall 14ba75116b MDL-66309 block_recentlyaccesseditems: Improve upgrade performance 2019-08-23 11:36:20 +01:00
Eloy Lafuente (stronk7) 07508900e4 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:32:30 +02:00
Luca Bösch 7fd442d168 MDL-63852 behat: Using correct exception class path. 2019-08-23 07:55:04 +02:00
Adrian Greeve b6f9a29a5e weekly release 3.6.5+ 2019-08-23 12:55:26 +08:00
Adrian Greeve f753d02aea Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-08-23 12:55:18 +08:00
John Yao dc8bac39e3 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:13:34 +10:00
Jun Pataleta 325f268cb1 Merge branch 'MDL-66110-36-fix' of git://github.com/junpataleta/moodle into MOODLE_36_STABLE 2019-08-23 10:21:42 +08:00
Jun Pataleta 46e9a19620 MDL-66110 core: Require setuplib.php once as it's required by xmlize.php 2019-08-23 10:16:15 +08:00
Jun Pataleta 67cf6f02c3 Merge branch 'MDL-66110-36-fix' of git://github.com/junpataleta/moodle into MOODLE_36_STABLE 2019-08-22 16:26:55 +08:00
Jun Pataleta 14404f91ea MDL-66110 dml: Undo table name fix when table name's used as parameter 2019-08-22 16:18:04 +08:00
Ryan Wyllie cdc64ab1dd 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:18:04 +08:00
Adrian Greeve 955937a856 Merge branch 'MDL-66378-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-08-22 09:30:38 +08:00
Andrew Nicols 0ae284c15b MDL-66378 behat: Increase window size for rubric tests 2019-08-22 07:56:19 +08:00
Andrew Nicols 879946be6a MDL-66378 behat: Change screen size to small to work around UI bugs 2019-08-22 07:56:19 +08:00
Adrian Greeve 0287fd6499 Merge branch 'MDL-65443-m36' of https://github.com/NeillM/moodle into MOODLE_36_STABLE 2019-08-21 16:39:57 +08:00
Neill Magill 0d51c25e85 MDL-65443 core: Improve class descriptions for locking events 2019-08-21 09:05:19 +01:00
Jun Pataleta d113822e72 Merge branch 'MDL-66110-36' of https://github.com/ryanwyllie/moodle into MOODLE_36_STABLE 2019-08-21 09:57:23 +08:00
Adrian Greeve 8839000d68 Merge branch 'MDL-66378-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-08-21 09:02:39 +08:00
Andrew Nicols ceb89d1fb0 MDL-66378 behat: Correct grammar of resize step 2019-08-21 08:39:51 +08:00
Andrew Nicols 53b41d3a84 MDL-66378 grade: Set window size to large for rubric tests 2019-08-21 08:39:28 +08:00
Andrew Nicols 33c9f1fa48 MDL-66378 behat: All args are required for document.evaluate 2019-08-21 08:24:08 +08:00
AMOS bot c4cf607c19 Automatically generated installer lang files 2019-08-21 00:11:25 +00:00
Neill Magill e8b4c32290 MDL-65443 core: Log when a context is locked or unlocked 2019-08-20 09:33:03 +01:00
Jun Pataleta a3b6b58f19 Merge branch 'MDL-64437-36' of git://github.com/mihailges/moodle into MOODLE_36_STABLE 2019-08-20 14:19:08 +08:00
Adrian Greeve f18c63e584 Merge branch 'MDL-66378-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-08-20 14:10:51 +08:00
Jun Pataleta 46f06e7697 Merge branch 'MDL-65507-36' of git://github.com/mihailges/moodle into MOODLE_36_STABLE 2019-08-20 11:57:05 +08:00
Jun Pataleta ac858f44ae Merge branch 'MDL-66248_36' of https://github.com/dvdcastro/moodle into MOODLE_36_STABLE 2019-08-20 10:58:23 +08:00
Adrian Greeve dfba6ffe7f Merge branch 'MDL-65083-36' of git://github.com/bmbrands/moodle into MOODLE_36_STABLE 2019-08-20 10:06:13 +08:00
David Castro 5cfa863adc MDL-66248 mod_forum: Fixes on portofolio command url styling. 2019-08-19 20:56:06 -05:00
Adrian Greeve 904caddecb Merge branch 'MDL-65561-36' of git://github.com/bmbrands/moodle into MOODLE_36_STABLE 2019-08-20 09:38:18 +08:00
AMOS bot d8d1c97ef7 Automatically generated installer lang files 2019-08-20 00:10:51 +00:00
Adrian Greeve f026d258b8 Merge branch 'MDL-65604-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-08-19 16:29:21 +08:00
Bas Brands e4854c6653 MDL-65561 themes: user date filters display fixes 2019-08-19 08:25:24 +02:00
Bas Brands 9b36c1408e MDL-65083 theme_boost: update uses of pull-xs-right 2019-08-19 08:22:13 +02:00
Mihail Geshoski 1b8a5338dd MDL-64437 assignment: Fix element overlaping in low screen resolution 2019-08-19 13:32:02 +08:00
Mihail Geshoski 5d64e8eef1 MDL-65507 mod_data: Remove unnecessary record created event 2019-08-19 13:27:36 +08:00
Andrew Nicols 2076f32acb MDL-66378 competency: Add pending promises to competency chooser 2019-08-19 08:16:40 +08:00
Andrew Nicols 28b8712820 MDL-66378 behat: JS does not work with newlines in an xpath 2019-08-19 08:16:40 +08:00
Andrew Nicols 5680713966 MDL-66378 behat: Fix use of before/after selectors 2019-08-19 08:16:40 +08:00
Andrew Nicols f782dcffdc MDL-66378 behat: Backport expand autocomplete step 2019-08-17 16:37:40 +08:00
Andrew Nicols 9e812c35a7 MDL-66378 behat: Add partial named selector for whole autocomplete field 2019-08-17 16:37:40 +08:00
Andrew Nicols 38a64383f1 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 16:37:40 +08:00
Andrew Nicols 7d84120a0e MDL-66378 behat: Add non-JS fallback for before/after 2019-08-17 16:37:40 +08:00
sam marshall a4dcb6a26a 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 16:37:40 +08:00
Andrew Nicols 26a36d2595 MDL-66378 behat: Correct invalid uses of selection from dropdown 2019-08-17 16:37:40 +08:00
Andrew Nicols 10b49eabb1 MDL-66378 report_participation: Correct label for target 2019-08-17 16:37:40 +08:00
Andrew Nicols 2b937e35d6 MDL-66378 gradereport_singleview: Add missing label for dropdown 2019-08-17 16:37:40 +08:00
Andrew Nicols d47457b4aa MDL-66378 behat: Update screen sizes to Y2K standards 2019-08-17 10:32:19 +08:00
Andrew Nicols fb7a713f4c MDL-66378 behat: Update dependencies for chrome webdriver fix 2019-08-17 10:32:19 +08:00
Juan Leyva 0cf9600c9b MDL-65042 rating: Fix incorrect image generated for user in rating 2019-08-16 15:41:50 +01:00
Juan Leyva 19cedc5bf8 MDL-65026 course: Fix modules intro formatting in WS
The Web Service seems to be doing excessive text cleaning.
2019-08-16 11:55:13 +01:00
Andrew Nicols 55515e15dc 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:15 +08:00
Andrew Nicols d36b3034d0 weekly release 3.6.5+ 2019-08-16 11:06:58 +08:00
Andrew Nicols 9353a72693 Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-08-16 11:06:56 +08:00
Juan Leyva c580658cf0 MDL-65975 tool_mobile: Backport features admin should be able to disable 2019-08-15 13:04:33 +01:00
Andrew Nicols f51040346d Merge branch 'MDL-35939-36-fix' of git://github.com/junpataleta/moodle into MOODLE_36_STABLE 2019-08-15 16:10:03 +08:00
Jun Pataleta ee6c9e92ae MDL-35939 mod_quiz: Add quiz attempt generator function 2019-08-15 16:06:13 +08:00
Andrew Nicols ab44453bde Merge branch 'MDL-35939-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-08-15 12:04:12 +08:00
Jun Pataleta 6e3a15df95 Merge branch 'm36_MDL-66140_Mitigate_PECL_Solr_issue_Ref_72740' of https://github.com/scara/moodle into MOODLE_36_STABLE 2019-08-15 11:17:50 +08:00
Shamim Rezaie 01a06cb489 MDL-35939 mod_quiz: use descriptive titles for pages 2019-08-15 12:27:05 +10:00
Shamim Rezaie f0143c5a5e MDL-35939 mod_quiz: phpdoc fix 2019-08-15 12:27:05 +10:00
Shamim Rezaie 5dd2654b6f MDL-35939 mod_quiz: new functions to generate title for attempt pages 2019-08-15 12:27:03 +10:00
AMOS bot 350823fe15 Automatically generated installer lang files 2019-08-15 00:13:03 +00:00
Jun Pataleta 7adb08d1ad Merge branch 'MDL-65925-grade-page-broken-for-deleted-submission-MOODLE_36_STABLE' of https://github.com/ilya-catalyst/moodle into MOODLE_36_STABLE 2019-08-14 15:26:29 +08:00
Andrew Nicols 247f3431d5 Merge branch 'patch-3' of https://github.com/aspark21/moodle into MOODLE_36_STABLE 2019-08-14 11:38:21 +08:00
Adrian Greeve 7313f15abc Merge branch 'MDL-52849-36' of git://github.com/peterRd/moodle into MOODLE_36_STABLE 2019-08-14 09:08:37 +08:00
Jun Pataleta 7ea95c10dd Merge branch 'MDL-62034-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-08-13 14:20:27 +08:00
Andrew Nicols 06259d40ae MDL-62034 assign: Add hint for user tour reset 2019-08-13 14:13:12 +08:00
Ryan Wyllie 678d682b35 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 11:14:24 +08:00
Jun Pataleta 9f4959bd87 Merge branch 'MDL-66104_36' of git://github.com/stronk7/moodle into MOODLE_36_STABLE 2019-08-12 14:51:45 +08:00
Peter 051d6f74e4 MDL-52849 core: Focus reader onto popup with ajax errors 2019-08-12 10:52:18 +08:00
Ilya Tregubov 40b81687d6 MDL-65925 assign: Grade page broken if submission was deleted. 2019-08-12 09:27:26 +10:00
Matteo Scaramuccia c77c2a8a06 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:07:52 +02:00
Andrew Nicols 10720c81cd 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:53:09 +08:00
AMOS bot 916ca9c774 Automatically generated installer lang files 2019-08-10 00:11:27 +00:00
Jun Pataleta 0f07f03670 weekly release 3.6.5+ 2019-08-09 16:24:03 +08:00
Jun Pataleta 600b85f83a Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-08-09 16:24:01 +08:00
Jun Pataleta 7cfc31d809 Merge branch 'MDL-65679-36-fix' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-08-09 11:39:44 +08:00
Andrew Nicols 5543c95ccd MDL-65679 assignfeedback_editpdf: Adjust z-indexes for editpdf 2019-08-09 08:35:40 +08:00
Victor Deniz Falcon b791a215ff MDL-66272 core_renderer: fix favicon method PHPDoc 2019-08-08 12:47:58 +08:00
Amaia Anabitarte b8846767fe MDL-60636 behat: Fixing modified xpath 2019-08-08 11:58:17 +08:00
Andrew Nicols bcd7c897d1 Merge branch 'MDL-65595-36' of git://github.com/peterRd/moodle into MOODLE_36_STABLE 2019-08-08 10:28:52 +08:00
Jun Pataleta 7e11f3c83c Merge branch 'MDL-57239_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-08-08 08:48:05 +08:00
Bas Brands ffbbf7d9f2 MDL-60636 themes: form autocomplete chevron down 3.6 extra fix 2019-08-07 16:11:24 +08:00
Andrew Nicols 2770a205b6 Merge branch 'MDL-66039-36' of git://github.com/bmbrands/moodle into MOODLE_36_STABLE 2019-08-07 15:33:13 +08:00
Jun Pataleta 0b44aeaf9d Merge branch 'MDL-56789-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-08-07 13:58:19 +08:00
Shamim Rezaie 0157d682d5 MDL-56789 core: Improve unit tests 2019-08-07 15:36:09 +10:00
Shamim Rezaie ae0e8015c5 MDL-56789 core: Recycle bin warn only if a grade item is being deleted 2019-08-07 15:34:44 +10:00
Sara Arjona 4f91fb9538 Merge branch 'MDL-63198-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-08-07 11:08:09 +08:00
Sara Arjona ad4427fc31 Merge branch 'MDL-60636-36' of git://github.com/bmbrands/moodle into MOODLE_36_STABLE 2019-08-07 10:01:07 +08:00
Alistair Spark 553732088e MDL-66071 user: username is required with non-internal auth method 2019-08-07 01:03:03 +02:00
Sara Arjona 3cbf774ef0 Merge branch 'MDL-64598-36' of https://github.com/lucaboesch/moodle into MOODLE_36_STABLE 2019-08-06 15:30:23 +08:00
Andrew Nicols c9d36709fc Merge branch 'MDL-65679-36' of git://github.com/mihailges/moodle into MOODLE_36_STABLE 2019-08-06 13:18:26 +08:00
Andrew Nicols 6b8b1afb50 Merge branch 'MDL-65992-36' of git://github.com/Chocolate-lightning/moodle into MOODLE_36_STABLE 2019-08-06 09:14:22 +08:00
Andrew Nicols 63aa3dc1af Merge branch 'MDL-33884_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-08-05 14:34:13 +08:00
Sara Arjona aee7b3c316 Merge branch 'MDL-66281-36' of git://github.com/junpataleta/moodle into MOODLE_36_STABLE 2019-08-05 13:41:17 +08:00
Shamim Rezaie 202c04bbcd MDL-63198 forms: click on scrollbar should not close the suggestions box 2019-08-05 13:17:50 +10:00
Tim Hunt 8a14da2383 MDL-57239 qbehaviour_interactive: fix Try again button when reviewing 2019-08-02 11:46:55 +01:00
Luca Bösch 71eba0cb1d MDL-64598 pix: Adding width/height information to emoji SVG images. 2019-08-02 11:53:44 +02:00
AMOS bot 871454b2dc Automatically generated installer lang files 2019-08-02 00:11:32 +00:00
AMOS bot f8f338c2c8 Automatically generated installer lang files 2019-08-02 00:11:32 +00:00
Mihail Geshoski 2207bea33c 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:14 +08:00
Eloy Lafuente (stronk7) a58897441e 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:53:16 +02:00
Eloy Lafuente (stronk7) 0e4e2ce352 weekly release 3.6.5+ 2019-08-01 17:07:02 +02:00
Eloy Lafuente (stronk7) 946e06bbdc Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-08-01 17:06:59 +02:00
Shamim Rezaie 36f588f8fb MDL-56789 core: Added unit test for course_modules_pending_deletion 2019-08-01 19:16:37 +10:00
Eloy Lafuente (stronk7) c9b3d8e710 Merge branch 'MDL-50472-36' of git://github.com/Chocolate-lightning/moodle into MOODLE_36_STABLE 2019-08-01 10:12:05 +02:00
Mathew May c8ac8de2c7 MDL-50472 boost: Add maintenance message to the login page. 2019-08-01 14:38:45 +08:00
Sara Arjona c89aaced1a Merge branch 'MDL-42451-36' of git://github.com/Chocolate-lightning/moodle into MOODLE_36_STABLE 2019-08-01 09:53:58 +08:00
Eloy Lafuente (stronk7) 99fb1c8c7b Merge branch 'MDL-50472-36' of git://github.com/Chocolate-lightning/moodle into MOODLE_36_STABLE 2019-08-01 00:28:50 +02:00
Eloy Lafuente (stronk7) 2b22c47ac3 Merge branch 'MDL-57342-36' of git://github.com/Chocolate-lightning/moodle into MOODLE_36_STABLE 2019-07-31 18:56:44 +02:00
Tim Hunt a1cb73feea 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:40:11 +01:00
Mathew May ecbd999ca3 MDL-42451 installation: Add some Bootstrap classes for install 2019-07-31 14:41:01 +08:00
Mathew May 35d3396f21 MDL-65992 travis: Migrate to Xenial distro and default MySQL service 2019-07-31 13:03:15 +08:00
Peter 2ce7e21395 MDL-65595 core: Remove the nowrap from the form's radio template 2019-07-31 08:20:20 +08:00
AMOS bot baa3eec946 Automatically generated installer lang files 2019-07-31 00:09:23 +00:00
Paul Holden 67d288f6c2 MDL-66230 tool_usertours: account for deleted tours in privacy export. 2019-07-30 09:56:55 +01:00
Sara Arjona 22ecbc36c7 Merge branch 'MDL-64195-36' of git://github.com/bmbrands/moodle into MOODLE_36_STABLE 2019-07-30 16:35:05 +08:00
Jun Pataleta 39789fcbd1 MDL-66281 tool_dataprivacy: Set sensitive data processing default value 2019-07-30 13:59:29 +08:00
Sara Arjona b861e09e65 Merge branch 'MDL-63458_36' of https://github.com/rlorenzo/moodle into MOODLE_36_STABLE 2019-07-30 11:59:47 +08:00
Adrian Greeve e974568f89 Merge branch 'MDL-66174-36' of git://github.com/peterRd/moodle into MOODLE_36_STABLE 2019-07-29 14:41:13 +08:00
Mathew May 28a27595e3 MDL-42451 installation: Allow enter key to proceed 2019-07-29 11:07:13 +08:00
Mathew May 7c5d2ebc95 MDL-50472 auth: Add maintenance message to the login page. 2019-07-29 10:51:22 +08:00
Jake Dallimore da6bf80c2f Merge branch 'MDL-65219-36' of https://github.com/ryanwyllie/moodle into MOODLE_36_STABLE 2019-07-26 15:21:53 +08:00
Eloy Lafuente (stronk7) 325b025522 weekly release 3.6.5+ 2019-07-25 13:44:53 +02:00
Adrian Greeve 24a8a6a043 Merge branch 'MDL-65078-36' of git://github.com/peterRd/moodle into MOODLE_36_STABLE 2019-07-24 09:53:55 +08:00
Mathew May 11cfdfb171 MDL-57342 admin: confightml will check if returned data is empty 2019-07-23 13:29:45 +08:00
Eloy Lafuente (stronk7) ac224b87a9 Merge branch 'MDL-65788-36' of git://github.com/Chocolate-lightning/moodle into MOODLE_36_STABLE 2019-07-22 21:33:52 +02:00
Eloy Lafuente (stronk7) 6bc76a5086 Merge branch 'MDL-66132-m36' of https://github.com/sammarshallou/moodle into MOODLE_36_STABLE 2019-07-22 20:40:54 +02:00
Bas Brands b23aa517f8 MDL-64195 theme_bootstrapbase: message drawer position
* prevent hiding the navbar behind the message drawer on small devices
2019-07-22 17:10:25 +02:00
Adrian Greeve 8a2dfa7ea1 Merge branch 'MDL-66136-36' of git://github.com/mihailges/moodle into MOODLE_36_STABLE 2019-07-22 10:43:14 +08:00
Mihail Geshoski d59b0eefac MDL-66136 assign: Verify presence of resources in online text submission 2019-07-22 08:02:57 +08:00
Mihail Geshoski d6c09ba2f3 MDL-66136 assignfeedback_comments: Extend testcase 2019-07-22 08:02:57 +08:00
Eloy Lafuente (stronk7) 62238e0117 Merge branch 'MDL-50733_36' of git://github.com/stronk7/moodle into MOODLE_36_STABLE 2019-07-20 00:25:03 +02:00
Mathew May 5610176e3c MDL-50733 core: Update composer to updated behat-extension 2019-07-19 16:22:25 +02:00
Eloy Lafuente (stronk7) bde0f62364 weekly release 3.6.5+ 2019-07-18 17:11:39 +02:00
Eloy Lafuente (stronk7) 2a7d48cd1a Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-07-18 17:11:37 +02:00
Kathrin Osswald 9d2fbd521b MDL-63250 mediaplugin: Fixed video player size in specific tables 2019-07-18 13:53:36 +02:00
Peter d47848dbc4 MDL-66174 mod_assign: Remove the strict widths on the annotation menu 2019-07-18 12:56:11 +08:00
Mathew May 23aae2b6ea MDL-65788 tool_policy: Move accept_policy JS call into an array 2019-07-18 10:48:36 +08:00
Andrew Nicols 7cf1f6d8d5 Merge branch 'MDL-59911-conv_cleanup_check-36' of git://github.com/leonstr/moodle into MOODLE_36_STABLE 2019-07-18 08:25:56 +08:00
Andrew Nicols 2f3ef4c515 Merge branch 'MDL-66163-36' of git://github.com/marinaglancy/moodle into MOODLE_36_STABLE 2019-07-18 08:16:59 +08:00
AMOS bot 93fab635bd Automatically generated installer lang files 2019-07-18 00:09:13 +00:00
Eloy Lafuente (stronk7) e284dc2042 Merge branch 'MDL-66115_36' of https://github.com/dvdcastro/moodle into MOODLE_36_STABLE 2019-07-17 23:10:01 +02:00
Bas Brands 59af2fc881 MDL-60636 themes: form autocomplete chevron down on mobile 2019-07-17 13:40:25 +02:00
Andrew Nicols 4adb26ca32 Merge branch 'MDL-65538-36' of git://github.com/sarjona/moodle into MOODLE_36_STABLE 2019-07-17 10:56:34 +08:00
Bas Brands 493ed38380 MDL-65357 themes: position enrolment icons in course listing 2019-07-17 09:42:29 +08:00
Eloy Lafuente (stronk7) fc22282d3b Merge branch 'MDL-66032-MOODLE_36_STABLE_awarded_badges_criteria' of https://github.com/andrewmadden/moodle into MOODLE_36_STABLE 2019-07-17 01:32:05 +02:00
Eloy Lafuente (stronk7) a6006f5a4b Merge branch 'MDL-65908-36' of git://github.com/peterRd/moodle into MOODLE_36_STABLE 2019-07-17 01:21:26 +02:00
Marina Glancy 9684f897ac MDL-66163 mod_forum: Add component to unittest sql queries
files from other components may exist in the files table
2019-07-16 20:37:09 +03:00
Leon Stringer cce561cdfe 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:23:30 +01:00
Eloy Lafuente (stronk7) c53c3bbe03 Merge branch 'MDL-65555_MOODLE_36_STABLE' of https://github.com/tuanngocnguyen/moodle into MOODLE_36_STABLE 2019-07-16 12:36:38 +02:00
Andrew Nicols fbfbff8046 Merge branch 'MOODLE_36_STABLE_MDL-65517' of https://github.com/yao9394/moodle into MOODLE_36_STABLE 2019-07-16 12:23:38 +08:00
Andrew Nicols 8dc48409ab Merge branch 'MDL-65409-36' of git://github.com/mihailges/moodle into MOODLE_36_STABLE 2019-07-16 11:37:06 +08:00
Nathan Nguyen 5a1de3de31 MDL-65555 mod_lesson: fix group override backup and restore 2019-07-16 12:57:31 +10:00
Nathan Nguyen 6cb12d596f MDL-65555 mod_quiz: fix group override backup and restore 2019-07-16 12:56:23 +10:00
Ryan Wyllie 75d82cfa72 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-16 09:49:54 +08:00
Damyon Wiese b0487262ec MDL-65078 competencies: fix webservice
The webservice list_course_module_competencies calls a function that does not exist.

Thanks to Marie-Eve Lévesque for reporting this issue.
2019-07-16 09:48:16 +08:00
Andrew Madden fab4db0994 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:35:23 +10:00
Sara Arjona 8504b17c4a MDL-65538 competency: fix behat errors with firefox
There is a random behat error in 3.7 and master 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 14:22:46 +02:00
Eloy Lafuente (stronk7) ae2a7a21cb Merge branch 'MDL-58026-36' of https://github.com/MartinGauk/moodle into MOODLE_36_STABLE 2019-07-15 13:39:05 +02:00
Peter e024a6ca05 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:44:28 +08:00
Peter fe8fcea294 MDL-65908 assign: Overflow and positioning updates
Draw all annotation within the drawing canvas instead of the region
2019-07-15 08:42:48 +08:00
Peter d75d48f497 MDL-65908 assign: Revert overflow scroll fix
Revert "MDL-65484 assign: Scrolling overflow CSS"

This reverts commit 5bda066caa.
2019-07-15 08:40:02 +08:00
Mathew May bc68cb69ca 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:54:07 +08:00
AMOS bot 9b06a22e03 Automatically generated installer lang files 2019-07-14 00:08:58 +00:00
David Castro a6b048b60b 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
2019-07-12 14:35:32 -05:00
sam marshall d351dc5a59 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 17:40:16 +01:00
Damyon Wiese 6cbef68ec2 MDL-65409 files: Allow location header
Allow incorrect capitals in location header response.
2019-07-12 08:45:05 +08:00
John Yao c1bcad4ea7 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:18:43 +10:00
Eloy Lafuente (stronk7) 5701d69f99 weekly release 3.6.5+ 2019-07-11 23:33:45 +02:00
Eloy Lafuente (stronk7) 5755a823e1 Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-07-11 23:33:43 +02:00
Bas Brands c0bbdc4c20 MDL-66039 themes: remove duplicate css
* removed duplicate #page { margin-top: 50px };
2019-07-11 14:55:34 +02:00
Jun Pataleta 99f0d38c56 Merge branch 'MDL-65926-MOODLE_36_STABLE_lowercase_username_sql_query' of https://github.com/andrewmadden/moodle into MOODLE_36_STABLE 2019-07-11 11:00:19 +08:00
AMOS bot 602d1c020f Automatically generated installer lang files 2019-07-11 00:09:11 +00:00
Andrew Madden 87bcae7a57 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-10 19:56:36 +10:00
Jun Pataleta bee49acf1e Merge branch 'MDL-66012-36' of git://github.com/lameze/moodle into MOODLE_36_STABLE 2019-07-10 12:15:55 +08:00
Simey Lameze 59aae6ab8c MDL-66012 calendar: fix no event message on calendar views
Ahhh Jun. Thanks legend :)
2019-07-10 11:33:32 +08:00
Eloy Lafuente (stronk7) 31b6ef812b Merge branch 'MDL-56835_36-coursetimecreated' of git://github.com/markn86/moodle into MOODLE_36_STABLE 2019-07-10 00:15:10 +02:00
Jun Pataleta 03b29c9b75 Merge branch 'MDL-66081-36' of git://github.com/lameze/moodle into MOODLE_36_STABLE 2019-07-09 17:10:00 +08:00
Andrew Nicols c26796c0e7 Merge branch 'MDL-64258-36' of https://github.com/HuongNV13/moodle into MOODLE_36_STABLE 2019-07-09 14:51:39 +08:00
Andrew Nicols e6d981b3c2 Merge branch 'MDL-65965-36-fix' of git://github.com/junpataleta/moodle into MOODLE_36_STABLE 2019-07-09 11:00:47 +08:00
Jun Pataleta a73230bf10 MDL-65965 behat: Do not fetch grouping IDs for empty grouping idnumbers 2019-07-09 10:49:18 +08:00
Mark Nelson 0b7e375d32 MDL-56835 report_participation: remove unreachable if condition 2019-07-09 09:15:16 +08:00
Mark Nelson 4a8da9b005 MDL-56835 report_participation: initialise action variables 2019-07-09 08:32:20 +08:00
Mark Nelson c241a52e12 MDL-56835 report_participation: use course timecreated as minlog 2019-07-09 08:32:12 +08:00
Matt Porritt fec1ffae54 MDL-56835 report_participation: release session lock 2019-07-09 08:31:47 +08:00
Eloy Lafuente (stronk7) dbcdedffd6 Merge branch 'MDL-66054-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-07-09 00:57:36 +02:00
Eloy Lafuente (stronk7) 0242b2596a Merge branch 'MDL-65965-36' of git://github.com/junpataleta/moodle into MOODLE_36_STABLE 2019-07-09 00:55:17 +02:00
Martin Gauk ee3cecc141 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:15:27 +00:00
AMOS bot 719e34fba7 Automatically generated installer lang files 2019-07-08 00:10:18 +00:00
AMOS bot a36a01c543 Automatically generated installer lang files 2019-07-07 00:09:05 +00:00
Sara Arjona c88d732e39 Moodle release 3.6.5 2019-07-05 12:27:19 +02:00
Simey Lameze 32265ff372 MDL-66081 calendar: fix typo in attribute description 2019-07-05 17:08:13 +08:00
AMOS bot 09323d63f1 Automatically generated installer lang files 2019-07-05 00:09:56 +00:00
Eloy Lafuente (stronk7) 61d76db67b weekly release 3.6.4+ 2019-07-04 16:50:57 +02:00
Eloy Lafuente (stronk7) 86efefc1eb Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-07-04 16:50:52 +02:00
AMOS bot acc147bb29 Automatically generated installer lang files 2019-07-04 00:08:48 +00:00
Shamim Rezaie 7f1c38ea92 MDL-61114 mod_assign: Check if the teacher can access the override 2019-07-03 18:05:59 +02:00
Shamim Rezaie 2451ef2ba5 MDL-61114 mod_assign: assignment overrides to observe group membership 2019-07-03 18:05:59 +02:00
Shamim Rezaie 5e9dd950a1 MDL-61115: mod_lesson: Check if the teacher can access the override 2019-07-03 17:50:23 +02:00
Shamim Rezaie 1aa9422c9f MDL-61115 mod_lesson: Lesson overrides to observe group membership 2019-07-03 17:50:23 +02:00
Sara Arjona c53515f170 Merge branch 'MDL-65958-36-v3' of git://github.com/lameze/moodle into MOODLE_36_STABLE 2019-07-03 14:53:52 +02:00
Simey Lameze 5aaf5d99d7 MDL-65958 calendar: cover students default event type visibility 2019-07-03 20:41:21 +08:00
Simey Lameze a337b28093 MDL-65958 calendar: students should not see course event type 2019-07-03 20:41:20 +08:00
Simey Lameze 002437681b MDL-65958 calendar: add behat to test calendar_adminseesall behaviour 2019-07-03 20:41:20 +08:00
Simey Lameze ee905caef5 MDL-65958 calendar: fix adminseesall logic in the event form 2019-07-03 20:41:19 +08:00
Sara Arjona a76b3ea7c8 Merge branch 'MDL-64794_36' of https://github.com/stronk7/moodle into MOODLE_36_STABLE 2019-07-03 11:15:52 +02:00
Huong Nguyen 95594d39df MDL-64258 Group: Performance problem on the enrol group members page 2019-07-03 15:29:52 +07:00
Huong Nguyen 7d58ebbb19 MDL-64258 Group: Unit Test for find_users function 2019-07-03 15:29:42 +07:00
Eloy Lafuente (stronk7) 82002907b5 Merge branch 'MDL-65845_36' of git://github.com/dmonllao/moodle into MOODLE_36_STABLE 2019-07-03 02:25:53 +02:00
AMOS bot edf7b72716 Automatically generated installer lang files 2019-07-03 00:08:54 +00:00
AMOS bot f4f079fa42 Automatically generated installer lang files 2019-07-03 00:08:54 +00:00
Eloy Lafuente (stronk7) fb1b60d0b4 Merge branch 'MDL-63268-36' of https://github.com/lucaboesch/moodle into MOODLE_36_STABLE 2019-07-03 00:13:49 +02:00
Sara Arjona 57f681365d Merge branch 'MDL-64614_36' of git://github.com/stronk7/moodle into MOODLE_36_STABLE 2019-07-02 21:21:46 +02:00
Luca Bösch 45a5c7bfa5 MDL-63268 tool_uploadcourse: Keep source course section number. 2019-07-02 19:48:57 +02:00
Eloy Lafuente (stronk7) a2bd8bec84 Merge branch 'MDL-65707-36' of git://github.com/lameze/moodle into MOODLE_36_STABLE 2019-07-02 16:40:57 +02:00
Sara Arjona 821c578ff3 Merge branch 'MDL-65101_36' of git://github.com/markn86/moodle into MOODLE_36_STABLE 2019-07-02 14:50:34 +02:00
Eloy Lafuente (stronk7) 6b4a4fba82 Merge branch 'MDL-66001-36' of git://github.com/bmbrands/moodle into MOODLE_36_STABLE 2019-07-02 12:10:12 +02:00
Sara Arjona 8a81a31fd8 Merge branch 'MDL-65839_36' of git://github.com/dmonllao/moodle into MOODLE_36_STABLE 2019-07-02 10:42:19 +02:00
Eloy Lafuente (stronk7) d2015975ed Merge branch 'MDL-65853_m36' of git://github.com/gjb2048/moodle into MOODLE_36_STABLE 2019-07-02 10:25:51 +02:00
Shamim Rezaie d51f3d032e MDL-34411 mod_quiz: Check if the teacher can access the override 2019-07-02 08:16:43 +02:00
Shamim Rezaie 5622de1179 MDL-34411 groups: copy/paste error in test_groups_user_groups_visible 2019-07-02 08:16:43 +02:00
Shamim Rezaie 6faeafa53d MDL-34411 mod_quiz: quiz overrides to observe group membership 2019-07-02 08:16:43 +02:00
Damyon Wiese af45515fe1 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:16:43 +02:00
Damyon Wiese f3a81b5b3d 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:16:43 +02:00
Sara Arjona 393e396080 Merge branch 'MDL-65901-36' of https://github.com/lucaboesch/moodle into MOODLE_36_STABLE 2019-07-02 08:10:42 +02:00
Eloy Lafuente (stronk7) 54a250b5fa Merge branch 'MDL-64935-36' of git://github.com/bmbrands/moodle into MOODLE_36_STABLE 2019-07-02 00:07:45 +02:00
Shamim Rezaie 5876688def MDL-66054 behat: typo fix 2019-07-02 04:05:52 +10:00
Eloy Lafuente (stronk7) 5fa331fc19 Merge branch 'MDL-64511-36' of https://github.com/paulholden/moodle into MOODLE_36_STABLE 2019-07-01 18:52:44 +02:00
Sara Arjona 5b502e1c04 Merge branch 'MDL-65297-36' of https://github.com/paulholden/moodle into MOODLE_36_STABLE 2019-07-01 18:35:18 +02:00
Luca Bösch 48a860601e MDL-65901 forum: Style advanced search form properly. 2019-07-01 18:03:41 +02:00
Sara Arjona 061f29c7ef Merge branch 'MDL-65973-36' of git://github.com/jleyva/moodle into MOODLE_36_STABLE 2019-07-01 13:14:19 +02:00
Dan Marsden b48c1715df MDL-60347 core: debugsmtp should be a developer only setting. 2019-07-01 12:16:48 +02:00
Sara Arjona 3a8a5c7968 Merge branch 'MDL-57884_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-07-01 09:58:02 +02:00
Eloy Lafuente (stronk7) a7547d531f MDL-64614 environment: mssql requirement up to 2012 (11.0) 2019-06-30 11:58:33 +02:00
Eloy Lafuente (stronk7) cbebe6810c 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-30 11:58:33 +02:00
AMOS bot 390d427b2a Automatically generated installer lang files 2019-06-30 00:09:24 +00:00
AMOS bot 839da4abbe Automatically generated installer lang files 2019-06-30 00:09:24 +00:00
AMOS bot b9cda33903 Automatically generated installer lang files 2019-06-29 00:09:27 +00:00
AMOS bot df4aa5380f Automatically generated installer lang files 2019-06-29 00:09:27 +00:00
David Monllaó 20083e193d 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:53 +02:00
David Monllaó e2c7bd75ef MDL-65839 core_analytics: New indicator instances for each analysable 2019-06-28 21:00:41 +02:00
Paul Holden 0ecea81e24 MDL-64511 privacy: encode data URL when loading content.
Previously paths that included ? or # characters would break loading.
2019-06-28 13:17:18 +01:00
Paul Holden f058a0ae79 MDL-65297 atto_managefiles: improve filename decoding.
Filenames containing # character would previously be missed.
2019-06-28 13:14:35 +01:00
Sara Arjona ea99ff8801 Merge branch 'MDL-65506-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-06-28 12:16:41 +02:00
Mark Nelson 885b98991b MDL-65101 core_message: add Behat test 2019-06-28 18:14:39 +08:00
Mark Nelson 1ba6407a66 MDL-65101 core_message: 'canmessage' should trump 'requirescontract' 2019-06-28 15:41:29 +08:00
AMOS bot 824840cf1f Automatically generated installer lang files 2019-06-28 00:09:56 +00:00
Gareth Barnard 12ffbefe4a MDL-65853 format_base: Labels counted in section activity summary. 2019-06-27 23:38:16 +01:00
Eloy Lafuente (stronk7) e60503f77c weekly release 3.6.4+ 2019-06-27 18:54:35 +02:00
Eloy Lafuente (stronk7) 6be471293b Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-06-27 18:54:32 +02:00
Andrew Nicols 03e8d1d8f8 Merge branch 'MDL-53778_36' of https://github.com/stronk7/moodle into MOODLE_36_STABLE 2019-06-27 08:37:11 +08:00
Eloy Lafuente (stronk7) 616755e129 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:13:11 +02:00
Eloy Lafuente (stronk7) 6585acf84d 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:13:11 +02:00
Eloy Lafuente (stronk7) 97516416ad Merge branch 'MDL-66003-36-enfix' of git://github.com/mudrd8mz/moodle into MOODLE_36_STABLE 2019-06-26 23:04:38 +02:00
Nicolas Dunand 029c0fdb85 MDL-63458 core_user: Remove send message if messaging is disabled 2019-06-26 11:29:35 -07:00
Sara Arjona 2681c83fb8 Merge branch 'MDL-60088-36' of git://github.com/Chocolate-lightning/moodle into MOODLE_36_STABLE 2019-06-26 18:11:24 +02:00
Eloy Lafuente (stronk7) d6adc76343 Merge branch 'MDL-53778_36' of https://github.com/anieminen/moodle into MOODLE_36_STABLE 2019-06-26 17:50:50 +02:00
Eloy Lafuente (stronk7) 232168c8f2 Merge branch 'MDL-65249-36-fix' of https://github.com/snake/moodle into MOODLE_36_STABLE 2019-06-26 10:29:54 +02:00
Jake Dallimore 2eef46fb46 MDL-65249 session: use redis host constant in unit tests 2019-06-26 16:11:50 +08:00
Jake Dallimore 4f8912ac4e Merge branch 'MDL-65249-redis-catch-exception-after-retry-MOODLE_36_STABLE' of https://github.com/ilya-catalyst/moodle into MOODLE_36_STABLE 2019-06-26 14:50:24 +08:00
Jake Dallimore d3552b500f Merge branch 'MDL-60978-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-06-26 13:23:15 +08:00
AMOS bot 0af69b05b1 Automatically generated installer lang files 2019-06-26 00:09:35 +00:00
Eloy Lafuente (stronk7) f9d5f0bedc Merge branch 'MDL-65181-36' of https://github.com/paulholden/moodle into MOODLE_36_STABLE 2019-06-26 00:44:00 +02:00
David Mudrák ff0847e74b MDL-66003 lang: Use the updated strings in the tests 2019-06-25 22:07:44 +02:00
Helen Foster ec1f3ffb7a 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 22:06:14 +02:00
Arto Nieminen a63a6643e5 MDL-53778 quiz settings: Ensure that disabled checkboxes have value 0 2019-06-25 13:28:08 +03:00
Ilya Tregubov f7c13d3996 MDL-65249 Session: Throw exception if number of attempts exceeded. 2019-06-25 15:08:16 +10:00
Simey Lameze e39814b41a MDL-65707 calendar: behat scenario to test default event type 2019-06-25 10:07:00 +08:00
Simey Lameze b92a61734c MDL-65707 calendar: set the correct event type on site calendar 2019-06-25 10:01:02 +08:00
AMOS bot 79421e92f2 Automatically generated installer lang files 2019-06-25 00:09:26 +00:00
Eloy Lafuente (stronk7) 106294da28 Merge branch 'MDL-64340-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-06-25 00:54:10 +02:00
Bas Brands acb53bb1f0 MDL-64935 theme: prevent activitynavigation link overflowing container 2019-06-24 14:50:58 +02:00
Bas Brands 2dfa8e8d74 MDL-66001 block_myoverview: fix incorrect closing tag 2019-06-24 12:10:48 +02:00
Jake Dallimore f056ce4e0d Merge branch 'MDL-65893-36' of https://github.com/nicoroeser/moodle into MOODLE_36_STABLE 2019-06-24 11:42:53 +08:00
AMOS bot be3ed34e68 Automatically generated installer lang files 2019-06-24 00:08:25 +00:00
Mathew May d3c46e052e 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-23 23:57:33 +08:00
Jun Pataleta 5a0a757830 MDL-65965 behat: Map grouping for activity data generator 2019-06-21 15:41:04 +08:00
Jun Pataleta bdd0fce48d MDL-65965 availability: Behat test for activity grouping restriction 2019-06-21 15:41:04 +08:00
Andrew Nicols 8215efe451 MDL-60978 session: Run redis tests in isolation 2019-06-21 14:36:13 +08:00
Andrew Nicols af1a436b2b MDL-60978 testing: Support ability to run phpunit in isolated process 2019-06-21 14:36:13 +08:00
Shamim Rezaie ad8a4d8252 MDL-64340 mod_quiz: not display "add random question" when no permission 2019-06-21 08:53:57 +10:00
Eloy Lafuente (stronk7) 3cb2c5657a weekly release 3.6.4+ 2019-06-20 17:43:02 +02:00
Eloy Lafuente (stronk7) 1f1a74a431 Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-06-20 17:42:58 +02:00
Juan Leyva 20a3b1b194 MDL-65973 calendar: Avoid sesskey checks in WS
External function submit_create_update_form should avoid any sesskey checks.
2019-06-20 15:59:24 +02:00
Jake Dallimore 99d4117301 Merge branch 'MDL-65084-m36' of https://github.com/NeillM/moodle into MOODLE_36_STABLE 2019-06-20 09:44:13 +08:00
Andrew Nicols 360920f41b Merge branch 'MDL-61319-36' of git://github.com/bmbrands/moodle into MOODLE_36_STABLE 2019-06-20 08:11:07 +08:00
Eloy Lafuente (stronk7) 1d6b2c6e08 Merge branch 'MDL-64975-36' of https://github.com/nicoroeser/moodle into MOODLE_36_STABLE 2019-06-20 00:18:07 +02:00
Eloy Lafuente (stronk7) 15e212555e Merge branch 'MDL-65910-36' of git://github.com/junpataleta/moodle into MOODLE_36_STABLE 2019-06-19 20:54:49 +02:00
Eloy Lafuente (stronk7) cde9e41fc2 Merge branch 'MDL-65665-36-2' of git://github.com/mihailges/moodle into MOODLE_36_STABLE 2019-06-19 20:29:52 +02:00
Eloy Lafuente (stronk7) 164c68f3e5 Merge branch 'MDL-65806-m36' of https://github.com/sammarshallou/moodle into MOODLE_36_STABLE 2019-06-19 18:27:29 +02:00
Eloy Lafuente (stronk7) a1069966fd Merge branch 'MDL-65864_36' of git://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-06-19 18:09:55 +02:00
Eloy Lafuente (stronk7) ba82320484 Merge branch 'MDL-55821-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-06-19 18:05:29 +02:00
Neill Magill e597b88315 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:06:17 +01:00
Neill Magill 662c071f65 MDL-65084 recent items: Test handling of deleted courses 2019-06-19 09:06:14 +01:00
Jake Dallimore 0243fd369b Merge branch 'MDL-65904-36' of git://github.com/merrill-oakland/moodle into MOODLE_36_STABLE 2019-06-19 15:03:12 +08:00
Tim Hunt 81b386b9ae MDL-57884 quiz: autosave should not send the value of submit buttons 2019-06-18 17:47:55 +01:00
Bas Brands 97bfff5c12 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:52:12 +02:00
M Kassaei b4bec70f7d 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-18 09:46:02 +08:00
AMOS bot e1255d9a68 Automatically generated installer lang files 2019-06-18 00:08:45 +00:00
Eloy Lafuente (stronk7) efb364d5ff Merge branch 'MDL-64383-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-06-17 23:03:07 +02:00
Shamim Rezaie 7f682a5392 MDL-65506 forms: get the correct value for advcheckbox fields in js 2019-06-16 17:10:10 +10:00
AMOS bot 8e7363baa6 Automatically generated installer lang files 2019-06-15 00:08:22 +00:00
Nicolas Roeser 3f40483351 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:03:07 +02:00
Paul Holden 11e1774de7 MDL-65181 mod_data: show required field indicator for textarea fields. 2019-06-14 09:55:28 +01:00
Nicolas Roeser c68f118e35 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:36:14 +02:00
Jun Pataleta fffbcd1641 MDL-65910 report_stats: Add stattype query condition for consistency 2019-06-14 13:01:41 +08:00
Mihail Geshoski fd7738bc17 MDL-65665 forum: WS does not respect subscribe on reply user preference 2019-06-14 08:47:55 +08:00
Mihail Geshoski 48efb6d287 MDL-65665 forum: Add unit test 2019-06-14 08:47:55 +08:00
Tim Hunt c82b6e01b1 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:02:05 +01:00
Eloy Lafuente (stronk7) 43c501a6da weekly release 3.6.4+ 2019-06-13 18:15:42 +02:00
Eloy Lafuente (stronk7) 99ed7c1161 Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-06-13 18:15:40 +02:00
Andrew Nicols fe2bc7f69e Merge branch 'MDL-65814-36' of git://github.com/junpataleta/moodle into MOODLE_36_STABLE 2019-06-13 11:44:53 +08:00
Jun Pataleta 176457450a MDL-65814 block_timeline: Bring back item counts for action events 2019-06-13 11:30:14 +08:00
Jun Pataleta 07caf1b933 Merge branch 'MDL-55997-36' of git://github.com/peterRd/moodle into MOODLE_36_STABLE 2019-06-13 10:28:49 +08:00
Peter fb4769c30a MDL-55997 core_reports: modify user stats query to fix duplicate rows 2019-06-13 07:46:12 +08:00
Eloy Lafuente (stronk7) 0e94568f01 Merge branch 'MDL-64484-36' of https://github.com/paulholden/moodle into MOODLE_36_STABLE 2019-06-12 20:08:28 +02:00
Eric Merrill d49423d131 MDL-65904 theme: Compile fallback css in the correct order 2019-06-12 13:09:18 -04:00
Paul Holden 3d61b21764 MDL-64484 user: cross-DB compatible profile field ordering. 2019-06-12 17:02:01 +01:00
Jun Pataleta 8b7c7ae5d2 Merge branch 'MDL-65803-36' of git://github.com/peterRd/moodle into MOODLE_36_STABLE 2019-06-12 13:58:39 +08:00
Andrew Nicols 939b429054 Merge branch 'MDL-65703-36' of git://github.com/lameze/moodle into MOODLE_36_STABLE 2019-06-12 12:39:20 +08:00
Peter 086dd3c269 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:17:55 +08:00
Andrew Nicols 4b2d298d3e Merge branch 'MDL-65829_36' of git://github.com/dmonllao/moodle into MOODLE_36_STABLE 2019-06-12 10:33:37 +08:00
Andrew Nicols 023a8a778f Merge branch 'MDL-64484-36' of https://github.com/paulholden/moodle into MOODLE_36_STABLE 2019-06-12 09:01:59 +08:00
sam marshall c4c0589a91 MDL-65806 Search: Solr does not find words in italic 2019-06-11 16:44:18 +01:00
Paul Holden 3703f2eec6 MDL-64484 user: show full profile field name in filter element. 2019-06-11 14:24:15 +01:00
Andrew Nicols ae6616a7b1 Merge branch 'MDL-65817_36' of git://github.com/stronk7/moodle into MOODLE_36_STABLE 2019-06-11 11:06:27 +08:00
Andrew Nicols da0762f95d Merge branch 'MDL-65183-MOODLE-36' of https://github.com/kristian-94/moodle into MOODLE_36_STABLE 2019-06-11 11:03:19 +08:00
Jun Pataleta 5a4937049c Merge branch 'MDL-55592-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-06-10 15:22:57 +08:00
Andrew Nicols 0380b49e1b Merge branch 'm36_MDL-61038_Fix_uuid_extensions_usage_v2' of https://github.com/scara/moodle into MOODLE_36_STABLE 2019-06-10 14:11:51 +08:00
Matteo Scaramuccia b7d9f9e827 MDL-61038 setuplib: Fixed PECL UUID extension support 2019-06-08 23:13:40 +02:00
AMOS bot 20227eee86 Automatically generated installer lang files 2019-06-07 00:09:56 +00:00
Kristian Ringer f203630918 MDL-65183 block_timeline: escape newline characters 2019-06-07 09:34:21 +10:00
Eloy Lafuente (stronk7) 92708b3f8b 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:50:06 +02:00
David Monllaó 48bb66e3d3 MDL-65829 analytics: Accept enrol start time after analysis time 2019-06-06 19:05:55 +02:00
Eloy Lafuente (stronk7) 4f64c3f57c weekly release 3.6.4+ 2019-06-06 16:46:45 +02:00
Eloy Lafuente (stronk7) 1575e0551d Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-06-06 16:46:43 +02:00
Damyon Wiese 3a37d96479 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:27:37 +08:00
Damyon Wiese 5a4f04c54f 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:28:34 +08:00
AMOS bot 3a4603871a Automatically generated installer lang files 2019-06-06 00:08:25 +00:00
Sara Arjona f447d028f7 Merge branch 'MDL-65777-36' of git://github.com/mihailges/moodle into MOODLE_36_STABLE 2019-06-05 09:01:20 +02:00
Mihail Geshoski 20d6fcf956 MDL-65777 assignment: Respect user full name in downloaded submissions 2019-06-05 11:14:59 +08:00
Adrian Greeve 115a493b7f Merge branch 'MDL-65731_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-06-05 10:42:17 +08:00
AMOS bot 200818f912 Automatically generated installer lang files 2019-06-05 00:08:27 +00:00
Eloy Lafuente (stronk7) 0eed941c68 Merge branch 'MDL-65689-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-06-04 23:32:30 +02:00
Eloy Lafuente (stronk7) 4295445828 Merge branch 'MDL-65576-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-06-04 21:40:12 +02:00
Eloy Lafuente (stronk7) 0cbc68d58b Merge branch 'm36_MDL-65686_Fix_Incorrect_Function_Call' of https://github.com/scara/moodle into MOODLE_36_STABLE 2019-06-04 20:05:14 +02:00
Simey Lameze 76162e5ed2 MDL-65703 calendar: do not add course param for site calendar 2019-06-04 19:37:50 +08:00
Andreas Grabs bc7a35db6a MDL-65703 core_calendar: fix user event type filtering logic 2019-06-04 19:37:49 +08:00
Jun Pataleta 792d9c26d3 Merge branch 'MDL-65696-MOODLE-36' of https://github.com/kristian-94/moodle into MOODLE_36_STABLE 2019-06-04 16:54:06 +08:00
AMOS bot 748d9bd512 Automatically generated installer lang files 2019-06-04 00:08:22 +00:00
Eloy Lafuente (stronk7) 7730b4b575 Merge branch 'MDL-63240-36' of https://github.com/Kathrin84/moodle into MOODLE_36_STABLE 2019-06-03 17:58:04 +02:00
AMOS bot 4e78dd9921 Automatically generated installer lang files 2019-06-03 00:08:25 +00:00
Kristian Ringer 2f3ac0e51c MDL-65696 assign: Fix width of editpdf comments 2019-06-03 09:28:25 +10:00
Andrew Nicols fecba4307a MDL-65576 behat: Reset Selenium driver between scorm scenarios 2019-05-31 08:09:25 +08:00
Eloy Lafuente (stronk7) 2e58ffbe4c MDL-64794 tcpdf: Bump to tcpdf 6.2.26 2019-05-30 23:48:36 +02:00
Matteo Scaramuccia 7bd829fa56 MDL-65686 setuplib: Fix missing round brackets 2019-05-30 22:43:04 +02:00
Eloy Lafuente (stronk7) 124ac3bcf7 weekly release 3.6.4+ 2019-05-30 12:18:32 +02:00
Eloy Lafuente (stronk7) 77d98b8215 Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-05-30 12:18:29 +02:00
Tim Hunt 697de172a1 MDL-65731 quiz manual grading: fix ambiguous order by idnumber 2019-05-29 16:55:14 +01:00
Kathrin Osswald ebdc693048 MDL-63240 theme Boost: Removed z-indexes for border styling in navdrawer 2019-05-29 17:55:08 +02:00
Marina Glancy fd37432a6e MDL-65726 core_roles: allow to create roles in install.php 2019-05-29 10:44:32 +02:00
Damyon Wiese 4bafd61443 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:43 +08:00
Adrian Greeve ff6112f675 Merge branch 'MDL-57729-36' of git://github.com/mihailges/moodle into MOODLE_36_STABLE 2019-05-29 11:42:27 +08:00
Adrian Greeve fe4a9a28e4 Merge branch 'MDL-65726-36' of git://github.com/marinaglancy/moodle into MOODLE_36_STABLE 2019-05-29 11:08:42 +08:00
Mihail Geshoski 75dacc6329 MDL-57729 enrol_lti: Escape the property values of the xpath elements 2019-05-29 09:57:02 +08:00
Jake Dallimore 72436b5a0b Merge branch 'MDL-65326-MOODLE_36_STABLE' of https://github.com/dmitriim/moodle into MOODLE_36_STABLE 2019-05-29 09:35:39 +08:00
AMOS bot 8a01a9dbe6 Automatically generated installer lang files 2019-05-29 00:09:28 +00:00
Marina Glancy df597afcfb MDL-65726 role: do not fail unittest if plugins create their roles 2019-05-28 19:11:58 +02:00
Jake Dallimore 9131d460b8 Merge branch 'MDL-65657-36-int-fix-1' of https://github.com/ryanwyllie/moodle into MOODLE_36_STABLE 2019-05-28 14:06:34 +08:00
Ryan Wyllie 350cb520b8 MDL-65657 message: reduce message poll timer for behat tests 2019-05-28 13:36:16 +08:00
Jun Pataleta 3eec169ce6 Merge branch 'MDL-65697-36' of git://github.com/lameze/moodle into MOODLE_36_STABLE 2019-05-28 13:31:01 +08:00
Dmitrii Metelkin 131da11055 MDL-65326 backup: check caps exist before assigning 2019-05-28 11:18:08 +10:00
Jun Pataleta 2273ca23ff Merge branch 'MDL-65606-36' of https://github.com/Chocolate-lightning/moodle into MOODLE_36_STABLE 2019-05-27 16:27:09 +08:00
Jake Dallimore 814c969f70 Merge branch 'MDL-64330-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-05-27 15:24:02 +08:00
Andrew Nicols 18d595089b MDL-64330 course: Correct course test assumptions 2019-05-27 15:08:48 +08:00
Jake Dallimore 600166489c Merge branch 'MDL-65657-36' of https://github.com/ryanwyllie/moodle into MOODLE_36_STABLE 2019-05-27 13:31:57 +08:00
Mathew May 1b3bb25b6a MDL-65606 mod_data: Add approvalstatusclass to template 2019-05-27 13:13:19 +08:00
Ryan Wyllie 4c74b7d17b MDL-65657 message: revert polling timeout back to old algorithm 2019-05-27 11:59:02 +08:00
Adrian Greeve 183bce3a77 Merge branch 'MDL-64523-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-05-27 10:50:44 +08:00
AMOS bot 0b92419829 Automatically generated installer lang files 2019-05-25 00:08:42 +00:00
Shamim Rezaie 42ce94472f MDL-65689 task: fix typo in help string 2019-05-25 05:19:49 +10:00
Shamim Rezaie e011a40e21 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:28:05 +10:00
Shamim Rezaie d69e87b2ba MDL-64523 core_access: Fix js racing issue when overriding permissions 2019-05-25 04:28:05 +10:00
Shamim Rezaie ec5d9e968a MDL-64523 core_access: Improve the title of the delete role links 2019-05-25 04:28:05 +10:00
Sara Arjona bc6bb763aa Merge branch 'MDL-65060-36' of git://github.com/aanabit/moodle into MOODLE_36_STABLE 2019-05-24 12:35:39 +02:00
Amaia Anabitarte 8f03499b61 MDL-65060 core_message: Delete messages behat test 2019-05-24 12:15:14 +02:00
AMOS bot 0e2dec33de Automatically generated installer lang files 2019-05-24 00:15:15 +00:00
Simey Lameze c62871aa9d MDL-65697 qtype_missingtype: include missing class 2019-05-24 07:02:20 +08:00
Eloy Lafuente (stronk7) baebbcc341 weekly release 3.6.4+ 2019-05-23 20:35:26 +02:00
Eloy Lafuente (stronk7) 66eca74041 Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-05-23 20:35:24 +02:00
Amaia Anabitarte 9ee809d685 MDL-65060 core_message: Group message data generator 2019-05-23 15:35:11 +02:00
Jun Pataleta 40acd3985c Merge branch 'MDL-55197_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-05-23 11:58:07 +08:00
Andrew Nicols ae0fc8eef2 Merge branch 'MDL-59650-36' of git://github.com/lameze/moodle into MOODLE_36_STABLE 2019-05-23 10:29:18 +08:00
Adrian Greeve f467121ce0 Merge branch 'MDL-65549_36' of git://github.com/dmonllao/moodle into MOODLE_36_STABLE 2019-05-23 10:11:27 +08:00
Adrian Greeve e793a8e368 Merge branch 'MDL-65634_36' of git://github.com/dmonllao/moodle into MOODLE_36_STABLE 2019-05-23 09:55:59 +08:00
Andrew Nicols d4fe51c7d7 Merge branch 'MDL-65654-36' of https://github.com/danielneis/moodle into MOODLE_36_STABLE 2019-05-23 09:49:01 +08:00
AMOS bot a97610ac5b Automatically generated installer lang files 2019-05-23 00:12:53 +00:00
Jun Pataleta 92a8b46a79 Merge branch 'MDL-65636_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-05-22 19:35:59 +08:00
Tim Hunt 0925ecdbd4 MDL-55197 filter_multilang: handle 'en' as parent lang better 2019-05-22 11:17:59 +01:00
Tim Hunt 0bff3507f7 MDL-55197 filter_multilang: move preg_callback fn into class 2019-05-22 11:12:06 +01:00
Tim Hunt 957e78388a 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:04:07 +01:00
Adrian Greeve 3377d26e2a Merge branch 'MDL-65067_36' of https://github.com/dmonllao/moodle into MOODLE_36_STABLE 2019-05-22 16:32:03 +08:00
Paul Holden d3f44d65d3 MDL-64784 core: update tablelib tests for explicit sort direction. 2019-05-22 14:50:52 +08:00
Paul Holden 3853eb7bb8 MDL-64784 core: consistent column sort direction in flexible_table. 2019-05-22 14:50:45 +08:00
Andrew Nicols a41c7cd69a Merge branch 'MDL-65630-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-05-22 09:41:34 +08:00
Daniel Neis Araujo ecc9ffd797 MDL-65654 tool_uploaduser: Fix undefined variable warning 2019-05-21 14:01:24 -03:00
David Monllaó 1928283c91 MDL-65549 tool_analytics: Reduce the context name length in models_view 2019-05-21 17:34:51 +02:00
David Monllaó 474e5c539d MDL-65634 analytics: Discard late and early student enrolments 2019-05-21 17:22:41 +02:00
Sara Arjona 7074cdc2c8 Merge branch 'MDL-65605-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-05-21 13:47:55 +02:00
Amaia Anabitarte 9772b2e138 MDL-65060 core_message: Group_message_message_content selector 2019-05-21 13:16:53 +02:00
Ryan Wyllie ad4aad6c29 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-21 13:05:17 +02:00
Jun Pataleta aad80c974d Merge branch 'MDL-65274-36' of git://github.com/jleyva/moodle into MOODLE_36_STABLE 2019-05-21 18:49:17 +08:00
Jun Pataleta 20025aadf5 Merge branch 'MDL-60407-36' of git://github.com/vmdef/moodle into MOODLE_36_STABLE 2019-05-21 18:44:39 +08:00
Juan Leyva df6a6ed97e 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-21 10:41:04 +02:00
Simey Lameze ec67afb944 MDL-59650 core_calendar: remove limit from calendar UI 2019-05-21 15:23:20 +08:00
Simey Lameze bdd12dc368 MDL-59650 core_calendar: remove limit from event exporter 2019-05-21 15:23:20 +08:00
Adrian Greeve 3f1e909ae8 Merge branch 'MDL-65572-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-05-21 15:21:44 +08:00
AMOS bot 060e6702e7 Automatically generated installer lang files 2019-05-21 00:12:55 +00:00
AMOS bot 14a8a5d649 Automatically generated installer lang files 2019-05-21 00:12:55 +00:00
Shamim Rezaie f7ced50b6b MDL-65630 mod_quiz: Allow redo within an attempt with random questions 2019-05-20 23:50:34 +10:00
Shamim Rezaie b90ac61667 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:50:34 +10:00
Shamim Rezaie 9cc1dfda95 MDL-65605 core_question: Fix the issue when get_draft_files returns nul 2019-05-20 23:49:25 +10:00
Shamim Rezaie f29ba322b8 MDL-65605 mod_lesson: Fix the issue when get_draft_files returns null 2019-05-20 23:49:25 +10:00
Damyon Wiese 1ad4891169 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:15:30 +08:00
Eloy Lafuente (stronk7) 89722fc4d9 weekly release 3.6.4+ 2019-05-19 11:17:45 +02:00
Eloy Lafuente (stronk7) 43a40d987c Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-05-19 11:17:42 +02:00
Eloy Lafuente (stronk7) e316048830 Merge branch 'MDL-65641_36' of git://github.com/stronk7/moodle into MOODLE_36_STABLE 2019-05-19 10:25:46 +02:00
Eloy Lafuente (stronk7) 3083a5a80d 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:06:36 +02:00
AMOS bot 7a79046285 Automatically generated installer lang files 2019-05-18 00:12:38 +00:00
David Monllaó 7ad4cd3728 MDL-65067 tool_analytics: Limit update_end_date to format_weeks 2019-05-17 17:01:45 +02:00
Didier 'OdyX' Raboud 940608f34f 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 16:59:28 +02:00
AMOS bot 60a9b9736d Automatically generated installer lang files 2019-05-17 00:14:30 +00:00
Eloy Lafuente (stronk7) 6e65843268 weekly release 3.6.4+ 2019-05-16 10:56:53 +02:00
Sara Arjona ede4c60b54 Merge branch 'MDL-65596-36' of git://github.com/bmbrands/moodle into MOODLE_36_STABLE 2019-05-15 14:19:56 +02:00
Bas Brands ed674e43c2 MDL-65596 core_message: dropdown menu blocked by contact request message 2019-05-14 13:27:11 +02:00
Sara Arjona f47a36f707 weekly release 3.6.4+ 2019-05-14 13:21:45 +02:00
Víctor Déniz Falcón d8e0afc38a 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 09:17:20 +01:00
Sara Arjona d305985604 Merge branch 'MDL-65581-36' of git://github.com/bmbrands/moodle into MOODLE_36_STABLE 2019-05-13 21:19:27 +02:00
Bas Brands ca8cf5444e 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:29:48 +02:00
Eloy Lafuente (stronk7) 4972dd43dd Moodle release 3.6.4 2019-05-11 23:17:47 +02:00
Eloy Lafuente (stronk7) 2f1ed94388 weekly release 3.6.3+ 2019-05-10 20:31:19 +02:00
Eloy Lafuente (stronk7) f49a92efa5 Merge branch 'MDL-65537-36-enfix' of git://github.com/mudrd8mz/moodle into MOODLE_36_STABLE 2019-05-10 20:08:45 +02:00
David Mudrák 7fb7ab13dc MDL-65537 lang: Use fixed strings in tests, too 2019-05-10 16:12:10 +02:00
Helen Foster 34d9787dec MDL-65537 lang: Import fixed English strings (en_fix) 2019-05-10 16:11:45 +02:00
Eloy Lafuente (stronk7) d890ed6adf Merge branch 'MDL-65558-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-05-10 11:30:10 +02:00
Jun Pataleta ed10f401df Merge branch 'MDL-65540-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-05-10 15:58:46 +08:00
Andrew Nicols df5e6e00fb MDL-65558 enrol_database: use , as port separator 2019-05-10 12:24:42 +08:00
Andrew Nicols 84eed6a5a4 MDL-65558 auth_db: use , as port separator 2019-05-10 12:24:42 +08:00
Andrew Nicols cb857db4f2 MDL-63959 feedback: Adjust unit test for perf 2019-05-10 11:42:51 +08:00
Andrew Nicols ff2435d89c Merge branch 'MDL-63959-36' of git://github.com/tobiasreischmann/moodle into MOODLE_36_STABLE 2019-05-10 11:41:47 +08:00
Shamim Rezaie 111bca500e MDL-65540 core_search: Explicit component name in the str helper 2019-05-10 08:07:31 +08:00
Shamim Rezaie 4701196ce8 MDL-65540 tool_dataprivacy: Explicit component name in the str helper 2019-05-10 08:07:27 +08:00
Eloy Lafuente (stronk7) 8d4f985112 Merge branch 'MDL-65197-36' of https://github.com/paulholden/moodle into MOODLE_36_STABLE 2019-05-09 20:02:38 +02:00
Eloy Lafuente (stronk7) ac3f1bdecd Merge branch 'MDL-29320-36' of git://github.com/junpataleta/moodle into MOODLE_36_STABLE 2019-05-09 19:49:48 +02:00
Jun Pataleta 953195bf38 Merge branch 'MDL-65445_36-qtype_ddwtos' of https://github.com/jonof/moodle into MOODLE_36_STABLE 2019-05-09 15:58:36 +08:00
Andrew Nicols fa6a5a4b29 Merge branch 'MDL-65479_36' of git://github.com/stronk7/moodle into MOODLE_36_STABLE 2019-05-09 15:17:01 +08:00
Andrew Nicols 6be75c49ec Merge branch 'MDL-65435_36' of git://github.com/stronk7/moodle into MOODLE_36_STABLE 2019-05-09 14:51:36 +08:00
Jun Pataleta 5d9bf8fe28 Merge branch 'MDL-65141-36' of git://github.com/jleyva/moodle into MOODLE_36_STABLE 2019-05-09 12:27:39 +08:00
Adrian Greeve c1143b3932 Merge branch 'MDL-58315_36_boost_block_classes' of https://github.com/zpottie/moodle into MOODLE_36_STABLE 2019-05-09 11:33:40 +08:00
Adrian Greeve e2df9eabc5 Merge branch 'MDL-65387-36' of https://github.com/lucaboesch/moodle into MOODLE_36_STABLE 2019-05-09 11:23:44 +08:00
Eloy Lafuente (stronk7) 42481b9ca0 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:23:00 +02:00
Luca Bösch ecd0e011ee MDL-65387 dataformats: Table download formats choose pulldown style. 2019-05-08 20:21:33 +02:00
Eloy Lafuente (stronk7) e82c80f706 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:27:21 +02:00
Michael Hawkins a8c51871f4 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:56:47 +02:00
Dan Marsden d5067bffd2 MDL-64708 cohort: Return url is not used anywhere in core. 2019-05-08 17:56:47 +02:00
Mark Nelson a3d19efab4 MDL-65365 core_message: prevent users from viewing all conversations 2019-05-08 17:56:47 +02:00
Eloy Lafuente (stronk7) 888f55e41e weekly release 3.6.3+ 2019-05-08 17:48:46 +02:00
Adrian Greeve f22174be37 Merge branch 'MDL-65484-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-05-08 17:38:32 +02:00
Andrew Nicols eff5fd4984 Merge branch 'MDL-35396-36' of git://github.com/mihailges/moodle into MOODLE_36_STABLE 2019-05-08 17:38:28 +02:00
Damyon Wiese 09543c0123 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:21:33 +08:00
Mihail Geshoski 29924b65e3 MDL-35396 lesson: Fix detailed statistics display for essay questions 2019-05-07 13:59:23 +08:00
Jun Pataleta 7819b928b1 Merge branch 'MDL-65313-36-fix' of https://github.com/snake/moodle into MOODLE_36_STABLE 2019-05-07 11:25:53 +08:00
Jake Dallimore 151fc538de MDL-65313 core: fix deletion of group conversation favourites
This now requires itemid, which cannot be null. This is safer. The
context is still used an an additional filter.
2019-05-07 11:03:28 +08:00
Jun Pataleta 391d53f871 Merge branch 'MDL-65153-36-fix1' of http://github.com/damyon/moodle into MOODLE_36_STABLE 2019-05-07 10:08:39 +08:00
Damyon Wiese 64f1f9ed5a MDL-65153 competencies: course competencies page
The webservice to fetch the data for the course competencies page requires the
pluginbaseurl to be set.
2019-05-07 10:02:29 +08:00
Sara Arjona c6631a119c MDL-65313 core_favourite: fix issue with groups_delete_group 2019-05-06 13:03:02 +02:00
Sara Arjona 6af01fb2e4 Merge branch 'MDL-65374-36' of https://github.com/lucaboesch/moodle into
MOODLE_36_STABLE
2019-05-06 12:09:31 +02:00
Jun Pataleta 83af30b285 MDL-65313 core: Fix orphaned favourites cleanup 2019-05-06 16:48:43 +08:00
Jun Pataleta 37858eb4a8 Merge branch 'MDL-65399-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-05-06 16:26:34 +08:00
Sara Arjona 569b5eeac1 Merge branch 'MDL-65396-36' of https://github.com/lucaboesch/moodle into MOODLE_36_STABLE 2019-05-06 10:20:07 +02:00
Jun Pataleta 43a538205f Merge branch 'MDL-65153-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-05-06 16:13:51 +08:00
Shamim Rezaie 5557ec004c MDL-65399 mod_quiz: Handling the edge case when section name is '' 2019-05-06 18:13:42 +10:00
Shamim Rezaie fe3d98f0a0 MDL-65399 mod_quiz: UI should prevent deleting the last slot of section 2019-05-06 18:13:41 +10:00
Shamim Rezaie 2b9c3f1089 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 18:13:41 +10:00
Shamim Rezaie e6b2cb22d0 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 18:13:40 +10:00
Jun Pataleta 6f1ffbdf1f Merge branch 'MDL-65313-36' of https://github.com/snake/moodle into MOODLE_36_STABLE 2019-05-06 16:02:10 +08:00
Adrian Greeve 65faf38134 Merge branch 'MDL-64968-36' of https://github.com/lucaboesch/moodle into MOODLE_36_STABLE 2019-05-06 15:59:10 +08:00
Jake Dallimore a3b8e03c1c 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:14:38 +08:00
Jake Dallimore daea8b596f MDL-65313 core: delete relevant favourites when deleting a conversation 2019-05-06 14:13:24 +08:00
Adrian Greeve 84d3af595b Merge branch 'MDL-65104-36' of git://git.cameron1729.xyz/moodle into MOODLE_36_STABLE 2019-05-06 11:59:27 +08:00
Adrian Greeve a402077cf2 Merge branch 'MDL-65296_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-05-06 11:03:17 +08:00
Jake Dallimore d199355889 Merge branch 'MDL-64988-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-05-06 10:34:31 +08:00
Luca Bösch bdf593e235 MDL-65396 theme_boost: Style duration chooser pulldown select. 2019-05-04 11:02:01 +02:00
Luca Bösch 2ca8477af4 MDL-65374 core_grades: style "Move selected items to" pulldown. 2019-05-04 11:01:50 +02:00
Luca Bösch 947a322df7 MDL-64968 mod_lesson: Style "Yes, I'd like to try again" button. 2019-05-04 11:01:43 +02:00
Eloy Lafuente (stronk7) 0442f44049 weekly release 3.6.3+ 2019-05-03 17:52:10 +02:00
Shamim Rezaie 43b55f1354 MDL-64988 mod_quiz: Fix questions always being added to the last section 2019-05-03 20:19:33 +10:00
zpottie 24bcd5b772 MDL-58315 core: Add support for custom block classes in Boost 2019-05-03 16:14:31 +12:00
Alexander Bias 07c0e0e090 MDL-65157 core_completion: no progress for untracked users
This is a backport of the code from MDL-64898 by Dmitrii Metelkin to Moodle 3.6
2019-05-03 11:54:15 +08:00
Andrew Nicols dde68b8c47 Merge branch 'MDL-65299_boost_theme-colors_override_M36' of https://github.com/Dave-B/moodle into MOODLE_36_STABLE 2019-05-03 11:12:53 +08:00
Adrian Greeve 2b918bc767 Merge branch 'MDL-64851-36' of https://github.com/s-cenni/MDL-64851 into MOODLE_36_STABLE 2019-05-03 10:44:50 +08:00
Jake Dallimore f411cdd29a Merge branch 'MDL-65134-36' of git://github.com/peterRd/moodle into MOODLE_36_STABLE 2019-05-03 10:05:42 +08:00
Andrew Nicols f3b6ddec28 Merge branch 'MDL-65262-36' of git://github.com/lameze/moodle into MOODLE_36_STABLE 2019-05-03 10:02:54 +08:00
Simey Lameze 091cad4be8 MDL-65262 core_calendar: change location param type 2019-05-03 09:43:02 +08:00
Andrew Nicols d941f7a2bd Merge branch 'MDL-64394-accesslog-MOODLE_36_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_36_STABLE 2019-05-03 08:50:26 +08:00
Sara Arjona cf91bb38cf MDL-65169 core_message: remove extra line at the end 2019-05-02 15:44:48 +02:00
Sara Arjona c487276abc Merge branch 'MDL-65169-36' of https://github.com/snake/moodle into MOODLE_36_STABLE 2019-05-02 15:29:22 +02:00
Andrew Nicols 687af3bae7 MDL-65447 theme: Apply pendingJS checks to BS transitions 2019-05-02 13:34:25 +02:00
Jun Pataleta 525db9e050 Merge branch 'MDL-65411-36' of git://github.com/lameze/moodle into MOODLE_36_STABLE 2019-05-02 17:02:43 +08:00
Ryan Wyllie 07d60fe334 MDL-65134 core_message: Introduce event specific function
Introduced an event specific formatting function.
Additional catch on render fn calls
2019-05-02 16:24:13 +08:00
Peter 3a7b1b4d6e 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-05-02 16:17:54 +08:00
Jun Pataleta 3332b5ed21 Merge branch 'MDL-65446-36' of https://github.com/ryanwyllie/moodle into MOODLE_36_STABLE 2019-05-02 15:01:14 +08:00
Jake Dallimore f05770656d Merge branch 'MDL-64439-MOODLE_36_STABLE' of https://github.com/ilya-catalyst/moodle into MOODLE_36_STABLE 2019-05-02 14:52:39 +08:00
Jun Pataleta 61dec4c904 Merge branch 'MDL-65273-36' of https://github.com/lucaboesch/moodle into MOODLE_36_STABLE 2019-05-01 17:25:12 +08:00
Paul Holden e7bc8b35ee MDL-65197 editor: handle empty user preference in privacy export. 2019-05-01 09:53:32 +01:00
Jun Pataleta 17a25fbe04 Merge branch 'MDL-65250_36' of git://github.com/stronk7/moodle into MOODLE_36_STABLE 2019-05-01 16:04:12 +08:00
Luca Bösch 168ac5c80a MDL-65273 roles: Roles permissions buttons styles. 2019-05-01 09:28:32 +02:00
Adrian Greeve b0d6391ab7 Merge branch 'MDL-65149-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-05-01 14:59:26 +08:00
Adrian Greeve c74b156127 Merge branch 'MDL-64959_36_STABLE' of https://github.com/abhimanyuZ/moodle into MOODLE_36_STABLE 2019-05-01 14:31:12 +08:00
Adrian Greeve a11e641a3a Merge branch 'MDL-65031-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-05-01 14:05:00 +08:00
Adrian Greeve 832292c29e Merge branch 'MDL-65178-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-05-01 11:57:52 +08:00
Simey Lameze f5dedb71e1 MDL-65411 core_calendar: wrap long description text 2019-05-01 09:55:13 +08:00
Jake Dallimore e7e5880c0f Merge branch 'MDL-60851-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-05-01 09:33:14 +08:00
Damyon Wiese 4d6a6fb033 MDL-60851 backup: coding style fixes 2019-05-01 08:51:22 +08:00
Damyon Wiese f86abcf932 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:51:22 +08:00
Damyon Wiese 42c6dadcd4 MDL-60851 backup: Fix undefined $value 2019-05-01 08:51:22 +08:00
Damyon Wiese cb49d89ba4 MDL-60851 backup: More unit tests for dependencies 2019-05-01 08:51:22 +08:00
Eloy Lafuente (stronk7) f2c4f5cd07 Merge branch 'MDL-65397-36-enfix' of git://github.com/mudrd8mz/moodle into MOODLE_36_STABLE 2019-05-01 01:43:03 +02:00
Eloy Lafuente (stronk7) 3bbf743330 weekly release 3.6.3+ 2019-05-01 00:28:47 +02:00
Eloy Lafuente (stronk7) edad20f8e4 Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-05-01 00:28:45 +02:00
Juan Leyva 9c5af7f9ec MDL-65141 tool_mobile: Return all the language translations 2019-04-30 15:25:39 +02:00
Jun Pataleta 9a6022b235 MDL-29320 user: Make email query case-insensitive 2019-04-30 16:21:25 +08:00
Jun Pataleta 90f26d99ab 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:21:25 +08:00
Jun Pataleta 35ed170068 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 16:21:25 +08:00
Tobias Reischmann c106bcfc54 MDL-63959 mod_feedback: Add phpunit tests for get_pages in completion 2019-04-30 07:57:17 +02:00
Zoltán Szarvas f4e974d2fc 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-30 07:57:16 +02:00
Ryan Wyllie 9075a96e5d MDL-65446 admin: fix admin email option for cli install 2019-04-30 13:35:43 +08:00
Jake Dallimore a1afcb2e7a 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:26:40 +08:00
Jonathon Fowler ed35b34461 MDL-65445 qtype_ddwtos: reposition draggables when the drops move 2019-04-30 12:47:04 +10:00
Jake Dallimore baa7be6a86 MDL-65169 core_message: add behat step allowing searching for a string
New step: 'I search for "xx" in messaging'.
2019-04-30 10:40:48 +08:00
Eloy Lafuente (stronk7) acc98001f0 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 08:50:12 +08:00
AMOS bot e1282ad929 Automatically generated installer lang files 2019-04-30 00:12:26 +00:00
Eloy Lafuente (stronk7) e24d2a78e5 Merge branch 'MDL-65293-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-04-29 22:46:05 +02:00
Eloy Lafuente (stronk7) 7cc659b2b9 Merge branch 'MDL-65439-36' of git://github.com/sarjona/moodle into MOODLE_36_STABLE 2019-04-29 22:41:59 +02:00
Eloy Lafuente (stronk7) 030ed9e798 Merge branch 'MDL-63137-36' of git://github.com/aanabit/moodle into MOODLE_36_STABLE 2019-04-29 20:10:51 +02:00
cescobedo 98c19db4c4 MDL-65439 core_message: Behat tests for manage preferences 2019-04-29 13:28:31 +02:00
cescobedo 344f8adeed MDL-65439 core_message: New step to open settings preferences 2019-04-29 13:20:39 +02:00
Helen Foster 506317da3a 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
2019-04-29 11:45:16 +02:00
Jun Pataleta 1e8361252d Merge branch 'MDL-65279-36' of https://github.com/tkorner/moodle into MOODLE_36_STABLE 2019-04-29 17:09:20 +08:00
Sara Arjona d437812525 Merge branch 'MDL-64702-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-04-29 08:42:44 +02:00
Jun Pataleta 87f24237dc Merge branch 'MDL-65206-36' of git://github.com/tobiasreischmann/moodle into MOODLE_36_STABLE 2019-04-29 12:44:43 +08:00
AMOS bot 927c441b10 Automatically generated installer lang files 2019-04-27 00:12:43 +00:00
Eloy Lafuente (stronk7) 138460e98b weekly release 3.6.3+ 2019-04-26 18:41:15 +02:00
Amaia Anabitarte c42a9a49b4 MDL-63137 mod_feedback: PHPUnit tests for new userid parameter 2019-04-26 17:33:14 +02:00
Amaia Anabitarte 3f80870619 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:33:14 +02:00
Amaia Anabitarte 9c52e5ea99 MDL-63137 mod_feedback: Pointing TODO tasks to right deprecation issue 2019-04-26 17:33:14 +02:00
Sara Arjona cafb171c3a Merge branch 'MDL-64676-36-fix' of https://github.com/snake/moodle into MOODLE_36_STABLE 2019-04-26 11:50:40 +02:00
Jake Dallimore e8b9a60126 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:59:26 +08:00
Damyon Wiese 748117eb47 MDL-64702 badges: Add missing data to backup
Backup and restore of badges is missing data:
* related badges
* alignments
* endorsement

Also added to "clone" (duplicate a badge).
2019-04-26 09:38:37 +08:00
Eloy Lafuente (stronk7) 6c948829cd MDL-60418 Behat: Fix missing $installurl 2019-04-25 23:38:58 +02:00
Eloy Lafuente (stronk7) 605d3e8d98 Merge branch 'MDL-60418_36' of git://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-04-25 23:26:06 +02:00
Tim Hunt ba61f2f91b MDL-60418 Behat: Fix broken docs links in Behat code. 2019-04-25 21:39:27 +01:00
David Monllaó 8cd7ebf239 Merge branch 'MDL-64673-36' of git://github.com/aanabit/moodle into MOODLE_36_STABLE 2019-04-25 18:41:46 +02:00
Amaia Anabitarte eae54c38f7 MDL-64673 core_message: Modifying group_messate_tab xpath 2019-04-25 10:07:53 +02:00
Eloy Lafuente (stronk7) 6bfe5a229d Merge branch 'MDL-65170-36' of https://github.com/sarjona/moodle into MOODLE_36_STABLE 2019-04-24 20:37:23 +02:00
David Monllaó 937b5c4c69 Merge branch 'MDL-64672-36' of git://github.com/aanabit/moodle into MOODLE_36_STABLE 2019-04-24 20:07:06 +02:00
Sara Arjona cab2c6ed9b 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:53:17 +02:00
Amaia Anabitarte 808c1d1407 MDL-64673 core_message: Starring conversations behat test 2019-04-24 18:16:24 +02:00
Amaia Anabitarte 6a6da30b4d MDL-64666 core_message: Favourite private conversations data generator 2019-04-24 18:16:24 +02:00
David Monllaó 5413077874 Merge branch 'MDL-64985-36' of git://github.com/sarjona/moodle into MOODLE_36_STABLE 2019-04-24 18:13:56 +02:00
David Monllaó 6ffae61d70 Merge branch 'MDL-64666-36' of git://github.com/aanabit/moodle into MOODLE_36_STABLE 2019-04-24 18:07:50 +02:00
Sara Arjona ab20b56894 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 18:04:34 +02:00
Sara Arjona e2d400a136 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 18:04:27 +02:00
Sara Arjona 0f7c44657e 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 18:04:20 +02:00
Amaia Anabitarte 4c9c07a855 MDL-64666 core_message: New behat test for delete conversation 2019-04-24 17:43:52 +02:00
Amaia Anabitarte 7e60d9f35f MDL-64666 core_message: Favourite private conversations data generator 2019-04-24 17:43:52 +02:00
Eloy Lafuente (stronk7) 25e6630c5d Merge branch 'MDL-64267-36' of git://github.com/bmbrands/moodle into MOODLE_36_STABLE 2019-04-24 15:23:37 +02:00
Eloy Lafuente (stronk7) d4f2b45455 Merge branch 'MDL-64151-36-fix' of https://github.com/marinaglancy/moodle into MOODLE_36_STABLE 2019-04-24 12:49:27 +02:00
Bas Brands bc270ce303 MDL-64267 core_message: fix z-index on sticky positioned notification 2019-04-24 11:58:45 +02:00
Marina Glancy 90667b82e8 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:40:39 +02:00
Jake Dallimore 09d7853909 Merge branch 'MDL-64267-36' of git://github.com/bmbrands/moodle into MOODLE_36_STABLE 2019-04-24 16:55:19 +08:00
Amaia Anabitarte 179f527ae3 MDL-64672 core_message: Behat tests for unread messages 2019-04-24 10:00:52 +02:00
Amaia Anabitarte e2c4522e8c MDL-64666 core_message: Favourite private conversations data generator 2019-04-24 10:00:52 +02:00
Bas Brands 57ec34a9cc MDL-64267 core_message: sticky positioning of contact request info 2019-04-24 09:31:38 +02:00
Tobias Reischmann 7d02fe560a 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:31:37 +02:00
Tobias Reischmann 408efe43c5 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:31:37 +02:00
Sara Arjona ea210f78e4 Merge branch 'MDL-65170-36' of https://github.com/snake/moodle into MOODLE_36_STABLE 2019-04-24 09:02:35 +02:00
Adrian Greeve debc37f3c2 Merge branch 'MDL-65375-m36' of https://github.com/sammarshallou/moodle into MOODLE_36_STABLE 2019-04-24 10:30:22 +08:00
Adrian Greeve e642c550c4 Merge branch 'MDL-65308_36' of git://github.com/stronk7/moodle into MOODLE_36_STABLE 2019-04-24 09:28:41 +08:00
Eloy Lafuente (stronk7) dfc4176c4a Merge branch 'MDL-64676-36' of https://github.com/aanabit/moodle into MOODLE_36_STABLE 2019-04-23 19:48:42 +02:00
Eloy Lafuente (stronk7) 796a7c9b67 Merge branch 'MDL-64151-36' of git://github.com/marinaglancy/moodle into MOODLE_36_STABLE 2019-04-23 19:38:40 +02:00
Eloy Lafuente (stronk7) 972146bb1e weekly release 3.6.3+ 2019-04-23 17:36:27 +02:00
David Monllaó eaba78a8b2 Merge branch 'MDL-64102-36' of git://github.com/bmbrands/moodle into MOODLE_36_STABLE 2019-04-23 13:34:06 +02:00
David Monllaó e9a8d6e781 Merge branch 'MDL-65102-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-04-23 13:34:03 +02:00
Damyon Wiese da59e61407 MDL-64702 badges: Add to privacy
Add endorsement, related badges and alignment to privacy export.
2019-04-23 11:15:32 +08:00
Eloy Lafuente (stronk7) 7bdb7736b3 weekly release 3.6.3+ 2019-04-23 11:15:32 +08:00
AMOS bot dfd771cddb Automatically generated installer lang files 2019-04-23 11:15:31 +08:00
sam marshall 2327fedbea MDL-65375 Restore: Null data in other field should be serialised
If the 'other' field is empty, then following a restore of course
logs, it should still be serialised so that it is consistent with
the normal behaviour when logging.

Without this change, an event with null value for other has the
field set to NULL if you restore it, but 'N;' when the event is
initially created.
2019-04-18 15:04:18 +01:00
Adrian Greeve 5c0c0f1ceb Merge branch 'MDL-29318-36' of git://github.com/junpataleta/moodle into MOODLE_36_STABLE 2019-04-18 13:49:52 +08:00
Eloy Lafuente (stronk7) 2711a4013a weekly release 3.6.3+ 2019-04-17 20:04:27 +02:00
Eloy Lafuente (stronk7) 5e650c09fc Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-04-17 20:04:23 +02:00
Eloy Lafuente (stronk7) f62ab50109 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 02:13:40 +02:00
AMOS bot 85e6250179 Automatically generated installer lang files 2019-04-13 00:13:21 +00:00
Eloy Lafuente (stronk7) 808a369677 weekly release 3.6.3+ 2019-04-12 21:35:15 +02:00
Eloy Lafuente (stronk7) 29e6d9d9eb Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-04-12 21:35:13 +02:00
Jake Dallimore 604796406c Merge branch 'MDL-62974-36' of github.com:abgreeve/moodle into MOODLE_36_STABLE 2019-04-12 11:17:50 +08:00
Adrian Greeve 25f240bd6f MDL-62974 mod_lesson: Minor update to html class. 2019-04-12 11:08:46 +08:00
Eloy Lafuente (stronk7) 29c5b2b01f Merge branch 'MDL-62974-36' of https://github.com/jmvedrine/moodle into MOODLE_36_STABLE 2019-04-11 23:50:07 +02:00
Marina Glancy dd971a0a45 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 16:46:40 +02:00
Sara Cenni 0a1a11aae4 MDL-64851 badge: reviewing badges of invisible courses 2019-04-11 13:29:57 +02:00
Adrian Greeve a017a672bb Merge branch 'MDL-64719-purge_user_cache-36' of git://github.com/leonstr/moodle into MOODLE_36_STABLE 2019-04-11 13:39:16 +08:00
David Balch 0df5a25aca MDL-65299 Boost: Allow default.scss theme-colors override. 2019-04-10 14:13:18 +00:00
Adrian Greeve 39a920802e Merge branch 'MDL-46975-36' of git://github.com/junpataleta/moodle into MOODLE_36_STABLE 2019-04-10 14:25:30 +08:00
AMOS bot 23d1362718 Merge branch 'MOODLE_36_STABLE' into install_36_STABLE 2019-04-10 00:12:20 +00:00
Jean-Michel Vedrine 58b6b184b3 MDL-62974 lesson: Suppress HTML font tags 2019-04-09 22:58:13 +02:00
Eloy Lafuente (stronk7) dcaa783741 weekly release 3.6.3+ 2019-04-09 20:37:08 +02:00
Eloy Lafuente (stronk7) ad55a7047e Merge branch 'MDL-64819-36' of https://github.com/sarjona/moodle into MOODLE_36_STABLE 2019-04-09 16:03:25 +02:00
Sara Arjona 550c3afcd8 MDL-64819 course: fix behat errors with the move icon
Some errors have been detected when using Clean + Goutte.
2019-04-09 14:13:56 +02:00
AMOS bot efcf91a9a1 Automatically generated installer lang files 2019-04-09 00:11:24 +00:00
AMOS bot 04a30bd4df Automatically generated installer lang files 2019-04-09 00:11:24 +00:00
Amaia Anabitarte eeb0c2f410 MDL-64676 core_message: Fix old behat tests affected by new messaging 2019-04-08 19:49:56 +02:00
Sara Arjona 4831903987 Merge branch 'MDL-64819-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-04-08 14:20:41 +02:00
Tim Hunt 991ecfec28 MDL-65296 questions: field should be declared
It was already being set, but IDE autocomplete etc did not know that.
2019-04-08 12:24:49 +01:00
Sara Arjona f32bb17861 Merge branch 'MDL-64669-36' of git://github.com/aanabit/moodle into MOODLE_36_STABLE 2019-04-08 13:12:49 +02:00
Bas Brands 828b40dca1 MDL-64102 core_message: add message tails to match ux design 2019-04-08 12:37:22 +02:00
Adrian Greeve 01872fd505 Merge branch 'MDL-65218-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-04-08 16:55:10 +08:00
Amaia Anabitarte a64fdeacd8 MDL-64669 core_message: Waiting for buttons to hide before login out 2019-04-08 10:25:02 +02:00
Amaia Anabitarte 1118af2a3b MDL-64669 core_message: New steps and selectors for messaging 2019-04-08 10:24:35 +02:00
Amaia Anabitarte 018aecdeb5 MDL-64669 core_message: Behat tests for send messages 2019-04-08 10:24:35 +02:00
Damyon Wiese fadc44f298 MDL-64819 output: Hide icons with no title
When output from javascript they should match what gets output from php.
2019-04-08 15:41:18 +08:00
Shamim Rezaie 1987a409b8 MDL-65293 core_calendar: Privacy deletion fix
Deleting in course context should not delete from course modules
2019-04-08 15:39:36 +10:00
Jake Dallimore b93b0d6355 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:04:54 +08:00
Jake Dallimore e3b664447b 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:04:54 +08:00
Eloy Lafuente (stronk7) 6155dd23d2 weekly release 3.6.3+ 2019-04-05 18:32:39 +02:00
Thomas Korner 0553a6d90c MDL-65279 core: typo in categoriesandcourses fixed
AMOS BEGIN
 MOV [categoriesandcoures,core],[categoriesandcourses,core]
AMOS END
2019-04-05 14:36:27 +02:00
Damyon Wiese 9223d556fb MDL-64819 output: Activity menu icons
Remove duplciate alt text from activity menu icons and the links to add new sections.
2019-04-05 12:02:56 +08:00
Eloy Lafuente (stronk7) 8e1ab8a382 Merge branch 'MDL-65029_36' of git://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-04-05 00:40:38 +02:00
Eloy Lafuente (stronk7) 4cb5500048 Merge branch 'MDL-65127-36' of git://github.com/sarjona/moodle into MOODLE_36_STABLE 2019-04-05 00:13:10 +02:00
Eloy Lafuente (stronk7) 9cc403d680 Merge branch 'MDL-65094-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-04-04 22:38:29 +02:00
Eloy Lafuente (stronk7) 8d98d2c9fd Merge branch 'MDL-65038_MOODLE_36_STABLE' of https://github.com/maksudr/moodle into MOODLE_36_STABLE 2019-04-04 20:31:13 +02:00
Eloy Lafuente (stronk7) 44160cf213 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 11:39:12 +08:00
Jun Pataleta 1b57e6b87a Merge branch 'MDL-62307_MOODLE_36_STABLE' of https://github.com/maksudr/moodle into MOODLE_36_STABLE 2019-04-03 16:50:14 +08:00
Jun Pataleta 885cf9f06a Merge branch 'MDL-65112-MOODLE_36_STABLE' of https://github.com/dmitriim/moodle into MOODLE_36_STABLE 2019-04-03 16:19:28 +08:00
Jake Dallimore 8923fb3bb1 Merge branch 'MDL-65087-36' of git://github.com/sarjona/moodle into MOODLE_36_STABLE 2019-04-03 14:12:53 +08:00
Jake Dallimore e246171b56 Merge branch 'MDL-65247-36' of git://github.com/junpataleta/moodle into MOODLE_36_STABLE 2019-04-03 13:47:12 +08:00
Jun Pataleta 1ecc0f0769 MDL-65247 core: Fix action_modal Behat tests 2019-04-03 08:46:00 +08:00
Eloy Lafuente (stronk7) 21573d41f7 MDL-65250 core: Fix some undefined variables in compact()
Since PHP 7.3 they throw a PHP Notice.
2019-04-03 02:43:58 +02:00
Eloy Lafuente (stronk7) b553489c13 Merge branch 'MDL-65213-36' of git://github.com/sarjona/moodle into MOODLE_36_STABLE 2019-04-03 00:23:06 +02:00
Eloy Lafuente (stronk7) b7fe40f96a Merge branch 'MDL-64994-36-pythonmlversion' of git://github.com/mudrd8mz/moodle into MOODLE_36_STABLE 2019-04-03 00:09:38 +02:00
Sara Arjona 3efb002aaa MDL-65213 core_message: fix random failures when declining contacts 2019-04-02 20:28:41 +02:00
Eloy Lafuente (stronk7) 2bcef03b09 weekly release 3.6.3+ 2019-04-02 15:53:01 +02:00
Eloy Lafuente (stronk7) 7a13dabb1a Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-04-02 15:52:54 +02:00
Jun Pataleta 97e3be3cf6 Merge branch 'MDL-64331-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-04-02 10:56:54 +08:00
Adrian Greeve 7388f721e9 Merge branch 'MDL-65144-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-04-02 10:16:29 +08:00
Damyon Wiese 3f9247df88 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:03:03 +08:00
Brendan Heywood 4ad8be5c62 MDL-64394 core: Fixed bug when using access log with pre_loginpage_hook 2019-04-02 11:41:25 +11:00
Ilya Tregubov a6b98fe716 MDL-64439 auth: Refresh $cm in require_login after pre_loginpage_hook. 2019-04-02 10:23:40 +11:00
Leon Stringer 435d91e4bb 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:35:21 +01:00
Damyon Wiese baccabf20b 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:51:18 +08:00
Jake Dallimore 9dcb7d057d Merge branch 'MDL-65089_36' of https://github.com/dvdcastro/moodle into MOODLE_36_STABLE 2019-04-01 15:30:27 +08:00
Jake Dallimore 77fe79ff6d Merge branch 'MDL-64194-36_block_myoverview_incorrect_pagination' of https://github.com/tomdickman/moodle into MOODLE_36_STABLE 2019-04-01 14:36:24 +08:00
Jun Pataleta 21e0be247c Merge branch 'MDL-64524-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-04-01 13:46:41 +08:00
Jun Pataleta 564019efff Merge branch 'MDL-63906_36' of git://github.com/dmonllao/moodle into MOODLE_36_STABLE 2019-04-01 10:32:00 +08:00
Adrian Greeve b5dfcb9e07 Merge branch 'MDL-65173_36' of git://github.com/markn86/moodle into MOODLE_36_STABLE 2019-04-01 10:22:36 +08:00
Eloy Lafuente (stronk7) 49681cd03d MDL-65218 recycle bin: cover immunization via settings provider
Both for course and category recycle bins
2019-04-01 09:26:50 +08:00
Eloy Lafuente (stronk7) cdcc3ab5da 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-04-01 09:26:50 +08:00
Eloy Lafuente (stronk7) 165baf349b 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-04-01 09:26:50 +08:00
Tim Hunt 5b898cb5e0 MDL-65029 questions: refactor generation of question div id
We are planning to change the id in Moodle 3.7. However, the new
method name has been back-ported to stable branches, because we
know a lot of third-party question types like to have a single
branch which supports multiple Moodle versions.
2019-03-29 13:24:53 +00:00
Tobias Reischmann 24e4f1d1c8 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:14:24 +01:00
Sara Arjona 26e2d21925 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:50 +01:00
Sara Arjona bc1d3f2e2a 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:34:13 +01:00
Sara Arjona b185b38288 MDL-65087 message: add aria-label to search, settings and starred 2019-03-29 09:34:13 +01:00
Sara Arjona 88426ca6bf 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:34:13 +01:00
Sara Arjona 644ecdcaf3 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:34:13 +01:00
Jun Pataleta 07b01e4ff7 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:38:34 +08:00
Jun Pataleta 9b7293b190 MDL-46975 auth_email: Behat test for email validation on signup 2019-03-29 13:38:34 +08:00
Jun Pataleta 8c515e95b7 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:32:59 +08:00
Jun Pataleta 06c88be18f MDL-29318 login: Additional test for forgot_password_data_provider() 2019-03-29 13:32:59 +08:00
Jun Pataleta 8cb4579884 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:32:59 +08:00
Jun Pataleta b53ec2bb74 MDL-29318 core: More unit tests for get_complete_user_data() 2019-03-29 13:30:04 +08:00
Tom Dickman a9883c6ee7 MDL-64194 block_myoverview: fix incorrect pagination
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:53:10 +11:00
AMOS bot 1446f3f89c Automatically generated installer lang files 2019-03-29 00:15:26 +00:00
David Castro 709cf42e06 MDL-65089 glossary: Enforcing case comparison in SQL. 2019-03-28 18:33:53 -05:00
Dmitrii Metelkin 0d493433d3 MDL-65112 mod_lesson: fix html for shortanswer responses 2019-03-29 08:32:04 +11:00
Eloy Lafuente (stronk7) 318fd402e1 weekly release 3.6.3+ 2019-03-28 16:49:19 +01:00
Eloy Lafuente (stronk7) 1671a9f7fd Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-03-28 16:49:13 +01:00
Shamim Rezaie 72f0984c4e MDL-65102 core_form: autocomplete element to handle submit event 2019-03-28 15:17:50 +11:00
Eloy Lafuente (stronk7) 7da687624c Merge branch 'MDL-63196-36' of git://github.com/lameze/moodle into MOODLE_36_STABLE 2019-03-28 00:12:41 +01:00
Eloy Lafuente (stronk7) 4ecc15449c Merge branch 'MDL-64996-36-untrainedstaticmodels' of git://github.com/mudrd8mz/moodle into MOODLE_36_STABLE 2019-03-27 23:45:41 +01:00
Eloy Lafuente (stronk7) b05f3cdc4b Merge branch 'MDL-62992-36' of git://github.com/lameze/moodle into MOODLE_36_STABLE 2019-03-27 23:06:15 +01:00
Eloy Lafuente (stronk7) 4c627b6a57 Merge branch 'MDL-64664-36' of git://github.com/cescobedo/moodle into MOODLE_36_STABLE 2019-03-27 22:58:40 +01:00
cescobedo d0770f8154 MDL-64664 core_message: Create more specific selector to contact menu 2019-03-27 13:57:44 +01:00
Jun Pataleta 25d5103a4c Merge branch 'MDL-65008_moodle_36_stable' of https://github.com/dvdcastro/moodle into MOODLE_36_STABLE 2019-03-27 10:40:37 +08:00
Simey Lameze 98ab2d0a44 MDL-62992 quiz: fix tags filtering on random question modal 2019-03-27 10:26:19 +08:00
Simey Lameze d57c35472a MDL-62992 question: conditionaly enable question tags feature 2019-03-27 10:26:19 +08:00
Paul Holden ed88c64a5c 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-27 00:17:59 +01:00
Eloy Lafuente (stronk7) f1d125b08e Merge branch 'MDL-65081-36' of git://github.com/junpataleta/moodle into MOODLE_36_STABLE 2019-03-26 22:43:54 +01:00
Eloy Lafuente (stronk7) 9d84af2a52 Merge branch 'MDL-63152-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-03-26 13:28:21 +01:00
Eloy Lafuente (stronk7) 1c52897f85 Merge branch 'MDL-63149-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-03-26 13:25:11 +01:00
Eloy Lafuente (stronk7) 0a9117bd61 Merge branch 'MDL-63151-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-03-26 13:15:55 +01:00
Shamim Rezaie abe0e8fbad MDL-65094 registration: don't encourage registration if on localhost 2019-03-26 17:26:21 +11:00
Damyon Wiese a05eb5558e MDL-65178 competencies: count_competencies fix
Fix sql error in course_module_competency::count_competencies() function.
2019-03-26 09:49:00 +08:00
Sara Arjona 2bf03fc2e0 Merge branch 'MDL-64615-36' of git://github.com/jleyva/moodle into MOODLE_36_STABLE 2019-03-25 18:20:13 +01:00
Sara Arjona 17aaad9033 Merge branch 'MDL-64790-36_apidoc_fix' of https://github.com/nicoroeser/moodle into MOODLE_36_STABLE 2019-03-25 12:38:06 +01:00
Mark Nelson 22f75de983 MDL-65173 message_email: removed bogus logic
This reverts commit 844a59c301.
2019-03-25 17:18:34 +08:00
David Mudrák a825339917 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:06 +01:00
David Mudrák 0e91160efe 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:06 +01:00
David Mudrák 6b1ce97894 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 09:02:10 +01:00
David Mudrák 38ce5978dd 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:59:33 +01:00
Adrian Greeve 5b4c20944d Merge branch 'MDL-60339-36' of git://github.com/Chocolate-lightning/moodle into MOODLE_36_STABLE 2019-03-25 11:11:04 +08:00
Adrian Greeve 12c256a78b Merge branch 'MDL-64492-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-03-25 10:59:19 +08:00
AMOS bot 6b45969dc6 Automatically generated installer lang files 2019-03-25 00:09:24 +00:00
Abhimanyu Kumar 4abab60161 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:35:51 +05:30
maksudr 5bdbf3185d MDL-62307 mod_feedback: Decode HTML special char in add_form_element() 2019-03-22 15:45:47 +00:00
Mathew May 159f20a93e 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:50:49 +08:00
Damyon Wiese 24335e6c2b 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:17:56 +08:00
Jun Pataleta fe4763e560 MDL-65081 core_output: Unit tests for single_select and url_select 2019-03-22 11:15:10 +08:00
Jun Pataleta 8a80d01b70 MDL-65081 core_output: Set single_select and url_select attributes 2019-03-22 11:15:10 +08:00
Damyon Wiese ee21767d92 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:37 +08:00
Simey Lameze d1e488ab9b MDL-63196 core_calendar: add behat scenario 2019-03-22 10:45:47 +08:00
Simey Lameze 5863a07a46 MDL-63196 calendar: add missing option to export category events 2019-03-22 10:45:46 +08:00
Damyon Wiese 50a8ba5661 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:06:39 +08:00
Eloy Lafuente (stronk7) 673922a628 weekly release 3.6.3+ 2019-03-21 20:19:44 +01:00
Cameron Ball 3282dda765 MDL-65104 registration: Ensure $registration is always null when no record exists 2019-03-21 16:12:30 +08:00
Adrian Greeve 5da126bc67 Merge branch 'MDL-46803-greedy-roles-reset-MOODLE_36' of https://github.com/DSI-Universite-Rennes2/moodle into MOODLE_36_STABLE 2019-03-21 11:22:23 +08:00
Eloy Lafuente (stronk7) b503eca0d4 Merge branch 'wip-36-MDL-64563' of https://github.com/adpe/moodle into MOODLE_36_STABLE 2019-03-21 00:43:03 +01:00
Eloy Lafuente (stronk7) 95e75e70b5 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:14:51 +01:00
Eloy Lafuente (stronk7) d86ad34353 Merge branch 'MDL-63263-MOODLE_36_STABLE' of https://github.com/tuanngocnguyen/moodle into MOODLE_36_STABLE 2019-03-20 23:16:09 +01:00
Eloy Lafuente (stronk7) c0b2cf55e4 Merge branch 'MDL-65022-36' of https://github.com/Dagefoerde/moodle into MOODLE_36_STABLE 2019-03-20 22:31:55 +01:00
Jan Dageförde bdb8dec713 MDL-65059 messaging: don't refer to block plugin type
AMOS BEGIN
 CPY [block,core],[blockuserconfirmbutton,core_message]
AMOS END
2019-03-20 22:22:11 +01:00
M d4fc00666b MDL-65038 core_files: Fix typo in function mock_response 2019-03-20 20:51:28 +00:00
Jun Pataleta 248f5a1efc Merge branch 'MDL-62872-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-03-20 16:30:29 +08:00
Adrian Greeve 036e58c5b5 Merge branch 'MDL-65005-36-fix' of git://github.com/junpataleta/moodle into MOODLE_36_STABLE 2019-03-20 13:57:17 +08:00
Jun Pataleta ba7cf5ad88 MDL-65005 tool_policy: Ensure the user's on the Dashboard after agreeing 2019-03-20 13:13:23 +08:00
Eloy Lafuente (stronk7) 3f8bd31bf3 Merge branch 'MDL-65085_36' of git://github.com/dmonllao/moodle into MOODLE_36_STABLE 2019-03-20 00:40:28 +01:00
Eloy Lafuente (stronk7) de8c665fe3 Merge branch 'MDL-64990_36' of git://github.com/markn86/moodle into MOODLE_36_STABLE 2019-03-19 23:05:03 +01:00
Eloy Lafuente (stronk7) 23cd28f38c Merge branch 'MDL-64979-m36' of https://github.com/sammarshallou/moodle into MOODLE_36_STABLE 2019-03-19 22:07:51 +01:00
sam marshall 00c706dc8a MDL-64979 Behat: Add option to increase timeouts 2019-03-19 17:14:46 +00:00
Eloy Lafuente (stronk7) 93973e0472 Merge branch 'MDL-65005-36' of git://github.com/junpataleta/moodle into MOODLE_36_STABLE 2019-03-19 17:57:50 +01:00
Adrian Greeve 3e46ac327a Merge branch 'MDL-64958-36' of git://github.com/junpataleta/moodle into MOODLE_36_STABLE 2019-03-19 13:42:36 +08:00
Adrian Greeve a9afba6a38 Merge branch 'MDL-63144-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-03-19 11:26:03 +08:00
Eloy Lafuente (stronk7) 95764ed91d Merge branch 'MDL-64974-36' of git://github.com/sarjona/moodle into MOODLE_36_STABLE 2019-03-19 00:23:45 +01:00
Eloy Lafuente (stronk7) b1dbc661bb Merge branch 'MDL-64987-36' of git://github.com/abgreeve/moodle into MOODLE_36_STABLE 2019-03-19 00:21:23 +01:00
Eloy Lafuente (stronk7) 809901f7c8 Merge branch 'MDL-65006-36' of git://github.com/sarjona/moodle into MOODLE_36_STABLE 2019-03-18 23:35:59 +01:00
Julien Boulen f8c209cf25 MDL-46803 course: Prevent unenrol users with multiple roles during reset 2019-03-18 11:18:46 +01:00
cescobedo 564ad754a8 MDL-64664 core_message: Behat tests to manage contacts 2019-03-18 09:50:00 +01:00
cescobedo d940ccbe0b MDL-64664 core_message: New data generator for contacts 2019-03-18 09:50:00 +01:00
cescobedo cbf62420e0 MDL-64664 core_message: New step for open contact menu 2019-03-18 09:50:00 +01:00
David Monllaó 066673fb37 MDL-63906 analytics: Release the lock on \Throwable received 2019-03-18 09:09:50 +01:00
Damyon Wiese 0bec5987c8 MDL-64524 gradingform_guide: Marking guide comments
When there are too many comments, scroll the list so they still fit in the dialogue.
2019-03-18 15:57:11 +08:00
Damyon Wiese 7c5c76bcdf 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-03-18 15:57:11 +08:00
Shamim Rezaie 4ef107fccb MDL-63152 mod_workshop: Add userid param to calendar callbacks 2019-03-18 15:53:28 +11:00
Shamim Rezaie 9addd44bb4 MDL-63152 mod_workshop: check if the module is visible to the user 2019-03-18 15:53:27 +11:00
Shamim Rezaie 0bc2276751 MDL-62872 atto_recordrtc: max_filesize detection fix 2019-03-18 15:20:38 +11:00
Jake Dallimore 3612fa390d Merge branch 'MDL-65291_36' of git://github.com/stronk7/moodle into MOODLE_36_STABLE 2019-03-16 07:17:47 +08:00
Eloy Lafuente (stronk7) 76e06c15c6 Merge branch 'MDL-65179-m36' of https://github.com/sammarshallou/moodle into MOODLE_36_STABLE 2019-04-16 20:45:23 +02:00
David Monllaó ba22230a4f Merge branch 'MDL-62572-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-04-15 11:07:08 +02:00
David Monllaó cf77a2d72d Merge branch 'wip-MDL-65220-MOODLE_36_STABLE' of https://github.com/jason-platts/moodle into MOODLE_36_STABLE 2019-04-15 07:58:18 +02:00
David Monllaó e8fd0db959 Merge branch 'MDL-64894-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-04-15 07:45:41 +02:00
David Monllaó 99c7dc1929 Merge branch 'MDL-29317-36' of git://github.com/junpataleta/moodle into MOODLE_36_STABLE 2019-04-15 07:41:45 +02:00
Eloy Lafuente (stronk7) ceba417524 MDL-65291 phpunit: Make a test immune to DST changes 2019-04-15 01:22:41 +02:00
Damyon Wiese 4e5cd5956d MDL-62572 backup: Duplicating an activity
Don't apply admin defaults for import when using the duplicate function.
2019-04-12 14:05:06 +08:00
Trisha Milan c116d32f39 MDL-64894 Theme: Fix unable to expand collapsible topics 2019-04-01 14:54:26 +08:00
Jason Platts e2338e14a7 MDL-65220 behat: test scenarios sometimes do not clear database data 2019-03-29 15:32:43 +00:00
Jun Pataleta 057a4fc85b 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:49 +08:00
Jun Pataleta dfcad939ff MDL-29317 gradeimport_csv: Tests for case-insensitivity 2019-03-29 13:29:49 +08:00
sam marshall db6be2a885 MDL-65179 Web service: Token last access is updated too frequently 2019-03-28 17:14:02 +00:00
David Monllaó 5dfaf89ba2 MDL-65085 analytics: noreply user sends insights 2019-03-15 13:49:49 +01:00
Nicolas Roeser 0d72003e6e 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:12:40 +01:00
Nathan Nguyen 47b4f21994 MDL-63263 tool_recyclebin: Apply automated backup setting
Use Automated backup settings as settings for Recycle bin backup and restore.
2019-03-15 14:55:08 +11:00
Rex Lorenzo 8e6e56c066 MDL-63263 tool_recyclebin: Recycle bin should always save user data. 2019-03-15 14:55:08 +11:00
Jake Dallimore f3ad037584 weekly release 3.6.3+ 2019-03-15 11:01:30 +08:00
Paul Holden 13898c79db 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-14 01:27:30 +01:00
Eloy Lafuente (stronk7) 323801ad4b Merge branch 'MDL-63146-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-03-14 01:22:07 +01:00
Eloy Lafuente (stronk7) c013bb2cbc Merge branch 'MDL-61585_36' of git://github.com/dmonllao/moodle into MOODLE_36_STABLE 2019-03-14 01:15:59 +01:00
Eloy Lafuente (stronk7) 8789bc4fa6 Merge branch 'MDL-63524-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-03-13 23:55:36 +01:00
Andrew Nicols f02688e713 MDL-63524 behat: Do not skip tests on Step 0 error 2019-03-14 06:54:37 +08:00
Amaia Anabitarte 5eefd56230 MDL-64670 core_message: fixing selector xpath 2019-03-13 17:52:42 +01:00
Juan Leyva 51ee36d039 MDL-64615 tool_mobile: Do not modify custom download URLs 2019-03-13 17:10:28 +01:00
Adrian Greeve db65a2ca7e Merge branch 'MDL-64568_36' of git://github.com/markn86/moodle into MOODLE_36_STABLE 2019-03-13 15:48:40 +08:00
Amaia Anabitarte 6eef6e3ab9 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-12 18:15:14 +01:00
Amaia Anabitarte 3dbced7596 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-12 18:15:13 +01:00
Jan Dageförde 86bef7c3b5 MDL-65022 wiki: declare the cancel button secondary 2019-03-12 09:05:42 +01:00
Shamim Rezaie 2436022f22 MDL-63151 mod_wiki: Add userid param to mod_wiki calendar callbacks 2019-03-12 17:16:53 +11:00
Shamim Rezaie 7fbf87df43 MDL-63151 mod_wiki: check if the module is visible to the user 2019-03-12 17:16:53 +11:00
Sara Arjona ce2e9f1cfb MDL-64974 badges: add missing configurecriteria capability check 2019-03-11 10:25:55 +01:00
David Monllaó 5bf54816e8 MDL-61585 analytics: Include missing indicators 2019-03-11 09:38:40 +01:00
Damyon Wiese 560b5b0efc MDL-65031 theme_boost: gradebook notifications
Tell the gradebook page to stack things vertically so that notifications
take the correct amount of space.
2019-03-11 12:47:21 +08:00
Jun Pataleta b211eb7afe MDL-64958 gradeimport_csv: Better unit tests for check_user_exists() 2019-03-11 09:35:45 +08:00
Jun Pataleta fc6d1fe719 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:35:45 +08:00
Mark Nelson 93f39f3db6 MDL-64568 core_group: delete conversation and members on group deletion 2019-03-11 09:24:44 +08:00
Mark Nelson c47c19634e MDL-64568 core: upgrade step to remove orphaned group conversations 2019-03-11 09:24:44 +08:00
Mark Nelson 5806a1f251 MDL-64990 tool_usertours: do not show messaging tour when disabled 2019-03-11 07:50:29 +08:00
David Castro 803d87c60f MDL-65008 question: Query enhancement.
Adding core_question as an additional filter to the tag backup.
2019-03-08 16:35:12 -05:00
Sara Arjona 4d3a32dde9 Moodle release 3.6.3 2019-03-08 11:03:15 +01:00
Sara Arjona ff27e31a89 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:02:28 +01:00
Adrian Greeve 949282574a MDL-64987 repository_nextcloud: Remove duplicate string. 2019-03-08 14:35:34 +08:00
Jun Pataleta c42c551cff MDL-65005 block_timeline: Behat fixes 2019-03-08 14:06:41 +08:00
Jun Pataleta d3507a690a MDL-65005 block_timeline: Fix accessibility of Day filter menu 2019-03-08 14:06:41 +08:00
Jun Pataleta 36a5774a81 MDL-65005 block_timeline: Fix accessibility of Sort-by menu 2019-03-08 14:06:37 +08:00
AMOS bot bba5a34bc2 Automatically generated installer lang files 2019-03-08 00:15:20 +00:00
Eloy Lafuente (stronk7) 5c592fcf75 weekly release 3.6.2+ 2019-03-07 16:42:00 +01:00
Eloy Lafuente (stronk7) 763f673820 Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-03-07 16:41:57 +01:00
Shamim Rezaie ace9ed3fc8 MDL-63149 mod_survey: Add userid param to mod_survey calendar callbacks 2019-03-07 17:54:43 +11:00
Shamim Rezaie 9042827e3f MDL-63144 mod_lti: Add userid param to mod_lti calendar callbacks 2019-03-07 17:49:16 +11:00
Shamim Rezaie 8b7eb8620a MDL-63144 mod_lti: Check if the module is visible to the user 2019-03-07 17:49:16 +11:00
Adrian Greeve 09f9f81835 Merge branch 'MDL-63905_36' of git://github.com/jmvedrine/moodle into MOODLE_36_STABLE 2019-03-07 09:13:00 +08:00
Andrew Nicols 5ee3cbc624 MDL-64410 access: Unit tests for context locking SQL 2019-03-06 12:36:26 +01:00
Andrew Nicols 90c2e5e707 MDL-64410 access: Check for context locking in cap functions 2019-03-06 12:36:26 +01:00
Jun Pataleta f33bc18d2d Merge branch 'MDL-64333_36' of git://github.com/markn86/moodle into MOODLE_36_STABLE 2019-03-06 17:34:02 +08:00
Mark Nelson 00ee6158fc MDL-64333 core_message: add migration message to new UI 2019-03-06 17:26:24 +08:00
Andrew Nicols da40ba154c Merge branch 'MDL-64774-36' of git://github.com/junpataleta/moodle into MOODLE_36_STABLE 2019-03-06 15:46:33 +08:00
Jean-Michel Vedrine 5f9d6e34a3 MDL-63905 qtype_multianswer: validate imported questions 2019-03-06 08:38:21 +01:00
Andrew Nicols 552877454c Merge branch 'MDL-64950-36-2' of git://github.com/junpataleta/moodle into MOODLE_36_STABLE 2019-03-06 13:47:54 +08:00
Jun Pataleta 732698302e MDL-64950 core: Handle username in a case-insensitive fashion 2019-03-06 12:46:01 +08:00
Jun Pataleta c4d39ba7d7 MDL-64950 core: Unit tests for get_complete_user_data() 2019-03-06 12:46:01 +08:00
Jun Pataleta 3ca7a701a6 MDL-64950 login: core_login_validate_forgot_password_data() unit tests 2019-03-06 12:46:01 +08:00
Andrew Nicols e389c5cd31 MDL-64971 access: Ensure that the capability exists when fetching 2019-03-06 10:15:55 +08:00
Jun Pataleta 7766baeb63 MDL-64774 user: Make email query case-insensitive 2019-03-06 09:00:18 +08:00
Jun Pataleta 5f779f05e8 MDL-64774 user: Better unit tests for updating users with similar emails 2019-03-06 09:00:18 +08:00
AMOS bot be998e5e63 Automatically generated installer lang files 2019-03-06 00:09:32 +00:00
Eloy Lafuente (stronk7) 8971a35e38 Merge branch 'MDL-64943_36' of git://github.com/stronk7/moodle into MOODLE_36_STABLE 2019-03-05 22:49:43 +01:00
Eloy Lafuente (stronk7) f6d98c3c8d MDL-64943 behat: fix some remaining uses of old strings 2019-03-05 17:02:08 +01:00
Eloy Lafuente (stronk7) 70602491f6 Merge branch 'MDL-64943-36-enfix' of git://github.com/mudrd8mz/moodle into MOODLE_36_STABLE 2019-03-05 11:09:27 +01:00
Jun Pataleta b6f517c251 Merge branch 'MDL-62465-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-03-05 15:30:17 +08:00
Adrian Greeve 7ea5221a52 Merge branch 'MDL-64342-36' of git://github.com/cescobedo/moodle into MOODLE_36_STABLE 2019-03-05 15:02:00 +08:00
Damyon Wiese 7dac132efc 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:49:02 +08:00
Adrian Greeve d9bb99f336 Merge branch 'MDL-64864-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-03-05 14:26:16 +08:00
Adrian Greeve 248639d3ae Merge branch 'MDL-64678-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-03-05 13:52:53 +08:00
Andrew Nicols 45f4d171d4 Merge branch 'MDL-64961-m36' of https://github.com/sammarshallou/moodle into MOODLE_36_STABLE 2019-03-05 13:24:47 +08:00
Andrew Nicols fdb8f40617 Merge branch 'MDL-64981_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-03-05 13:22:35 +08:00
Shamim Rezaie 8223305818 MDL-63146 mod_quiz: Add userid param to mod_quiz calendar callbacks 2019-03-05 14:23:33 +11:00
Shamim Rezaie 5226cc8a50 MDL-64830 core_calendar: Do cap check on event edit form 2019-03-05 04:16:40 +01:00
Damyon Wiese 1fc481dd7b MDL-64651 comments: Do not send referrer
Use blanktarget option on all comments to prevent malicious links.
2019-03-05 04:16:40 +01:00
Viktor cd3060d941 MDL-62702 core_lib: fix broken verification signature 2019-03-05 04:16:40 +01:00
Mark Nelson 868a80972c MDL-62702 core_lib: updated the 'ltiprovider' readme_moodle.txt 2019-03-05 04:16:40 +01:00
Brendan Cox 430f685834 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:16:40 +01:00
Ryan Wyllie a37e26d2ef 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:16:40 +01:00
Luca Bösch 7f22b14efb MDL-64706 theme_boost: Remove logo link in secure template 2019-03-05 04:16:40 +01:00
Jun Pataleta 78fa8d7e8e Merge branch 'MDL-64652-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-03-05 11:13:40 +08:00
Adrian Greeve c355be438d Merge branch 'MDL-64941-36' of https://github.com/MartinGauk/moodle into MOODLE_36_STABLE 2019-03-05 11:10:27 +08:00
Andrew Nicols c2a6c7c134 MDL-64652 mod_data: Break LEFT JOINs to multiple INNER 2019-03-05 10:14:15 +08:00
Andrew Nicols 309931c876 MDL-64652 glossary: Break LEFT JOINs to multiple INNER 2019-03-05 10:14:15 +08:00
Andrew Nicols 445deddb96 MDL-64652 forum: Use an inner join when fetching ratings 2019-03-05 10:14:15 +08:00
Andrew Nicols 842723567c MDL-64652 rating: Add optional inner join option to sql 2019-03-05 10:14:12 +08:00
Andrew Nicols 28fc193cf6 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:13:16 +08:00
Adrian Greeve 650d667817 Merge branch 'MDL-64863-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-03-05 09:53:37 +08:00
Jun Pataleta 4dcbcc6f93 Merge branch 'MDL-62143-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-03-05 09:44:46 +08:00
Damyon Wiese 781b8153dd 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:53:24 +08:00
Damyon Wiese 6cc9fd7dc1 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:47:04 +08:00
AMOS bot d1a13ec7ce Automatically generated installer lang files 2019-03-04 00:09:44 +00:00
cescobedo 9779a220fa 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:35:38 +01:00
sam marshall 68157ec22f MDL-64961 REST web service: Fatal error in error handler 2019-03-01 11:57:33 +00:00
Tim Hunt 4ed6bb0c22 MDL-64981 dml tests: pgsql_native_recordset_testcase port number 2019-03-01 11:13:16 +00:00
Martin Gauk f484cf49c4 MDL-64941 qtype_multianswer: keep order of existing wrapped questions 2019-03-01 09:49:26 +00:00
AMOS bot fdd78199a2 Automatically generated installer lang files 2019-03-01 00:15:45 +00:00
David Mudrák 7be07980d9 MDL-64943 lang: Fix regression in the test caused by the reworded string 2019-02-28 19:58:41 +01:00
Eloy Lafuente (stronk7) b39b8eb2f5 weekly release 3.6.2+ 2019-02-28 18:51:48 +01:00
Eloy Lafuente (stronk7) 9d3bcd1abf Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-02-28 18:51:45 +01:00
David Mudrák d2a16b6e81 MDL-64943 lang: Fix regressions in Behat caused by reworded strings 2019-02-28 17:58:03 +01:00
Helen Foster 9fb3f4ca10 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 17:55:05 +01:00
Eloy Lafuente (stronk7) 0130945cf5 Merge branch 'MDL-64444-36' of git://github.com/jleyva/moodle into MOODLE_36_STABLE 2019-02-28 01:21:10 +01:00
Eloy Lafuente (stronk7) e7bf9748c5 Merge branch 'MDL-64878-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-02-27 19:01:03 +01:00
Sara Arjona 2dd56328a7 Merge branch 'MDL-55135-36-competencies-manage-in-coursecontext' of https://github.com/wjroes/moodle into MOODLE_36_STABLE 2019-02-27 11:51:42 +01:00
Sara Arjona 352ed37ac4 Merge branch 'MDL-62454-36' of git://github.com/bmbrands/moodle into MOODLE_36_STABLE 2019-02-27 08:58:11 +01:00
Andrew Nicols c4edcf9960 Merge branch 'MDL-64889_36_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_36_STABLE 2019-02-27 14:43:54 +08:00
Andrew Nicols 7b0134f69d Merge branch 'wip-36-MDL-62345' of https://github.com/adpe/moodle into MOODLE_36_STABLE 2019-02-27 14:14:02 +08:00
Andrew Nicols a1eb4ad4d3 Merge branch 'MDL-63674-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-02-27 13:01:46 +08:00
Damyon Wiese 7cd7f20202 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:40:02 +08:00
Damyon Wiese 1a3faa11b7 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:40:02 +08:00
Andrew Nicols 8152908f69 Merge branch 'MDL-64591_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-02-27 09:54:51 +08:00
AMOS bot aca4c2a49c Automatically generated installer lang files 2019-02-27 00:09:43 +00:00
Eloy Lafuente (stronk7) 24ffbc4e2b Merge branch 'MDL-63417-36' of git://github.com/mihailges/moodle into MOODLE_36_STABLE 2019-02-26 23:19:12 +01:00
Sara Arjona aa1279b7cf Merge branch 'MDL-43428-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-02-26 14:09:06 +01:00
Tim Hunt 2cbf3ea580 MDL-64591 User tours: don't show during redirects & other bad times 2019-02-26 13:05:51 +00:00
Shamim Rezaie 63559b4796 MDL-43428 accessrule_timelimit: timeclose can be ealier than timelimit 2019-02-26 14:45:24 +11:00
Andrew Nicols 39113784bc Merge branch 'MDL-64663_36' of git://github.com/aanabit/moodle into MOODLE_36_STABLE 2019-02-26 11:08:02 +08:00
Sara Arjona 71dc512e46 Merge branch 'MDL-64862-36-workshopgradepass' of git://github.com/mudrd8mz/moodle into MOODLE_36_STABLE 2019-02-25 18:31:26 +01:00
Sara Arjona fb62fb8e69 Merge branch 'MDL-64931_36' of git://github.com/markn86/moodle into MOODLE_36_STABLE 2019-02-25 17:19:33 +01:00
Adrian Greeve fff6f3fa55 Merge branch 'MDL-64640-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-02-25 10:28:11 +01:00
Amaia Anabitarte ec32dbcd8c MDL-64663 core_message: Behat to test admin settings 2019-02-25 10:16:17 +01:00
Andrew Nicols fc13071f37 Merge branch 'MDL-64561-36-test' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-02-25 15:52:23 +08:00
Charles Fulton 7b37ec0381 MDL-64561 install: show help text before database check 2019-02-25 16:44:22 +11:00
Shamim Rezaie 1e2491b9ea MDL-63674 core_messaging: Fix message drawer's shadow in RTL 2019-02-25 14:41:07 +11:00
Shamim Rezaie 9e0958bb49 MDL-63674 core_messaging: Bidi text support 2019-02-25 14:41:07 +11:00
Mark Nelson 2c50550271 MDL-64931 core_message: fixed PHP error when users are deleted from DB 2019-02-25 07:49:39 +08:00
Adrian Perez ddce5a8d34 MDL-62345 navigation: Change data-key for dashboard rootnode 2019-02-22 16:57:43 +01:00
Andrew Nicols 289475f3da weekly release 3.6.2+ 2019-02-22 10:51:34 +08:00
Andrew Nicols 63c7118de6 Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-02-22 10:51:30 +08:00
Bas Brands be1e22c5f0 MDL-62454 theme_boost: numerical qtype answer inline 2019-02-21 14:35:40 +01:00
Adrian Greeve 61451240d2 Merge branch 'MDL-64729-36' into MOODLE_36_STABLE 2019-02-21 12:33:07 +01:00
John Beedell 1d4da3c1b6 MDL-64729 mod_glossary: glossary_get_entries_search case sensitivity 2019-02-21 12:31:59 +01:00
Andrew Nicols a628bbe9f7 Merge branch 'MDL-64571-36' of git://github.com/cescobedo/moodle into MOODLE_36_STABLE 2019-02-21 08:38:29 +08:00
Adrian Greeve b406ced13c Merge branch 'MDL_64856_m36v1' of git://github.com/sbourget/moodle into MOODLE_36_STABLE 2019-02-20 18:04:44 +01:00
Adrian Greeve baa408f1af Merge branch 'MDL-64200-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-02-20 15:59:16 +01:00
Adrian Greeve c61a082515 Merge branch 'MDL-64450-36' of git://github.com/peterRd/moodle into MOODLE_36_STABLE 2019-02-20 11:37:45 +01:00
Matteo Scaramuccia 4945e2e146 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-20 10:22:34 +01:00
David Monllaó 5d25911f42 MDL-64500 tool_analytics: noanalysables negation better than analysables 2019-02-20 10:09:58 +01:00
Andrew Nicols 09ad6346b2 Merge branch 'MDL-64570-36-fix1' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-02-20 10:55:09 +08:00
Damyon Wiese 5c6553f4bb MDL-64570 user: input field purpose
Do not autocomplete the user fields when editing another user.
2019-02-20 09:49:29 +08:00
Eloy Lafuente (stronk7) 3909b0e461 Merge branch 'MDL-64679_36' of git://github.com/dmonllao/moodle into MOODLE_36_STABLE 2019-02-20 00:07:00 +01:00
Eloy Lafuente (stronk7) 0b4d0426ea Merge branch 'MDL-63134-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-02-20 00:01:01 +01:00
Eloy Lafuente (stronk7) 98c4307560 Merge branch 'MDL-64806-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-02-19 23:34:47 +01:00
Eloy Lafuente (stronk7) 7ce55f6f3e Merge branch 'MDL-64242_36' of git://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-02-19 23:23:00 +01:00
Eloy Lafuente (stronk7) 272004978a Merge branch 'MDL-64791-36' of git://github.com/jleyva/moodle into MOODLE_36_STABLE 2019-02-19 17:43:06 +01:00
Eloy Lafuente (stronk7) 8db7687f02 Merge branch 'MDL-62008-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-02-19 17:23:52 +01:00
Eloy Lafuente (stronk7) db75278d93 Merge branch 'MDL-64500_36' of git://github.com/dmonllao/moodle into MOODLE_36_STABLE 2019-02-19 17:10:47 +01:00
Damyon Wiese 2165cd3410 MDL-64540 assign: Backport of MDL-60008
This patch combines the following changes:

* 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.
* When not all files are available in the online pdf, display a warning to graders
that some files must be downloaded.
* Better support for information messages from the conversion process.
* Remove the z-index values from the expand / collapse panels. They cause errors when mixed with dialogues.
* The edit pdf menus are all broken on small screen sizes. They consume 100% of the page with for no reason.
* The heights of the buttons to hide/show panels are arbitrarily big. There is not need to set them specifically.

Amended on integration to get rid if incorrect 'destroyed' block of
code. See the issue for more information.
2019-02-19 15:53:36 +01:00
Adrian Greeve 02bcf4644d Merge branch 'MDL-60459_36' of git://github.com/markn86/moodle into MOODLE_36_STABLE 2019-02-19 11:49:45 +01:00
David Monllaó e0ca602e98 MDL-64570 user: Remove empty line 2019-02-19 09:27:13 +01:00
David Monllaó 1825a5a6dc Merge branch 'MDL-64570-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-02-19 09:26:20 +01:00
David Monllaó 7bab771a8b Merge branch 'MDL-45151-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-02-19 06:40:28 +01:00
Damyon Wiese f63afeb168 MDL-64570 user: coding style
Fix cibot warnings on line length.
2019-02-19 09:45:21 +08:00
Damyon Wiese fbf75a8605 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:45:21 +08:00
Damyon Wiese 633e97845f 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-02-19 09:45:21 +08:00
David Mudrák 0488a0b30b 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 17:46:11 +01:00
Adrian Greeve b07174669f Merge branch 'MDL-64452-36-cachesession' of git://github.com/mudrd8mz/moodle into MOODLE_36_STABLE 2019-02-18 15:53:51 +01:00
Mark Johnson 0c81fe1f2e MDL-64889 completion: Fix performance of get_course_progress_percentage 2019-02-18 14:07:37 +00:00
willem bef3421021 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 11:00:04 +01:00
AMOS bot e28cb2630d Automatically generated installer lang files 2019-02-16 00:13:48 +00:00
David Mudrák 9fb92df867 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:37:51 +01:00
David Mudrák c2922fab27 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:37:51 +01:00
David Monllaó ce23f4f65c MDL-64679 tool_analytics: Allow trained models to be cleared 2019-02-15 08:43:24 +01:00
Damyon Wiese d531638e2d 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:10:27 +08:00
Andrew Nicols 22430761b1 weekly release 3.6.2+ 2019-02-15 08:29:28 +08:00
Andrew Nicols b83543bb45 Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-02-15 08:29:26 +08:00
Stephen Bourget d0aa6e157a MDL-64856 mod_glossary: Always show the settings cog on the view page. 2019-02-14 12:45:30 -05:00
Jun Pataleta 55d1f79921 Merge branch 'MDL-64736-36-2' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-02-14 15:00:48 +08:00
Andrew Nicols 3b0b9777be Merge branch 'MDL-64788_36' of git://github.com/markn86/moodle into MOODLE_36_STABLE 2019-02-14 09:40:37 +08:00
Jun Pataleta 38a80c43db Merge branch 'MDL-63892-36-rework' of git://github.com/mickhawkins/moodle into MOODLE_36_STABLE 2019-02-13 21:01:05 +08:00
Michael Hawkins 1ddc6cc840 MDL-63892 mod_forum: Behat update for post order 2019-02-13 17:24:38 +08:00
Jun Pataleta 10ddb5d90c Merge branch 'MDL-64835-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-02-13 16:27:08 +08:00
Andrew Nicols 4ad618ec4d Merge branch 'MDL-64714-36' of git://github.com/cescobedo/moodle into MOODLE_36_STABLE 2019-02-13 11:24:26 +08:00
Andrew Nicols 8bc84e2fd9 Merge branch 'MDL-63892-36-rework' of git://github.com/mickhawkins/moodle into MOODLE_36_STABLE 2019-02-13 10:19:15 +08:00
Andrew Nicols e556c94666 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:43 +08:00
Andrew Nicols 44bc92dfdd 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:13:43 +08:00
AMOS bot 519ce6aef9 Automatically generated installer lang files 2019-02-13 00:11:44 +00:00
Eloy Lafuente (stronk7) d64e812632 Merge branch 'MDL-64420-2_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-02-12 12:56:35 +01:00
David Monllaó 38ba693c91 Merge branch 'MDL-64590_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-02-12 12:46:57 +01:00
David Monllaó bb10d3523e Merge branch 'MDL-64730-lti-adv-0score-36' of https://github.com/CengageEng/moodle into MOODLE_36_STABLE 2019-02-12 12:33:44 +01:00
John Beedell fb77164490 MDL-64420 qtype: gapselect unit tests unsafe 2019-02-12 11:27:02 +00:00
David Monllaó 0b796573d4 Merge branch 'MDL-32096-36' of git://github.com/peterRd/moodle into MOODLE_36_STABLE 2019-02-12 09:41:41 +01:00
Andrew Nicols 51e5aebafc Merge branch 'MDL-64291_36' of https://github.com/KietChan/moodle into MOODLE_36_STABLE 2019-02-12 10:55:32 +08:00
Jun Pataleta 1385b3a3cb Merge branch 'MDL-64493-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-02-12 10:11:58 +08:00
cescobedo 1796fe1494 MDL-64571 core_message: Fix duplicate footer in msg notification email 2019-02-12 00:44:01 +01:00
Andrew Nicols f37e6ca42a MDL-64736 course: Rewrite behat step to avoid changing a checkbox 2019-02-12 07:43:37 +08:00
Eloy Lafuente (stronk7) 7005a8da73 Merge branch 'MDL-61326-36' of git://github.com/peterRd/moodle into MOODLE_36_STABLE 2019-02-12 00:20:29 +01:00
Peter 4a8d7f56cd MDL-61326 repository_equella: Pass proper labels for roles with no name 2019-02-12 07:11:31 +08:00
Eloy Lafuente (stronk7) 695b639f4b Merge branch 'MDL-64694_36' of git://github.com/dmonllao/moodle into MOODLE_36_STABLE 2019-02-12 00:10:26 +01:00
Eloy Lafuente (stronk7) 2af09bc931 Merge branch 'MDL-64606-36' of https://github.com/lucaboesch/moodle into MOODLE_36_STABLE 2019-02-12 00:02:32 +01:00
Eloy Lafuente (stronk7) e1c332acbb Merge branch 'MDL-64238-36' of git://github.com/peterRd/moodle into MOODLE_36_STABLE 2019-02-11 23:56:55 +01:00
Peter e7f53ec0c8 MDL-64238 mod_quiz: Check enrollment on calendar_action generator
* Updated unit tests to account for participants
2019-02-12 06:26:40 +08:00
Peter 0cf0c2f339 MDL-64238 mod_lesson: Check enrollment calendar_action generator
* Updated unit tests to account for participants
2019-02-12 06:26:40 +08:00
Eloy Lafuente (stronk7) 44e3097e3d Merge branch 'MDL-64725-36' of git://github.com/junpataleta/moodle into MOODLE_36_STABLE 2019-02-11 17:04:45 +01:00
Eloy Lafuente (stronk7) 98e572b770 Merge branch 'M3.6-MDL-64599' of https://github.com/marcusboon/moodle into MOODLE_36_STABLE 2019-02-11 12:51:06 +01:00
Eloy Lafuente (stronk7) 152ec9fda2 Merge branch 'MDL-64385-36' of git://github.com/aanabit/moodle into MOODLE_36_STABLE 2019-02-11 12:35:34 +01:00
Sara Arjona 2b4b6c934e Merge branch 'MDL-64031-36' of https://github.com/lethevinh/moodle into MOODLE_36_STABLE 2019-02-11 12:33:13 +01:00
David Monllaó 0e3b2bab1b Merge branch 'MDL-64391_36' of git://github.com/vmdef/moodle into MOODLE_36_STABLE 2019-02-11 11:09:23 +01:00
Sara Arjona f87961e5ef Merge branch 'MDL-48338-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-02-11 10:41:15 +01:00
David Monllaó 188d64d2b0 Merge branch 'MDL-62666-36' of git://github.com/junpataleta/moodle into MOODLE_36_STABLE 2019-02-11 09:49:05 +01:00
Tim Hunt f2d827461d MDL-64242 qtype_essay: more efficient query in restore code
Thanks to Juan Ibarra for the suggestion that lead to this fix.
2019-02-11 08:40:43 +00:00
Andrew Nicols 02606519d6 Merge branch 'MDL-64597-36' of git://github.com/junpataleta/moodle into MOODLE_36_STABLE 2019-02-11 16:35:28 +08:00
Jun Pataleta 8729365749 Merge branch 'MDL-64488-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-02-11 16:05:45 +08:00
Jun Pataleta aecc41b81c Merge branch 'MDL-64644_36' of git://github.com/markn86/moodle into MOODLE_36_STABLE 2019-02-11 15:28:55 +08:00
Andrew Nicols 29062ac7b6 Merge branch 'MDL-64393_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-02-11 15:11:38 +08:00
Shamim Rezaie 5848b3abf5 MDL-63134 mod_chat: Check if the module is visible to the user 2019-02-11 16:10:23 +11:00
Shamim Rezaie 659a617729 MDL-63134 mod_chat: Add userid param to mod_chat calendar callbacks 2019-02-11 16:10:23 +11:00
AMOS bot 20fd621fcb Automatically generated installer lang files 2019-02-10 00:10:16 +00:00
Adrian Perez eaaaeface3 MDL-64563 theme_boost: Add page site admin category name word-break 2019-02-09 20:16:21 +01:00
Luca Bösch e4f0b24b18 MDL-64606 templates: Show & instead of &amp; in url-select. 2019-02-08 13:22:58 +01:00
Jun Pataleta bc41eabea5 weekly release 3.6.2+ 2019-02-08 14:54:37 +08:00
Damyon Wiese d050b00a71 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:37:18 +08:00
Juan Leyva 181e04ce5d MDL-64791 messages: Bring back 'messagecontactrequests' message 2019-02-07 12:07:01 +01:00
Eloy Lafuente (stronk7) a28ffd62d9 Merge branch 'MDL-62680-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-02-07 10:22:53 +01:00
Anthony Ales 841709bbb5 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:17:03 +08:00
Andrew Nicols 4f4d5af3ed Merge branch 'MDL-64633-36' of https://github.com/ewallah/moodle into MOODLE_36_STABLE 2019-02-07 14:54:26 +08:00
Andrew Nicols 6be3214047 Merge branch 'MDL-64577-36-fix' of git://github.com/junpataleta/moodle into MOODLE_36_STABLE 2019-02-07 11:54:50 +08:00
Jun Pataleta 29c224ce81 MDL-64577 grade: Put back the accidentally deleted value attribute 2019-02-07 11:26:49 +08:00
Peter Eliyahu Kornfeld a5720360db MDL-60459 core_course: set default for 'visibleoncoursepage' 2019-02-07 10:54:09 +08:00
Damyon Wiese 6f70544c44 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:12:08 +08:00
Eloy Lafuente (stronk7) 747db5e953 Merge branch 'MDL-64577-36' of https://github.com/lucaboesch/moodle into MOODLE_36_STABLE 2019-02-07 00:45:38 +01:00
Eloy Lafuente (stronk7) 574831353e Merge branch 'MDL-64551-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-02-06 23:44:43 +01:00
Eloy Lafuente (stronk7) 00e5454374 Merge branch 'MDL-64469-36' of https://github.com/lethevinh/moodle into MOODLE_36_STABLE 2019-02-06 22:55:11 +01:00
Eloy Lafuente (stronk7) fa10771730 Merge branch 'MDL-63148-36' of git://github.com/peterRd/moodle into MOODLE_36_STABLE 2019-02-06 13:28:30 +01:00
Eloy Lafuente (stronk7) 3fb2606779 Merge branch 'MDL-63614_M36v1' of https://github.com/sbourget/moodle into MOODLE_36_STABLE 2019-02-06 13:19:47 +01:00
Jun Pataleta c45f8a01bc Merge branch 'MDL-63967_36' of git://github.com/stronk7/moodle into MOODLE_36_STABLE 2019-02-06 16:58:28 +08:00
Mihail Geshoski 7cfe8b3567 MDL-63417 lesson: Re-apply class variable to the question response 2019-02-06 15:02:17 +08:00
Mark Nelson 85b4823199 MDL-64788 core_message: removed unused temporary page 2019-02-06 13:56:29 +08:00
Jun Pataleta 967fd3b748 Merge branch 'MDL-61405-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-02-06 13:12:42 +08:00
Damyon Wiese fc5d655fa4 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:36:27 +08:00
Eloy Lafuente (stronk7) d3d6bd7fbf Merge branch 'MDL-63516-MOODLE_36_STABLE' of https://github.com/dmitriim/moodle into MOODLE_36_STABLE 2019-02-06 00:16:37 +01:00
Dmitrii Metelkin bf2e077fc8 MDL-63516 groups: fix unexpected debugging message 2019-02-06 09:23:32 +11:00
Sara Arjona 3d0a5f7c54 Merge branch 'MDL-62893_36' of https://github.com/mfabriczy/moodle into MOODLE_36_STABLE 2019-02-05 20:06:41 +01:00
Eloy Lafuente (stronk7) be388ba917 Merge branch 'MDL-61441_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-02-05 16:11:46 +01:00
Jun Pataleta 795465cb0a Merge branch 'MDL-64632_36' of git://github.com/markn86/moodle into MOODLE_36_STABLE 2019-02-05 22:40:51 +08:00
cescobedo 63b1eaf29c MDL-64714 core_auth: Fix early break foreach in delete_data_for_user 2019-02-05 12:52:02 +01:00
Marcus Fabriczy 3394af753d 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:09:30 +10:30
Peter 6b5d5ce16f 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:55:37 +08:00
Olivier Piton 24eae720fa MDL-61535 report_security: SQL Perf improvement 2019-02-05 01:44:07 +01:00
Eloy Lafuente (stronk7) eb9f552ac9 Merge branch 'wip-MDL-64404-36' of https://github.com/Beedell/moodle into MOODLE_36_STABLE 2019-02-05 01:30:53 +01:00
Eloy Lafuente (stronk7) 0b0b26f356 Merge branch 'MDL-64649-36' of https://github.com/felicemcc/moodle into MOODLE_36_STABLE 2019-02-04 16:50:55 +01:00
Eloy Lafuente (stronk7) 3de8463fc1 Merge branch 'MDL-63975-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-02-04 13:21:50 +01:00
Damyon Wiese 361b66bdff 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:46:28 +08:00
Mark Nelson 9ee908f314 MDL-64632 core_message: fixed PHP error when users are deleted from DB 2019-02-04 13:07:11 +08:00
Damyon Wiese 9a4056cbc4 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:31 +08:00
Damyon Wiese aa88adf108 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:31 +08:00
Damyon Wiese 534e9692c5 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:31 +08:00
Jun Pataleta 7493ad56cb MDL-64725 composer: Use lowercase for package name of dev dependencies 2019-02-04 09:37:53 +08:00
Eloy Lafuente (stronk7) 74647f9ca3 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:24 +01:00
David Monllaó 220c8920c9 MDL-64694 report_insights: Remove unnecessary cell classes 2019-02-01 09:10:01 +01:00
Luca Bösch b83af3894d MDL-64577 grade: style "Add ID numbers" button. 2019-02-01 07:09:15 +01:00
David Monllao e3d3ae2e18 MDL-64500 tool_analytics: No invalid analysables message 2019-02-01 06:59:14 +01:00
Damyon Wiese 3926512713 MDL-45151 assign: Add anonymous flag to events if blindmarking 2019-02-01 09:13:31 +08:00
Jun Pataleta 2188da9eed weekly release 3.6.2+ 2019-02-01 08:57:15 +08:00
Jun Pataleta ebd32e0241 Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-02-01 08:57:14 +08:00
Eloy Lafuente (stronk7) c254bb8471 Merge branch 'MDL-64737-36-attoprivacysql' of git://github.com/mudrd8mz/moodle into MOODLE_36_STABLE 2019-01-31 22:46:24 +01:00
Sara Arjona 32117f2d12 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:30 +01:00
David Mudrák 6a5f60d419 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:51:18 +01:00
David Mudrák 1ac0d67ee8 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 12:51:17 +01:00
Felice Candilio 2c7a567491 MDL-64649 amd: Removing underscores from icons in [Roles/Groups] forms 2019-01-31 11:07:01 +01:00
Damyon Wiese 8027c1dd30 MDL-63975 assign: Fix error when there is no grader 2019-01-31 13:09:27 +08:00
Damyon Wiese 11f2f7efad 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:54:09 +08:00
Eloy Lafuente (stronk7) cb41802683 Merge branch 'MDL-64320_36' of git://github.com/dmonllao/moodle into MOODLE_36_STABLE 2019-01-31 00:29:34 +01:00
Eloy Lafuente (stronk7) 9666362605 Merge branch 'MDL-64521_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-01-30 23:48:57 +01:00
Eloy Lafuente (stronk7) e3c859bfb3 Merge branch 'MDL-62514-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-01-30 23:01:02 +01:00
Claude Vervoort 703d3f1a05 MDL-64730 LTI Adv: do not ignore 0 score 2019-01-30 16:13:03 -05:00
Eloy Lafuente (stronk7) bdecee10d6 MDL-64528 core_completion: new cap version bump 2019-01-30 21:25:58 +01:00
Charles Fulton f7afadd846 MDL-64528 core_completion: prevent toggling completion in frozen context 2019-01-30 21:25:09 +01:00
Sara Arjona a7e2a7fecf Merge branch 'MOODLE_36_STABLE' of https://github.com/kristian-94/moodle into MOODLE_36_STABLE 2019-01-30 19:09:11 +01:00
Juan Leyva ff28d273e0 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:27:49 +01:00
Sara Arjona 730b017a9c Merge branch 'MDL-47247-36' of git://github.com/mihailges/moodle into MOODLE_36_STABLE 2019-01-30 14:03:03 +01:00
David Monllao 4939925fd0 MDL-64320 analytics: Validate discrete indicators separately 2019-01-30 12:11:34 +01:00
Sara Arjona 4b07fd7203 Merge branch 'MDL-64566_36' of git://github.com/markn86/moodle into MOODLE_36_STABLE 2019-01-30 09:32:08 +01:00
Sara Arjona e2ba0043cf Merge branch 'MDL-64143-36' of https://github.com/ryanwyllie/moodle into MOODLE_36_STABLE 2019-01-30 09:22:42 +01:00
Ryan Wyllie 4293c035a6 MDL-64143 message: make message drawer contacts bold 2019-01-30 09:02:41 +08:00
Andrew Nicols 977cfafd53 MDL-62514 behat: Inplace editable pendingjs wrapper 2019-01-30 08:26:18 +08:00
Andrew Nicols f24c46b406 MDL-62514 behat: Remove potentially conflicting names from description 2019-01-30 08:26:18 +08:00
Andrew Nicols e809dc3394 MDL-62514 behat: Add additional autocomplete validation 2019-01-30 08:26:18 +08:00
Andrew Nicols 55efc4667d 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:26:18 +08:00
Andrew Nicols dd3fa5c531 MDL-62514 behat: Add a wait_for_pending_js to form field 2019-01-30 08:26:18 +08:00
AMOS bot 0ada596ccb Automatically generated installer lang files 2019-01-30 00:10:15 +00:00
Eloy Lafuente (stronk7) 2e65323d4f Merge branch 'MDL-64424-36-expiredfrontpage' of git://github.com/mudrd8mz/moodle into MOODLE_36_STABLE 2019-01-29 23:48:21 +01:00
Eloy Lafuente (stronk7) 4557f2c67b Merge branch 'MDL-64464_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-01-29 19:40:38 +01:00
Ryan Wyllie ffaa6c9f20 MDL-64144 message: show message date in message search results 2019-01-29 16:08:37 +01:00
Sara Arjona 7ab09d0dcc Merge branch 'MDL-63168_36' of git://github.com/markn86/moodle into MOODLE_36_STABLE 2019-01-29 13:01:00 +01:00
Sara Arjona e14e6a434f Merge branch 'MDL-64313-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-01-29 12:35:40 +01:00
Sara Arjona de4e98c355 Merge branch 'MDL-61623-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-01-29 11:20:20 +01:00
Damyon Wiese 7f0ebd3510 MDL-61623 accessibility: Use role, not aria-role 2019-01-29 14:00:04 +08:00
Mihail Geshoski 0932a5b52e MDL-47247 mod_folder: Apply site config when showexpanded is not set 2019-01-29 08:58:38 +08:00
Sara Arjona f1a21cb9ce Merge branch 'MDL-62668-36' of git://github.com/jleyva/moodle into MOODLE_36_STABLE 2019-01-28 19:43:16 +01:00
Binh Thai be3cc9bed3 MDL-64291 GDPR export: Context paths can be very long, not unique 2019-01-28 20:01:54 +07:00
Sara Arjona cfe678062e Merge branch 'MDL-56604-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-01-28 13:32:49 +01:00
Sara Arjona 485fd16ae0 Merge branch 'MDL-63378-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-01-28 11:38:11 +01:00
Sara Arjona 7152b86394 Merge branch 'MDL-54804_36' of https://github.com/mfabriczy/moodle into MOODLE_36_STABLE 2019-01-28 10:21:41 +01:00
Garrett Boone bc3ba913e7 MDL-64640 feedback: Fix target link on deletion 2019-01-27 18:15:35 +08:00
Andrew Nicols 52804421a0 MDL-64640 usertours: Fix target link on deletion 2019-01-27 18:15:35 +08:00
Kristian Ringer 8237a017d0 MDL-64700 block_recentlyaccessedcourses: don't escape course names 2019-01-25 10:25:34 +11:00
Eloy Lafuente (stronk7) cc8d7ee698 weekly release 3.6.2+ 2019-01-24 15:12:36 +01:00
Eloy Lafuente (stronk7) 8339c17385 Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-01-24 15:12:34 +01:00
Shamim Rezaie e02b7243e0 MDL-52132 qbehaviour_manualgraded: no change when comment is left blank 2019-01-24 16:20:10 +08:00
Damyon Wiese 1cf6ed5a17 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:34:17 +08:00
Jun Pataleta a48bccf753 MDL-64597 behat: Properly import behat_util when dropping parallel sites 2019-01-24 12:52:03 +08:00
Damyon Wiese f30ed91534 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:37:16 +08:00
Damyon Wiese 72ea6fc68e 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:32:13 +08:00
Eloy Lafuente (stronk7) 2ad0e72498 Merge branch 'MDL-64240-36' of git://github.com/mickhawkins/moodle into MOODLE_36_STABLE 2019-01-24 00:56:50 +01:00
Eloy Lafuente (stronk7) da13ccc61f Merge branch 'MDL-62963-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-01-24 00:38:28 +01:00
Juan Leyva e76b511228 MDL-62668 mod_workshop: Return feedback for reviewer in assessment phase
Teachers were not able to view the existing feedback.
2019-01-23 18:10:46 +01:00
Eloy Lafuente (stronk7) ff9ba586a1 Merge branch 'MDL-64609-36' of git://github.com/merrill-oakland/moodle into MOODLE_36_STABLE 2019-01-23 18:05:36 +01:00
Mark Sharp eafc25c718 MDL-64391 core_analytics: courseextendednamedisplay 2019-01-23 12:02:15 +00:00
David Mudrák 8bd88a1ecd 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:12:25 +01:00
Mark Nelson 04ae9eeb9f MDL-64644 completion: fixed assertions in privacy test 2019-01-23 17:31:06 +08:00
Mark Nelson d7cc2c8444 MDL-64644 completion: set status correctly in provider 2019-01-23 17:31:06 +08:00
Mark Nelson dacceac522 MDL-64644 completion: ensure we return array for provider 2019-01-23 17:31:06 +08:00
Sara Arjona 663c66b8c0 Merge branch 'MDL-64107-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-01-23 10:19:07 +01:00
Sara Arjona 16d059cf92 Merge branch 'MDL-63628-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-01-23 08:24:34 +01:00
Mark Nelson a0c78cc672 MDL-63168 core_message: added unit test 2019-01-23 13:24:06 +08:00
eWallah 534b0b6147 MDL-63168 core_message: fix failures in migrate_message_data task. 2019-01-23 13:24:06 +08:00
Eric Merrill b2ac807c9f MDL-64609 gradebook: Prevent infinite loop in regrading 2019-01-22 21:40:52 -05:00
Jake Dallimore b92327307a Merge branch 'MDL-52132-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-01-23 09:21:17 +08:00
Eloy Lafuente (stronk7) 7832112121 Merge branch 'MDL-63870_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-01-23 00:09:37 +01:00
Eloy Lafuente (stronk7) 69e8445ac2 Merge branch 'MDL-64465_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-01-23 00:01:48 +01:00
Eloy Lafuente (stronk7) 613c607593 Merge branch 'MDL-64412-36' of https://github.com/snake/moodle into MOODLE_36_STABLE 2019-01-22 23:49:13 +01:00
Eloy Lafuente (stronk7) 56310c4e30 Merge branch 'MDL-64629-36' of git://github.com/sarjona/moodle into MOODLE_36_STABLE 2019-01-22 19:00:54 +01:00
Eloy Lafuente (stronk7) f6857e42fe Merge branch 'MDL-64441-36' of git://github.com/sarjona/moodle into MOODLE_36_STABLE 2019-01-22 18:49:17 +01:00
Shamim Rezaie 0e835752a3 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:43:33 +00:00
Tim Hunt 186fa09d2b 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:43:31 +00:00
Sara Arjona c5fcf18d69 Merge branch 'MDL-63480-36' of git://github.com/mihailges/moodle into MOODLE_36_STABLE 2019-01-22 15:19:02 +01:00
Justus Dieckmann d783d4759c MDL-58256 group: prevents users to be added to a group twice 2019-01-22 13:02:22 +01:00
eWallah d5e0ef78b1 MDL-64633 behat: fix FormatterNotFoundException when updating steps. 2019-01-22 11:39:36 +01:00
Sara Arjona 691da3a929 Merge branch 'MDL-64486-36' of git://github.com/peterRd/moodle into MOODLE_36_STABLE 2019-01-22 08:23:20 +01:00
Michael Hawkins 8c28651948 MDL-63892 mod_forum: Updating lib unit test 2019-01-22 13:54:54 +08:00
Michael Hawkins ecc36f6066 MDL-63892 mod_forum: Fix last post details in forum view 2019-01-22 13:54:54 +08:00
Michael Hawkins 7f166e30a7 MDL-63892 mod_forum: Correction to timestamp added to edit strings 2019-01-22 13:54:54 +08:00
Peter 86f1a6ba5f MDL-32096 core_report: Remove duplicate filters in reports
* Remove duplicate filters from activity completion and course completion report pages
2019-01-22 13:41:44 +08:00
Damyon Wiese bad1713693 MDL-63628 accessibility: Trigger file links with keyboard 2019-01-22 08:40:49 +08:00
AMOS bot 94ef41597a Automatically generated installer lang files 2019-01-22 00:09:58 +00:00
David Mudrák 9b90c17f74 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 13:26:33 +01:00
Jake Dallimore 3741df64fe Merge branch 'MDL-28445-36' of git://github.com/peterRd/moodle into MOODLE_36_STABLE 2019-01-21 15:58:50 +08:00
Jun Pataleta 843e909b7f MDL-62666 course: Only set the groups setting to true when necessary
* Plus update the comment to be more descriptive.
2019-01-21 14:43:01 +08:00
Andrew Hancox 7ed127cfbb MDL-62666 course: Ignore restore_general_groups on activity duplication 2019-01-21 14:43:01 +08:00
Mihail Geshoski ee724278d3 MDL-63480 reports: Fix name filters in completion reports 2019-01-21 09:24:08 +08:00
Jake Dallimore cbd56f1537 Merge branch 'MDL-60972-36_delete_section_files' of https://github.com/awagner/moodle into MOODLE_36_STABLE 2019-01-21 09:04:40 +08:00
Tim Hunt aa8e765a5d MDL-64590 questions: wrong comments shown in the state history table 2019-01-18 18:06:50 +00:00
Sara Arjona ee59fe2276 MDL-64629 theme_clean: Remove underscore near the help icon 2019-01-18 14:32:53 +01:00
Sara Arjona c8ebfd55a2 Merge branch 'MDL-62968-36' of git://github.com/mickhawkins/moodle into MOODLE_36_STABLE 2019-01-18 12:39:56 +01:00
Amaia Anabitarte 2fcf9253b7 MDL-64385 user: Case insensitive comparison for email domains 2019-01-18 10:05:56 +01:00
Marcus Boon 2e7607d68c MDL-64599 phpunit: Fix typo in arraydataset 2019-01-18 07:09:06 +10:00
Tim Hunt a7428f69ad MDL-63870 quiz: new preview should abandon, not finish, current attempt 2019-01-17 17:55:39 +00:00
Eloy Lafuente (stronk7) 7412ad6141 weekly release 3.6.2+ 2019-01-17 17:48:02 +01:00
Andreas Wagner 1f7b1ad0f2 MDL-60972 core_course: delete section files, when section is deleted. 2019-01-17 08:22:32 +01:00
Peter 68e6a93c70 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:59:30 +08:00
Eloy Lafuente (stronk7) 1732de328b Merge branch 'MDL-63103-m36' of https://github.com/NeillM/moodle into MOODLE_36_STABLE 2019-01-16 19:02:28 +01:00
Sara Arjona 1e559e85a8 Merge branch 'MDL-63916-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-01-16 15:33:23 +01:00
Ryan Wyllie 59305e78ed MDL-64134 message: hide empty sections in search results 2019-01-16 13:12:20 +01:00
Ryan Wyllie 63ab57ef42 MDL-64166 message: reduce size of conversation counts in overview 2019-01-16 08:50:41 +01:00
Eloy Lafuente (stronk7) 1f0f6452bb Merge branch 'MDL-63607-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-01-16 00:37:09 +01:00
Sara Arjona 41da53abe4 Merge branch 'MDL-64346-36' of git://github.com/abgreeve/moodle into MOODLE_36_STABLE 2019-01-15 15:38:28 +01:00
Adrian Greeve 793727d8f4 MDL-64346 mod_resource: Fix problems with # in file name. 2019-01-15 14:29:18 +01:00
Sara Arjona 1c8abf9e96 Merge branch 'MDL-64171-36' of git://github.com/bmbrands/moodle into MOODLE_36_STABLE 2019-01-15 13:55:04 +01:00
Sara Arjona 6a6d78107c Merge branch 'MDL-64425-36' of git://github.com/lameze/moodle into MOODLE_36_STABLE 2019-01-15 13:21:05 +01:00
Sara Arjona 4944798626 Merge branch 'MDL-64432_m36' of git://github.com/gjb2048/moodle into MOODLE_36_STABLE 2019-01-15 12:57:48 +01:00
Sara Arjona 33788a4b5f Merge branch 'MDL-62439-36' of https://github.com/lucaboesch/moodle into MOODLE_36_STABLE 2019-01-15 12:02:24 +01:00
Sara Arjona 356e345fb5 Merge branch 'MDL-63881-36' of https://github.com/lucaboesch/moodle into MOODLE_36_STABLE 2019-01-15 11:39:02 +01:00
Andrew Nicols 1ed1421f0f MDL-52132 core_question: Comment is different if format has changed 2019-01-15 18:57:16 +11:00
Shamim Rezaie 32636f9c2c MDL-52132 qbehaviour_manualgraded: unit test for changing comment format 2019-01-15 18:57:16 +11:00
Eloy Lafuente (stronk7) 0d3c7b21be Merge branch 'MDL-63677-36' of git://github.com/sarjona/moodle into MOODLE_36_STABLE 2019-01-14 23:03:59 +01:00
Mark Nelson 81eb28ab34 MDL-64519 core_message: add missing strings causing AMOS issues 2019-01-14 13:30:02 +01:00
Sara Arjona 64fd3da15d Merge branch 'MDL-60082-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-01-14 12:26:35 +01:00
Shamim Rezaie 5428bcca6c MDL-64551 core_question: Fix double ampersand escaping in tag button 2019-01-14 18:23:59 +11:00
Mark Nelson 624922d3d5 MDL-64566 core_message: removed unnecessary DB call 2019-01-14 09:46:19 +08:00
Eloy Lafuente (stronk7) 68b59f336b Moodle release 3.6.2 2019-01-12 13:26:00 +01:00
Tim Hunt 5361e60e93 MDL-64465 qtypes: fix incorrect context passed to format_string 2019-01-11 11:12:52 +00:00
Tim Hunt a747d9311a 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:12:37 +00:00
Tim Hunt 814dee2184 MDL-64393 drag-drop qtypes: be more robust when page layout changes 2019-01-11 11:11:50 +00:00
Tim Hunt 7fbca34efb MDL-61441 accesslib: get_users_by_capability groups perf improvement 2019-01-11 10:55:31 +00:00
Sara Arjona 4be3c44a5b 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:23:04 +01:00
Neill Magill 3e14b40724 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 09:03:58 +00:00
VinhLe 173d968f87 MDL-64031 enrol_manual: Fix hard-coded list of user fields.
Respect get_extra_user_fields() in PHP code
2019-01-11 11:37:05 +07:00
VinhLe 0b4bb56b4d 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:29:53 +07:00
Luca Bösch 18581165c5 MDL-63881 tool_dataprivacy: 'Contact the privacy officer' profile link. 2019-01-10 22:17:12 +01:00
Luca Bösch 6efd56e074 MDL-62439 output: Debugstringids in overlay windows. 2019-01-10 22:16:48 +01:00
Sara Arjona dfd605320e weekly release 3.6.1+ 2019-01-10 17:51:31 +01:00
Sara Arjona 8f6ba8afc4 Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2019-01-10 17:51:30 +01:00
Jake Dallimore b41a94128a Merge branch 'MDL-64004-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-01-10 11:00:25 +08:00
AMOS bot 7365115cf3 Automatically generated installer lang files 2019-01-10 00:08:42 +00:00
Eloy Lafuente (stronk7) 5f85b35305 Merge branch 'MDL-64479_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2019-01-09 23:36:57 +01:00
Ryan Wyllie ea2f42bde4 MDL-64043 message: stop group conversation header re-rendering 2019-01-09 18:46:54 +01:00
Marcus Fabriczy c049e374c3 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-09 23:56:28 +10:30
Eloy Lafuente (stronk7) 3dd8792045 Merge branch 'MDL-63686-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-01-09 12:36:33 +01:00
Andrew Nicols a335f9c4c0 MDL-63686 core: recordset => records when fetching contexts 2019-01-09 19:08:08 +08:00
Tim Hunt 6873ac11a0 MDL-64479 dd-qtypes: fix questions with non-consecutive groups 2019-01-09 10:20:01 +00:00
Jake Dallimore a022611e09 Merge branch 'MDL-64375-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-01-09 15:33:27 +08:00
Damyon Wiese 0d72593a7c MDL-62143 accessibility: Label breadcrumbs 2019-01-09 15:18:36 +08:00
Andrew Nicols 97a0132511 Merge branch 'MDL-62550-36-2' of https://github.com/snake/moodle into MOODLE_36_STABLE 2019-01-09 15:10:12 +08:00
Jake Dallimore 210429d952 Merge branch 'MDL-64345-36' of https://github.com/s-cenni/MDL-64345 into MOODLE_36_STABLE 2019-01-09 14:14:28 +08:00
Jake Dallimore aeb7c0026d 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:31:54 +08:00
Jake Dallimore 19c1651247 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:31:52 +08:00
Jake Dallimore f369450561 Merge branch 'MDL-63761-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2019-01-09 09:07:07 +08:00
Eloy Lafuente (stronk7) b60fa84aad Merge branch 'MDL-64285-36' of git://github.com/junpataleta/moodle into MOODLE_36_STABLE 2019-01-09 00:03:13 +01:00
Andrew Nicols 0c8852c98b Merge branch 'MDL-24951_36' of git://github.com/stronk7/moodle into MOODLE_36_STABLE 2019-01-09 06:43:45 +08:00
Andrew Nicols 0f44be2b7a Merge branch 'MDL-64426_36' of git://github.com/stronk7/moodle into MOODLE_36_STABLE 2019-01-09 06:38:34 +08:00
Eloy Lafuente (stronk7) db729d9510 MDL-64426 core_message: fix context::instance_by_id() wrong use 2019-01-08 23:07:22 +01:00
Eloy Lafuente (stronk7) e41fd189dd MDL-24951 mod_forum: Apply new string to related scenarios
Plus amend an scenario name that was clearly incorrect.
2019-01-08 16:51:21 +01:00
Michael Hawkins 279df86c7f MDL-64395 groups: Added XSS Risk to the manage groups capability 2019-01-08 16:26:48 +01:00
Michael Hawkins 2e057f082d MDL-64372 userpix: Escape fullname string on userpix index page 2019-01-08 16:26:48 +01:00
Sara Arjona 20c3619d77 MDL-64222 badge: Removed backpackurl from the edit_form 2019-01-08 16:26:48 +01:00
Eloy Lafuente (stronk7) d21c67114f Merge branch 'MDL-64509-36-enfix' of git://github.com/mudrd8mz/moodle into MOODLE_36_STABLE 2019-01-08 16:18:31 +01:00
Andrew Nicols d55a0b81d6 Merge branch 'MDL-58596-36' of git://github.com/vmdef/moodle into MOODLE_36_STABLE 2019-01-08 16:15:34 +08:00
Andrew Nicols 987e822c5e Merge branch 'MDL-64426-36-2' of https://github.com/snake/moodle into MOODLE_36_STABLE 2019-01-08 16:10:06 +08:00
Leon Stringer 7ad3a22b79 MDL-58596 core_stats: fixed infinite loop cause by DST change 2019-01-08 08:08:14 +00:00
Jake Dallimore 0c638fda5c 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:51:32 +08:00
Jake Dallimore caa2b2ce21 Merge branch 'MDL-63686-36' of git://github.com/andrewnicols/moodle into MOODLE_36_STABLE 2019-01-08 14:38:07 +08:00
Andrew Nicols afba820e1d MDL-63686 core: Preload parent contexts 2019-01-08 14:11:53 +08:00
Andrew Nicols 1e59e03e60 Merge branch 'MDL-24951-36' of git://github.com/Chocolate-lightning/moodle into MOODLE_36_STABLE 2019-01-08 13:52:35 +08:00
Andrew Nicols a155e8cb75 Merge branch 'MDL-64497-m36' of https://github.com/sammarshallou/moodle into MOODLE_36_STABLE 2019-01-08 12:28:56 +08:00
Andrew Nicols 6aa1364030 Merge branch 'MDL-63722-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-01-08 12:12:55 +08:00
Andrew Nicols 691a2997b8 Merge branch 'MDL-64400-36' of git://github.com/aanabit/moodle into MOODLE_36_STABLE 2019-01-08 08:28:21 +08:00
Andrew Nicols bd5464547a Merge branch 'MDL-63276_36' of https://github.com/stronk7/moodle into MOODLE_36_STABLE 2019-01-08 06:56:13 +08:00
Eloy Lafuente (stronk7) 90fc88b56d Merge branch 'MDL-63809-36-5' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2019-01-07 22:13:00 +01:00
Helen Foster bb7ebc0ee5 MDL-64509 lang: Import fixed English strings (en_fix)
Significant string change: enablerunnow_desc,tool_task - including
mention of pathtophp requirement
2019-01-07 20:09:48 +01:00
Sara Arjona 8555878283 Merge branch 'MDL-64419-36' of git://github.com/bmbrands/moodle into MOODLE_36_STABLE 2019-01-07 14:18:23 +01:00
Andrew Nicols 5a04efc1eb Merge branch 'MDL-57636_m36' of https://github.com/dasistwas/moodle into MOODLE_36_STABLE 2019-01-07 13:48:08 +08:00
David Bogner 352ddf9d42 MDL-57636 frontpage: Fix display enrolled courses 2019-01-04 11:00:25 +01:00
Damyon Wiese 20ad67d21d 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:38 +08:00
sam marshall 6e7597f569 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 17:05:47 +00:00
Jake Dallimore 1f2934b656 Merge branch 'MDL-49651-36' of git://github.com/Chocolate-lightning/moodle into MOODLE_36_STABLE 2019-01-03 10:46:36 +08:00
Peter a03105e4b1 MDL-64486 mod_glossary: Add missing separator for special links 2019-01-03 08:39:59 +08:00
Eloy Lafuente (stronk7) 7bdf798d6a MDL-63276 environment: PHP 7.1 and Moodle 3.2 required 2019-01-03 01:19:48 +01:00
Eloy Lafuente (stronk7) fd1fb3e6db 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.
2019-01-03 01:19:48 +01:00
Jake Dallimore 61bdf6fab3 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:39 +08:00
Jake Dallimore bed5aa4d13 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:34 +08:00
Peter 07deeb497c 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:36:31 +08:00
Michael Hawkins 2fd170c550 MDL-62968 Boost: Adding editor SCSS support 2019-01-02 14:21:22 +08:00
Damyon Wiese e607001e7e 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:25:04 +08:00
Amaia Anabitarte 844a59c301 MDL-64400 core_messages: Mark notifications sent via email as read 2018-12-27 09:18:14 +01:00
Amaia Anabitarte f10c2934aa MDL-64400 core_messages: Allow cron to delete unread notifications too 2018-12-27 09:18:14 +01:00
Mathew efe7f18200 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:35:38 +08:00
Mathew 0df8f503a3 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:14:39 +08:00
Gareth Barnard 6a9e87112c MDL-64432 theme_bootstrapbase: Favourites myoverview icon tooltip. 2018-12-21 11:24:20 +00:00
AMOS bot c4b911d645 Automatically generated installer lang files 2018-12-21 00:08:07 +00:00
Sara Arjona 7534d21e59 MDL-64441 badges: Remove notice when language is empty 2018-12-20 16:29:28 +01:00
Víctor Déniz Falcón 524e1fa64e MDL-58596 core_stats: unit test for stats_get_base_weekly 2018-12-20 13:59:34 +00:00
Adrian Greeve 7f234acc6e weekly release 3.6.1+ 2018-12-20 11:09:17 +01:00
Adrian Greeve 1003775c7c NOBUG: Fixed SVG browser compatibility 2018-12-20 11:09:17 +01:00
Adrian Greeve 025c532aa9 Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2018-12-20 11:09:16 +01:00
Andrew Nicols b1c50364d0 Merge branch 'MDL-64038-36' of git://github.com/bmbrands/moodle into MOODLE_36_STABLE 2018-12-20 13:56:45 +08:00
Andrew Nicols eac010fbb9 Merge branch 'MDL-63512-36' of git://github.com/peterRd/moodle into MOODLE_36_STABLE 2018-12-20 13:03:49 +08:00
Peter c556416385 MDL-63512 mod_lesson: Update the lesson css to exclude mediaplugin div 2018-12-20 12:51:04 +08:00
Peter 1f91c082c5 MDL-63512 mod_lesson: Fix video links provided in feedback 2018-12-20 12:51:04 +08:00
Stephen Bourget f4c843d00b MDL-63614 badges: Add COMPLETION_FAIL support to badge criteria 2018-12-19 10:30:27 -05:00
Adrian Greeve 421358bc47 Merge branch 'MDL-64392-36' of git://github.com/bmbrands/moodle into MOODLE_36_STABLE 2018-12-19 12:04:29 +01:00
Adrian Greeve 7b661b8d6f MDL-59954 course: Remove unused global. 2018-12-19 10:48:27 +01:00
Peter 74780ef62b 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 10:47:01 +01:00
Shamim Rezaie a9223b49a0 MDL-63722 javascript: misinterpret as outside click if DOM is modified 2018-12-19 16:06:38 +11:00
Jake Dallimore 50e3951acc Merge branch 'MDL-64229_36' of git://github.com/markn86/moodle into MOODLE_36_STABLE 2018-12-19 11:37:40 +08:00
Jake Dallimore e4cac445c2 Merge branch 'MDL-64216-m36' of https://github.com/micaherne/moodle into MOODLE_36_STABLE 2018-12-19 11:08:05 +08:00
Andrew Nicols 1dca8a6679 Merge branch 'MDL-63512-36' of git://github.com/peterRd/moodle into MOODLE_36_STABLE 2018-12-19 10:00:10 +08:00
AMOS bot 2f90c2a35d Automatically generated installer lang files 2018-12-19 00:09:03 +00:00
Simey Lameze 6f76116cd2 MDL-64425 block_timeline: fix incorrect get_string parameter 2018-12-19 07:42:25 +08:00
Adrian Greeve 30ff131e71 Merge branch 'MDL-64025-36' of https://github.com/christianwolters/moodle into MOODLE_36_STABLE 2018-12-18 16:00:47 +01:00
Bas Brands 6d66740146 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:39:17 +01:00
Michael Hawkins a7c9b0b43d 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:12:47 +08:00
Michael Hawkins 38a757cc18 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:12:47 +08:00
Shamim Rezaie 10c38b2e34 MDL-63809 question: handling bad questions in question_has_capability_on 2018-12-18 15:44:20 +11:00
Tim Hunt 636a752d11 MDL-63809 question bank: ensure question_has_capability_on can be called 2018-12-18 15:44:20 +11:00
Damyon Wiese 73d4d4f8c3 MDL-60082 assign: Grading worksheet with no grade
If the grade type is NONE - do not include the maxgrade column.
2018-12-18 11:14:17 +08:00
Jake Dallimore 909b8fe981 Merge branch 'MDL-64309_36' of git://github.com/markn86/moodle into MOODLE_36_STABLE 2018-12-18 11:11:45 +08:00
Damyon Wiese 1e96000bb3 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:08:17 +08:00
Bas Brands ceb92a3553 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:51:19 +01:00
John Beedell 79265f94a9 MDL-64404 qtype: gapselect currency like options dont show 2018-12-17 12:34:31 +00:00
Sara Cenni 9d235abdb4 MDL-64345 core: Make FB logo upgrade cross-DB compatible 2018-12-17 11:22:27 +01:00
Jun Pataleta c9e518f483 Merge branch 'MDL-59629-36' of git://github.com/peterRd/moodle into MOODLE_36_STABLE 2018-12-17 15:56:13 +08:00
Andrew Nicols bcc163c6fd MDL-63607 behat: Remove theme from config whitelist 2018-12-17 15:55:03 +08:00
Damyon Wiese 391eed0198 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:47:49 +08:00
Tomasz Muras c9f765452f MDL-52966 core: static cache fix for file types. 2018-12-17 15:40:39 +08:00
Andrew Nicols 6dea9ae21e Merge branch 'MDL-61633-36' of https://github.com/lucisgit/moodle into MOODLE_36_STABLE 2018-12-17 15:29:12 +08:00
Andrew Nicols b9ada50b92 Merge branch 'MDL-60518-36' of git://github.com/aanabit/moodle into MOODLE_36_STABLE 2018-12-17 14:59:39 +08:00
Jun Pataleta ff42789a76 Merge branch 'MDL-63260_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2018-12-17 14:10:12 +08:00
Damyon Wiese 174c288c0f 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:02:56 +08:00
Damyon Wiese 1e6296c745 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:46 +08:00
Jake Dallimore 4cb644cf24 Merge branch 'MDL-62756_MOODLE_36' of https://github.com/miotto/moodle into MOODLE_36_STABLE 2018-12-17 11:24:59 +08:00
Andrew Nicols 867a3147ad Merge branch 'MDL-64388-36' of git://github.com/bmbrands/moodle into MOODLE_36_STABLE 2018-12-17 09:14:36 +08:00
Christian Wolters 26640d3831 MDL-64025 admin_bookmarks: Enable bookmarking of admin categories 2018-12-16 15:48:12 +01:00
AMOS bot 24aa36db21 Automatically generated installer lang files 2018-12-15 00:09:15 +00:00
Bas Brands 0cd2c36605 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:30:52 +01:00
Bas Brands ea6ae74019 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:13:51 +01:00
Bas Brands 99440d3db7 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:30:30 +01:00
Mirko Otto 89f8d4adde MDL-62756 form: Remove any click handler first.
The handler has the old state variable. Remove any click handler first.
2018-12-14 10:30:49 +01:00
Amaia Anabitarte 7b11b53d51 MDL-60518 core_competency: Set $USER global variable for tests 2018-12-14 10:25:44 +01:00
Frédéric Massart dd815d254f MDL-60518 core_user: A user with ID 0 is never a real user 2018-12-14 10:25:44 +01:00
Jun Pataleta aa0b2c74dd MDL-64285 core: Skip 64 bits check for 32-bit PHP versions in unit tests 2018-12-14 11:21:00 +08:00
Jun Pataleta 06b76ab9c8 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:21:00 +08:00
Peter 90ec922213 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:30:07 +08:00
Peter 54ff8c77bf MDL-63512 mod_lesson: Fix video links provided in feedback 2018-12-14 10:27:24 +08:00
Jake Dallimore 9c85ac5d89 weekly release 3.6.1+ 2018-12-14 07:51:49 +08:00
Jake Dallimore 4a087d2701 Merge branch 'install_36_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_36_STABLE 2018-12-14 07:51:48 +08:00
Tony Butler 79c7162899 MDL-61633 assignfeedback_editpdf: Scroll back to top when changing pages 2018-12-13 12:18:43 +00:00
Mark Nelson fd12e12d8c MDL-64229 core_message: ensure profile pic links to profile 2018-12-13 12:15:13 +08:00
Jake Dallimore 19a759649c Merge branch 'MDL-62624-36' of git://github.com/mihailges/moodle into MOODLE_36_STABLE 2018-12-12 16:13:44 +08:00
Damyon Wiese 467efca6aa MDL-63916 backup: Do not display timestamp
Convert the date+time field to a userdate for display.
2018-12-12 12:20:13 +08:00
Jun Pataleta 39fbf414ad Merge branch 'MDL-41507-36' of git://github.com/rezaies/moodle into MOODLE_36_STABLE 2018-12-12 11:17:40 +08:00
Shamim Rezaie 6299c142c4 MDL-41507 core_group: Consistent default value for FEATURE_GROUPS 2018-12-12 14:04:47 +11:00
Jake Dallimore 17fccfc78b Merge branch 'MDL-64003-36' of https://github.com/aanabit/moodle into MOODLE_36_STABLE 2018-12-12 10:03:22 +08:00
Jake Dallimore 7c073af175 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:43:04 +08:00
Jake Dallimore 3b114369bc Merge branch 'MDL-63887_36' of git://github.com/markn86/moodle into MOODLE_36_STABLE 2018-12-12 09:42:55 +08:00
Jake Dallimore 1641091ae7 Merge branch 'MDL-63150-36' of git://github.com/peterRd/moodle into MOODLE_36_STABLE 2018-12-12 08:32:35 +08:00
Jake Dallimore 6b391174e4 Merge branch 'MDL-63145-36' of git://github.com/peterRd/moodle into MOODLE_36_STABLE 2018-12-12 08:30:00 +08:00
Jake Dallimore 5c2cae3d9c Merge branch 'MDL-63147-36' of git://github.com/peterRd/moodle into MOODLE_36_STABLE 2018-12-12 08:25:28 +08:00
Peter 8eae354c0f 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:32:09 +08:00
Peter 8a1ebcf100 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:18:40 +08:00
Peter c8289ad180 MDL-63147 mod_resource: Accept userid in resource event_action 2018-12-12 07:08:25 +08:00
Tim Hunt a637d77826 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 14:04:13 +00:00
Amaia Anabitarte 00302ce7a2 MDL-64003 core_message: Use sql_like_escape() in message_search_users 2018-12-11 11:41:52 +01:00
Jake Dallimore 9617c3a660 Merge branch 'MDL-64357_36' of git://github.com/markn86/moodle into MOODLE_36_STABLE 2018-12-11 17:44:27 +08:00
Mark Nelson 0ccc7a8a5c MDL-64357 ltiservice_gradebookservices: updated unit tests 2018-12-11 17:03:15 +08:00
Claude Vervoort 8d84ee97da MDL-64357 ltiservice_gradebookservices: fix cleanup deleting lineitems 2018-12-11 17:03:15 +08:00
Damyon Wiese 59f6c0c7dd MDL-64313 assign: feedback viewed event
When a student views their submission, if it has feedback create an event.
2018-12-11 14:07:12 +08:00
Jake Dallimore c8de0b91a0 Merge branch 'MDL-62922-36' of git://github.com/junpataleta/moodle into MOODLE_36_STABLE 2018-12-11 12:50:36 +08:00
Jun Pataleta 841c9314ba Merge branch 'MDL-64280-36' of https://github.com/lucaboesch/moodle into MOODLE_36_STABLE 2018-12-11 09:53:51 +08:00
AMOS bot bcab22a63b Automatically generated installer lang files 2018-12-11 00:10:00 +00:00
Luca Bösch 3fba5b6826 MDL-64280 core_outcome: Add/remove outcome buttons style. 2018-12-10 17:56:13 +01:00
Ryan Wyllie 67db9af9db MDL-64275 message: fix update unread conversation counts 2018-12-10 15:07:22 +08:00
Jun Pataleta 6b34db6b00 Merge branch 'MDL-62061-36' of git://github.com/abgreeve/moodle into MOODLE_36_STABLE 2018-12-10 14:46:44 +08:00
Mihail Geshoski 36d683c805 MDL-62624 lesson: Fix alignment in matching questions in boost 2018-12-10 13:47:37 +08:00
Jun Pataleta 6fe370eef9 Merge branch 'MDL-64332_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2018-12-10 09:37:51 +08:00
Jake Dallimore 11d0c68d56 weekly release 3.6.1+ 2018-12-10 08:10:21 +08:00
Andrew Nicols 0cd5cf60de Merge branch 'MDL-46783-36-fix' of https://github.com/snake/moodle into MOODLE_36_STABLE 2018-12-10 08:09:09 +08:00
Jake Dallimore e8cabad431 MDL-46783 accesslib: add recordrtc cap check to match master branch 2018-12-10 08:04:54 +08:00
Tim Hunt 343f4e9d56 MDL-64332 questions: idnumber should not prevent easy duplication 2018-12-06 14:41:58 +00:00
Adrian Greeve 6ff8d9bb2c 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:37:41 +01:00
papillon326 53949e65a7 MDL-63887 auth_ldap: avoid infinite loop when search limit is reached 2018-12-06 15:40:34 +08:00
papillon326 946bef37bf MDL-63887 auth_ldap: changed variable names to be conform to core 2018-12-06 15:40:34 +08:00
Jun Pataleta ed9ee5743d Merge branch 'MDL-64283-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE 2018-12-06 14:57:41 +08:00
Damyon Wiese 115b696f30 MDL-64283 competency: Correct numbering in tests 2018-12-06 14:27:26 +08:00
Jake Dallimore 8f0bd4fb15 Merge branch 'MDL-63710-MOODLE_36' of https://github.com/ilya-catalyst/moodle into MOODLE_36_STABLE 2018-12-06 11:41:11 +08:00
Jake Dallimore 4071cbebf5 Merge branch 'MDL-46783_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE 2018-12-06 10:23:32 +08:00
Ilya Tregubov 3b9f40920a MDL-63710 repository: Delete orphaned file records. 2018-12-06 12:35:47 +11:00
Jun Pataleta 866de1e3ff Merge branch 'MOODLE_36_STABLE-MDL-64290-imscc-restore-temp-dir' of https://github.com/mspall/moodle into MOODLE_36_STABLE 2018-12-06 08:57:09 +08:00
Michael Spall 60c93464b5 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 11:09:20 -07:00
Tim Hunt 0c081d2468 MDL-46783 accesslib: add tests for MDL-63818
MDL-46783 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-63818
at the time, but it is now, so here they are.
2018-12-05 16:46:20 +00:00
Tim Hunt 550c4bdf6e 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:46:15 +00:00
Mark Nelson 54fc0f1b28 MDL-64309 core_message: minor string changes to drawer 2018-12-05 19:34:12 +08:00
Jun Pataleta 6522f66dd7 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:32:09 +08:00
Ryan Wyllie e7691f15b9 MDL-64274 message: deleteMessages in message_repository return promise 2018-12-05 14:57:43 +08:00
Jake Dallimore fe1d7d118e Merge branch 'MDL-64198-36' of https://github.com/lucaboesch/moodle into MOODLE_36_STABLE 2018-12-05 14:30:43 +08:00
Damyon Wiese 7e2f393054 Merge branch 'MDL-60267-master' of https://github.com/rogerbaba/moodle into MOODLE_36_STABLE 2018-12-05 12:46:51 +08:00
Eloy Lafuente (stronk7) d09dc52b0a Moodle release 3.6.1 2018-12-04 17:42:58 +01:00
Luca Bösch c192c5e4e3 MDL-64198 course: set formatted modulename for togglecompletion js. 2018-12-04 14:33:34 +01:00
Michael Aherne 3ff4fc8e45 MDL-64216 privacy: Split query to use indexes. 2018-12-04 13:31:10 +00:00
Eloy Lafuente (stronk7) 6e19850f6e weekly release 3.6+ 2018-12-04 13:06:09 +01:00
Bas Brands 5d30474242 MDL-63223 theme_boost: flexbox for login pagin footer 2018-12-04 12:06:49 +08:00
Jun Pataleta 1b972c31ac Merge branch 'MDL-64307_36' of git://github.com/markn86/moodle into MOODLE_36_STABLE 2018-12-04 12:03:08 +08:00
Mark Nelson 29b6ac23e9 MDL-64307 core_message: do not include disabled conversations in count 2018-12-04 11:48:54 +08:00
Mark Nelson 44b6ffb68c MDL-64307 core: set all individual conversations to enabled 2018-12-04 11:44:59 +08:00
Jun Pataleta 79abbd9adc Merge branch 'MDL-64206_36' of git://github.com/markn86/moodle into MOODLE_36_STABLE 2018-12-04 11:13:37 +08:00
Tim Hunt 270524858e MDL-64286 qtype_gapselect: removed unneeded line of code
The extended Behat test show the qtype works fine without it.
2018-12-04 11:12:52 +08:00
Damyon Wiese 60f9a401a9 Merge branch 'MDL-64155-master' of git://github.com/vmdef/moodle into MOODLE_36_STABLE 2018-12-03 15:26:56 +08:00
Tim Hunt ac0b8201a9 MDL-63459 qtype_calculatedmulti: fix incorrect hint object type 2018-12-03 14:25:41 +08:00
Tim Hunt be27fc0fe3 MDL-63459 qtype_calculatedmulti: unit test should test this qtype
This also demonstrates the bug to be fixed
2018-12-03 14:25:17 +08:00
Mark Nelson ebd104448f MDL-64206 core: updated FB logo URL 2018-12-03 12:23:47 +08:00
Andrew Nicols c69f425a7a Merge branch 'MDL-64300_36' of git://github.com/stronk7/moodle into MOODLE_36_STABLE 2018-12-03 08:35:32 +08:00
Eloy Lafuente (stronk7) e38e718441 MDL-64300 upgrade: add 3.6.0 separation line to all upgrade scripts 2018-12-02 18:37:59 +01:00
Eloy Lafuente (stronk7) cb628a9a08 Moodle release 3.6 2018-12-02 00:18:46 +01:00
Eloy Lafuente (stronk7) 0cbcd08946 NOBUG: Change travis.yml to MOODLE_36_STABLE 2018-12-02 00:18:45 +01:00
Eloy Lafuente (stronk7) 5ff115743c Moodle release 3.6rc3 2018-11-30 18:02:17 +01:00
Eloy Lafuente (stronk7) ea8c34da48 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2018-11-30 18:02:15 +01:00
David Monllao 823fc75421 Merge branch 'MDL-64282' of git://github.com/stronk7/moodle 2018-11-30 13:02:47 +01:00
Jun Pataleta b5e4b37aae Merge branch 'MDL-64000-master' of git://github.com/andrewnicols/moodle 2018-11-30 16:13:38 +08:00
Andrew Nicols 84dad5bffa MDL-64000 usertours: Add final step to new tours
AMOS BEGIN
  CPY [tour_2_title_end,tool_usertours],[tour_final_step_title,tool_usertours]
AMOS END
2018-11-30 16:04:33 +08:00
Jun Pataleta 9101a01fb8 Merge branch 'MDL-64000-master' of git://github.com/andrewnicols/moodle 2018-11-30 13:46:09 +08:00
Elizabeth Dalton fbb219617b MDL-64000 usertours: Add tours for key 3.6 features
Tours originally written by Elizabeth Dalton, Mangled a little by Andrew
Nicols and Sander Bangma, and language tweaks by Helen Foster.

AMOS BEGIN
 CPY [pluginname,block_recentlyaccessedcourses],[tour3_title_recentcourses,tool_usertours]
 CPY [pluginname,block_myoverview],[tour3_title_overview,tool_usertours]
 CPY [groupmessages,core_message],[tour4_title_groupconvo,tool_usertours]
 CPY [favourites,moodle,core_message],[tour4_title_starred,tool_usertours]
AMOS END

Co-authored-by: Andrew Nicols <andrew@nicols.co.uk>
Co-authored-by: Sander Bangma <sander@moodle.com>
Co-authored-by: Helen Foster <helen@moodle.org>
2018-11-30 13:23:53 +08:00
Jun Pataleta dad4bcf90c Merge branch 'MDL-64214-master' of git://github.com/junpataleta/moodle 2018-11-30 09:53:34 +08:00
Jun Pataleta 85354cb79e MDL-64214 calendar: Populate the groups select box on page load 2018-11-30 09:25:42 +08:00
AMOS bot 74afdef07d Automatically generated installer lang files 2018-11-30 00:07:31 +00:00
Eloy Lafuente (stronk7) bcd85def5c MDL-64282 versions: main version bump 2018-11-29 18:28:33 +01:00
Eloy Lafuente (stronk7) 085353b315 MDL-64282 versions: bump all versions and requires near release
version = 2018120300 release version
requires= 2018112800 current rc2 (week7roll1) version
2018-11-29 18:24:08 +01: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
Jun Pataleta 98fada12c4 Merge branch 'MDL-64228-master' of git://github.com/jleyva/moodle 2018-11-29 20:51:52 +08:00
Damyon Wiese 1a368ec351 Merge branch 'MDL-64264_master' of git://github.com/markn86/moodle 2018-11-29 14:46:55 +08:00
Jun Pataleta d71865419b Merge branch 'MDL-64227-master' of git://github.com/damyon/moodle 2018-11-29 14:07:26 +08:00
Simey Lameze 9cf58f070d MDL-64214 calendar: fix failing unit tests 2018-11-29 13:59:36 +08:00
Simey Lameze b13fe83adb MDL-64214 core_calendar: fix event types form element handling 2018-11-29 13:59:32 +08:00
Mark Nelson 44b92ecdfc MDL-64264 core_message: use non-deprecated WS for deletion
Also fixed typo in function name.
2018-11-29 12:41:57 +08:00
Damyon Wiese dda38f91ab Merge branch 'MDL-64245-master-fix-1' of git://github.com/ryanwyllie/moodle 2018-11-29 11:04:38 +08:00
Ryan Wyllie 9aaf61346f MDL-64245 message: fix scrollback for conversation loaded via contact 2018-11-29 10:46:13 +08:00
Jun Pataleta 7d82e35e39 MDL-64245 message: Ditch sender+lastmessage lang string for simplicity
Passing the last message (which can virtually contain any character) as
a parameter for the {{#str}} mustache helper can break the JSON parsing
which eventually leads to the breakage of the messaging UI.
So for simplicity, revert the addition of the 'conversationlastmessage'
language string and render the sender and the last message as separate
elements.
2018-11-29 10:45:22 +08:00
Ryan Wyllie 030f164ecc MDL-64245 message: fix contacts list height on Safari 10 2018-11-29 10:45:22 +08:00
Ryan Wyllie b154e2bf7b MDL-64245 message: fix loading convo by id with lots of messages 2018-11-29 10:45:22 +08:00
AMOS bot 0a83e9f713 Automatically generated installer lang files 2018-11-29 00:08:12 +00:00
Andrew Nicols cb14e3bc08 Merge branch 'MDL-63988-master' of git://github.com/bmbrands/moodle 2018-11-29 07:26:45 +08:00
Bas Brands d996eb941f MDL-63988 core_my: always honour showshortname and summary heading
* make the summaryview heading semantically correct for boost where titles
are h5 and headings within the blocks should have h6
* style the heading to use h5
* add clean theme .h5 class for dashboard blocks
2018-11-28 17:36:21 +01:00
Bas Brands f87181fdaf MDL-63988 core_my: add course shortname to dashboard blocks …
* all dashboard card templates moved to /course/templates/
* added aria labels for course short name
* removed ":" from other course aria strings to improve screenreader output
2018-11-28 17:36:20 +01:00
David Monllao df6d0b6d45 Moodle release 3.6rc2 2018-11-28 11:23:40 +01:00
David Monllao c8527895b0 NOBUG: Fixed SVG browser compatibility 2018-11-28 11:23:38 +01:00
Juan Leyva 676545bc66 MDL-64228 nextcloud: Handle the offline parameter in send_file
This will neew a follow-up issue.
This patch is just preventing downloading the HTML popup code when a file is not found.
Ideally, we should be able to serve the original file using the system OAuth.
2018-11-28 10:21:27 +01:00
Jun Pataleta 5aba38cbc1 Merge branch 'MDL-64223-master' of https://github.com/snake/moodle 2018-11-28 13:59:50 +08:00
Damyon Wiese da868a1e32 MDL-64227 nextcloud: Small layout for login links
When we need to show a login link, we don't want the normal page layout because we are in an iframe
already. Use the embedded layout to reduce the clutter of the page.
2018-11-28 12:51:31 +08:00
Andrew Nicols b1e01063a8 Merge branch 'MDL-64224-master' of https://github.com/snake/moodle 2018-11-28 12:02:34 +08:00
Andrew Nicols 3dd518b7d2 Merge branch 'MDL-64217-master' of git://github.com/ryanwyllie/moodle 2018-11-28 11:08:22 +08:00
Andrew Nicols c7891de160 Merge branch 'MDL-64207-master' of git://github.com/mihailges/moodle 2018-11-28 10:39:38 +08:00
Ryan Wyllie c337741524 MDL-64099 message: fix lazy load list overflow 2018-11-28 10:25:29 +08:00
Damyon Wiese 2a9e70a818 Merge branch 'MDL-64099-master-fix' of git://github.com/junpataleta/moodle 2018-11-28 10:15:35 +08:00
Jun Pataleta 494575bc55 MDL-64099 message: Show last message for individual messages 2018-11-28 09:27:06 +08:00
Jake Dallimore e412548506 MDL-64224 core_message: fix for isfavourite in api::get_conversation() 2018-11-28 09:09:07 +08:00
Eloy Lafuente (stronk7) d67e734678 Merge branch 'MDL-64220-master' of git://github.com/damyon/moodle 2018-11-27 16:47:10 +01:00
Bas Brands f3194f39bb MDL-64099 message: group conversation heading html
* Fix for IE11 group conversation header image sticking to group name
2018-11-27 13:15:22 +01:00
Bas Brands 4d446b8814 MDL-64099 message: last message container minimum size
* empty last message containers should have a minimum size
to ensure list-group-item element are in the right place.
2018-11-27 12:44:43 +01:00
Jake Dallimore 236f56d906 MDL-64223 libraries: PHP7.1 compatibility fixes for Jabber lib 2018-11-27 16:40:35 +08:00
Andrew Nicols d9c72b7df9 Merge branch 'MDL-64161-master' of git://github.com/abgreeve/moodle 2018-11-27 15:13:16 +08:00
Damyon Wiese ff015b5f7a MDL-64220 privacy: Clean path params
We need to consistently clean the path params before we use them. This
shows a difference on windows where dir separators are different.
2018-11-27 15:01:41 +08:00
Adrian Greeve 5c9bc966eb MDL-64161 gradereport_singleview: Single updates reported correctly.
If there is an error with the update of individual entries this is
also correctly displayed as not being updated.
2018-11-27 15:01:33 +08:00
Jun Pataleta 79182e7ae5 Merge branch 'MDL-64181-master-fix' of git://github.com/andrewnicols/moodle 2018-11-27 14:44:30 +08:00
Andrew Nicols 23e347bb32 MDL-64181 core: Ensure that self is included in parentage 2018-11-27 14:42:40 +08:00
Ryan Wyllie 5f79d8f314 MDL-64217 bootstrapbase: add icon-size- class to undo.less 2018-11-27 13:51:22 +08:00
Andrew Nicols 1add1cd644 Merge branch 'MDL-64047-master' of https://github.com/snake/moodle 2018-11-27 11:51:48 +08:00
Jun Pataleta e8eae37607 Merge branch 'MDL-64181-master' of git://github.com/damyon/moodle 2018-11-27 11:47:15 +08:00
Andrew Nicols c45d11de06 Merge branch 'MDL-64161-master' of git://github.com/abgreeve/moodle 2018-11-27 11:36:42 +08:00
Andrew Nicols 3bf11f7335 Merge branch 'MDL-64170-master-fix' of git://github.com/junpataleta/moodle 2018-11-27 11:07:13 +08:00
Jun Pataleta d82cc9f297 MDL-64170 block_myoverview: Behat fix 2018-11-27 10:58:04 +08:00
Jun Pataleta a75af1d053 Merge branch 'MDL-64099-master' of git://github.com/ryanwyllie/moodle 2018-11-27 10:53:04 +08:00
Ryan Wyllie 12d238100d MDL-64099 message: fix last message and date in group conversations 2018-11-27 10:51:39 +08:00
Bas Brands 99cbd6197a MDL-64099 message: correct dropdown container html
in the bootstrapbase overridden template <ul> should
be used for the dropdown container
2018-11-27 10:51:04 +08:00
Bas Brands 4631749c5a MDL-64099 message: Hide scrollbar on section collapsing 2018-11-27 10:51:04 +08:00
Bas Brands 347fb901a7 MDL-64099 message: Highlight the collapsible header on hover 2018-11-27 10:51:04 +08:00
Bas Brands dfd6eec2b4 MDL-64099 message: Make collapsible headers bold 2018-11-27 10:51:04 +08:00
Bas Brands 986d1a20f6 MDL-64099 message: Move timestamps all the way to the right 2018-11-27 10:48:52 +08:00
Bas Brands e2cf9af22d MDL-64099 message: conversation long sender names truncate 2018-11-27 10:48:52 +08:00
Bas Brands 2edfbf880a MDL-64099 message: Align group image to container top 2018-11-27 10:48:52 +08:00
Bas Brands e677e0e53b MDL-64099 message: Replace badge with rectangular shape 2018-11-27 10:48:52 +08:00
Bas Brands 051c675fd2 MDL-64099 message: Add a border in between messages and contacts 2018-11-27 10:48:52 +08:00
Bas Brands 71b13a84a4 MDL-64099 message: Add sender name to conversation preview in overview 2018-11-27 10:48:52 +08:00
Ryan Wyllie 302586a5bc MDL-64099 message: Change icons for select and selected messages 2018-11-27 10:47:59 +08:00
Ryan Wyllie 41cc9fbb57 MDL-64099 message: move delete messages icon to the right 2018-11-27 10:47:59 +08:00
Ryan Wyllie 2809ab7b52 MDL-64099 message: Align the icons and avatar at the top of the header 2018-11-27 10:47:59 +08:00
Ryan Wyllie c483a8eee7 MDL-64099 message: remove conversation name link underline 2018-11-27 10:47:59 +08:00
Ryan Wyllie a009ce6014 MDL-64099 message: de-emphasize participant count in group conversation 2018-11-27 10:47:59 +08:00
Ryan Wyllie a471607457 MDL-64099 message: increase margins between messages in conversations 2018-11-27 10:47:59 +08:00
Ryan Wyllie af3cfc7729 MDL-64099 message: bold senders name in message 2018-11-27 10:47:59 +08:00
Andrew Nicols 999030766b Merge branch 'MDL-64139-master' of git://github.com/ryanwyllie/moodle 2018-11-27 09:17:18 +08:00
Jake Dallimore e4088b7582 MDL-64047 core_message: test get_contact_requests() with blocked users 2018-11-27 08:55:35 +08:00
Jake Dallimore e492a5540d MDL-64047 core_message: contact request count must exclude blocked users 2018-11-27 08:46:25 +08:00
Damyon Wiese a2cb00b655 MDL-64181 javascript: Recursive template fix
This change prevents template rendering from waiting for itself, but does
allow it to wait for another async call to render.
2018-11-27 08:44:36 +08:00
David Monllao b14ad6e17d Merge branch 'MDL-64205-master-sarunconfirmeduser' of git://github.com/mudrd8mz/moodle 2018-11-26 15:42:26 +01:00
David Mudrák 87bb5954eb MDL-64205 privacy: Delete orphaned data request records on upgrade
As a result of the bug, some requests can be orphaned - the linked user
record may not exist any more. This is a cleanup of such records.
2018-11-26 14:17:04 +01:00
David Monllao 65c6723681 Merge branch 'MDL-64140-master' of https://github.com/snake/moodle 2018-11-26 13:27:24 +01:00
Ryan Wyllie 3528c86c12 MDL-64139 message: load conversation counts async 2018-11-26 14:36:35 +08:00
David Monllao 9f61908ccd MDL-64170 block_myoverview: Extend fix to aria label 2018-11-26 05:44:00 +01:00
David Monllao 5cd2cd385c Merge branch 'MDL-64170-master' of git://github.com/bmbrands/moodle 2018-11-26 05:43:02 +01:00
David Monllao bb63b48bcb Merge branch 'MDL-64173-master' of git://github.com/bmbrands/moodle 2018-11-26 05:36:57 +01:00
David Monllao 4bcdf02c5f Merge branch 'MDL-64172-master' of git://github.com/bmbrands/moodle 2018-11-26 04:52:34 +01:00
Adrian Greeve 3e2b8b21c6 MDL-64161 gradereport_singleview: Behat test for out of bounds grade. 2018-11-26 11:44:26 +08:00
Adrian Greeve f2462522f6 MDL-64161 gradereport_singleview: Stop updating grades with errors. 2018-11-26 11:44:26 +08:00
Jake Dallimore 36fabf72c0 MDL-64140 core_message: test unread counts with dataprovider in api
The 3 methods used to test this function are superceded by the cases in
the dataprovider, so let's remove these and use the provider instead.
2018-11-26 10:54:29 +08:00
Jake Dallimore b402a163e3 MDL-64140 core_message: add get_unread_conversation_counts() web service 2018-11-26 10:54:18 +08:00
Mihail Geshoski bde5947d13 MDL-64207 gradebook: Fix grader report misalignment 2018-11-26 10:43:25 +08:00
Andrew Nicols 8dbaf173b9 Merge branch 'MDL-64167-master-2' of https://github.com/snake/moodle 2018-11-26 09:07:38 +08:00
Jake Dallimore 7f6f45c460 MDL-64167 core_message: fix counts to exclude 'self' conversations 2018-11-26 08:52:55 +08:00
Jake Dallimore 425f5adcca MDL-64167 core_message: get_conversations() excludes self conversations
The UI can't handle these, so for now, let's not return them.
2018-11-26 08:52:55 +08:00
Jake Dallimore cb38961988 MDL-64167 core_message: get_conversations() handles self conversations
Those individual conversations created with one's self (via admin user
bulk actions) are now supported in get_conversations(). These had two
records with the same userid in the message_conversation_members table.
The following adjustments have been made to accomodate these:
- Member count adjusted to read 1, not 2 for 'self' conversations.
- Member information for the current user now returned for 'self'
conversations.
- The method now tracks 'self' conversations via $selfconversations.
2018-11-26 08:52:54 +08:00
Jake Dallimore ad5de40c49 MDL-64167 core_message: fix for sending bulk messages from site admin
This ensures the following:
- An admin/manager can send a message to all users, including themself,
without any errors.
2018-11-26 08:52:53 +08:00
Bas Brands 02383d7119 MDL-64173 block_myoverview: remove heading class from course title
Using <h4> on the course name titles is symantically incorrect
To align with the other views the heading tag has been removed.
2018-11-25 13:44:35 +01:00
Bas Brands ecefd2d5b5 MDL-64172 block_myoverview: use .text-primary to colour star icons
Using the .text-primary class allows colour to be overridden easily
This will back the dashboard icons look consistent with the messaging icons.
2018-11-25 12:44:04 +01:00
Bas Brands 224567a0f2 MDL-64170 block myoverview: change title string to course
change language string for Sort by "Title" to "Course"
2018-11-25 11:36:14 +01:00
Eloy Lafuente (stronk7) 599703e83d Moodle release 3.6rc1 2018-11-25 10:50:38 +01:00
David Mudrák 8b52601b1a MDL-64205 users: Do not delete the actual records of unconfirmed users
There is an automatic data privacy request created to get rid of all the
personal data upon the user deletion. With the actual user record
absent, the data privacy requests page throws an error. Let's do here
same as we do in `delete_incomplete_users_task` and let us not delete
the actual user record.
2018-11-25 06:55:23 +01:00
Eloy Lafuente (stronk7) 12008f51e2 Merge branch 'MDL-64186-master-enfix' of git://github.com/mudrd8mz/moodle 2018-11-24 00:26:18 +01:00
Eloy Lafuente (stronk7) 69f2118621 on-demand release 3.6beta+ 2018-11-23 16:36:55 +01:00
Eloy Lafuente (stronk7) 1b8caf1970 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2018-11-23 16:36:53 +01:00
Helen Foster 414da8c0be MDL-64186 lang: Import fixed English strings (en_fix)
Significant string change:

* togglemessagemenu, core_message - messages menu -> messaging drawer
  (new functionality)
2018-11-23 14:39:54 +01:00
Jun Pataleta beb7083381 Merge branch 'MDL-64057-master' of https://github.com/snake/moodle 2018-11-23 14:47:00 +08:00
Jake Dallimore c296c48f66 MDL-64057 core_message: fix bug with favourite count aggregation 2018-11-23 14:42:33 +08:00
Damyon Wiese 35889e23b7 Merge branch 'MDL-64180_master' of git://github.com/markn86/moodle 2018-11-23 12:21:13 +08:00
Mark Nelson 7d678923b3 MDL-64180 core_message: added new WS for contact request count 2018-11-23 11:34:55 +08:00
Mark Nelson 720cc99331 MDL-64180 core_message: change stdClass to int for count requests param
This will be used by a new web service and we do not want to fetch
the user unnecessarily in the call.

Also renamed the method for consistency.
2018-11-23 11:34:40 +08:00
Jun Pataleta 252f0e16ea Merge branch 'MDL-64057-master' of https://github.com/snake/moodle 2018-11-23 11:24:58 +08:00
Jun Pataleta 4fb38666b4 Merge branch 'MDL-64030-master' of git://github.com/andrewnicols/moodle 2018-11-23 11:14:57 +08:00
Jake Dallimore 0847aa120c MDL-64057 core_message: return conversations with soft-deleted users
Individual conversations with a soft-deleted user (including messages)
are now displayed in the conversation listing. This brings the behaviour
of individual conversations in line with group conversations, in that
the active user can still view messages.
2018-11-23 11:02:20 +08:00
Jake Dallimore b694b9b8e2 MDL-64057 core_message: use get_conversation_counts() during rendering 2018-11-23 11:02:20 +08:00
Jake Dallimore 28ff6ad1da MDL-64057 core_message: add get_conversation_counts() web service 2018-11-23 11:02:20 +08:00
Jake Dallimore 8e91aaabc9 MDL-64057 core_message: consolidate conversation counts into single call
Counts for types (individual, group) and favourites can be fetched with
a single API call.
2018-11-23 11:02:19 +08:00
Jake Dallimore 92bea7db2a MDL-64057 core_favourites: add get_join_sql_by_type() to service layer
This provides a way for external queries to include information about
favourited items.
2018-11-23 11:02:18 +08:00
AMOS bot 79a607eb3c Automatically generated installer lang files 2018-11-23 00:07:24 +00:00
Andrew Nicols 26ce2c0a81 MDL-64030 tool_dataprivacy: Process requests when system purpose not set 2018-11-23 07:54:22 +08:00
Eloy Lafuente (stronk7) 78fd9a2b53 Merge branch 'MDL-62988_master' of git://github.com/markn86/moodle 2018-11-22 23:15:54 +01:00
Jun Pataleta c039ba7341 Merge branch 'MDL-64119-master' of git://github.com/junpataleta/moodle 2018-11-22 20:34:06 +08:00
Sara Arjona 9ecc75d497 MDL-64119 output: Use context of renderer_base's page object 2018-11-22 20:33:27 +08:00
Jun Pataleta 1dcb2445c6 MDL-63571 grade_report_grader: Use correct context for capability check 2018-11-22 16:19:38 +08:00
Jun Pataleta 7c60fac9dc MDL-63571 grade_report_grader: Set correct type for the context variable 2018-11-22 16:19:38 +08:00
Jun Pataleta 5dfd0e63a0 Merge branch 'MDL-64142-master-1' of git://github.com/mihailges/moodle 2018-11-22 15:46:01 +08:00
Andrew Nicols 90015eff82 Merge branch 'MDL-64165_master' of git://github.com/markn86/moodle 2018-11-22 15:40:41 +08:00
Mark Nelson 2be9a4aecb MDL-64165 core_message: fixed contact requests web service structure 2018-11-22 14:51:59 +08:00
Mark Nelson 34b940f682 MDL-64165 core_message: removed unused params from WS helper method 2018-11-22 14:47:05 +08:00
Mihail Geshoski 30e89a5a9d MDL-64142 gradebook: Fix the left hand table column on scroll 2018-11-22 12:51:29 +08:00
Cory Buecker c30a2c9903 MDL-62988 LTI provider: fix missing info. for LTI 2.X tool provider
Fixes missing capabilities (user information) when membership service is called
from a LTI 2.X tool provider.
2018-11-22 12:26:22 +08:00
Andrew Nicols c746921e6e Merge branch 'MDL-64018_master' of git://github.com/markn86/moodle 2018-11-22 11:03:58 +08:00
Andrew Nicols a0a365fe43 Merge branch 'MDL-64092-master' of git://github.com/peterRd/moodle 2018-11-22 10:16:23 +08:00
Jun Pataleta 9946d0a5bf Merge branch 'MDL-64119-master' of git://github.com/sarjona/moodle 2018-11-22 09:52:56 +08:00
Eloy Lafuente (stronk7) a46a951e87 Merge branch 'MDL-63920-master' of git://github.com/damyon/moodle 2018-11-21 16:47:14 +01:00
Eloy Lafuente (stronk7) 9c8203cf14 Merge branch 'MDL-64129-master' of git://github.com/bmbrands/moodle 2018-11-21 16:18:56 +01:00
Eloy Lafuente (stronk7) cbd6122e27 Merge branch 'MDL-64149-master' of git://github.com/sarjona/moodle 2018-11-21 16:14:42 +01:00
Eloy Lafuente (stronk7) 70abb41263 Merge branch 'MDL-63798_assign_restore_groups' of git://github.com/davosmith/moodle 2018-11-21 16:05:32 +01:00
Jun Pataleta 69b6e2e9bc Merge branch 'MDL-64079-master' of https://github.com/Dagefoerde/moodle 2018-11-21 22:44:16 +08:00
Sara Arjona ae09cccf5a MDL-64149 core_badges: Remove and deprecate unused strings 2018-11-21 13:18:22 +01:00
Bas Brands eae1a1eda7 MDL-64129 messaging: messaging accordion
* fixes open / close chevron icons
* add 1 pixel content for Bootstrap 2 accordion Javascript to work
2018-11-21 11:06:27 +01:00
Jun Pataleta 2102625e09 MDL-64079 oauth2: Test access token expiration 2018-11-21 10:07:14 +01:00
Jan Dageförde 121fa4381e MDL-64079 oauth2: Set an arbitrary expiration date for eternal tokens
The oauth2 standard does not require access tokens to have an
expiration date. This assumes a default validity period of 7 days unless
an explicit expiration date is communicated by the server.
2018-11-21 10:07:14 +01:00
David Monllao ede77961aa Merge branch 'MDL-63591_master' of git://github.com/markn86/moodle 2018-11-21 09:40:59 +01:00
Mark Nelson b564a55153 MDL-63591 core_grades: updated privacy provider 2018-11-21 16:15:12 +08:00
Mark Nelson ac81c98648 MDL-63591 core_grades: delete files when grade object is deleted 2018-11-21 16:15:12 +08:00
Davo Smith b5f63b1e90 MDL-63798 mod_assign: fix restore when group is missing 2018-11-21 07:58:11 +00:00
Andrew Nicols 77295b2922 Merge branch 'MDL-64136-master' of git://github.com/ryanwyllie/moodle 2018-11-21 14:48:31 +08:00
Mark Nelson 4f95f92edc MDL-63591 assignfeedback_comments: fix privacy provider file URLs 2018-11-21 14:38:13 +08:00
Peter 495e1b5615 MDL-64092 block_timeline: Separate the activity view and submission link
* Reintroduce separate links similar to 35
* Hide submission links if not actionable
2018-11-21 14:26:38 +08:00
Ryan Wyllie 070d4819b2 MDL-64136 message: remove unused message_drawer_view_contacts_section.js 2018-11-21 14:11:29 +08:00
Andrew Nicols 1d163100ec Merge branch 'MDL-64128-master' of git://github.com/ryanwyllie/moodle 2018-11-21 14:04:27 +08:00
David Monllao 819cb2054b Merge branch 'MDL-64063-master' of git://github.com/abgreeve/moodle 2018-11-21 06:27:09 +01:00
Jun Pataleta f4aa71be50 Merge branch 'MDL-64091-master' of git://github.com/mickhawkins/moodle 2018-11-21 12:21:15 +08:00
Ryan Wyllie 6adee4a7b5 MDL-64128 message: fix exception when declining contact request 2018-11-21 11:45:24 +08:00
Jun Pataleta 2f22731a36 Merge branch 'MDL-64078-master' of https://github.com/Dagefoerde/moodle 2018-11-21 11:17:38 +08:00
Mark Nelson 00e103a7b4 MDL-64018 core_message: use new web service in UI 2018-11-21 11:09:55 +08:00
Mark Nelson c9b0f33f78 MDL-64018 core_message: added external::get_user_contacts
This is to replace usages of external::data_for_messagearea_contacts
in the new UI.
2018-11-21 11:09:55 +08:00
Mark Nelson 715c45aac9 MDL-64018 core_message: added api::get_user_contacts
This is to replace api::get_contacts when that gets deprecated.
2018-11-21 11:09:11 +08:00
Mark Nelson f89055372e MDL-64018 core_message: deprecated get_contacts web service 2018-11-21 11:09:11 +08:00
Michael Hawkins ef9f22a85c MDL-64091 theme_clean: Fix conflicting CSS for icon-size-* class 2018-11-21 10:54:53 +08:00
Damyon Wiese 730284fc16 Merge branch 'MDL-64054-master' of git://github.com/ryanwyllie/moodle 2018-11-21 10:07:42 +08:00
Andrew Nicols f83041790a Merge branch 'MDL-64045-master' of git://github.com/ryanwyllie/moodle 2018-11-21 09:58:50 +08:00
Adrian Greeve c84ee67864 MDL-64063 core_calendar: Unit test for suspended users. 2018-11-21 09:51:52 +08:00
Adrian Greeve 644ffbd332 MDL-64063 core_calendar: events by time considers enrolment status. 2018-11-21 09:51:52 +08:00
Ryan Wyllie b263491138 MDL-64045 message: stop favouriting null conversations
Don't show the controls to favourite a conversation until one has been
created.
2018-11-21 08:57:34 +08:00
Andrew Nicols 3c1d2a88c2 Merge branch 'MDL-64077-master' of git://github.com/vmdef/moodle 2018-11-21 08:10:59 +08:00
Sara Arjona 4ecb387d55 MDL-64119 user: Display full names consistently for teachers
Fix an error with users with the moodle/site:viewfullnames capability
in a course context (like teachers), to display properly the full
names in pages like the participants one.
2018-11-20 19:41:21 +01:00
David Monllao a78a876629 Merge branch 'MDL-63571-master' of git://github.com/peterRd/moodle 2018-11-20 17:19:11 +01:00
Jan Dageförde 3559677cb7 MDL-64078 oauth2: Google service relies on autodiscovery 2018-11-20 16:43:35 +01:00
Víctor Déniz Falcón d77efead0a MDL-64077 block_site_main: modify style to fix layout in boost theme 2018-11-20 13:08:13 +00:00
David Monllao 0225ad42ea on-demand release 3.6beta+ 2018-11-20 12:55:28 +01:00
Damyon Wiese dcb35b721c MDL-63920 backup: Email string improvement
Change from semicolon to colon in email.
2018-11-20 16:14:35 +08:00
Jun Pataleta bc7195fa02 Merge branch 'MDL-63692-master-fix' of git://github.com/junpataleta/moodle 2018-11-20 14:48:08 +08:00
Jun Pataleta 918776482a MDL-63692 message: Set canonicalize to true for array comparison 2018-11-20 14:41:40 +08:00
Andrew Nicols 43f6899289 MDL-63692 message: Correct favourite fetch 2018-11-20 14:40:39 +08:00
Andrew Nicols ffd303146f MDL-63692 message: Fix unit test assumption
Contact requests do not cause notifications.
2018-11-20 14:40:39 +08:00
Peter 727d3d70e1 MDL-63571 gradebook: Display the name header based on config setting 2018-11-20 14:06:31 +08:00
Jun Pataleta 60e265e76f Merge branch 'MDL-63921-master' of git://github.com/andrewnicols/moodle 2018-11-20 13:54:14 +08:00
Andrew Nicols b20a6a4af6 Merge branch 'MDL-64024-master' of git://github.com/snake/moodle 2018-11-20 12:26:09 +08:00
Jun Pataleta a7ca299373 Merge branch 'MDL-63663-master' of git://github.com/bmbrands/moodle 2018-11-20 11:59:29 +08:00
Jun Pataleta 1cc37dc523 Merge branch 'MDL-63817-master' of git://github.com/peterRd/moodle 2018-11-20 11:20:23 +08:00
Sara Arjona 4f97ea8856 MDL-64024 message: Fix lib::get_messages to get only individual messages
From 3.6 users can have also group conversations, so it's needed to review
the messages_get_messages function to make sure only returns the
individual messages between 2 users.
2018-11-20 10:44:27 +08:00
Andrew Nicols 04e83dcf10 Merge branch 'MDL-64058-master' of https://github.com/snake/moodle 2018-11-20 10:22:41 +08:00
Andrew Nicols 2f7076ebf2 MDL-63692 message: Resolve bad merge conflict 2018-11-20 09:04:53 +08:00
Peter eb2fe63ef1 MDL-63817 block_timeline: Fixed behat test and clean template 2018-11-20 09:00:44 +08:00
Jake Dallimore 4283291889 MDL-64058 core_message: fix logic driving conversation section expansion
Unread conversations should be given priority over read. If one or more
sections have unread conversations, prioritise favourites over group and
group over individual. The same applies if all conversations are read.
2018-11-20 08:56:37 +08:00
Andrew Nicols 08cd15658a Merge branch 'MDL-63692-master' of git://github.com/sarjona/moodle 2018-11-20 07:51:40 +08:00
Eloy Lafuente (stronk7) b2cb05a8c7 Merge branch 'MDL-64049-master' of git://github.com/andrewnicols/moodle 2018-11-20 00:26:09 +01:00
Eloy Lafuente (stronk7) 16d4f75b26 Merge branch 'MDL-63976-master-enfix' of git://github.com/mudrd8mz/moodle 2018-11-19 22:17:44 +01:00
Sara Arjona 16913e60b3 MDL-63692 core_message: Add favourite conversations to Privacy API 2018-11-19 22:09:13 +01:00
Sara Arjona 6b036d04cf MDL-63692 core_message: Fix the context for favourite conversations
The converation favourites were previously set in the system context
which is not right, as they should be stored:
- In the conversation context when defined.
- In the user context, when contextid is null (that means is an
individual conversation).
2018-11-19 22:08:28 +01:00
Sara Arjona c752cce7dd MDL-63692 core_group: Add group conversation messages to Privacy API 2018-11-19 22:08:28 +01:00
Sara Arjona 201cebeae5 MDL-63692 core_message: Add conversation support to Privacy API 2018-11-19 22:08:22 +01:00
David Monllao 9af8b0aef1 Merge branch 'MDL-63394-master' of git://github.com/jleyva/moodle 2018-11-19 19:42:06 +01:00
David Mudrák 94693027e0 MDL-63976 lang: Update the Behat scenarios with the new strings 2018-11-19 19:18:53 +01:00
Helen Foster cd492e2ea5 MDL-63976 lang: Merge English strings from the en_fix language pack
Significant string changes:

* courseoverviewfiles, courseoverviewfiles_help, courseoverviewfilesext
  in core, configcourseoverviewfilesext, configcourseoverviewfileslimit
  in core_admin, areacourseoverviewfiles in core_repository - renaming
  of 'Course summary files' to 'Course image'
2018-11-19 19:17:52 +01:00
Adrian Greeve 674c00edb2 MDL-64008 badges: Stop displaying empty fields in badge display. 2018-11-19 18:42:49 +01:00
David Monllao 892356acaa MDL-64060 message: Replace error code by language str 2018-11-19 11:18:39 +01:00
David Monllao a6c4e6f0a6 Merge branch 'MDL-64060-master' of git://github.com/jleyva/moodle 2018-11-19 11:16:09 +01:00
David Monllao dd2d82e55c Merge branch 'MDL-64010-master' of git://github.com/abgreeve/moodle 2018-11-19 11:12:09 +01:00
David Monllao c47fea4e75 MDL-63817 block_timeline: Consistent activities limit default 2018-11-19 10:57:13 +01:00
David Monllao 94db315b50 Merge branch 'MDL-63817-master' of git://github.com/peterRd/moodle 2018-11-19 10:49:15 +01:00
Damyon Wiese a356db0db2 Merge branch 'MDL-63973-master' of https://github.com/snake/moodle 2018-11-19 16:28:13 +08:00
Jun Pataleta 31cc108654 Merge branch 'MDL-63994-master-castoken' of git://github.com/mudrd8mz/moodle 2018-11-19 15:51:38 +08:00
Andrew Nicols 90a4438139 Merge branch 'MDL-64035-master' of https://github.com/snake/moodle 2018-11-19 15:08:22 +08:00
David Monllao 9b2d10e522 Merge branch 'MDL-63487-master' of https://github.com/lucaboesch/moodle 2018-11-19 08:07:05 +01:00
Andrew Nicols 237786f159 Merge branch 'MDL-63913-master' of https://github.com/snake/moodle 2018-11-19 14:59:39 +08:00
Ryan Wyllie 08ae9a7362 MDL-64054 message: add all processors to message settings
Changed the settings page in the message drawer to display all message
notification processors (e.g. email, mobile, jabber) for the user to
configure based on which processors are enabled on the site.
2018-11-19 14:53:38 +08:00
Peter 2044a53946 MDL-63817 block_timeline: Persist page limits when sorting by dates
* Included privacy provider for new pref with unit test
* JS changes
2018-11-19 14:52:56 +08:00
Damyon Wiese 365dce5fad Merge branch 'MDL-63696-master' of https://github.com/Dagefoerde/moodle 2018-11-19 14:51:46 +08:00
Jake Dallimore da714be155 MDL-64058 core_message: add unread counts to the conversations view 2018-11-19 13:55:18 +08:00
Jake Dallimore a54115355a MDL-63913 core_message: fix to ensure favourites is exclusive
If a conversation is included in the favourites unread count, it
cannot be included in any other type-based counts.
2018-11-19 13:51:40 +08:00
David Monllao b46c7d5d9f Merge branch 'MDL-63768-master' of https://github.com/lucaboesch/moodle 2018-11-19 06:06:20 +01:00
Jun Pataleta 8699a985bc Merge branch 'MDL-64034-master' of https://github.com/snake/moodle 2018-11-19 12:59:22 +08:00
Andrew Nicols 18b947671b Merge branch 'MDL-63969-master-4' of git://github.com/mihailges/moodle 2018-11-19 12:27:37 +08:00
Andrew Nicols 8cba8d1a58 MDL-64049 core: Cache prefs for current user
We were already caching these preferences when a user object is provided
to get_user_preferences, or when $USER is provided.

This changee swaps get_user_preferences to use the global USER object
when the USER->id matches the userid supplied to the function.
2018-11-19 11:23:59 +08:00
Jake Dallimore 810da68e14 MDL-63973 core_badges: exclude related badges when adding related badges
The form which allows a user to add related badges should exclude any
related badges, regardless of the direction of the relationship.
2018-11-19 11:19:12 +08:00
Jake Dallimore c660772600 MDL-63973 core_badges: fix related badges count in the badges tabs
If A is related to B, this should show a 1 count for either A or B.
2018-11-19 11:10:14 +08:00
Jake Dallimore 1dee827c39 MDL-63973 core_badges: related badges query now works both ways
If A is related to B, then we should be able to view this relationship
from both badge A and badge B. The following badge methods were updated:
- get_related_badges()
- has_related()
- delete_related_badge()
2018-11-19 11:08:00 +08:00
Andrew Nicols de79a81f5b Merge branch 'MDL-63468-master-v1' of git://github.com/lameze/moodle 2018-11-19 10:33:23 +08:00
Jake Dallimore d2708759d8 MDL-64034 core_message: return conversationid in search_messages() 2018-11-19 10:23:15 +08:00
Simey Lameze 62b6e6f20d MDL-63468 mod_quiz: fix stats report visual style 2018-11-19 10:16:16 +08:00
Andrew Nicols ff85fe3e53 Merge branch 'MDL-63793-master' of git://github.com/peterRd/moodle 2018-11-19 09:57:50 +08:00
Andrew Nicols 73fda8faeb Merge branch 'MDL-63913-master' of https://github.com/snake/moodle 2018-11-19 09:56:48 +08:00
Jake Dallimore 33022ee1d5 MDL-63913 core_message: add method to get unread conversation counts 2018-11-19 09:48:58 +08:00
Peter 11988d74b4 MDL-63793 block_myoverview: Persist the user's paging limit preference
* providers for paging preferences
* Moved the user pref persistence to the factory
* Added client defined namespace in config
* Define custom client events in the client instead of passing to the
  factory
2018-11-19 09:43:00 +08:00
Eloy Lafuente (stronk7) 01acb1ea90 Moodle release 3.6beta 2018-11-18 12:38:48 +01:00
Jun Pataleta 9d10c33989 Merge branch 'MDL-64066' of git://github.com/stronk7/moodle 2018-11-18 01:02:24 +08:00
Eloy Lafuente (stronk7) 85ad2e6dff MDL-64066 behat: increase data export sizes, we were hitting them
With MDL-63660 we changed to a bundled moodle.css approach, that
made dowloaded exports size to increase. Although the expected
sizes already were raised in the issue, it seems that some of
them were not enough, so increasing a little bit more.

Side note, we have MDL-63399 about to try to change these tests...
2018-11-17 12:41:26 +01:00
Eloy Lafuente (stronk7) 6905c1c3fe MDL-64066 behat: more fixes to dialog names, old "add" steps 2018-11-17 12:10:37 +01:00
Eloy Lafuente (stronk7) 1a82729734 MDL-64066 behat: fix missing quote preventing jobs to complete 2018-11-17 00:16:18 +01:00
Luca Bösch 104cc0e3b1 MDL-63768 atto_link: dialog auto width. 2018-11-16 17:29:28 +01:00
Luca Bösch 2e477f03cc MDL-63487 badges: Style "◀ Award badge" and "Revoke badge ▶" buttons 2018-11-16 17:29:17 +01:00
Juan Leyva 904c37c6c8 MDL-63394 mod_quiz: Do not fail overdue if there is a grace period 2018-11-16 16:56:40 +01:00
Juan Leyva a28c222e63 MDL-64060 message: Use error string identifier instead full message
The conversationdoesntexist string does not exists but it is better to use an error string catchable by an external client.
2018-11-16 13:20:11 +01:00
Eloy Lafuente (stronk7) 8907290a46 on-demand release 3.6dev+ 2018-11-16 12:03:18 +01:00
Eloy Lafuente (stronk7) 303d597523 NOBUG: Fixed SVG browser compatibility 2018-11-16 12:03:16 +01:00
Jan Dageförde f11a7d6a05 MDL-63696 oauth2: Store system account access tokens in DB 2018-11-16 11:43:16 +01:00
Jun Pataleta bf3c9536ac Merge branch 'MDL-63999-master' of git://github.com/lameze/moodle 2018-11-16 14:36:14 +08:00
Andrew Nicols e151cbd971 Merge branch 'MDL-63303-master' of git://github.com/ryanwyllie/moodle 2018-11-16 14:15:16 +08:00
Ryan Wyllie d3d95d5dc2 MDL-63303 message: fix bugs in message drawer part 4
* Add clarification to delete messages lang strings
* Stop message polling when sending a message to fix UI bug
* Publish update last message event when polling finds more messages
* Remove logged in user from group conversation participants list
* Use user object to fetch user preferences to reduce DB calls
* Remove animated slide transitions because the browser breaks when
  showing some conversations
2018-11-16 14:10:10 +08:00
Simey Lameze b8c0534515 MDL-63999 calendar: double escape event name on templates 2018-11-16 13:56:54 +08:00
Mihail Geshoski 329f1f23ff MDL-63969 core_course: Store favourite courses in the course context
The course favourites were previously set in the system context which
is not right as they should be stored in the course context.
2018-11-16 12:20:17 +08:00
Mihail Geshoski 214696b04f MDL-63969 core_course: Update course privacy provider unit tests 2018-11-16 12:19:46 +08:00
Mihail Geshoski 4f8c9232f1 MDL-63969 core_course: Include core_favourites subsystem in provider 2018-11-16 12:18:58 +08:00
Mihail Geshoski 61fafe8127 MDL-63969 core_favourites: Add support for removal of context users 2018-11-16 12:18:22 +08:00
Jake Dallimore 18550c0afb MDL-64035 core_message: get_conversations() excludes disabled chats
Linked conversations which have been disabled must be excluded from
the results.
2018-11-16 12:04:24 +08:00
Jun Pataleta 30538dc9c1 Merge branch 'MDL-63660-master' of git://github.com/junpataleta/moodle 2018-11-16 10:54:25 +08:00
Damyon Wiese ba88292a3d Merge branch 'wip-MDL-63854-master' of https://github.com/kwiliarty/moodle 2018-11-16 10:35:37 +08:00
Jun Pataleta 223e1a6f73 MDL-63660 tool_dataprivacy: Increase expected export file size 2018-11-16 10:30:14 +08:00
Adrian Greeve 347b771a4b MDL-64010 badges: Validate URL form fields. 2018-11-16 10:28:09 +08:00
Eloy Lafuente (stronk7) 75bedeafe4 Merge branch 'MDL-64012' of https://github.com/timhunt/moodle 2018-11-16 01:02:44 +01:00
Eloy Lafuente (stronk7) 246149f059 Merge branch 'MDL-53035-master' of git://github.com/vmdef/moodle 2018-11-16 00:35:33 +01:00
Kevin Wiliarty cadec24c48 MDL-63854 competencies, themes: misplaced dropdown arrows 2018-11-15 15:37:15 -05:00
David Mudrák c7d33da305 MDL-63994 auth_cas: Include the login token in the simulated login form
The CAS login process relies on the standard authenticate_user_login()
call to set up the user. So we need to inject the login token to pass
the validation.
2018-11-15 21:19:50 +01:00
David Mudrák e4a97a7a01 MDL-63994 login: Improve the logintoken param input
The logintoken is supposed to arrive as a part of the login form ($frm)
together with the username and password. So it should be handled the
same way - including the opportunity for the auth plugins to provide the
form data via the loginpage_hook().

This also implies that only logintoken coming as a part of the POST
request are taken into account, which is a good thing and another thin
layer in this security mechanism.
2018-11-15 21:19:50 +01:00
David Mudrák 667f564b4d MDL-63994 login: Clarify inline comments on loginpage_hook() usage
While working on the issue, I found these inline comments outdated and
confusing. The auth plugin types can implement a loginpage_hook()
method, the purpose of which is to inject the $user and/or $frm into
this login/index.php script. The new comments should make it more clear.

Note the second comment mentioned a prelogin_hook() which was an old
name of what is now called loginpage_hook(). It had nothing to do with
the existing pre_loginpage_hook() and was only confusing.
2018-11-15 21:19:50 +01:00
Jun Pataleta b51b0c6682 Merge branch 'MDL-63832-master' of git://github.com/jleyva/moodle 2018-11-15 23:12:14 +08:00
Eloy Lafuente (stronk7) 9ca803a86d Merge branch 'MDL-63303_master-deleteduserfix' of https://github.com/markn86/moodle 2018-11-15 11:20:36 +01:00
Mark Nelson 52beee65b2 MDL-63303 core_message: dont check online status for deleted users 2018-11-15 18:08:12 +08:00
Eloy Lafuente (stronk7) 7a9717f614 Merge branch 'MDL-63303-master' of git://github.com/ryanwyllie/moodle 2018-11-15 11:04:12 +01:00
Eloy Lafuente (stronk7) 6a7ee95231 Merge branch 'MDL-63303-master-fix' of git://github.com/andrewnicols/moodle 2018-11-15 11:01:24 +01:00
Ryan Wyllie 132626720c MDL-63303 message: add member formatting to conversation
Make sure the members are formatted when adding to the state in
a conversation so that any missing data is normalised.
2018-11-15 17:57:44 +08:00
Andrew Nicols 5e47224a62 MDL-63303 message: Stop WS from removing optional keys 2018-11-15 17:56:31 +08:00
Jun Pataleta ac6cdcea06 Merge branch 'MDL-62287-master' of git://github.com/andrewnicols/moodle 2018-11-15 17:10:54 +08:00
Jun Pataleta 7a99ff70b9 Merge branch 'MDL-63811' of git://github.com/aolley/moodle 2018-11-15 17:09:28 +08:00
Damyon Wiese f4ccea6f52 Merge branch 'MDL-64009-master' of git://github.com/abgreeve/moodle 2018-11-15 16:30:20 +08:00
Andrew Nicols 705003beae MDL-63303 behat: Behat fixes 2018-11-15 16:26:16 +08:00
Andrew Nicols f42e85cc86 Merge branch 'MDL-63303-master' of git://github.com/ryanwyllie/moodle 2018-11-15 16:25:20 +08:00
Andrew Nicols 5d0abf9df6 MDL-63303 behat: Behat fixes 2018-11-15 16:24:00 +08:00
Damyon Wiese 47dc7eb8a4 Merge branch 'MDL-64011-master' of git://github.com/abgreeve/moodle 2018-11-15 16:10:21 +08:00
Ryan Wyllie c75559cfff MDL-63303 message: move message drawer to end of <body>
Fix some of the behat tests that are looking for generic button
names that match some of the buttons in the message drawer which
happen to appear earlier in the DOM.
2018-11-15 14:43:22 +08:00
Ryan Wyllie 663ccd58ed MDL-63303 message: fix bugs in message drawer part 3
* Fix bug for newly created conversations being added to overview page
* Fixed bug with use enter to send preference not updating correctly
* Fix unit tests
* Fix race condition loading new messages while conversation resetting
* Fix ordering and rendering of messages with same timestamp
* Fix missing privacy info in get_conversation web service
* Fix linting errors
* Improve bulk message rendering
2018-11-15 14:43:21 +08:00
Ryan Wyllie a111ab44af MDL-63303 message: fix bugs in message drawer part 2
* Added missing icon mappings for font-awesome
* Fixed focus on dialogue button when it opens
* Fixed UI updates on user block / unblock
* Fix jQuery syntax error when sending message with quotes
* Fix message/index.php opening drawer when no conversation found
* Fix placeholders rendered for new requests
2018-11-15 14:43:21 +08:00
Ryan Wyllie 1d3535f95c MDL-63303 message: fix bugs in message drawer
* Fix navigation from view_contact to view_conversation on an action
  such as blocking
* Fix default open message section on overview page depending on which
  section has conversations
* Fix message/index.php for users who haven't yet started a
  conversation
2018-11-15 14:43:21 +08:00
Ryan Wyllie 8c8939c1ae MDL-63303 message: add enter to send user preference 2018-11-15 14:43:21 +08:00
Ryan Wyllie f074d6f086 MDL-63303 message: remove behat tests for messaging 2018-11-15 14:43:21 +08:00
Ryan Wyllie 142b042c5c MDL-63303 message: message/index.php open conversation in message drawer 2018-11-15 14:43:21 +08:00
Ryan Wyllie 17d982d751 MDL-63303 message: message/edit.php opens setttings in message drawer 2018-11-15 14:43:21 +08:00
Ryan Wyllie 1e3453b7c7 MDL-63303 message: change nav popover to toggle message drawer 2018-11-15 14:43:21 +08:00
Ryan Wyllie 6f96c06374 MDL-63303 theme_bootstrapbase: add message drawer 2018-11-15 14:43:21 +08:00
Ryan Wyllie 5005d8cfb4 MDL-63303 message: add message drawer (boost only) 2018-11-15 14:43:21 +08:00
Ryan Wyllie 3ea46c8e31 MDL-63303 message: add functions to message_repository.js 2018-11-15 14:40:12 +08:00
Ryan Wyllie 0802c38a2f MDL-63303 message: add lastmessagedate to messagearea contact 2018-11-15 14:40:12 +08:00
Ryan Wyllie ecb4755c91 MDL-63303 message: add count_contacts api function 2018-11-15 14:40:12 +08:00
Ryan Wyllie b3bbd4a0e1 MDL-63303 message: fix get_conversations external func 2018-11-15 14:40:12 +08:00
Ryan Wyllie 569c0bae9c MDL-63303 message: add get_conversation_between_users external func 2018-11-15 14:40:12 +08:00
Ryan Wyllie 4e3130269c MDL-63303 message: add get_conversation to message api 2018-11-15 14:40:12 +08:00
Ryan Wyllie 6399c7ef14 MDL-63303 message: add count_conversations to api 2018-11-15 14:40:12 +08:00
Ryan Wyllie 886b01783b MDL-63303 message: add fields to send_instant_message 2018-11-15 14:40:12 +08:00
Ryan Wyllie 0866b33635 MDL-63303 message: add fields to contact requests 2018-11-15 14:40:12 +08:00
Ryan Wyllie 8350978aa1 MDL-63303 message: add get_member_info external function 2018-11-15 14:40:12 +08:00
Ryan Wyllie 38004e777f MDL-63303 message: fix get_member_info iscontact check 2018-11-15 14:40:12 +08:00
Ryan Wyllie c61353ae41 MDL-63303 message: fix mark_all_conversation_messages_as_read ext func 2018-11-15 14:40:12 +08:00
Ryan Wyllie 32b4212e50 MDL-63303 message: fix get_conversation_messages 2018-11-15 14:40:12 +08:00
Ryan Wyllie 9e189a914d MDL-63303 core_favourites: add get and count functions 2018-11-15 14:40:11 +08:00
Ryan Wyllie c2fc2c25ad MDL-63303 theme_bootstrapbase: add bs4 compat classes 2018-11-15 14:40:11 +08:00
Ryan Wyllie a69193fa70 MDL-63303 theme_boost: add switch styling for checkbox 2018-11-15 14:40:11 +08:00
Ryan Wyllie 7b91dcf264 MDL-63303 core: add new icons for messaging 2018-11-15 14:40:11 +08:00
Ryan Wyllie 456e6d8145 MDL-63303 core: allow subsystems to add nav bar and top of body content 2018-11-15 14:40:11 +08:00
Ryan Wyllie c912cd7324 MDL-63303 core: add debug info to exceptions 2018-11-15 14:40:11 +08:00
Ryan Wyllie 9d199fd2e7 MDL-63303 javascript: fix bug in auto_rows.js allowing it to shrink 2018-11-15 14:40:11 +08:00
Adrian Greeve 750f1588fa MDL-64011 badges: Changed the date format of endorsements. 2018-11-15 14:32:15 +08:00
Adrian Greeve c693beb3fc MDL-64009 badges: Removed additional badge information when null.
On the badge display page if the badge does not have an endorsement,
related badges, or competency allignments, then these sections are
not shown.
2018-11-15 14:04:51 +08:00
Jun Pataleta 91194bfd9f Merge branch 'MDL-63974-master' of https://github.com/snake/moodle 2018-11-15 11:22:16 +08:00
Damyon Wiese 02c4de86ea Merge branch 'MDL-63283-master-2' of https://github.com/snake/moodle 2018-11-15 10:43:03 +08:00
Jake Dallimore 267b4f03e7 MDL-63283 core_message: skip processors in non-individual conversations
Disable the processor for messages being sent to conversation types
other than individual.
2018-11-15 10:37:33 +08:00
Jake Dallimore 41485be2c8 MDL-63974 core_message: fix logic for non-contacts in user search
This should depend on the messagingallusers setting and, if false,
should only return those users having a profile the searcher can see.
If true, then any user can be returned. There is no requirement to
have a conversation with the user.
2018-11-15 09:59:39 +08:00
Jake Dallimore 9acb8b3574 MDL-63974 core_message: restore legacy behaviour for search_users() 2018-11-15 09:58:02 +08:00
Jun Pataleta 4aa05a81fd Merge branch 'MDL-53566-master-fix' of git://github.com/andrewnicols/moodle 2018-11-15 09:49:56 +08:00
Andrew Nicols 46b9a5c49c MDL-53566 core: Make context freeze test compat with clean 2018-11-15 07:39:23 +08:00
Tim Hunt 0f98afefdf MDL-64012 filters: activity name autolinking fails for names with () 2018-11-14 16:04:31 +00:00
Juan Leyva df3d877656 MDL-63832 assign: Check current user can view submission 2018-11-14 16:53:34 +01:00
Eloy Lafuente (stronk7) 0d8c3b7a0e Merge branch 'MDL-63653-master' of https://github.com/lucaboesch/moodle 2018-11-14 16:22:44 +01:00
Eloy Lafuente (stronk7) 79c4c80f2b Merge branch 'MDL-63842-master' of git://github.com/andrewnicols/moodle 2018-11-14 16:03:16 +01:00
Mark Johnson 80aff7db49 MDL-63660 privacy: Include CSS locally for data export 2018-11-14 14:53:27 +00:00
David Monllao f2d83f50e1 Merge branch 'MDL-61990' of https://github.com/timhunt/moodle 2018-11-14 12:09:34 +01:00
David Monllao 03d9f4cda4 Merge branch 'MDL-63991-master' of git://github.com/crazyserver/moodle 2018-11-14 11:57:57 +01:00
David Monllao e15203d011 Merge branch 'MDL-63488-master' of git://github.com/peterRd/moodle 2018-11-14 11:22:06 +01:00
Damyon Wiese 54869cdeac Merge branch 'MDL-64005-master' of git://github.com/abgreeve/moodle 2018-11-14 16:00:14 +08:00
Damyon Wiese 89ffc1ee0e Merge branch 'MDL-53566-master' of git://github.com/andrewnicols/moodle 2018-11-14 15:04:01 +08:00
Jun Pataleta 0a0f70c1ec Merge branch 'MDL-63926-master' of git://github.com/mickhawkins/moodle 2018-11-14 14:23:06 +08:00
Andrew Nicols 3a6463fc8c MDL-62287 tool_usertours: Pull v0.12.3 for background click fix 2018-11-14 14:13:32 +08:00
Andrew Nicols 9d76566ffc MDL-53566 core: Rename locking to freezing in UI 2018-11-14 12:37:56 +08:00
Damyon Wiese 8043762c80 Merge branch 'MDL-63868-master' of git://github.com/abgreeve/moodle 2018-11-14 12:11:12 +08:00
Michael Hawkins af6df0fab6 MDL-63926 block_recentlyaccesseditems: Add privacy provider unit tests 2018-11-14 11:14:57 +08:00
Michael Hawkins 8adf5d94b2 MDL-63926 block_recentlyaccesseditems: Support user removal by context
Also fixed the provider interface type. This is self contained, so is
not a subsystem provider. It was also already set up as a plugin
provider, just not defined as such.
2018-11-14 11:14:57 +08:00
Damyon Wiese 462fc2abcd Merge branch 'MDL-63901-master' of git://github.com/sarjona/moodle 2018-11-14 11:14:18 +08:00
Michael Hawkins 13bd038912 MDL-63926 block_recentlyaccesseditems: Improved get_contexts_for_userid
Updated the provider::get_contexts_for_userid method, to prevent false
positives. Previously, the user context would always be returned, now
the method checks data exists for the block first.
2018-11-14 11:13:00 +08:00
Adrian Greeve 9fcfecbf15 MDL-64005 gradebook: Fix to remove debugging message.
The progress bar is being used when there are a large amount
of grades being recalculated. This was throwing a debugging message
about NO_OUTPUT_BUFFERING being unset.
2018-11-14 10:39:57 +08:00
Andrew Nicols e77cae1330 Merge branch 'MDL-63923-master' of git://github.com/bmbrands/moodle 2018-11-14 09:54:40 +08:00
Peter a1e8c6d497 MDL-63488 core_grade: Use the rewrite_pluginurls to handle files
* Use the rewrite_plugin_urls to handled embedded files
* Add phpunit tests for default and updated functionality of format_text
2018-11-14 09:44:18 +08:00
Andrew Nicols faa673e36a MDL-63488 grade: Add tests for format_feedback
Signed-off-by: Peter <peter@moodle.com>
2018-11-14 09:28:16 +08:00
Eloy Lafuente (stronk7) b4c33348ff MDL-53566 core: add back upgrade code removed @ 0616f04 by mistake 2018-11-14 01:04:46 +01:00
Eloy Lafuente (stronk7) d27e49448f Merge branch 'MDL-53566-master' of git://github.com/andrewnicols/moodle 2018-11-13 23:55:38 +01:00
Luca Bösch 3a7117bb5b MDL-63653 tool_xmldb: style form elements 2018-11-13 18:18:45 +01:00
Luca Bösch b08e7312c3 MDL-63571 grades: switch firstname/lastname order in title row 2018-11-13 18:18:23 +01:00
Tim Hunt 166c43d86c MDL-61990 outputrequirementslib: improve debug message 2018-11-13 17:11:17 +00:00
David Monllao 50d37636b6 Merge branch 'MDL-63882-master' of git://github.com/damyon/moodle 2018-11-13 16:07:14 +01:00
Pau Ferrer Ocaña f687f1459e MDL-63991 badges: Translate notification on endorsement 2018-11-13 15:58:47 +01:00
Pau Ferrer Ocaña 65ffd0a33a MDL-63991 badges: Fix links on badge render 2018-11-13 14:19:51 +01:00
Andrew Nicols bfbd733452 MDL-53566 tool_monitor: Fix context preload 2018-11-13 21:17:40 +08:00
Andrew Nicols bb41db9ce0 MDL-53566 core: Allow admins more control over locking
This change allows sites to configure locking such that it does not
apply to administrators at all.
2018-11-13 21:17:40 +08:00
Andrew Nicols 6a89b6c8f0 MDL-53566 core: Move managecontextlocking to module
This will allow the capability to be applied at a range of contexts and
not just the system, making the system much more definable to a range of
users.
2018-11-13 21:17:40 +08:00
Andrew Nicols 56db1a2d7c MDL-53566 core: Remove unused ancestorlocked field
This was originalyl intended as a performance improvement, but the
parent is already stored, and once calculated the value of locked is
already returned.
2018-11-13 21:17:40 +08:00
Andrew Nicols 0333213585 MDL-53566 core: Add behat test for context loking 2018-11-13 21:17:40 +08:00
Andrew Nicols 4ba4bc9acd MDL-53566 mod_forum: Correct captype for writeable capabilities 2018-11-13 21:17:40 +08:00
Andrew Nicols 3a8cf5e67d MDL-53566 core: Add UI for context locking 2018-11-13 21:17:40 +08:00
Andrew Nicols 0616f045c3 MDL-53566 core: Add support for context locking
This chagne adds support for a new feature known as Context Locking.
This allows a context to be locked, thereby removing all write
capabilities for all users (including admin) for that context, and all
child contexts.
2018-11-13 21:17:40 +08:00
David Monllao dccda6546b on-demand release 3.6dev+ 2018-11-13 13:11:07 +01:00
David Monllao 98469de445 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2018-11-13 13:11:05 +01:00
David Monllao 6101744b07 Merge branch 'MDL-63729-master' of git://github.com/dpalou/moodle 2018-11-13 11:13:37 +01:00
dpalou ce908f76a6 MDL-63729 badges: Fix course badge test 2018-11-13 10:40:27 +01:00
Sara Arjona 8105af9d6b MDL-63901 core_message: Avoid duplicate last message 2018-11-13 10:38:38 +01:00
Adrian Greeve 055312708d MDL-63868 core_calendar: Clicking link leads to events.
The mini calendar did not link to the daily events properly.
2018-11-13 15:30:09 +08:00
Damyon Wiese bed93cff28 Merge branch 'MDL-63927' of git://github.com/stronk7/moodle 2018-11-13 11:57:12 +08:00
Andrew Nicols 9f12dd7a2f MDL-63921 privacy: Add unit test to prove userlist compliance 2018-11-13 11:41:02 +08:00
Andrew Nicols ba20486ffe Merge branch 'MDL-63716-master' of git://github.com/damyon/moodle 2018-11-13 11:20:54 +08:00
Damyon Wiese bb650761c5 MDL-63882 core_message: Use validate_parameters
external_api::validate_parameters() sets defaults, and does cleaning and sanitisation of the
inputs. It returns the cleaned params. We can't be re-using the arguments to this function
instead of the results, because they have not been cleaned.
2018-11-13 10:54:05 +08:00
Jun Pataleta 657c74416d Merge branch 'MDL-63834_master' of git://github.com/markn86/moodle 2018-11-13 09:35:23 +08:00
Mark Nelson 869eac8204 MDL-63834 core_message: validate conversation type before creating 2018-11-13 08:41:26 +08:00
AMOS bot dce0a6dfb0 Automatically generated installer lang files 2018-11-13 00:07:31 +00:00
Andrew Nicols 951000c250 Merge branch 'master_MDL-63953' of https://github.com/danmarsden/moodle 2018-11-13 07:47:45 +08:00
David Monllao 06a0161ad1 Merge branch 'MDL-63729-master' of git://github.com/dpalou/moodle 2018-11-12 17:44:18 +01:00
David Monllao e1266eaf4b MDL-63724 messaging: Prefix field with the table alias 2018-11-12 16:26:14 +01:00
Bas Brands 356bfb698f MDL-63663 core_my: prevent page jumps on load
equal size loading placeholders
added list view and summary view placeholders for myoverview
2018-11-12 15:44:37 +01:00
David Monllao 388628823e Merge branch 'MDL-63855-master' of git://github.com/bmbrands/moodle 2018-11-12 13:27:08 +01:00
Eloy Lafuente (stronk7) 49971e66f7 Merge branch 'MDL-63907-master' of git://github.com/cescobedo/moodle 2018-11-12 12:07:45 +01:00
Eloy Lafuente (stronk7) 610883c007 Merge branch 'MDL-63929-master' of git://github.com/jleyva/moodle 2018-11-12 12:02:51 +01:00
David Monllao 754ff36d1d Merge branch 'MDL-63925-master' of git://github.com/mickhawkins/moodle 2018-11-12 11:57:42 +01:00
David Monllao f04e51cfca Merge branch 'MDL-63940-master-recaptchaurl' of git://github.com/mudrd8mz/moodle 2018-11-12 10:42:36 +01:00
Sara Arjona d9552c3c33 MDL-63901 core_message: Fix error when the conversation does not exist
Create a conversation instead of throwing an exception to get the
behaviour working as it was before.
The string lang 'conversationdoesntexist' can be removed because
it was added in MDL-63466 and it's not used anywhere more.
2018-11-12 10:15:59 +01:00
David Monllao c83676101f Merge branch 'MDL-63823-master' of git://github.com/lameze/moodle 2018-11-12 10:09:33 +01:00
Bas Brands a6501e9694 MDL-63855 core_my: no vertical scroll card blocks
card desks using class .dashboard-card-deck.one-row should not
show a vertical scrollbar
2018-11-12 10:03:34 +01:00
David Monllao 623995e589 Merge branch 'MDL-63968-master' of git://github.com/andrewnicols/moodle 2018-11-12 10:02:17 +01:00
Damyon Wiese eac24f2b71 Merge branch 'MDL-63945_master' of git://github.com/markn86/moodle 2018-11-12 16:36:57 +08:00
Damyon Wiese 160e77f9d0 MDL-63716 course: less user_accesstime_log() calls
We should only call this function when a user actually views a course. It is not called
automatically when a course context is validated from a webservice. It is called directly
from the core_course_view_course webservice.
2018-11-12 16:11:15 +08:00
Bas Brands c412ddc829 MDL-63923: core_my: card sizes clean and boost
Cards should have a minimum size of 250px wide
2018-11-12 09:04:56 +01:00
Mark Nelson d15c1e77b0 MDL-63945 core_message: fixed discrepancy between helpers 2018-11-12 15:30:30 +08:00
Damyon Wiese b0f45a8b8f Merge branch 'MDL-63724-master-3' of https://github.com/snake/moodle 2018-11-12 14:16:31 +08:00
Damyon Wiese 75e6661940 Merge branch 'MDL-63909_master' of git://github.com/markn86/moodle 2018-11-12 14:01:01 +08:00
Damyon Wiese 6cfba4a1c6 MDL-63864 message: Contact request fix
The contactrequestid was removed from the api, so now we search by both
the userid from and the userid to.
2018-11-12 13:38:33 +08:00
Andrew Nicols 6d0a43deb9 Merge branch 'MDL-63763-master' of https://github.com/nwp90/moodle 2018-11-12 10:32:32 +08:00
Andrew Nicols e926b4d046 MDL-63968 message: Correct use of get_in_or_equal 2018-11-12 10:32:06 +08:00
Jake Dallimore 2553e9db8e MDL-63724 core_message: add send_messages_to_conversation() web service 2018-11-12 10:09:27 +08:00
Jake Dallimore 86e274d929 MDL-63724 core_message: move message redirection into helper function 2018-11-12 10:09:27 +08:00
Jake Dallimore 52f9cf205e MDL-63724 core_message: add send_message_to_conversation() to api 2018-11-12 10:09:27 +08:00
Jake Dallimore b30f4d6d58 MDL-63724 core_message: buffering support for conv messages in manager
We need to be able to delay calling all member processors with localised
event data if a DB transaction is taking place. This code treats a
conversation message as a single item of work to be buffered, and stores
all localised eventdata, and processorlists for later reference. When
processing the buffer, we pass off all localised eventdata items to
their respective member's processors, before firing a single event.
2018-11-12 10:09:27 +08:00
Jake Dallimore 0eddf920be MDL-63724 core_message: add conversation support to message_send()
Added a test confirming that processors are called for each member
and that a single event is fired.
2018-11-12 10:09:27 +08:00
Jake Dallimore 9581bc3c00 MDL-63724 core_message: add send_message_to_conversation() to manager 2018-11-12 10:09:27 +08:00
Jake Dallimore aa083ab95f MDL-63724 core_message: add new group_message_sent event 2018-11-12 10:09:27 +08:00
Jake Dallimore 947d32895e MDL-63724 core_message: split up event and processor code in the manager
This was couple before, but we're going to want this to be separate for
group conversation messages, where we'll call many users' processors,
but only create a single 'group_message_sent' event.
2018-11-12 10:09:27 +08:00
Jake Dallimore 9f82758c01 MDL-63724 core_message: fix method signature for can_contact_user()
This method required objects, but only used their ids, so has been
changed to require only ids.
2018-11-12 10:09:27 +08:00
Jake Dallimore 8e3bf150d9 MDL-63724 core_message: add can_send_message_to_conversation() to api 2018-11-12 10:09:27 +08:00
Damyon Wiese 080cc5b671 Merge branch 'MDL-63864_master' of git://github.com/markn86/moodle 2018-11-12 10:02:25 +08:00
Andrew Nicols fa54c160f9 Merge branch 'MDL-63838-master' of git://github.com/vmdef/moodle 2018-11-12 09:54:59 +08:00
Simey Lameze 2d18a4a89f MDL-63823 tool_lpimportcsv: supress progress bar debugging 2018-11-12 09:53:07 +08:00
Andrew Nicols e2a8ebddb5 Merge branch 'MDL-63850_master' of git://github.com/markn86/moodle 2018-11-12 07:53:09 +08:00
Dan Marsden 93bddb2734 MDL-63953 mod_scorm: Use correct value for first attempt. 2018-11-12 09:51:15 +13:00
Eloy Lafuente (stronk7) 208950cff0 on-demand release 3.6dev+ 2018-11-10 12:53:31 +01:00
Eloy Lafuente (stronk7) 3b1e59e3e1 NOBUG: Fixed SVG browser compatibility 2018-11-10 12:53:29 +01:00
Eloy Lafuente (stronk7) 42155e2501 Merge branch 'MDL-63960-master' of git://github.com/andrewnicols/moodle 2018-11-10 10:27:35 +01:00
Andrew Nicols c083d1ad1e MDL-63960 dataprivacy: Do not perform strict type checks for id
When inherit is specified in the data registry it is stored as a
string and we cannot perform a strict comparison with it.

We should still compare strict comparison checks against null, or false,
but not for the NOTSET (0) or INHERIT values (-1).
2018-11-10 15:34:21 +08:00
Andrew Nicols 35afa11801 Merge branch 'MDL-63919' of git://github.com/stronk7/moodle 2018-11-10 10:59:25 +08:00
Eloy Lafuente (stronk7) d01d9e2c0e Merge branch 'MDL-63596-master' of git://github.com/andrewnicols/moodle 2018-11-10 03:49:14 +01:00
Andrew Nicols 2986a99153 MDL-63596 backup: Add missing include 2018-11-10 10:46:38 +08:00
Eloy Lafuente (stronk7) baf3fd4177 MDL-63919 tool_dataprivacy: admin & notify fixes
This includes the following:

1) Replace $ADMIN->id by get_admin()->id. The former doesn't exist.
2) Only change the notify parameter when it has not been specified
   at creation time (null). If specified, observe it.
3) Set the current user in tests to admin, able to create those
   requests.
2018-11-10 02:22:12 +01:00
Eloy Lafuente (stronk7) 5c0f8dcddf Merge branch 'MDL-63596-master' of git://github.com/andrewnicols/moodle 2018-11-09 19:32:23 +01:00
dpalou 5bb1889f43 MDL-63729 badges: Return new DB tables data in WS 2018-11-09 12:39:53 +01:00
dpalou 18d27ac2eb MDL-63729 badges: Return new fields in badge table in WS 2018-11-09 12:11:04 +01:00
dpalou c776e1dd40 MDL-63729 badges: Create an exporter for badge info 2018-11-09 12:09:45 +01:00
Andrew Nicols 56c2b941df MDL-63919 tool_dataprivacy: Notify by default 2018-11-09 18:39:42 +08:00
Eloy Lafuente (stronk7) 8ecff96216 Merge branch 'MDL-63884-master-fix' of https://github.com/snake/moodle 2018-11-09 11:19:02 +01:00
Jake Dallimore d76029110b MDL-63884 core_message: fix for get_conversations legacy adapter code
This code also tries to adapt other conversation types, but it should
only support individual conversations, where we know members exist.
2018-11-09 17:59:55 +08:00
Jake Dallimore 9cef5491fb MDL-63884 core_message: fix for groups without images
If we don't have an image for the group, leave this extra field empty.
2018-11-09 17:59:53 +08:00
Eloy Lafuente (stronk7) ba999160b4 Merge branch 'MDL-62564-master-fix' of git://github.com/andrewnicols/moodle 2018-11-09 10:59:04 +01:00
Damyon Wiese f1f7d45bc7 MDL-63596 backup: Deal with controller types
For privacy requests, deal with all 3 controller types.
2018-11-09 17:55:23 +08:00
Andrew Nicols b26c5e031b MDL-62564 tool_dataprivacy: Do not delete deleted user
This also ensures that we do not call delete_user on an already deleted
user.
2018-11-09 17:34:47 +08:00
Juan Leyva 2979ca1175 MDL-63929 user: Support unsetting prefs in update_user_preferences WS 2018-11-09 09:28:23 +01:00
Mihail Geshoski fc9bde4bc3 MDL-63596 core_backup: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-11-09 16:09:22 +08:00
Jun Pataleta 012fa6abc3 Merge branch 'MDL-63867-master' of git://github.com/mickhawkins/moodle 2018-11-09 15:31:28 +08:00
Michael Hawkins 95a3f78058 MDL-63867 tool_dataprivacy: Add site purpose checks to tasks
If a site purpose is not defined, requests cannot be processed.
2018-11-09 15:20:12 +08:00
Michael Hawkins 0646c8514b MDL-63867 tool_dataprivacy: Fix context expired/unprotected user check
It now checks the system context has been defined, since that is
required for data privacy to be set up correctly, and the check
to be valid. This also fixes an error being thrown when checking
pending delete requests in cron.
2018-11-09 14:19:31 +08:00
Jun Pataleta 3adcfb0518 Merge branch 'MDL-63946-master' of git://github.com/andrewnicols/moodle 2018-11-09 13:41:44 +08:00
Mark Nelson b3ce575e63 MDL-63864 core_message: added unit tests 2018-11-09 13:28:39 +08:00
Mark Nelson accd64827d MDL-63864 core_message: can now specify limit for contact requests 2018-11-09 13:28:38 +08:00
Andrew Nicols 9c89103a63 MDL-63946 plagirism: Filename typo fix 2018-11-09 13:25:33 +08:00
Mark Nelson daa33803cd MDL-63864 core_message: get_contact_requests now uses helper 2018-11-09 12:12:17 +08:00
Jun Pataleta a954485ef5 Merge branch 'MDL-63830-master' of git://github.com/bmbrands/moodle 2018-11-09 12:07:05 +08:00
Jun Pataleta 1d2adca39b Merge branch 'MDL-63924-master' of git://github.com/andrewnicols/moodle 2018-11-09 11:57:38 +08:00
Jun Pataleta 66e83fc0cc Merge branch 'MDL-63942-master' of git://github.com/andrewnicols/moodle 2018-11-09 11:44:02 +08:00
Jun Pataleta 2acbd44883 Merge branch 'MDL-63897-master' of git://github.com/andrewnicols/moodle 2018-11-09 11:30:28 +08:00
Andrew Nicols 8bb3c0d0c5 fixup! MDL-63897 dataprivacy: Kill the preprocess stage 2018-11-09 11:26:21 +08:00
Andrew Nicols 03acfa408a MDL-63897 tool_dataprivacy: Send notifications for new requests 2018-11-09 11:25:57 +08:00
Andrew Nicols b838d85cbc MDL-63897 dataprivacy: Kill the preprocess stage 2018-11-09 11:08:07 +08:00
Damyon Wiese 3dc6208961 Merge branch 'MDL-62415-master' of git://github.com/peterRd/moodle 2018-11-09 10:54:35 +08:00
Andrew Nicols b627565e9b Merge branch 'MDL-63919-master' of git://github.com/mihailges/moodle 2018-11-09 10:51:48 +08:00
Jun Pataleta 120edbe65f Merge branch 'MDL-62589-master' of git://github.com/andrewnicols/moodle 2018-11-09 10:36:52 +08:00
Damyon Wiese ba3b0cc6ac Merge branch 'wip-MDL-63894-master' of https://github.com/kwiliarty/moodle 2018-11-09 09:48:39 +08:00
Andrew Nicols a10b512021 MDL-63942 dataprivacy: Disable deleted user task by default 2018-11-09 09:29:13 +08:00
Peter 29cfe7a527 MDL-62415 repo_filepicker: Display search results in tree view
Disable overriding call to list all files in tree view and show search results instead
2018-11-09 09:28:28 +08:00
Damyon Wiese d3fdd7442b Merge branch 'MDL-63671-master-2' of git://github.com/mihailges/moodle 2018-11-09 09:12:49 +08:00
David Mudrák b207af3b48 MDL-63940 recaptcha: Use www.recaptcha.net in the service endpoint URL
There are countries where www.google.com is a being blocked and
recaptcha does not work there. As shown at
https://developers.google.com/recaptcha/docs/faq#can-i-use-recaptcha-globally
it is enough to simply use www.recaptcha.net in the service endpoint
URL.
2018-11-08 22:55:33 +01:00
Jun Pataleta 3bc9a0b2e2 Merge branch 'MDL-63836-master' of git://github.com/damyon/moodle 2018-11-09 00:21:19 +08:00
Eloy Lafuente (stronk7) 3aa0cfe33e Merge branch 'MDL-62564-integration-master-1' of git://github.com/mihailges/moodle 2018-11-08 16:38:38 +01:00
Víctor Déniz Falcón fe2e696ed7 MDL-63838 block_recentlyaccesseditems: add placeholder during loading 2018-11-08 14:12:40 +00:00
Andrew Nicols c96cd71102 MDL-63924 privacy: Add shared user providers to subsytsems 2018-11-08 21:26:18 +08:00
Mark Nelson 4461288dfa MDL-63909 core_message: undeprecated still used functions by old UI
A note has been made to remove these and other functions once we
remove the old UI.
2018-11-08 18:43:17 +08:00
Mark Nelson a6049a7960 MDL-63909 core_message: deprecated web services not used in new UI 2018-11-08 18:22:00 +08:00
Víctor Déniz Falcón e26d40e343 MDL-53035 mod_assign: add course_module_viewed event 2018-11-08 09:54:55 +00:00
Eloy Lafuente (stronk7) 5b3f4bbb12 MDL-63927 performance: Update the plan to support the new login token 2018-11-08 10:25:08 +01:00
Mark Nelson cef1d977c3 MDL-63850 core_message: get_conversations returns privacy and requests 2018-11-08 16:24:29 +08:00
Mihail Geshoski a128601eb3 MDL-63671 tool_cohortroles: Limit data to the system context in provider 2018-11-08 16:06:43 +08:00
Mark Nelson 82e0973c96 MDL-63850 core_message: helper now returns privacy information 2018-11-08 16:05:25 +08:00
Mark Nelson 5c675c5076 MDL-63850 core_message: '$referenceuserid' used when returning requests 2018-11-08 16:05:25 +08:00
Mark Nelson 054834b00c MDL-63850 core_message: moved contact request logic to helper 2018-11-08 16:05:25 +08:00
Mark Nelson 6981de1080 MDL-63850 core_message: prevent exception being thrown with empty array 2018-11-08 16:05:25 +08:00
Andrew Nicols 44e56956c6 MDL-63924 core_privacy: Add shared_userlist provider 2018-11-08 15:39:56 +08:00
Michael Hawkins e49b73e35e MDL-63925 privacy: Fixed Moodle URL in template 2018-11-08 15:36:40 +08:00
Mihail Geshoski f39b579de1 MDL-63919 privacy: Store the creation method of the data request 2018-11-08 14:13:31 +08:00
Mihail Geshoski 77c21518f2 MDL-63919 privacy: Disable notifications for auto created data requests 2018-11-08 14:08:43 +08:00
Andrew Nicols 308eb72448 Merge branch 'MDL-63903-master' of https://github.com/snake/moodle 2018-11-08 14:02:10 +08:00
Damyon Wiese bc8584193a Merge branch 'MDL-63282_master' of git://github.com/markn86/moodle 2018-11-08 14:00:00 +08:00
Jun Pataleta 67bceccd4a Merge branch 'MDL-63902-master' of git://github.com/andrewnicols/moodle 2018-11-08 13:39:05 +08:00
Amaia Anabitarte 36e23989b0 MDL-63282 core_message: Setting messagingallusers = 1 for behat tests
Default setting value for new instances is 0
Default setting value for existing instances is 1
to get same search results than before this setting exists

Setting messagingallusers = 1 for behat tests to simulate old versions functionality

Followup: MDL-63911
2018-11-08 13:11:28 +08:00
Amaia Anabitarte 548cac7dbf MDL-63282 core_message: New Search API function 2018-11-08 13:11:28 +08:00
Kevin Wiliarty 13e3206910 MDL-63894 themes: adds flex-wrap to boost inline date_time_selector 2018-11-07 23:48:34 -05:00
Andrew Nicols 50208b5ca5 MDL-62589 dataprivacy: Add ability to resubmit a request 2018-11-08 11:45:36 +08:00
Jun Pataleta ba8c81ba4a Merge branch 'MDL-63840-master' of https://github.com/lucaboesch/moodle 2018-11-08 11:32:12 +08:00
Damyon Wiese c338d6487c Merge branch 'MDL-63875' of https://github.com/timhunt/moodle 2018-11-08 09:41:16 +08:00
Mihail Geshoski 673d2c58fb MDL-62564 privacy: Create request for deleted users when setting enabled 2018-11-08 09:29:38 +08:00
Mihail Geshoski b4ecfa38c2 MDL-62564 privacy: Improve bulk deletion 2018-11-08 09:28:36 +08:00
Andrew Nicols 66a47d23fa MDL-63902 dataprivacy: Check course children not the course
When checking the expiry and protected state of a context, we need to do
so knowing what kind of use that context has.

If it is used in the user context, then only the user context matters.
If it is used within a course, then that child context must be checked
in relation to the course.
2018-11-08 09:13:15 +08:00
Damyon Wiese f41207400b MDL-63836 course: No course header images
This feature may be added in future, but for now we are not going to include it.
2018-11-08 08:59:35 +08:00
Mihail Geshoski 4bd598cbc9 MDL-62564 privacy: Add unit tests 2018-11-08 08:59:31 +08:00
Luca Bösch 181b12a6bd MDL-63840 theme: block menu cog size. 2018-11-07 17:57:55 +01:00
Jun Pataleta 5160567c5f MDL-62294 lib: Take note of cherry-picked upstream commit
* Make a note of the applied upstream patch in
  lib/lessphp/moodle_readme.txt which fixes the PHP 7.2 compatibility
  issue when counting ruleset rules.

* Amended on integration to put together all the local modifications.
2018-11-07 17:25:03 +01:00
Michaël Marinetti cde2530c54 MDL-62294 lessphp: Fix for PHP 7.2 compatibility
From upstream commit:
https://github.com/oyejorge/less.php/commit/669acc51817a8da162b5f1b7137e79f0e4acc636
2018-11-07 17:21:39 +01:00
cescobedo 4cdc9f73b8 MDL-63907 core_message: Pass user object to show_online_status.
Fix create_contact() to pass user object as parameter in show_online_status.
2018-11-07 17:05:12 +01:00
David Monllao e0d7266379 Merge branch 'MDL-63888-master' of git://github.com/jleyva/moodle 2018-11-07 13:03:34 +01:00
David Monllao d33a22c037 Merge branch 'MDL-63740-master' of git://github.com/jleyva/moodle 2018-11-07 12:56:10 +01:00
Juan Leyva b9508423b4 MDL-63740 webservice: Add new dashboard functions to mobile service
- core_course_get_enrolled_courses_by_timeline_classification
- core_course_get_recent_courses
- core_course_set_favourite_courses
- block_starredcourses_get_starred_courses
2018-11-07 12:37:43 +01:00
Juan Leyva 2b6a0c6a68 MDL-63888 webservice: Return new global setting "messagingallusers" 2018-11-07 12:37:17 +01:00
Andrew Nicols 4c1fc0b6d6 MDL-62589 dataprivacy: Correct not in sql 2018-11-07 19:24:07 +08:00
Bas Brands f457cb862d MDL-63830 block_myoverview: shorten card titles 2018-11-07 11:47:23 +01:00
Bas Brands 7ba8c72781 MDL-63830 block_myoverview: menu icon position summary 2018-11-07 11:47:23 +01:00
Bas Brands 44b549260d MDL-63830 block_myoverview: reuse css for dashboard blocks
target block content only
use same html accross blocks
add one-row class for scrolling cards
2018-11-07 11:47:04 +01:00
Bas Brands f1b1f3804e MDL-63830 block_myoverview: rounded images for summary view 2018-11-07 11:23:27 +01:00
Bas Brands 97593c37d8 MDL-63830 block_myoverview: text colour course names
Using same card HTMl for recently accessed courses
2018-11-07 11:23:26 +01:00
Bas Brands 1a97254201 MDL-63830 block_myoverview: move course menu button up 2018-11-07 11:23:26 +01:00
Bas Brands 95acd7b1b4 MDL-63830 block_myoverview: remove margin card title 2018-11-07 11:23:19 +01:00
Jake Dallimore cd07b3b5cb MDL-63903 core_message: fix bug with shim code in index.php
On backend render (not via js loading), the following bugs were
introduced:
- Message ordering was wrong
- Message blocktimes were wrong
This patches the above to restore legacy behaviour.
2018-11-07 18:19:07 +08:00
Eloy Lafuente (stronk7) 3c577cb583 Merge branch 'MDL-63883-master' of https://github.com/snake/moodle 2018-11-07 10:48:12 +01:00
David Monllao b6816ed2ca Merge branch 'MDL-63675-master' of git://github.com/bmbrands/moodle 2018-11-07 10:44:57 +01:00
Bas Brands 78c06a660b MDL-63830 block_myoverview: star icon updates
Change the star icon from being in a button and allow it to be
inline using spans instead of divs.
Add the option to passes css classed to the template.
2018-11-07 09:48:00 +01:00
Bas Brands aba5b89c7a MDL-63830 block_myoverview: card footer styles 2018-11-07 09:00:18 +01:00
Bas Brands 2b311e7689 MDL-63830 block_myoverview: progressbar styles boost
using bg-white and border
allow collapsing of list view content
removed obsolete styles for old progress circles bootstrapbase
2018-11-07 08:59:29 +01:00
Damyon Wiese d4035711f9 Merge branch 'MDL-63898-master' of https://github.com/snake/moodle 2018-11-07 15:30:52 +08:00
Jun Pataleta 134f262ee3 Merge branch 'master_MDL-63800' of https://github.com/danmarsden/moodle 2018-11-07 15:27:27 +08:00
Damyon Wiese da151c9b75 Merge branch 'MDL-63839_master' of git://github.com/markn86/moodle 2018-11-07 14:29:02 +08:00
Jake Dallimore 74fc14e5b2 MDL-63898 core_message: fix for get_conversations message formatting
This used to return a text version of the message, but needs to return
the message formatted with message_format_message_text().
2018-11-07 14:23:54 +08:00
Damyon Wiese 8313f552b6 Merge branch 'MDL-63451' of https://github.com/peterspicer-catalyst/moodle 2018-11-07 12:05:27 +08:00
Damyon Wiese eb935dab5b Merge branch 'MDL-63884-master' of https://github.com/snake/moodle 2018-11-07 11:00:41 +08:00
Juan Leyva c1720141fd MDL-63708 tool_mobile: Add options for disabling blocks
Now that we are supporting the new dashboard and site home blocks on the mobile app,
we need options to allow admin to forbid certain blocks to be displayed on the app.
2018-11-07 00:32:32 +01:00
Jun Pataleta e862985a69 MDL-63183 auth_shibboleth: Don't render page when already logged in 2018-11-07 00:14:48 +01:00
Jun Pataleta 5f9955b5a0 MDL-63183 auth_shibboleth: Add hidden login token in guest login form 2018-11-07 00:14:48 +01:00
Damyon Wiese 6dfe428363 MDL-63183 auth: Login protection
CSRF protection for the login form. The authenticate_user_login function was
extended to validate the token (in \core\session\manager) but by default it
does not perform the extra validation. Existing uses of this function from
auth plugins and features like "change password" will continue to work without
changes. New config value $CFG->disablelogintoken can bypass this check.
2018-11-07 00:14:48 +01:00
Eloy Lafuente (stronk7) ef79de12ee Merge branch 'm36_MDL-63789_Search_SOLR_Fixes_Proxy_Auth' of https://github.com/scara/moodle 2018-11-07 00:08:12 +01:00
Eloy Lafuente (stronk7) 08c51ff080 on-demand release 3.6dev+ 2018-11-06 19:06:54 +01:00
Eloy Lafuente (stronk7) fca12fd991 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2018-11-06 19:06:52 +01:00
Damyon Wiese 1c7288e79b Merge branch 'MDL-58454-master-fix' of git://github.com/junpataleta/moodle 2018-11-06 15:48:31 +01:00
Jun Pataleta e75860caea MDL-58454 badges: Use correct function for fetching badge issuer 2018-11-06 15:48:31 +01:00
Andrew Nicols 6d47156f75 Merge branch 'MDL-63711-master-fix' of git://github.com/junpataleta/moodle 2018-11-06 15:48:30 +01:00
Jun Pataleta 5c145757a8 MDL-58454 core: Fix savepoint in upgrade.php 2018-11-06 15:48:30 +01:00
Jun Pataleta ad2737c9c9 MDL-63711 core_grade: Use canonicalize for checking userlist IDs 2018-11-06 15:48:30 +01:00
David Monllao 2bdc254cd2 Merge branch 'MDL-58454-master' of git://github.com/junpataleta/moodle 2018-11-06 15:48:23 +01:00
Damyon Wiese d769d7c2db Merge branch 'MDL-63297' of https://github.com/timhunt/moodle 2018-11-06 15:45:23 +01:00
Jake Dallimore 003cdcce15 MDL-63884 core_message: add imageurl support for linked conversations
This is an extra field specific to linked conversations, so the helper
method has been extended to encompass this alongside the subname field.
2018-11-06 16:51:44 +08:00
Jake Dallimore 19237383f3 MDL-63884 core: allow tests to set group pictures when creating groups 2018-11-06 16:42:46 +08:00
Jake Dallimore 741376f3e7 MDL-63883 core_message: fix random externnallib_test phpunit failure
Users created by the test generator could have the same name as one
another, so trying to assert names NOT in an array would clash. Fix
is to remove those assertions - there were superfluous anyway.
2018-11-06 14:17:51 +08:00
Jun Pataleta 9639cb487e MDL-58454 badges: Fix related badge deletion
* When deleting a badge, delete badge_related records where this badge
is also set as the related badge.
2018-11-06 11:47:20 +08:00
Jun Pataleta eea49debc8 Merge branch 'MDL-63062-master-renamed' of https://github.com/vmdef/moodle 2018-11-06 10:32:18 +08:00
Andrew Nicols 74238c1c18 Merge branch 'MDL-62563-master-3' of git://github.com/mihailges/moodle 2018-11-06 09:37:23 +08:00
Bas Brands 4edd1bb089 MDL-63863 block_myoverview: remove superfluous div
So the clean suite in behat will be back to pass.
2018-11-06 01:18:37 +01:00
AMOS bot a36021e293 Automatically generated installer lang files 2018-11-06 00:07:16 +00:00
Víctor Déniz Falcón 4f6680a1e9 MDL-63062 block_recentlyaccessedcourses: add starred icon 2018-11-05 23:51:49 +00:00
Víctor Déniz Falcón 41f6129358 MDL-63062 block_recentlyaccessedcourses: add block and styles 2018-11-05 23:46:57 +00:00
Victor Deniz 98a52c80bb MDL-63062 block_recentlyaccessedcourses: add web service 2018-11-05 23:46:43 +00:00
Dan Marsden e6a93dc215 MDL-63800 mod_assign: don't show grade if not set. 2018-11-06 10:04:15 +13:00
Tim Hunt ad89de38eb MDL-63875 qtype_ddmarker: fix layout with multi-line markers 2018-11-05 17:45:05 +00:00
Sara Arjona 5a1ea82835 MDL-58454 badges: Fix some minor errors for Open Badges v2 2018-11-05 18:41:54 +01:00
David Monllao 6e90098e7b Merge branch 'MDL-63711-master' of git://github.com/abgreeve/moodle 2018-11-05 16:35:34 +01:00
Tung Thai d363a5c2e6 MDL-58454 badges: Open Badges Specification Version 2.0 Changes 2018-11-05 14:20:46 +01:00
Bas Brands 4f42ca11ff MDL-63675 block_myoverview: IE11 card size issues 2018-11-05 13:43:52 +01:00
Eloy Lafuente (stronk7) e572007248 Merge branch 'MDL-63748-master' of git://github.com/jleyva/moodle 2018-11-05 13:11:17 +01:00
David Monllao 0422a13c90 Merge branch 'MDL-63764-master' of git://github.com/mickhawkins/moodle 2018-11-05 12:46:12 +01:00
David Monllao 83868e1416 Merge branch 'MDL-63739-master' of git://github.com/jleyva/moodle 2018-11-05 11:19:32 +01:00
David Monllao d9c54de37f Merge branch 'MDL-63700-master' of git://github.com/mickhawkins/moodle 2018-11-05 11:13:51 +01:00
Mihail Geshoski c13c4569a9 MDL-62563 privacy: Create delete data request for existing deleted users 2018-11-05 16:20:37 +08:00
Mihail Geshoski 9fade7ff13 MDL-62563 privacy: Add unit tests 2018-11-05 16:20:06 +08:00
Damyon Wiese 17af25ce92 MDL-44137 group: fix stdClass name
Fix only for new core_group_update_groups webservice.
2018-11-05 15:09:47 +08:00
Damyon Wiese f6ca9ca691 Merge branch 'MDL-44137_add_update-groups_webservice' of https://github.com/TheVirtualLtd/moodle 2018-11-05 15:07:26 +08:00
Andrew Nicols 19716edd9c Merge branch 'MDL-63689-master-workshopprivacy' of git://github.com/mudrd8mz/moodle 2018-11-05 14:54:09 +08:00
Damyon Wiese 4f26d21886 Merge branch 'MDL-63717-master' of git://github.com/jleyva/moodle 2018-11-05 13:45:25 +08:00
Andrew Nicols 5b2856864d Merge branch 'MDL-63564-master' of git://github.com/mihailges/moodle 2018-11-05 12:57:48 +08:00
Mark Nelson 27024d830c MDL-63839 core_message: use component name for Behat tag 2018-11-05 10:35:51 +08:00
Damyon Wiese 842138a7cb Merge branch 'MDL-63827' of https://github.com/timhunt/moodle 2018-11-05 10:28:11 +08:00
Andrew Nicols 5aed9a4e26 Merge branch 'MDL-63772' of https://github.com/timhunt/moodle 2018-11-05 09:36:09 +08:00
Andrew Nicols e4384a6a56 Merge branch 'MDL-63712-master' of git://github.com/mickhawkins/moodle 2018-11-05 09:33:42 +08:00
Eloy Lafuente (stronk7) 65c8a8a899 Merge branch 'MDL-63818-master-2' of git://github.com/andrewnicols/moodle 2018-11-05 00:02:56 +01:00
Matteo Scaramuccia 13719f2ebb MDL-63789 search_solr: use proxy creds, if any
Also use proxy port, IF any.
2018-11-02 23:13:15 +01:00
Eloy Lafuente (stronk7) bebef89174 on-demand release 3.6dev+ 2018-11-02 21:08:46 +01:00
Eloy Lafuente (stronk7) ef9073bb66 NOBUG: Fixed file access permissions 2018-11-02 21:08:46 +01:00
Eloy Lafuente (stronk7) 0a33e41562 NOBUG: Fixed SVG browser compatibility 2018-11-02 21:08:44 +01:00
Roger Barras 6959abc816 MDL-60267 user: Fix set default data for the user profile field 2018-11-02 20:09:04 +01:00
Adrian Greeve d5f8687a92 MDL-63711 core_grades: Delete data for specified users in a context. 2018-11-03 02:26:24 +08:00
Juan Leyva d9714b1ff9 MDL-63748 core_auth: Fix redirect parameter being ignored 2018-11-02 15:16:02 +01:00
Juan Leyva 818d40a922 MDL-63717 tool_mobile: Ensure URLs are valid
We need to clean the URLs returned by the get_public_config WS because some old plugins didn't validate the stored data.
2018-11-02 14:37:29 +01:00
Juan Leyva 8e7b8cf08f MDL-63739 core_enrol: Add completion criteria, hiden and favourited data 2018-11-02 12:10:57 +01:00
Mihail Geshoski 076288307f MDL-63564 core_question: Avoid using UNION in get_users_in_context() 2018-11-02 14:14:19 +08:00
Shamim Rezaie 6cd2de3ceb MDL-63564 mod_quiz: Added delete_quizaccess_data_for_users to polyfill
This issue is a part of the MDL-62560 Epic.
2018-11-02 14:04:25 +08:00
Shamim Rezaie 0db66dcf5d MDL-63564 mod_quiz: support removal of multiple users in a context
This issue is a part of the MDL-62560 Epic.
2018-11-02 14:04:23 +08:00
Shamim Rezaie 92d26b3940 MDL-63564 mod_quiz: Added quizaccess_user_provider interface
This issue is a part of the MDL-62560 Epic.
2018-11-02 13:56:02 +08:00
Shamim Rezaie bdba3b97fd MDL-63564 question: Add helper to fetch users in context
This issue is a part of the MDL-62560 Epic.
2018-11-02 13:56:01 +08:00
Shamim Rezaie c8aff683cb MDL-63564 core_question: support removal of multiple users in a context
This issue is a part of the MDL-62560 Epic.
2018-11-02 13:56:01 +08:00
Andrew Nicols d1d7d1396a Merge branch 'MDL-63701-master-1' of git://github.com/mihailges/moodle 2018-11-02 12:02:58 +08:00
Andrew Nicols 91071ad785 Merge branch 'MDL-63666-master' of git://github.com/mihailges/moodle 2018-11-02 10:46:33 +08:00
Peter 645cb7dd0f MDL-63457 block_myoverview: Bug fixes
* Updated bootstrap theme to match boost
* Fix up logical errors in js
2018-11-02 10:44:32 +08:00
Damyon Wiese fb3ab37a67 Merge branch 'MDL-63549-master' of https://github.com/snake/moodle 2018-11-02 10:17:54 +08:00
Jake Dallimore aa74835164 MDL-63549 core_message: exclude conversations where all messages deleted
If there are no recent messages for an individual conversation for the
user, then we exclude that conversation from the results.
2018-11-02 10:10:37 +08:00
Mihail Geshoski d638ab7c50 MDL-63666 logging: Rename delete_data_for_all_users() function 2018-11-02 09:17:24 +08:00
Andrew Nicols 3dd49ad738 MDL-63842 core_user: Remove unnecessary DB fetch 2018-11-02 09:07:18 +08:00
Adrian Greeve ac7d086d1d MDL-63666 logging: Add support for removal of context users.
This creates a new interface for the logging subplugins to
implement for the users to be deleted separately.
2018-11-02 08:57:43 +08:00
Andrew Nicols ec859d9f4b Merge branch 'MDL-63703-master-1' of git://github.com/mihailges/moodle 2018-11-02 08:56:40 +08:00
Andrew Nicols 08a3564f93 Merge branch 'MDL-63738' of https://github.com/timhunt/moodle 2018-11-02 08:43:53 +08:00
Andrew Nicols dc2e54696b MDL-63702 core_block: Correct phpdoc for get_users 2018-11-02 08:34:20 +08:00
Andrew Nicols 4dbae58e87 MDL-63422 blog: Correct phpdoc for get_users 2018-11-02 08:34:20 +08:00
Andrew Nicols f8e364e31a Merge branch 'MDL-63422' of git://github.com/stronk7/moodle 2018-11-02 08:22:33 +08:00
Andrew Nicols bdccab4769 Merge branch 'MDL-63816-master' of git://github.com/mickhawkins/moodle 2018-11-02 08:00:32 +08:00
Eloy Lafuente (stronk7) 8037dd6c15 Merge branch 'MDL-63746-master' of git://github.com/damyon/moodle 2018-11-01 15:38:08 +01:00
Andrew Nicols 74a938c353 MDL-63818 core: Add all relevant module context caps
This change ensures that all capabilities at module context level are
shown within a module, only filtering out those which belong to another
module or the subplugins of another module.

This has the effect that module-level capabilities are included
providing they relate to
- the module being queried
- any subplugin of that module
- any capability at module level which does not belong to another module
  or its subplugin
- any other explicitly included capability

This allows permissions to be defined on a capability at a context
level.
2018-11-01 20:51:18 +08:00
Tim Hunt f4ef234544 MDL-63772 atto_recordrtc: capabilities to control who can record what 2018-11-01 09:53:17 +00:00
Michael Hawkins b8bbef0a9b MDL-63712 core_message: Unit test improvements for fetching context/user
This issue is part of the MDL-62560 Epic.
2018-11-01 16:51:12 +08:00
Jun Pataleta d0b05c8d05 Merge branch 'MDL-63725_master' of git://github.com/markn86/moodle 2018-11-01 16:11:06 +08:00
Mark Nelson bc667050a4 MDL-63725 core_message: do not allow access to all conversation members 2018-11-01 15:56:07 +08:00
Damyon Wiese c3e419e4dc MDL-63063 block_recentlyaccesseditems: CSS
Only show more than one row of items when the block is displayed in a narrow column.

Fix for boost theme only because of the second block region on the dashboard.
2018-11-01 15:31:32 +08:00
Andrew Nicols 033adb0242 MDL-63457 block_myoverview: Whitespace fix 2018-11-01 15:10:10 +08:00
Andrew Nicols f3d077d0a7 Merge branch 'MDL-63457-master' of git://github.com/peterRd/moodle 2018-11-01 15:03:34 +08:00
Mihail Geshoski 0a1c6cbacf MDL-63701 editor_atto: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-11-01 14:20:04 +08:00
Peter fd955097e4 MDL-63457 block_myoverview: JS update to avoid constant network requests
* Expose paged content factory to trigger last page updates
* Remove repetitive network requests on hide/show courses
* Manually do paged dataset modification
2018-11-01 13:36:52 +08:00
Damyon Wiese bbbf9667c0 Merge branch 'MDL-63063-master-block' of https://github.com/vmdef/moodle 2018-11-01 12:57:55 +08:00
Shamim Rezaie ba81c26c79 MDL-63712 core_message: support removal of multiple users in a context
This issue is a part of the MDL-62560 Epic.
2018-11-01 12:43:21 +08:00
Shamim Rezaie 5233429642 MDL-63712 core_message: Data should be in user context, not system
This issue is a part of the MDL-62560 Epic.
2018-11-01 12:43:14 +08:00
Jun Pataleta 67d2082849 Merge branch 'MDL-63725_master' of git://github.com/markn86/moodle 2018-11-01 12:39:43 +08:00
Mihail Geshoski 8420c3bbc2 MDL-63703 core_role: Add support for removal of context users
This issue is a part of the MDL-62560 Epic.
2018-11-01 12:12:49 +08:00
Mark Nelson 5584c48a33 MDL-63725 core_message: added get_conversation_members web service 2018-11-01 11:18:20 +08:00
Mark Nelson 6ecd6e5ba8 MDL-63725 core_message: added api::get_conversation_members 2018-11-01 11:18:20 +08:00
Damyon Wiese f9efe1bb10 MDL-63746 boost: Dropdown menu styles
Remove btn styling from menu buttons as the additional padding makes things not line up.
2018-11-01 11:03:13 +08:00
Andrew Nicols e146e1133b Merge branch 'MDL-63566-master' of git://github.com/mickhawkins/moodle 2018-11-01 10:11:33 +08:00
Adrian Greeve 7a35413d16 MDL-63566 tool_dataprivacy: New interface check for userlist.
This adds another check to see if the plugins are implementing the
new core_userlist_provider.
2018-11-01 10:06:45 +08:00
Jun Pataleta 3beb545baf Merge branch 'MDL-63826' of git://github.com/stronk7/moodle 2018-11-01 09:28:45 +08:00
Andrew Nicols 2badbd52a0 Merge branch 'MDL-63064-master' of git://github.com/lameze/moodle 2018-11-01 09:16:39 +08:00
Damyon Wiese 1becffad44 Merge branch 'MDL-63549-master' of https://github.com/snake/moodle 2018-11-01 09:03:06 +08:00
Eloy Lafuente (stronk7) 9c0e123af0 MDL-63826 tests: Don't rely on random array keys for testing 2018-11-01 00:28:35 +01:00
Andrew Nicols 7b70c6bc48 Merge branch 'm36_MDL-63727_Wrong_SCO_Launched_Link' of https://github.com/scara/moodle 2018-11-01 07:01:13 +08:00
Robynstar 474dd887d0 MDL-44137 group: add update_groups webservice function 2018-11-01 11:52:03 +13:00
Matteo Scaramuccia f9df004724 MDL-63727 mod_scorm: Fixed typo in test_launch_sco() 2018-10-31 21:47:45 +01:00
Davo Smith 54a5cc6187 MDL-63727 mod_scorm: fix typo in sco_launched URL 2018-10-31 21:39:34 +01:00
Bas Brands 0ec602615d MDL-63064 block_starredcourses: horizontal scroll, load all courses 2018-10-31 13:51:13 -04:00
Tim Hunt 3a8cde29a4 MDL-63827 qformat_gift: fix notice when importing categories 2018-10-31 15:14:51 +00:00
lameze bdde16014d MDL-63064 block_starredcourses: fix linting issues 2018-10-31 10:51:05 -04:00
Bas Brands 5c6db8d956 MDL-63064 block_starredcourses: move lang strings to core_course
AMOS BEGIN
 MOV [aria:courseimage,block_myoverview],[aria:courseimage,core_course]
 MOV [aria:coursename,block_myoverview],[aria:coursename,core_course]
 MOV [aria:favourite,block_myoverview],[aria:favourite,core_course]
 MOV [favourite,block_myoverview],[favourite,core_course]
 MOV [notfavourite,block_myoverview],[notfavourite,core_course]
AMOS END
2018-10-31 10:44:30 -04:00
Bas Brands f6c6f215be MDL-63064 block_starredcourses: move favouriteicon template 2018-10-31 10:44:20 -04:00
lameze 51437e5f6d MDL-63064 block_starredcourses: make starred block style consistent
This commit remove an unused template and some custom css that has been added
previously and now is no longer necessary.
2018-10-31 10:44:16 -04:00
lameze 8730c0619c MDL-63064 block_starredcourses: remove pagination from main module
This commit also removes the userid attribute handling on templates, JS and from the webservices
setting the logged user as user id on the webservice side.
2018-10-31 10:44:13 -04:00
lameze 07fdb5a0a3 MDL-63064 block_starredcourses: change events to use pubsub 2018-10-31 10:44:08 -04:00
lameze d5d7699b87 MDL-63064 block_starredcourses: reload the content when a course is starred 2018-10-31 10:44:05 -04:00
lameze 0bb6f0b719 MDL-63064 block_myoverview: trigger event when course is starred 2018-10-31 10:44:03 -04:00
lameze 115ce6babf MDL-63064 core: add starred courses block to plugin list 2018-10-31 10:44:01 -04:00
lameze b9c56f82a1 MDL-63064 block_starredcourses: implement null provider 2018-10-31 10:43:59 -04:00
lameze 0e033f6ee1 MDL-63064 block_starredcourses: block functionality 2018-10-31 10:43:56 -04:00
lameze e1a35e19d3 MDL-63064 block_starredcourses: create block structure 2018-10-31 10:43:36 -04:00
Víctor Déniz Falcón 78e07cbcf0 MDL-63063 recentlyaccesseditems: fully contained block 2018-10-31 11:53:02 +00:00
David Monllao 8aae5e1a31 Merge branch 'MDL-63815-master' of git://github.com/bmbrands/moodle 2018-10-31 11:42:46 +01:00
David Monllao 30916022ca Merge branch 'MDL-59454-master' of https://github.com/lucaboesch/moodle 2018-10-31 11:40:08 +01:00
David Monllao 07a64c681a Merge branch 'MDL-63726-master' of https://github.com/lucaboesch/moodle 2018-10-31 10:17:29 +01:00
Bas Brands 1b1a29532d MDL-63815 core_my: transparent bg for my page header 2018-10-31 09:07:39 +01:00
Jun Pataleta 52d575b396 Merge branch 'MDL-63820' of git://github.com/albertgasset/moodle 2018-10-31 16:01:40 +08:00
Andrew Nicols 07b420a39f Merge branch 'MDL-63684-master-1' of git://github.com/mihailges/moodle 2018-10-31 15:02:24 +08:00
Damyon Wiese 554c7916c0 Merge branch 'MDL-58943-master-revised' of github.com:damyon/moodle 2018-10-31 14:39:36 +08:00
Damyon Wiese e8da9f7fdf MDL-58943 repository_nextcloud: Remove return types
FILE_EXTERNAL and FILE_REFERENCE are not supported at this time.

Minor php coding style changes.
2018-10-31 14:38:28 +08:00
Mihail Geshoski 77134a08b2 MDL-63684 core_calendar: Fix test_get_contexts_for_userid() test
This issue is part of the MDL-62560 Epic.
2018-10-31 14:10:47 +08:00
Mihail Geshoski c844eafd6f MDL-63684 core_calendar: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-31 14:10:08 +08:00
Andrew Nicols cac50a5cba Merge branch 'MDL-63702-master' of git://github.com/mihailges/moodle 2018-10-31 14:04:08 +08:00
David Monllao 57c2400b07 Merge branch 'MDL-62601-master' of git://github.com/andrewnicols/moodle 2018-10-31 06:47:16 +01:00
Andrew Nicols 5efa9f4653 MDL-62601 core_privacy: Ensure providers can handle deleted users 2018-10-31 13:45:00 +08:00
Andrew Nicols 801c6bcfca MDL-62601 editor_atto: Do not use context_user 2018-10-31 13:45:00 +08:00
Michael Hawkins 1170b1e0aa MDL-63700 core_analytics: Add support for removal of context users
This issue is a part of the MDL-62560 Epic.
2018-10-31 13:40:51 +08:00
David Monllao df9813c25b Merge branch 'MDL-63582-master' of https://github.com/lucaboesch/moodle 2018-10-31 06:09:07 +01:00
Jun Pataleta 3841786272 Merge branch 'MDL-63690-master-integration' of git://github.com/mihailges/moodle 2018-10-31 12:54:24 +08:00
Michael Hawkins b16a3388bb MDL-63816 privacy: Corrected provider get_users_in_context descriptions 2018-10-31 12:13:30 +08:00
Michael Hawkins 52e5c8b739 MDL-63816 privacy: Corrected interface get_users_in_context description 2018-10-31 12:11:21 +08:00
Mihail Geshoski 4acdbe5d0b MDL-63690 core_blog: Handle when user blog posts are not being returned 2018-10-31 11:44:09 +08:00
Jun Pataleta 3b0dbe2b64 Merge branch 'MDL-60897-master' of git://github.com/junpataleta/moodle 2018-10-31 11:34:54 +08:00
Andrew Nicols 7f56f4bfba Merge branch 'MDL-63624-master' of git://github.com/mihailges/moodle 2018-10-31 11:15:24 +08:00
Mihail Geshoski 3c0290a9fb MDL-63624 tool_cohortroles: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-31 11:08:49 +08:00
Jake Dallimore eb35e0b176 MDL-63549 core_message: deprecate data_for_messagearea_conversations 2018-10-31 10:55:34 +08:00
Jan Dageförde 4354a4286a MDL-58943 nextcloud: translatable exception messages 2018-10-31 10:42:58 +08:00
Jan Dageförde daef88213b MDL-58943 oauth2: use standard way of URL validation 2018-10-31 10:42:58 +08:00
Tobias Reischmann 3e3e120d3a MDL-58943 oauth2: Added nextcloud to standard issuers
* New button allows to create standard issuer for nextcloud
* Since the endpoints url has to be https and nextcloud relys on the
baseurl to create the endpoints, the baseurl of issuers has now to be
https as well (or empty).
* Google's baseurl was changed to https (there was no reason not to),
whereas Facebook and Microsoft baseurls remain empty.
* In case of the creation of a nextcloud issuer, the baseurl is
required.
* Nextcloud requires the baseurl, therefore a parameter is added to
create_standard_issuer($type, $baseurl = false). That parameter not
required (or used) for anything but Nextcloud.
2018-10-31 10:42:58 +08:00
Tobias Reischmann fa6cd89b24 MDL-58943 oauth2: Split issuer initialization from endpoint creation
* Splitted the initialization of default values for issuers, the
creation of the issuer, and the creation of its endpoints. This is
a fix for following use case:
 1. A user creates a standard issuer.
 2. She cancels the form.
 3. However, the issuer was already created. Thus, the cancel had no
effect.
* The function create_standard_issuer($type) can still be used to create
issuers programmatically if all required data is known beforehand (e.g.,
during upgrade or in tests).
2018-10-31 10:42:57 +08:00
Jan Dageförde f6df2a884e MDL-58943 repository: Add repository_nextcloud to core plugins 2018-10-31 10:42:57 +08:00
Nina Herrmann b4e24a82db MDL-58943 repository: Add repository_nextcloud
Based on repository_owncloud from
https://github.com/learnweb/moodle-repository_owncloud at 5b5fdbb.
Differences to the original:

* Renamed to repository_nextcloud
* Updated version.php for core
* Removed compatibility polyfills (webdav, privacy)
* Removed boilerplate files (e.g. README, CI config)
* Implement null_provider for privacy API as personal data is neither
  stored nor transmitted to the external system
2018-10-31 10:42:57 +08:00
Adrian Greeve 98f8c082de MDL-63702 core_block: Update to use new userlist interface.
This allows user data to be deleted on a role basis.
2018-10-31 10:01:44 +08:00
Jun Pataleta 6ffeabfdff MDL-60897 qtype_multianswer: Code style fixes
And Behat steps improvement, too!
2018-10-31 09:33:23 +08:00
Jean-Michel Vedrine 09fc929e13 MDL-60897 qtype_multianswer: Invalid cloze-questions saved to db 2018-10-31 09:29:53 +08:00
Andrew Nicols 244c0e10f9 Merge branch 'MDL-63530-master-2' of git://github.com/mihailges/moodle 2018-10-31 09:02:08 +08:00
Andrew Nicols 4b7418d3b0 Merge branch 'MDL-63606-master-2' of git://github.com/mihailges/moodle 2018-10-31 08:51:35 +08:00
Andrew Nicols 17109340cc Merge branch 'MDL-63690-master' of git://github.com/mihailges/moodle 2018-10-31 08:20:31 +08:00
Jake Dallimore 6f31927af8 MDL-63549 core_message: add get_conversations web service 2018-10-31 08:16:32 +08:00
Jake Dallimore eb5865da8b MDL-63549 core_message: add group support to api::get_conversations
- Added support for returning group conversations
- Added support for conversation type filtering
- Added support for NO favourites, or ONLY favourites restrictions.
2018-10-31 08:16:31 +08:00
Andrew Nicols de49fdb774 Merge branch 'MDL-63781' of https://github.com/timhunt/moodle 2018-10-31 08:15:43 +08:00
Eloy Lafuente (stronk7) f3507f5982 Merge branch 'MDL-61197-master' of git://github.com/jleyva/moodle 2018-10-31 00:22:30 +01:00
Eloy Lafuente (stronk7) b702dbf6dd MDL-63422 lib: lessphp - review core loop / switch / case / continue 2018-10-31 00:17:59 +01:00
Eloy Lafuente (stronk7) 77331aed27 MDL-63422 lib: horde - review core loop / switch / case / continue 2018-10-31 00:17:59 +01:00
Eloy Lafuente (stronk7) ed24d21b78 MDL-63422 lib: tcpdf - review core loop / switch / case / continue 2018-10-31 00:17:59 +01:00
Eloy Lafuente (stronk7) 0d2d2b9886 MDL-63422 auth_cas: review core loop / switch / case / continue
Created https://github.com/apereo/phpCAS/pull/278 upstream, applied locally.
2018-10-31 00:17:59 +01:00
Eloy Lafuente (stronk7) bd5fdcfccd MDL-63422 general: review core loop / switch / case / continue
This commit reviews all continue uses in core happening within a
loop / switch / case hierarchy. This does not cover:

- Changes to libraries. Will be handled in another issue / commit.
- Uses out from loops, will be reviewed by other commit.

The policy followed has been:
- When possible, take rid of the continue.
- When clearly the intention was to jump to next element in loop
  change to continue 2
- When it was not clear, keep old behavior switching to break, no
  matter how weird the behavior may be.
2018-10-31 00:17:59 +01:00
Luca Bösch e5abe2afbf MDL-59454 core_user: Download user table in the available formats. 2018-10-30 22:55:51 +01:00
Luca Bösch abc469dd3b MDL-63726 tool_dataprivacy: En-/disable 'Data retention summary' link 2018-10-30 22:52:54 +01:00
Luca Bösch 2eec5251af MDL-63582 theme_boost: Fix the license field in the file picker width. 2018-10-30 22:42:47 +01:00
Eloy Lafuente (stronk7) 8b019fb709 on-demand release 3.6dev+ 2018-10-30 18:24:14 +01:00
Eloy Lafuente (stronk7) 4ea6f848fa NOBUG: Fixed file access permissions 2018-10-30 18:24:14 +01:00
Eloy Lafuente (stronk7) 3f32559999 Merge branch 'MDL-63522-master' of git://github.com/jleyva/moodle 2018-10-30 18:01:10 +01:00
Juan Leyva 716c103d49 MDL-63522 course: Restore config and static cache 2018-10-30 17:35:46 +01:00
Albert Gasset 577fdc3438 MDL-63820 assignfeedback_comments: Implement get_file_areas 2018-10-30 15:25:58 +01:00
David Mudrák 6c999842af MDL-63689 workshop: Add support for removal of multiple context users
The mod_workshop\privacy\provider now implements the new
core_userlist_provider interface. Deleting (erasing) data follows the
same principles as in other existing methods - we do not actually delete
data that might affect other users. Instead, we only erase the sensitive
owned personal information such as provided content.
2018-10-30 14:29:40 +01:00
Tim Hunt a6c2bc5474 MDL-63781 qtype_ddmarker: fix changing shape type on editing form in IE 2018-10-30 10:32:09 +00:00
Juan Leyva 6f89b33bdb MDL-61197 core_group: Fix groupings not being filtered 2018-10-30 10:22:58 +01:00
Juan Leyva b8a3567407 MDL-61197 core_group: Refactor get_course_user_groups to get all groups
This is a refactor of the function to be able to get all the user
course groups in just one call
2018-10-30 10:22:58 +01:00
Mihail Geshoski 541982c01e MDL-63606 core_badges: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-30 16:41:44 +08:00
Mihail Geshoski fd45ae4566 MDL-63530 core_notes: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-30 16:18:24 +08:00
Jun Pataleta a78e94257a Merge branch 'MDL-63813-master' of git://github.com/andrewnicols/moodle 2018-10-30 15:32:32 +08:00
Andrew Nicols 98f65cf665 MDL-63813 theme_bootstrapbase: Give page buttons height+width
Elements iwth an inline display type have no height, or width, which
makes it impossible for behat to interact with them.
2018-10-30 13:04:24 +08:00
Andrew Nicols 5bfa505fba Merge branch 'MDL-63634-master' of git://github.com/rezaies/moodle 2018-10-30 12:00:18 +08:00
Andrew Nicols e538fc1549 Merge branch 'MDL-63626-master' of git://github.com/rezaies/moodle 2018-10-30 10:57:42 +08:00
Jun Pataleta ae29ec8d13 Merge branch 'MDL-63531-master' of git://github.com/andrewnicols/moodle 2018-10-30 10:50:52 +08:00
Adrian Greeve d2148f32ca MDL-63531 privacy: Update to comments provider to simplfy sql.
This updates the get_users_in_context_from_sql query to include
the context id to simplify the calls made from other components.
2018-10-30 09:47:14 +08:00
Adrian Greeve 6592598f71 MDL-63531 assignfeedback: Update to use the new privacy interface.
This now uses the new interface to allow the deletion of users based
on a context.
2018-10-30 09:47:14 +08:00
Adrian Greeve d8cd86e1b1 MDL-63531 assignsubmission: Update to use the new interface.
This updates the plugins to use the new inteface for deleting
data for users in a context.
2018-10-30 09:47:14 +08:00
Andrew Nicols e974de337d Merge branch 'MDL-63796-master' of git://github.com/ryanwyllie/moodle 2018-10-30 09:38:46 +08:00
Adrian Greeve b96e7fa6b2 MDL-63531 mod_assign: Update mod assign to use new interface.
This introduces a new interface for assign sub-plugins and
updates the mod_assign provider to implement the new general
interface for deleting data for users in a context.
2018-10-30 09:06:12 +08:00
Andrew Nicols e22214b965 Merge branch 'MDL-63656-master' of git://github.com/mickhawkins/moodle 2018-10-30 08:49:56 +08:00
Andrew Nicols 1ac8ae517d Merge branch 'MDL-63742-master' of git://github.com/jleyva/moodle 2018-10-30 07:46:00 +08:00
Eloy Lafuente (stronk7) 038645591a Merge branch 'MDL-63522-master' of git://github.com/jleyva/moodle 2018-10-30 00:00:12 +01:00
Adam Olley edd51eb245 MDL-63811 phpunit: Fix typo in new allowed config variable
Without this, phpunit doesn't allow the pathtophp unit config setting to be set
in config.php as intended.
2018-10-30 09:15:59 +10:30
Eloy Lafuente (stronk7) 82bd1fa000 Merge branch 'MDL-63396-master' of git://github.com/jleyva/moodle 2018-10-29 23:35:31 +01:00
David Monllao 77ac4d8c31 Merge branch 'MDL-63445-master' of git://github.com/bmbrands/moodle 2018-10-29 16:47:45 +01:00
Eloy Lafuente (stronk7) f3d80b483b Merge branch 'MDL-63730-master-enfix' of git://github.com/mudrd8mz/moodle 2018-10-29 13:23:53 +01:00
David Monllao 95a4d796fe Merge branch 'MDL-63698-master' of https://github.com/lucaboesch/moodle 2018-10-29 12:20:52 +01:00
Luca Bösch 9452bddedc MDL-63698 block_myoverview: Summary view course images eq height/width. 2018-10-29 11:43:23 +01:00
Tim Hunt ebf91776d7 MDL-63297 qtype_ddimageortext: re-implement JavaScript in AMD
this kills of a bunch of old YUI code.

Should also make this question type work a bit mroe robustly.
2018-10-29 10:40:51 +00:00
Tim Hunt 616442a2fa MDL-63738 question bank: a link to download a single question 2018-10-29 10:38:24 +00:00
David Monllao 707668287d Merge branch 'MDL-63042-master' of git://github.com/peterRd/moodle 2018-10-29 11:27:16 +01:00
Juan Leyva 2ced73f636 MDL-63396 grade_report: Return locked and overridden info 2018-10-29 11:26:59 +01:00
David Monllao beb86abdff Merge branch 'MDL-63528-master' of git://github.com/junpataleta/moodle 2018-10-29 11:18:02 +01:00
Juan Leyva 1de51367f7 MDL-63522 course: Return completion info in get_course_content WS 2018-10-29 11:11:38 +01:00
Juan Leyva 1206a4878c MDL-63522 course: Return more fields in get_course_content WS
We need those fields on the mobile app to be able to render the course view properly.
2018-10-29 11:10:51 +01:00
David Monllao 4af7cf6bdb Merge branch 'MDL-63698-master' of https://github.com/lucaboesch/moodle 2018-10-29 11:06:41 +01:00
Juan Leyva 6f79370531 MDL-63742 auth: New WS core_auth_resend_confirmation_email 2018-10-29 11:04:02 +01:00
David Monllao 4bd78d79a8 Merge branch 'MDL-63040-master' of git://github.com/peterRd/moodle 2018-10-29 10:42:51 +01:00
Andrew Nicols fca51b97ed Merge branch 'MDL-63043-master' of git://github.com/peterRd/moodle 2018-10-29 14:42:09 +08:00
Michael Hawkins f9d06ed7c9 MDL-63656 tool_messageinbound: Add support for removal of context users
This issue is a part of the MDL-62560 Epic.
2018-10-29 14:13:45 +08:00
Ryan Wyllie 1f3d92c443 MDL-63796 theme_boost: reduce padding of blocks
Reduce the padding of the blocks and revert the margin changes
from MDL-63102.
2018-10-29 14:07:35 +08:00
Michael Hawkins cabea2fc04 MDL-63764 core_competency: Add support for removal of context users
This issue is a part of the MDL-62560 Epic.
2018-10-29 12:59:55 +08:00
Michael Hawkins b03e9322bf MDL-63764 core_competency: Support bulk user delete course competencies
This issue is a part of the MDL-62560 Epic.
Also made user IDs optional, so user course competencies can be deleted by course ID only.
2018-10-29 12:59:55 +08:00
Andrew Nicols 89689e64f4 Merge branch 'MDL-40695-master' of https://github.com/HuongNV13/moodle 2018-10-29 12:28:58 +08:00
Jun Pataleta 5c52b9686f Merge branch 'MDL-63622-master' of git://github.com/andrewnicols/moodle 2018-10-29 11:36:20 +08:00
Andrew Nicols 65c0e336b1 Merge branch 'MDL-63665-master' of git://github.com/rezaies/moodle 2018-10-29 08:42:50 +08:00
Peter 7dcb274c9e MDL-63457 block_myoverview: Update getters for enrolled courses
* Update the enrol courses getter to accept an 'exclude course' id array
* Use the db query to filter hidden courses
2018-10-29 08:36:59 +08:00
Bas Brands fd68f5a9e0 MDL-63457 block_myoverview: Rerender the paged content and jump
Jump to the page the user was last on after hiding
2018-10-29 08:36:59 +08:00
Peter c896546ce7 MDL-63457 block_myoverview: Functionality and test updates
* Add identifiers for each card in the view
* Update js to hide instead of reload block
* Behat test updates
2018-10-29 08:36:59 +08:00
Peter e6f03948d7 MDL-63457 block_myoverview: Hide courses from individual overview blocks
* add new preferences for hidden courses
* Modified course filter to use the user preference
* Behat test
* Regex update
* Toggle hide/show
* Update enrolled_course getter to pass hidden value
* provider
* unit tests
2018-10-29 08:32:05 +08:00
Andrew Nicols d9e56517ca Merge branch 'MDL-63680-master' of git://github.com/mihailges/moodle 2018-10-29 08:21:27 +08:00
Andrew Nicols d4274bd951 Merge branch 'MDL-60520_master' of git://github.com/dmonllao/moodle 2018-10-29 07:39:58 +08:00
Adrian Greeve 980425022b MDL-63622 core_grading: Add support for removal of context users.
Core grading now implements the new core_userlist_provider
interface to allow for deletion of specific users in a context.
2018-10-29 07:37:44 +08:00
Luca Bösch fe149a996a MDL-63698 block_myoverview: Summary view course images eq height/width. 2018-10-27 11:43:58 +02:00
Eloy Lafuente (stronk7) 448bd578d8 on-demand release 3.6dev+ 2018-10-26 18:06:00 +02:00
Eloy Lafuente (stronk7) 6728c963f3 NOBUG: Fixed SVG browser compatibility 2018-10-26 18:05:58 +02:00
David Mudrák 8743cade5b MDL-63730 quiz: Fix unit tests to use the new way of percents display
As agreed in MDL-63186, the English language pack has no space
separating the number and the percents. This patch removes the
regressions from the unit tests.
2018-10-26 14:26:12 +02:00
David Mudrák f5d98e6173 MDL-63730 lang: Update Behat scenarios to use the new strings 2018-10-26 13:25:56 +02:00
Helen Foster 0c19b2c8fa MDL-63730 lang: Merge English strings from the en_fix language pack
Significant string changes:

* withselectedusers_help, core - removing mention of 'Add a common note'
  as the option no longer exists
* considereddigitalminor and digitalminor_desc, core - more
  child-friendly wording
* configmessagingallusers, core_admin - clearer explanation
* auth_dbtype, auth_db - fixed broken link
2018-10-26 12:48:40 +02:00
Shamim Rezaie c0bafa2777 MDL-63634 enrol_paypal: Improve query performance
This issue is a part of the MDL-62560 Epic.
2018-10-26 19:35:57 +11:00
Shamim Rezaie cb21486c66 MDL-63634 enrol_paypal: support removal of multiple users in a context
This issue is a part of the MDL-62560 Epic.
2018-10-26 19:35:47 +11:00
Eloy Lafuente (stronk7) 51da48f193 Merge branch 'MDL-63765-master' of git://github.com/damyon/moodle 2018-10-26 10:21:43 +02:00
Damyon Wiese cfd390ee94 MDL-63765 behat: Fix behat tests opening a menu
If javascript is disabled, we don't need to open the menus at all. If it is enabled
we should use the custom step where possible.

In some tests (user profile) we have to use link_or_button because
the element that opens the menu will be a link or a button in different themes.
2018-10-26 16:14:41 +08:00
Shamim Rezaie e38dc3d604 MDL-63634 enrol_paypal: Fix a typo in unit tests
This issue is a part of the MDL-62560 Epic.
2018-10-26 18:54:07 +11:00
Shamim Rezaie 8839feb90e MDL-63665 mod_choice: no exception when course_modules doesn't exist
This issue is a part of the MDL-62560 Epic.
2018-10-26 18:48:10 +11:00
Shamim Rezaie b96446f3af MDL-63665 mod_choice: support removal of multiple users in a context
This issue is a part of the MDL-62560 Epic.
2018-10-26 18:48:02 +11:00
Andrew Nicols 74138e927c Revert "MDL-63466 core_message: rename cache for last message time"
This reverts commit f978593d6c.
2018-10-26 14:54:01 +08:00
Andrew Nicols 4699b8bc41 Revert "MDL-63466 core_message: removed get_last_message_time_created_cache_key"
This reverts commit 4f22d7f23b.
2018-10-26 14:53:58 +08:00
Andrew Nicols 621e7eb022 Merge branch 'MDL-63466-master' of https://github.com/snake/moodle 2018-10-26 12:33:13 +08:00
Jake Dallimore b95e4c786c MDL-63466 core_message: don't reorder messages when formatting
- Removed the reordering code from helper::get_conversation_messages()
- Added unit test confirming sort param behaviour for the
api::get_conversations_messages() method.
2018-10-26 12:26:23 +08:00
Mihail Geshoski 2d64b4154c MDL-63680 report_stats: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-26 12:17:30 +08:00
Andrew Nicols b272efb460 Merge branch 'MDL-63673-master' of git://github.com/mihailges/moodle 2018-10-26 11:40:46 +08:00
Andrew Nicols b8e9448a2c Merge branch 'MDL-63281_master' of git://github.com/markn86/moodle 2018-10-26 11:24:52 +08:00
Andrew Nicols 00fd35a916 Merge branch 'MDL-60514-master-fix' of git://github.com/junpataleta/moodle 2018-10-26 11:06:44 +08:00
Jun Pataleta 96b9975b4b MDL-60514 tool_task: Remove run_task_now.feature
This test cannot be run on Behat anymore as the "Run now" feature
depends on $CFG->pathtophp. Even if it's set, the task executed via
"Run now" will be executed for the installed site itself and not on the
Behat test site.
2018-10-26 11:03:07 +08:00
Andrew Nicols 6f63531458 Merge branch 'MDL-63682-master' of git://github.com/mihailges/moodle 2018-10-26 11:01:28 +08:00
cescobedo 9eba829ae3 MDL-63281 core_message: Sync course group members with conversations 2018-10-26 10:55:59 +08:00
Mihail Geshoski bdf1b47550 MDL-63682 mnetservice_enrol: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-26 10:22:53 +08:00
Andrew Nicols ab2443cdc0 Merge branch 'MDL-63688-master-1' of git://github.com/mihailges/moodle 2018-10-26 10:16:08 +08:00
Mihail Geshoski ed69d0aef1 MDL-63690 core_privacy: Handle when add_users() receives an empty array 2018-10-26 09:16:10 +08:00
Andrew Nicols 79b5095f28 Merge branch 'MDL-63280_master-fix' of git://github.com/markn86/moodle 2018-10-26 09:07:30 +08:00
Adrian Greeve 799d32fd2d MDL-63690 core_blog: Update providers for userlist deletion. 2018-10-26 09:07:01 +08:00
Mark Nelson 06cdb82d23 MDL-63280 core: correct index on upgrade vs install 2018-10-26 08:52:27 +08:00
Andrew Nicols 56076d5991 Merge branch 'MDL-63280_master' of git://github.com/markn86/moodle 2018-10-26 07:49:13 +08:00
Eloy Lafuente (stronk7) 513bb61301 Merge branch 'MDL-62904-master' of git://github.com/junpataleta/moodle 2018-10-26 00:03:43 +02:00
Juan Leyva cde3dc05bc MDL-63694 core_block: Return block contents via WS 2018-10-25 23:42:48 +02:00
Juan Leyva a9732b8977 MDL-63694 block_html: Implement get_content_for_external 2018-10-25 23:42:42 +02:00
Juan Leyva 96d9a6e430 MDL-63694 core_block: New block class method for external content
New method added block_base::get_content_for_external().
It will return all the block contents rendered for external functions.
If your block is returning formatted content or provide files for download,
you should override this method to use the external_format_text,
external_format_string functions for formatting or
external_util::get_area_files for files.
See block_html as example.
2018-10-25 23:41:26 +02:00
Eloy Lafuente (stronk7) da73189b84 Merge branch 'wip-MDL-62411-master' of https://github.com/timhunt/moodle 2018-10-25 12:23:53 +02:00
Tim Hunt 8951e8b970 MDL-62411 qtype_ddmarkers: fix drop-zone editing in IE 2018-10-25 11:08:04 +01:00
Mark Nelson 76540bec52 MDL-63280 core: removed 'message_conversation_area' table
These new fields have been added to the 'message_conversations'
table.
2018-10-25 18:05:20 +08:00
Mark Nelson 5571af1614 MDL-63280 core_message: added constants for enabled/disabled 2018-10-25 17:51:34 +08:00
Mark Nelson f0e137c539 MDL-63280 core: minor changes after review
- Fixed reference to non-existent column 'timeread'.
- Fixed alignment issues.
- Fixed inconsistencies between upgrade.php and install.xml.
- Cleaned unit tests of unnecessary DB calls.
- Renamed 'get_does_conversation_area_enabled' to
  'is_conversation_area_enabled' and moved to api.php.
- Replaced "$mform->elementExists('enablemessaging')"
  check with a capability check.
- Removed the change of [] to array() in unrelated to upgrade code.
- Updated conversation 'timemodified' field when updating name.
- Bumped version based on latest master.
2018-10-25 17:51:04 +08:00
Andrew Nicols 9d4a9e515f Merge branch 'MDL-63552-master' of git://github.com/mickhawkins/moodle 2018-10-25 15:43:12 +08:00
Andrew Nicols 37ef65d47a Merge branch 'MDL-63752' of https://github.com/timhunt/moodle 2018-10-25 15:14:57 +08:00
Andrew Nicols fbf4eaeec0 Merge branch 'MDL-63679-master' of git://github.com/mihailges/moodle 2018-10-25 15:12:50 +08:00
Andrew Nicols c31ac0f5e2 Merge branch 'MDL-63678-master' of git://github.com/mihailges/moodle 2018-10-25 15:11:30 +08:00
Jun Pataleta 35b76161b3 Merge branch 'MDL-60514-master-new-cron-execution' of https://github.com/tonibarbera/moodle 2018-10-25 15:06:47 +08:00
Andrew Nicols c3d1878ff3 Merge branch 'MDL-63655' of git://github.com/stronk7/moodle 2018-10-25 14:53:18 +08:00
Andrew Nicols c7be63a45d MDL-63058 block_myoverview: Whitespace fixes 2018-10-25 14:44:35 +08:00
Andrew Nicols 7583dd6902 MDL-63058 block_myoverview: Whitespace fixes 2018-10-25 14:32:59 +08:00
Toni Barberà Melià c759ae5d55 MDL-60514 tasks: added new config parameter. changes in cron execution 2018-10-25 08:02:44 +02:00
cescobedo e7f467143f MDL-63280 core_message: Create group conversation from group edit page
Allows linking of course groups with conversations when group messaging feature is enabled.
2018-10-25 12:20:00 +08:00
cescobedo 55fda006e3 MDL-63280 core_message: Create conversation area 2018-10-25 12:20:00 +08:00
Andrew Nicols 2263bbdfce Merge branch 'MDL-63058-master' of git://github.com/bmbrands/moodle 2018-10-25 11:49:45 +08:00
Michael Hawkins fc087fd29e MDL-63552 search_solr: Add support for removal of context users
This issue is a part of the MDL-62560 Epic.
2018-10-25 11:41:08 +08:00
Michael Hawkins 4cef924482 MDL-63552 search_simpledb: Add support for removal of context users
This issue is a part of the MDL-62560 Epic.
Also added test_get_contexts_for_userid unit test.
2018-10-25 11:41:08 +08:00
Nick Phillips 2070142f46 MDL-63763 javascript: don't have define( in AMD comments at top of files 2018-10-25 16:21:35 +13:00
Damyon Wiese 1524c4d66c Merge branch 'MDL-63755-master' of git://github.com/andrewnicols/moodle 2018-10-25 08:36:49 +08:00
Eloy Lafuente (stronk7) 980ed5424d Merge branch 'MDL-62145-master' of git://github.com/damyon/moodle 2018-10-25 01:35:09 +02:00
Eloy Lafuente (stronk7) 3d18697115 Merge branch 'MDL-63153_master' of https://github.com/aanabit/moodle 2018-10-25 01:11:36 +02:00
Eloy Lafuente (stronk7) 19dbce00a1 Merge branch 'MDL-63714-master' of git://github.com/andrewnicols/moodle 2018-10-25 00:10:45 +02:00
Bas Brands 099049b6ad MDL-63058 block_myoverview: behat fixes and summary view check 2018-10-24 15:02:19 +02:00
Andrew Nicols c7120f7805 MDL-63755 theme_boost: Behat selector fix 2018-10-24 20:16:22 +08:00
Tim Hunt 2d696f8f2b MDL-63752 question import: duplicate key error when idnumbers blank
And extra checks to head off possible idnumber='' issues in two other places.
2018-10-24 11:38:31 +01:00
David Monllao fcc50ccbc3 Merge branch 'MDL-63277' of https://github.com/timhunt/moodle 2018-10-24 10:22:16 +02:00
David Monllao f560f3669e Merge branch 'MDL-63619-master' of git://github.com/andrewnicols/moodle 2018-10-24 09:48:16 +02:00
Andrew Nicols eb514bb3e5 MDL-63714 javascript: Add new core/pending module 2018-10-24 12:49:09 +08:00
Andrew Nicols f0bfedf348 MDL-63714 theme_boost: Fix aria focus behat issues 2018-10-24 12:45:13 +08:00
Andrew Nicols 66de50c366 Merge branch 'wip-MDL-62411-master' of https://github.com/timhunt/moodle 2018-10-24 10:21:42 +08:00
Mark Nelson d1e8e69d85 MDL-63466 core_message: deprecated methods and services 2018-10-24 09:40:07 +08:00
Mark Nelson 4f22d7f23b MDL-63466 core_message: removed get_last_message_time_created_cache_key 2018-10-24 09:39:59 +08:00
Mark Nelson f978593d6c MDL-63466 core_message: rename cache for last message time 2018-10-24 09:39:42 +08:00
Sara Arjona fb04293bb1 MDL-63466 core_message: Add conversation support to get_messages
- The get_conversation_messages has been added to the API and the WS
with the conversation identifier (convid) instead of the userto,
to let get conversation messages and the members involved.
- The cache has been also reviewed, to use the convid instead of the
[userfrom, userto] keys.
- The get_most_recent_conversation_messages has been added to the API
to update the cache when needed.
2018-10-24 09:39:05 +08:00
Sara Arjona d89d0d6593 MDL-63466 core_message: Added format_conversation_messages helper
The format_conversation_messages function has been added. It returns
the messages and the array of users who have sent any of these
messages.
2018-10-24 09:38:10 +08:00
Sara Arjona ecf7567a89 MDL-63466 core_message: Add conversationid to message class 2018-10-24 09:38:01 +08:00
Mihail Geshoski 1d3d4c66df MDL-63688 core_tag: Add method that returns users in context
This issue is part of the MDL-62560 Epic.
2018-10-24 09:31:19 +08:00
Jake Dallimore 042d804453 MDL-63466 core_message: added a test helper class
Providing util methods for api and externallib testing.
2018-10-24 09:27:34 +08:00
Jake Dallimore 2a2b86f123 MDL-63466 core_message: add helper method for fetching member info
The aim is to use this to standardise the member information we return
from several methods in the API, such as get_conversations,
get_conversation_messages, get_conversation_members, and in search
methods.
2018-10-24 09:23:30 +08:00
Andrew Nicols d95ad08f85 MDL-63619 tool_dataprivacy: Cache purposes in form 2018-10-24 08:48:18 +08:00
Andrew Nicols 3b002c86eb MDL-63619 tool_dataprivacy: Performance improvement 2018-10-24 08:48:18 +08:00
Andrew Nicols d2aed78933 MDL-63619 tool_dataprivacy: Fix inheritance from parent contexts
Inheritance should behave such that all contexts inherit from their
parent context.

Prior to this fix, if the value was not set on a context, then it was
getting a default of 'Inherit', but instead of inheritting from the
parent context, it was inheritting from its parent context _level_ which
is just wrong.
2018-10-24 08:48:18 +08:00
Andrew Nicols 4b7ad8845c MDL-63714 core: Wrap doRender in pendingjs 2018-10-24 08:12:10 +08:00
Andrew Nicols dc39d0cf39 MDL-63714 javascript: Improve docs for pendingjs 2018-10-24 08:00:00 +08:00
Mihail Geshoski 8171cd7f3c MDL-63673 fileconverter_googledrive: Support removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-24 07:02:16 +08:00
David Monllao daf0b4f08b on-demand release 3.6dev+ 2018-10-23 16:42:13 +02:00
David Monllao c45159318c Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2018-10-23 16:42:12 +02:00
Andrew Nicols 8b5e087fc9 Merge branch 'MDL-63408_master-fix' of git://github.com/dmonllao/moodle 2018-10-23 21:23:47 +08:00
David Monllao 4abe3d250f MDL-63408 messaging: Remove duplicated field 2018-10-23 13:44:52 +02:00
David Monllao ccd8a102c7 Merge branch 'MDL-62139-master-fix3' of git://github.com/damyon/moodle 2018-10-23 11:16:47 +02:00
Damyon Wiese 3ed1cec01e MDL-62139 behat: Invalid test
If javascript is disabled, we can't open the menu.
2018-10-23 16:47:20 +08:00
Damyon Wiese a3d57af872 MDL-62139 output: Revert template changes
Revert accessibility changes for menus in standard themes.
2018-10-23 10:14:19 +02:00
Bas Brands a7712a9851 MDL-63445 core_renderer: display course image in context header 2018-10-23 09:41:26 +02:00
Damyon Wiese c8cd967f48 MDL-62139 output: Revert template changes
Revert accessibility changes for menus in standard themes.
2018-10-23 15:40:31 +08:00
Damyon Wiese ff3fc0566c MDL-62139 output: Menus fixes
Change the boost custom behat step to click on a button.

Revert the clean templates to unchanged versions.
2018-10-23 15:27:13 +08:00
Mihail Geshoski cc2b9d6683 MDL-63679 ltiservice_memberships: Support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-23 13:33:48 +08:00
Mihail Geshoski 0c088088de MDL-63678 ltiservice_gradebookservices: Support removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-23 13:04:30 +08:00
Andrew Nicols 5c77966881 MDL-63657 completion: Coding style fix 2018-10-23 11:32:43 +08:00
Andrew Nicols 33a007c4b4 Merge branch 'MDL-63668-master' of git://github.com/mickhawkins/moodle 2018-10-23 11:29:29 +08:00
Andrew Nicols 4b3ca0ebf2 MDL-63657 core_files: Coding style fix 2018-10-23 11:26:02 +08:00
Andrew Nicols 2612cf5673 Merge branch 'MDL-63640-master' of git://github.com/mihailges/moodle 2018-10-23 11:25:21 +08:00
Andrew Nicols e1cc780d90 MDL-63657 tool_mobile: Coding style fix 2018-10-23 11:21:51 +08:00
Andrew Nicols 38259438dd Merge branch 'MDL-63657-master' of git://github.com/mickhawkins/moodle 2018-10-23 11:19:46 +08:00
Andrew Nicols 6a91cc80c9 MDL-63535 core_rss: Coding style fix 2018-10-23 11:15:04 +08:00
Andrew Nicols e186fb407e Merge branch 'MDL-63535-master' of git://github.com/mihailges/moodle 2018-10-23 11:11:22 +08:00
Andrew Nicols 33368fb6d5 MDL-63664 tool_policy: Whitespace fix 2018-10-23 10:54:15 +08:00
Michael Hawkins 1139481e58 MDL-63657 tool_mobile: Add support for removal of context users
This issue is a part of the MDL-62560 Epic.
2018-10-23 10:54:14 +08:00
Mihail Geshoski 16ec426a4f MDL-63640 core_files: Add method that returns users in context
This issue is part of the MDL-62560 Epic.
2018-10-23 10:48:12 +08:00
Mihail Geshoski c61132c6bf MDL-63535 core_userkey: Add method that returns users in context
This issue is part of the MDL-62560 Epic.
2018-10-23 10:46:25 +08:00
Mihail Geshoski cee33e0229 MDL-63535 core_rss: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-23 10:46:25 +08:00
Andrew Nicols dfb151b2d9 Merge branch 'MDL-63664-master' of git://github.com/mickhawkins/moodle 2018-10-23 10:42:48 +08:00
Andrew Nicols 0ff384dbf1 Merge branch 'MDL-63548_master' of git://github.com/markn86/moodle 2018-10-23 10:25:54 +08:00
Andrew Nicols 1a3fde832a Merge branch 'MDL-63649-master' of git://github.com/rezaies/moodle 2018-10-23 10:14:08 +08:00
Andrew Nicols 34fa5ec414 Merge branch 'MDL-63713-master' of git://github.com/rezaies/moodle 2018-10-23 10:08:32 +08:00
Michael Hawkins 01723da4eb MDL-63668 core_course: Add support for removal of context users
This issue is a part of the MDL-62560 Epic.
2018-10-23 10:06:26 +08:00
Michael Hawkins 543c465579 MDL-63668 core_completion: Add get and delete by approved userlist.
This issue is a part of the MDL-62560 Epic.
2018-10-23 10:06:26 +08:00
Michael Hawkins f6843ac966 MDL-63664 tool_policy: Add support for removal of context users
This issue is a part of the MDL-62560 Epic.
2018-10-23 10:02:58 +08:00
Mark Nelson 09ec501781 MDL-63548 core_message: added mark_all_conversation_messages_as_read WS 2018-10-23 09:52:43 +08:00
Mark Nelson abf7a261a9 MDL-63548 core_message: added api::can_mark_all_messages_as_read 2018-10-23 09:52:14 +08:00
Mark Nelson e4c3099444 MDL-63548 core_message: deprecated mark_all_messages_as_read web service 2018-10-23 09:52:05 +08:00
Jun Pataleta fc915d6150 Merge branch 'MDL-62560-master-fix' of git://github.com/andrewnicols/moodle 2018-10-23 09:22:14 +08:00
Shamim Rezaie c37407ba9d MDL-63713 core: Support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-23 11:55:49 +11:00
Shamim Rezaie 9f8a30c27c MDL-63649 enrol_lti: support removal of multiple users in a context
This issue is a part of the MDL-62560 Epic.
2018-10-23 11:54:41 +11:00
Andrew Nicols 67b813514c Merge branch 'MDL-63408_master' of git://github.com/markn86/moodle 2018-10-23 08:50:40 +08:00
Andrew Nicols e1121c2ed5 MDL-62560 tool_dataprivacy: Behat fix for protected check 2018-10-23 08:17:28 +08:00
Damyon Wiese 59f31c84eb MDL-61391 forum: Improve semantics for permalinks
Replace the anchor tags in forum posts containing the postid but no href with
an id on the element containing the post. Use rel="bookmark" for perma links
and update the styling so they look visually the same.
2018-10-23 08:17:28 +08:00
Tim Hunt 00f09d8f5c MDL-62411 qtype_ddmarker: fix issues found during review
* Editing the coordinate string now correctly updates the image only if
  the coordinates are valid.
* ... and does the right thing if the number of handles has changed.
* Dragging the shape handles is now constrained so that you cannot
  create a shape that goes beyond the edge of the image.
* The PHP validation that the shape is within the imagehas also been
  fixed.
* For Mac users, CMD+Click duplicates the handle like CTRL+Click.
* Ensure the shape being edited is always on top of the otehrs.
2018-10-22 18:40:02 +01:00
Bas Brands 4fd6b77043 MDL-63058 block_myoverview: allowing reuse of css classes 2018-10-22 19:28:23 +02:00
David Monllao 72e72dd93f Merge branch 'MDL-61391-master' of git://github.com/damyon/moodle 2018-10-22 16:50:47 +02:00
David Monllao 64a00dffbd Merge branch 'MDL-61388-master' of git://github.com/damyon/moodle 2018-10-22 16:48:56 +02:00
David Monllao 7e5f0fa66a Merge branch 'MDL-62144-master' of git://github.com/damyon/moodle 2018-10-22 16:33:17 +02:00
David Monllao 14f70eda28 Merge branch 'MDL-62309-master-optionalpolicies' of git://github.com/mudrd8mz/moodle 2018-10-22 16:28:41 +02:00
David Monllao d10643fbe6 Merge branch 'MDL-63625-master' of git://github.com/marinaglancy/moodle 2018-10-22 14:41:12 +02:00
David Monllao 57846fd010 Merge branch 'MDL-61052-master' of git://github.com/damyon/moodle 2018-10-22 14:36:23 +02:00
David Monllao ba0a68e254 MDL-60520 analytics: Set predictor at model level during testing 2018-10-22 13:58:33 +02:00
David Monllao d44ce97fe1 MDL-60520 analytics: Do not block model updates if the backend is down 2018-10-22 13:58:33 +02:00
David Monllao ed12ba6ba8 MDL-60520 analytics: Per-model ml backend 2018-10-22 13:58:33 +02:00
David Monllao f7642bebc5 Merge branch 'MDL-62560-master' 2018-10-22 12:52:58 +02:00
Andrew Nicols 9e217d8441 MDL-62560 tool_dataprivacy: Add a purpose override cache 2018-10-22 12:50:16 +02:00
Andrew Nicols b519dab3bd MDL-62560 tool_dataprivacy: Fetch user purpose once 2018-10-22 12:50:16 +02:00
Andrew Nicols a1d51ad8c6 MDL-62560 tool_dataprivacy: Add status logging 2018-10-22 12:50:16 +02:00
Andrew Nicols efbb82ac31 MDL-62560 tool_dataprivacy: Add unit test for filtered userlist 2018-10-22 12:50:15 +02:00
Mihail Geshoski 82264289c5 MDL-63636 block_recent_activity: Support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:50:15 +02:00
Mihail Geshoski 0395106340 MDL-63621 core_cohort: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:50:14 +02:00
Mihail Geshoski eff881a41b MDL-63633 block_comments: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:50:14 +02:00
Mihail Geshoski 4fc10f50fa MDL-63635 block_community: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:50:14 +02:00
Mihail Geshoski 8b9c13ed5c MDL-63593 auth_mnet: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:50:13 +02:00
Mihail Geshoski 60f3eec644 MDL-63592 auth_oauth2: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:50:13 +02:00
Mihail Geshoski 5038a863e7 MDL-63637 block_rss_client: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:50:12 +02:00
Mihail Geshoski 380860c0a9 MDL-63638 block_tag_flickr: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:50:12 +02:00
Mihail Geshoski 1ba1fcf838 MDL-63639 core_fileconverter: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:50:11 +02:00
Shamim Rezaie acaacb6c49 MDL-63647 enrol_flatfile: Improving existing unit tests
This issue is a part of the MDL-62560 Epic.
2018-10-22 12:50:11 +02:00
Shamim Rezaie e4290b4945 MDL-63647 enrol_flatfile: support removal of multiple users in context
This issue is a part of the MDL-62560 Epic.
2018-10-22 12:50:11 +02:00
Michael Hawkins 46bb823e04 MDL-63659 tool_monitor: Add support for removal of context users
This issue is a part of the MDL-62560 Epic.
2018-10-22 12:50:10 +02:00
Mihail Geshoski 325d9b50e2 MDL-63615 message_airnotifier: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:50:10 +02:00
Mihail Geshoski 99ed2697bd MDL-63616 message_email: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:50:09 +02:00
Mihail Geshoski cb5ba9b873 MDL-63617 message_jabber: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:50:09 +02:00
Adrian Greeve 64d1b61a4c MDL-63618 core_plagiarism: Added support to remove users in a context.
This issue is part of the MDL-62560 Epic.
2018-10-22 12:48:43 +02:00
Mihail Geshoski 7c3a60bc25 MDL-63572 profilefield_checkbox: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:48:43 +02:00
Mihail Geshoski 86b5b2f980 MDL-63575 profilefield_datetime: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:48:42 +02:00
Mihail Geshoski 150156af9e MDL-63586 profilefield_menu: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:48:42 +02:00
Mihail Geshoski 67280a7658 MDL-63587 profilefield_text: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:48:42 +02:00
Mihail Geshoski 36d0fd839d MDL-63588 profilefield_textarea: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:48:41 +02:00
Michael Hawkins 6bd65daa5c MDL-63538 repository_onedrive: Add support for removal of context users
This issue is a part of the MDL-62560 Epic.
2018-10-22 12:48:41 +02:00
Michael Hawkins 589d2bd4cb MDL-63538 repository_youtube: Add support for removal of context users
This issue is a part of the MDL-62560 Epic.
2018-10-22 12:48:40 +02:00
Michael Hawkins d7eaf03898 MDL-63538 repository_wikimedia: Add support for removal of context users
This issue is a part of the MDL-62560 Epic.
2018-10-22 12:48:40 +02:00
Michael Hawkins 3d743dfad3 MDL-63538 repository_picasa: Add support for removal of context users
This issue is a part of the MDL-62560 Epic.
2018-10-22 12:48:39 +02:00
Michael Hawkins 9db4768abe MDL-63538 repository_merlot: Add support for removal of context users
This issue is a part of the MDL-62560 Epic.
2018-10-22 12:48:39 +02:00
Michael Hawkins 580d1449d7 MDL-63538 repository_googledocs: Support removal of context users
This issue is a part of the MDL-62560 Epic.
2018-10-22 12:48:38 +02:00
Michael Hawkins a80212142e MDL-63538 repository_flickr_public: Support removal of context users
This issue is a part of the MDL-62560 Epic.
2018-10-22 12:48:38 +02:00
Michael Hawkins 42c742eb2e MDL-63538 repository_flickr: Add support for removal of context users
This issue is a part of the MDL-62560 Epic.
2018-10-22 12:48:38 +02:00
Michael Hawkins 6116a831c9 MDL-63538 repository_dropbox: Add support for removal of context users
This issue is a part of the MDL-62560 Epic.
2018-10-22 12:48:37 +02:00
Michael Hawkins 2d15655c47 MDL-63538 repository_boxnet: Add support for removal of context users
This issue is a part of the MDL-62560 Epic.
2018-10-22 12:48:37 +02:00
Mihail Geshoski 3952ace59f MDL-63536 core_repository: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:48:36 +02:00
Mihail Geshoski d4d28485c7 MDL-63534 core_user: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:48:36 +02:00
Mihail Geshoski 44a0a2bd66 MDL-63532 core_portfolio: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:48:35 +02:00
Mihail Geshoski e5c749deed MDL-63529 core_enrol: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:48:35 +02:00
Michael Hawkins e9ebae7e2a MDL-63514 mod_wiki: Add support for removal of context users
This issue is a part of the MDL-62560 Epic.
2018-10-22 12:48:35 +02:00
Michael Hawkins bd0b6d8693 MDL-63510 mod_survey: Add support for removal of context users
This issue is a part of the MDL-62560 Epic.
2018-10-22 12:48:34 +02:00
Michael Hawkins 6d6e4b7a51 MDL-63501 mod_scorm: Add support for removal of context users
This issue is a part of the MDL-62560 Epic.
2018-10-22 12:48:34 +02:00
Michael Hawkins 630a05c2aa MDL-63497 mod_lesson: Add support for removal of context users
This issue is a part of the MDL-62560 Epic.
2018-10-22 12:48:33 +02:00
Michael Hawkins e917288971 MDL-63497 mod_feedback: Add support for removal of context users
This issue is a part of the MDL-62560 Epic.
2018-10-22 12:48:33 +02:00
Michael Hawkins 55d1ef377c MDL-63497 mod_glossary: Add support for removal of context users
This issue is a part of the MDL-62560 Epic.
Also added missing ratings include and test to mod_glossary unit tests.
2018-10-22 12:48:33 +02:00
Michael Hawkins dcdd4f1053 MDL-63497 tool_dataprivacy: Add support for removal of context users
This issue is a part of the MDL-62560 Epic.
2018-10-22 12:48:32 +02:00
Michael Hawkins 7b5fcbd883 MDL-63497 block_html: Add support for removal of context users
This issue is a part of the MDL-62560 Epic.
2018-10-22 12:48:32 +02:00
Michael Hawkins 464b17b79b MDL-63497 mod_chat: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:48:31 +02:00
Shamim Rezaie 19fc6012cf MDL-63554 cachestore_session: Support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:48:31 +02:00
Shamim Rezaie 936c06f8bb MDL-63554 cachestore_redis: Support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:48:30 +02:00
Shamim Rezaie a42c9a71bb MDL-63554 cachestore_mongodb: Support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:48:30 +02:00
Shamim Rezaie 81684f7c8b MDL-63554 cachestore_memcached: Support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:48:30 +02:00
Shamim Rezaie b36687b5e2 MDL-63500 enrol_cohort: refactoring get_contexts_for_userid
This issue is part of the MDL-62560 Epic.
2018-10-22 12:48:29 +02:00
Shamim Rezaie e66a60b9c0 MDL-63500 enrol_meta: refactoring get_contexts_for_userid
This issue is part of the MDL-62560 Epic.
2018-10-22 12:48:29 +02:00
Shamim Rezaie 89d468eb39 MDL-63500 core_group: get_contexts_for_userid should respect component
The get_contexts_for_userid method should not return contexts for all group memberships.
It should only return the contexts in where there is manual group
membership.

This issue is part of the MDL-62560 Epic.
2018-10-22 12:48:28 +02:00
Shamim Rezaie 882c53dc14 MDL-63500 enrol_cohort: Support for removal of multiple context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:48:28 +02:00
Shamim Rezaie 8091629306 MDL-63500 enrol_meta: Support for removal of multiple context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:48:27 +02:00
Shamim Rezaie e114ac6ec0 MDL-63500 core_group: support removal of multiple users in a context
This issue is part of the MDL-62560 Epic.
2018-10-22 12:48:27 +02:00
Mihail Geshoski bb65ee165c MDL-63533 core_webservice: Unit tests for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:48:27 +02:00
Mihail Geshoski 9960e8694d MDL-63533 core_webservice: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:48:26 +02:00
Adrian Greeve 424976e9d1 MDL-63513 mod_assignment: Add removal of context users.
This issue is part of the MDL-62560 Epic.
2018-10-22 12:48:25 +02:00
Michael Hawkins 3b0a3604dc MDL-63498 mod_lti: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
2018-10-22 12:48:25 +02:00
Michael Hawkins cea5338780 MDL-63495 comment: Added provider::get_users_in_context_from_sql
This issue is part of the MDL-62560 Epic.
2018-10-22 12:48:13 +02:00
Amaia Anabitarte f765fb380a MDL-63153 admin: Adding Moodle services page to Site Administration 2018-10-22 11:08:27 +02:00
David Mudrák aa7e539c6f MDL-62309 tool_policy: Add Behat scenarios for the optional policies 2018-10-22 08:49:36 +02:00
David Mudrák 222c378870 MDL-62309 tool_policy: Amend behaviour of handler's accept() method
When accepting the policies via the sitepolicy handler, only compulsory
policies are to be marked as accepted. Optional policies will be left as
pending. Users must express their consent explicitly for them.

As a side product of the change, unit tests are added for the whole
handler class.
2018-10-22 08:49:36 +02:00
David Mudrák ad5e2135c5 MDL-62309 tool_policy: Improve permission evaluation methods
Please refer to the unit tests for the specification of the expected
behaviour.
2018-10-22 08:49:36 +02:00
David Mudrák 4a742e4f94 MDL-62309 tool_policy: Update user acceptances reports
This adds support for optional policies to the user acceptance reports.
Distinguished are "Pending" acceptances (we did not hear yet) from
"Declined" (user did not agree). The status workflow updated to support
new transitions: pending -> declined and declined -> accepted.
2018-10-22 08:49:36 +02:00
David Mudrák 56390aa246 MDL-62309 tool_policy: New icons for user acceptances report
There was an accessibility issue with the previous icons that we used
the same "checked" shape just in different colours for different
meanings. New icons added for the new statuses:

* partial - a warning icon for the overall status column that the user
  has only some policies accepted, not all.
* pending - that we did not hear yet from the user - whcih is different
  from a declined policy.
2018-10-22 08:49:36 +02:00
David Mudrák 5348b1eef5 MDL-62309 tool_policy: Optional policies can be declined by the user
For optional policies, we provide a radio selector to let the user
choose the acceptance status on the consent page. For policies displayed
on their own page, we display a link to decline the policy.

The way how we pass the list of policy version ids to index.php has
changed so that we can now not only pass the list of ids, but also the
actual acceptance status (accepted / declined).
2018-10-22 08:49:36 +02:00
David Mudrák faf4222edc MDL-62309 tool_policy: Add api::get_agreement_optional() method
This method allows to quickly check if the given policy version is
marked as optional or compulsory. This will be needed in other places
such as permissions check.
2018-10-22 08:49:36 +02:00
David Mudrák 1617fde9a8 MDL-62309 tool_policy: New API method to decline a policy
Policy can be declined. Optional policies do not need to be accepted to
use the site. But we still want to hear explicitly from the user.
2018-10-22 08:49:36 +02:00
David Mudrák f98cd91a13 MDL-62309 tool_policy: Improve api::is_user_version_accepted() return
The method now returns three-state logic. A bool value true/false is
returned if the user has accepted/rejected the policy, respectively. A
null value is returned if the user did not express their agreement in
either way yet.

This allows to distinguish between "rejected the policy" and "did not
say anything about it yet" cases.
2018-10-22 08:49:36 +02:00
David Mudrák 9011d394ab MDL-62309 tool_policy: Add new field to hold the optional policy flag
The patch adds a new column to the database table to hold the
information if giving agreement to the policy is compulsory or optional.
The flag can be defined via the policy editing form and is displayed at
the policies management screen.

The last modified time merged with the version column at the policies
management screen to save a bit of horizontal space - needed as we
display more information now at the first column.
2018-10-22 08:49:36 +02:00
Jun Pataleta 53f14eef37 Merge branch 'MDL-62777-master' of git://github.com/junpataleta/moodle 2018-10-22 12:26:14 +08:00
Jun Pataleta 0aacc90bbe MDL-62777 administration: Remove unnecessary whitespace 2018-10-22 12:24:58 +08:00
Damyon Wiese efacf3a099 MDL-61052 assign: Do not queue conversions
Identical submissions do not require individual conversions from the document converter. Text passing through
format_text cannot be trusted and is likely to be unique each time, even for the same text.
2018-10-22 11:56:57 +08:00
Zig Tan 888d7b585f MDL-61052 assign: Improve strip_images() to avoid HTML5 tags errors 2018-10-22 11:56:33 +08:00
Matt Porritt d5adb60fa3 MDL-62777 Administration: CLI upgrade new setting notification
During a CLI upgrade when there are new settings in core or in
a plugin, the settings are set to the defined defaults
automatically. There is no ouput shown on the CLI about which
new settings have been introduced or what default values the
setting are set to.

This patch outputs the name of the new setting and what the
default value being is set is to the CLI during an upgrade.
Objects and arrays are expanded into a human readable format.
This plugin also makes the function that sets the defaults to
be more robust so it isno longer required to be called multiple
times to ensure all settings are set.
2018-10-22 14:28:06 +11:00
Damyon Wiese 805f078b19 MDL-62145 theme_boost: Custom menu fixes
Make sure the site navigation element is labelled, actionmenu items
have correct role and actionmenu trigger controls the menu.
2018-10-22 10:57:50 +08:00
Damyon Wiese 934ee47b0d MDL-61391 forum: Improve semantics for permalinks
Replace the anchor tags in forum posts containing the postid but no href with
an id on the element containing the post. Use rel="bookmark" for perma links
and update the styling so they look visually the same.
2018-10-22 10:55:32 +08:00
Andrew Nicols 9c6ccfd93b Merge branch 'MDL-63213-master-2' of https://github.com/snake/moodle 2018-10-22 10:54:56 +08:00
Damyon Wiese ede1e4a186 MDL-61388 output: Use alertdialog role for confirm 2018-10-22 10:53:32 +08:00
Damyon Wiese 9f83272207 MDL-61388 forum: accessibility
Show success alert to confirm the last action.
2018-10-22 10:53:32 +08:00
Damyon Wiese addb26acbb MDL-61388 boost: accessibility
Dynamically show and focus on an alert that was written on page load. This ensures JAWS will read it
as soon as the page is ready, otherwise JAWS would choose to ignore it as per

https://www.w3.org/TR/wai-aria-practices/#alert.
2018-10-22 10:53:31 +08:00
Andrew Nicols 7b73fd183c Merge branch 'MDL-63691_master' of git://github.com/markn86/moodle 2018-10-22 10:52:13 +08:00
Damyon Wiese a986cb4ba1 MDL-62144 user menu: Accessibility
Ensure user menu passes the accessibility tests.
2018-10-22 10:42:28 +08:00
Damyon Wiese 191a1c7c23 MDL-62139 output: Accessible action menus
Add label on the "gear" menu and default keyboard and focus controls.
2018-10-22 10:35:21 +08:00
Mark Nelson d9a25f397d MDL-63408 core_message: removed usage of deprecated method in tests
Also, added tests to ensure exception is thrown if you try to
add or remove members to/from an individual conversation.
2018-10-22 10:26:37 +08:00
Mark Nelson cbf9e41c2d MDL-63408 core_message: remove no longer needed code
We only allow the functionality of adding/removing
members on group conversations, which will never have
a conversation hash.
2018-10-22 10:26:30 +08:00
Mark Nelson 83e3a4fe26 MDL-63408 core_message: add check to ensure it is a group conversation 2018-10-22 10:26:21 +08:00
Amaia Anabitarte 623048af81 MDL-63408 core_message: New functions to manage conversation members
New functions created to add, remove and count conversation members
2018-10-22 10:26:10 +08:00
Mark Nelson f2ac0a3e5b MDL-63691 core_message: added api::create_conversation 2018-10-22 10:21:28 +08:00
Mark Nelson e66b915c40 MDL-63691 core_message: added api::can_create_group_conversation 2018-10-22 10:21:27 +08:00
Mark Nelson a66ae84911 MDL-63691 core_message: deprecate create_conversation_between_users 2018-10-22 10:21:27 +08:00
Mark Nelson 59f98779fb MDL-63691 core: added capability for creating group conversations 2018-10-22 10:21:27 +08:00
Jake Dallimore 5b367baef8 MDL-63213 core_message: add web services for set/unset favourites 2018-10-22 09:56:06 +08:00
Amaia Anabitarte e2a687f689 MDL-63691 core: Column 'convhash' now accepts null
Index 'convhash' also changed to non-unique.
2018-10-22 09:47:19 +08:00
Jake Dallimore b8ff2c4481 MDL-63213 core_message: update get_conversations to support favourites
Added the type param here, which will be used in MDL-63549.
2018-10-22 09:43:33 +08:00
Andrew Nicols c3918bfee9 MDL-63289 message: Remove unused global 2018-10-22 08:31:04 +08:00
Andrew Nicols d139f45a0a Merge branch 'MDL-63289-master' of git://github.com/sarjona/moodle 2018-10-22 08:19:59 +08:00
AMOS bot f7704b703b Automatically generated installer lang files 2018-10-22 00:07:13 +00:00
Bas Brands 3cfff88516 MDL-63058 block_myoverview: starring and storing preferences 2018-10-20 17:53:35 +02:00
Tim Hunt b51f4f2ece MDL-63277 qtype_ddwtos: removed unneeded qtype_classname method 2018-10-20 15:25:04 +01:00
Tim Hunt c28d0aa113 MDL-63277 qtype_ddwtos: further improvements to the JavaScript 2018-10-20 15:24:49 +01:00
M Kassaei 68943aff09 MDL-63277 qtype_ddwtos: Re-implement old YUI JS in AMD
In the rewrite is one improvement: drag items now animate when they
are moved, for example out of a drop place and back home. Other than
that, the functionality is unchanged. Also, as far as possible, the
HTML structure has not been changed (althought with changes to the HTML,
further JS improvements would be possible. However, those have been left
for a future issue).
2018-10-20 15:22:12 +01:00
Tim Hunt ed7e30fa5c MDL-62411 qtype_ddmarker: further improvements following code review 2018-10-20 15:18:17 +01:00
John Beedell 5d4b342107 MDL-62411 qtype_ddmarker: graphical editing of drop zones
Also, all the JavaScript in this plugin has been updated from YUI to
jQuery.
2018-10-20 15:15:28 +01:00
John Beedell 0b1cc2890f MDL-62411 qtype_ddmarker: add dragdrop helper libarary
This was created by the Open University a couple of years ago, and is
very helpful for making dragging work reliably on a range of browsers
and with both mouse and touch-screens.

Sadly, HTML5 drag-drop is not yet ready for prime-time.
2018-10-20 15:15:23 +01:00
Jake Dallimore b81722e22f MDL-63058 core_favourites: add existence checks to the service layer
This allows someone using the user_favourite_service to check whether
an item is already marked as a favourite.
2018-10-20 12:19:10 +02:00
Sara Arjona e5eba802d5 MDL-63289 message: Deprecate is_user_non_contact_blocked method
This function has been deprecated and no other function has been
added to replace it. It was only called from can_post_message, so
its code has been moved there.
2018-10-20 08:36:24 +02:00
Sara Arjona 7983fb830e MDL-63289 message: Bypass privacy user preferences for teachers
Created capability 'moodle/site:messageanyuser' to allow
bypass user privacy preferences for messaging participants in a course,
even when some of them has blocked the teacher.
2018-10-20 08:35:17 +02:00
Mark Nelson 59fa0137b2 MDL-63691 core: updated 'message_conversations' table 2018-10-20 13:36:29 +08:00
Eloy Lafuente (stronk7) cc486e6125 on-demand release 3.6dev+ 2018-10-19 17:11:15 +02:00
Eloy Lafuente (stronk7) 755d8758ce Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2018-10-19 17:11:13 +02:00
Marina Glancy 97372ec17d MDL-63648 tool_xmldb: missing capability check 2018-10-19 11:36:40 +02:00
AMOS bot d619aa6e04 Automatically generated installer lang files 2018-10-19 00:08:01 +00:00
Eloy Lafuente (stronk7) 1845a5bbaa Merge branch 'MDL-63648-master' of git://github.com/marinaglancy/moodle 2018-10-18 23:54:06 +02:00
Eloy Lafuente (stronk7) d6d5ea5d04 Merge branch 'MDL-62920-master' of https://github.com/aanabit/moodle 2018-10-18 23:47:37 +02:00
Eloy Lafuente (stronk7) 456a7e4b36 Merge branch 'MDL-27520_master-fix' of https://github.com/markn86/moodle 2018-10-18 22:03:43 +02:00
Eloy Lafuente (stronk7) e38e2cde4e Merge branch 'MDL-60145-master' of https://github.com/snake/moodle 2018-10-18 18:56:34 +02:00
Mark Nelson 66b5036805 MDL-27520 assignfeedback_comments: fix Behat failures 2018-10-18 18:32:59 +08:00
Eloy Lafuente (stronk7) a2d2ed90c2 Merge branch 'MDL-63465-master' of git://github.com/jleyva/moodle 2018-10-18 12:22:42 +02:00
Eloy Lafuente (stronk7) 2205ecc2b6 Merge branch 'MDL-63658-master-2' of https://github.com/snake/moodle 2018-10-18 11:15:11 +02:00
Jake Dallimore 21b50ebe19 MDL-63658 core_favourites: fix errors discovered on oracle db
- Assuming 1 would be a record that didn't exist. should be using 0.
- Missing space before AND in sql in provider.
2018-10-18 17:11:07 +08:00
Andrew Nicols 78f6d5196d Merge branch 'MDL-63658-master-2' of https://github.com/snake/moodle 2018-10-18 15:48:47 +08:00
Jake Dallimore 68eaa3150e MDL-63658 core_favourites: properly define interface methods and cleanup
This gets rid of specific repo functions which were unused, and makes
sure the following methods are defined on the interface, implemented
and tested:
- exists_by($criteria)
- find_by($criteria)
- delete_by($crtieria)
Also, added missing tests for find_favourite() repo method.
2018-10-18 15:39:57 +08:00
Juan Leyva 0f8b26043f MDL-63465 blocks: New WS core_blocks_get_dashboard_blocks 2018-10-18 09:17:24 +02:00
Jun Pataleta de632063af Merge branch 'MDL-63667-master-fix2' of git://github.com/damyon/moodle 2018-10-18 14:37:13 +08:00
Peter 34ef8466d0 MDL-63042 core_theme: Change the background color 2018-10-18 12:05:57 +08:00
Andrew Nicols 61e0f58ca3 MDL-63667 amd: Check for parent template recursion 2018-10-18 12:04:19 +08:00
Huong Nguyen 8b0a933d21 MDL-40695 Quiz: Move manual grading report display to renderer 2018-10-18 10:06:45 +07:00
Damyon Wiese b51c5b929f MDL-63667 output: Fix for recursive templates
A template can include itself - e.g. by looping over the context children and rendering a tree.

Ensure this promise still resolves.

Example: admin/tool/lp/templates/competencies_tree.mustache.
2018-10-18 10:48:01 +08:00
Andrew Nicols 3212e7aaef Merge branch 'MDL-63658-master-2' of https://github.com/snake/moodle 2018-10-18 10:06:14 +08:00
Jake Dallimore 1f3c76f0ec MDL-63658 core_favourites: fix differences between install and upgrade 2018-10-18 09:40:07 +08:00
Andrew Nicols 2ac4ea89d9 Merge branch 'MDL-63658-master-2' of https://github.com/snake/moodle 2018-10-18 09:08:22 +08:00
Eloy Lafuente (stronk7) 4658eefa13 Merge branch 'MDL-63632-master' of git://github.com/andrewnicols/moodle 2018-10-18 02:38:57 +02:00
Jake Dallimore 8d9cd27b02 MDL-63658 core_favourites: let service object use get_component_names
This was using a helper, but now we have the function in core to achieve
the same thing, so use this instead.
2018-10-18 08:22:08 +08:00
Jake Dallimore 3a1ece149f MDL-63658 core: new method get_component_names() added to core 2018-10-18 08:22:07 +08:00
Jake Dallimore b7a3ec6f8d MDL-63658 core_favourites: consolidate interfaces and rename
Let's worry about reuse of the crud code later, when that requirement
arises, so moved that into the ifavourite_repository interface, and then
renamed it favourite_repository_interface.
2018-10-18 08:22:07 +08:00
Jake Dallimore 0551ed3569 MDL-63658 core_favourites: rename user_favourites_service and services
Now: user_favourite_service (singular) and service_factory
2018-10-18 08:22:07 +08:00
Jake Dallimore cb90b549b6 MDL-63658 core_favourites: singularise the repository class types
Instead of favourites_repository we now have favourite_repository,
which is more in line with other implementations of this pattern.
2018-10-18 08:22:07 +08:00
Jake Dallimore cfaf86b059 MDL-63658 core_favourites: make favourite a first class object
This patch adds several things:
- favourite entity class under local/entity
- refactoring of repository and service to use the new class instead
of stdClass.
- update repository unit tests to use the object instead of stdClass.
- update service_test so that the mock repo requires the object for
the add operation.
- remove unnecessary constructor from favourites_repository class.
2018-10-18 08:22:07 +08:00
Jake Dallimore 8ffbe9c163 MDL-63658 core_favourites: adding paging support to the service layer 2018-10-18 08:22:07 +08:00
Jake Dallimore ac9138db1c MDL-63658 core_favourites: implement privacy API for favourites 2018-10-18 08:22:06 +08:00
Jake Dallimore 4a02aae5f5 MDL-63658 core_favourites: namespace the repositories and services 2018-10-18 08:22:06 +08:00
Jake Dallimore 771051325b MDL-63658 core_favourites: add business logic aware service layer 2018-10-18 08:22:06 +08:00
Jake Dallimore d4e98ee580 MDL-63658 core_favourites: add a user favourites repository 2018-10-18 08:22:06 +08:00
Jake Dallimore 1cb94eabb4 MDL-63658 core_favourites: add tables to the subsystem 2018-10-18 08:22:05 +08:00
AMOS bot 6e0a04313d Automatically generated installer lang files 2018-10-18 00:07:17 +00:00
Andrew Nicols 7148f47f56 MDL-63632 forum: Delete where not discussion author 2018-10-18 07:20:29 +08:00
Eloy Lafuente (stronk7) 0f943d26bf Merge branch 'MDL-63068_master' of https://github.com/aanabit/moodle 2018-10-18 00:39:45 +02:00
Eloy Lafuente (stronk7) d2a2b9c45a Merge branch 'MDL-63523-master' of git://github.com/jleyva/moodle 2018-10-17 23:22:52 +02:00
David Monllao 32b01d2b02 Merge branch 'MDL-63214-master' of git://github.com/sarjona/moodle 2018-10-17 15:55:44 +02:00
David Monllao a9bbbd7a50 Merge branch 'MDL-27520_master' of git://github.com/markn86/moodle 2018-10-17 15:42:55 +02:00
Sara Arjona f7dfa9ba3e MDL-63214 message: Add privacy preferences to filter who can message
Add new messaging profile preferences to allow users to choose who
can message them:
- By default, users can select between 'My contacts only' and 'My
contacts and anyone in my courses'
- When $CFG->messagingallusers is enabled, a new option is displayed
also: 'Anyone on the site'. For users who have selected this option,
if $CFG->messagingallusers is disabled, the behaviour will be changed
to 'My contacts and anyone in my courses'
2018-10-17 11:52:57 +02:00
Sara Arjona 327914160f MDL-63214 message: Add setting to force enabling messagingallusers 2018-10-17 11:52:57 +02:00
Jun Pataleta 500dc0b134 MDL-62904 tool_dataprivacy: Add data request links in profile page 2018-10-17 16:40:55 +08:00
Mark Nelson 464a9dc556 MDL-27520 assignfeedback_comments: is_feedback_modified considers files 2018-10-17 15:57:27 +08:00
Mark Nelson ec8471c966 MDL-27520 core_grades: add methods to grade_object for feedback files 2018-10-17 15:57:27 +08:00
Mark Nelson 80b6fb7a79 MDL-27520 core_grades: make constant names clearer
Also using them in more locations.
2018-10-17 15:57:27 +08:00
Mark Nelson b7a9b6f872 MDL-27520 assignfeedback_comments: updated privacy provider 2018-10-17 15:57:27 +08:00
Damyon Wiese c98e9fbae1 MDL-27520 core: Rewrite pluginfile URLs 2018-10-17 15:57:26 +08:00
Jun Pataleta 077a1a2080 Merge branch 'MDL-63667-master' of git://github.com/damyon/moodle 2018-10-17 15:06:29 +08:00
Andrew Nicols f2d9a66240 Merge branch 'MDL-63547_master' of git://github.com/markn86/moodle 2018-10-17 14:53:23 +08:00
Ryan Wyllie 0015f5b8f1 MDL-63667 javascript: fix failed to pre-fetch the template error 2018-10-17 13:49:25 +08:00
Damyon Wiese dd882ba035 MDL-27520 backup: Backup for feedback files 2018-10-17 13:15:49 +08:00
Mark Nelson 95ed603361 MDL-27520 core_grades: create grade history filearea and copy files 2018-10-17 13:15:49 +08:00
Mark Nelson 0e732f5d33 MDL-27520 assignfeedback_comments: added backup/restore of files 2018-10-17 13:15:49 +08:00
Mark Nelson 3672775931 MDL-27520 assignfeedback_comments: copy files to feedback
This respects the setting 'Comment inline' where the content
of a submission is copied into the feedback form.
2018-10-17 13:15:49 +08:00
Mark Nelson c9f6ca1142 MDL-27520 core: allow retrieval of files from grade files areas
Also added 'history' filearea for the history report where files
will be copied to if the site has enabled this feature.

We will also be storing files in the module context, not course,
so that check was removed.
2018-10-17 13:15:45 +08:00
Michael Hawkins d744b15bc6 MDL-63495 comment: Added provider::delete_comments_for_users
This issue is a part of the MDL-62560 Epic.
2018-10-17 13:12:18 +08:00
Andrew Nicols 8c3124cef0 MDL-63495 mod_forum: Add intial support for removal of multiple context users
This issue is a part of the MDL-62560 Epic.
2018-10-17 13:12:18 +08:00
Andrew Nicols e2ca4224f2 MDL-63495 core_rating: Add helper to fetch users in context
This issue is a part of the MDL-62560 Epic.
2018-10-17 13:12:18 +08:00
Andrew Nicols bf347c4d2b MDL-63496 tool_dataprivacy: Add configuration for per-role retention
This issue is a part of the MDL-62560 Epic.
2018-10-17 13:12:18 +08:00
Andrew Nicols b107016c88 MDL-63496 tool_dataprivacy: Respect expiry with protected flag
This issue is a part of the MDL-62560 Epic.
2018-10-17 13:12:18 +08:00
Andrew Nicols 8c634d6d4f MDL-63496 tool_dataprivacy: Support for per-role retention
This issue is a part of the MDL-62560 Epic.
2018-10-17 13:12:18 +08:00
Michael Hawkins 3c0c280882 MDL-63497 mod_data: Add support for removal of context users
This issue is a part of the MDL-62560 Epic.
2018-10-17 13:12:18 +08:00
Andrew Nicols 8ba35e317c MDL-63495 privacy: Add support for removal of multiple users in a context
This issue is a part of the MDL-62560 Epic.
2018-10-17 13:12:18 +08:00
Mark Nelson 60b67bbcf7 MDL-63547 core_message: web service can delete multiple conversations 2018-10-17 12:05:16 +08:00
Mark Nelson 26f39c8861 MDL-63547 core_message: added delete_conversation_by_id web service 2018-10-17 12:05:16 +08:00
Mark Nelson fa024820f2 MDL-63547 core_message: deprecate delete_conversation web service 2018-10-17 12:05:16 +08:00
Mark Nelson 15663b0bec MDL-63547 core_message: can_delete_conversation expects a conversationid 2018-10-17 12:05:16 +08:00
Mark Nelson 263ad98436 MDL-63547 core_message: deprecated api::delete_conversation() 2018-10-17 12:05:16 +08:00
Mark Nelson 08cb8a34f9 MDL-63547 core_message: updated api::can_delete_message 2018-10-17 12:05:16 +08:00
Mark Nelson 14de10c463 MDL-63547 core_message: updated message_deleted event to support groups 2018-10-17 12:05:16 +08:00
Jake Dallimore 4fca5dabb2 MDL-63658 core_favourites: introduce the favourites subsystem to core 2018-10-17 10:16:18 +08:00
Eloy Lafuente (stronk7) c2f1dbcf49 on-demand release 3.6dev+ 2018-10-16 16:20:23 +02:00
Eloy Lafuente (stronk7) 01f6529b8c Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2018-10-16 16:20:21 +02:00
Juan Leyva b36ee81ea6 MDL-63523 enrol: Return extra fields for new dashboard
WebService core_enrol_get_users_courses should return extra information for the app
so we can display all the new dashboard information without having to do extra WS requests.
2018-10-16 13:45:07 +02:00
Mark Nelson ea241998e6 MDL-27520 assignfeedback_comments: allow files in the comments feedback
Also use new API to add files to gradebook.
2018-10-16 13:06:58 +08:00
Mark Nelson faa438bad6 MDL-27520 mod_assign: added API for feedback plugins 2018-10-16 13:06:58 +08:00
Mark Nelson 5d7a9ea6f9 MDL-27520 core_grades: accept feedback files via grade_update() 2018-10-16 12:32:44 +08:00
Damyon Wiese 54697072a6 Merge branch 'MDL-62960-master' of git://github.com/rezaies/moodle 2018-10-16 11:43:24 +08:00
Jun Pataleta 34c2fe1f91 Merge branch 'MDL-63337-master' of git://github.com/damyon/moodle 2018-10-16 10:31:26 +08:00
Damyon Wiese 7e1ca773bb MDL-63337 enrol: Fix behat test
The link to the course homepage now requires javascript, by directly navigating to the course page
we can still avoid the need for javascript in this test.
2018-10-16 10:15:25 +08:00
Shamim Rezaie b0e5f22961 MDL-62960 calendar: Visuall indicator for valid course event drop zones 2018-10-16 12:58:25 +11:00
Shamim Rezaie 084d5ee46c MDL-62960 calendar: Rename get_module_timestamp_min/max_limit methods
The methods get_module_timestamp_min_limit() and get_module_timestamp_max_limit()
are doing generic stuff and can be used for other calendar event types as well.
I have renamed them to get_timestamp_min_limit() and get_timestamp_max_limit() respectively.
2018-10-16 12:58:25 +11:00
Shamim Rezaie 586886b346 MDL-62960 calendar: Implementing course events validity check callback 2018-10-16 12:58:25 +11:00
Shamim Rezaie 5974bfebb9 MDL-62960 calendar: Added range check callback for course events
Added core_calendar_get_valid_event_timestart_range callback for course events
2018-10-16 12:58:25 +11:00
Andrew Nicols 5266994547 Merge branch 'MDL-63421' of git://github.com/stronk7/moodle 2018-10-16 08:49:34 +08:00
Andrew Nicols 4c8569e0bf Merge branch 'MDL-63603-INR' of https://github.com/danielneis/moodle 2018-10-16 08:34:58 +08:00
Eloy Lafuente (stronk7) 1a51deaf69 Merge branch 'MDL-63583-master' of git://github.com/jleyva/moodle 2018-10-16 00:29:02 +02:00
Eloy Lafuente (stronk7) d9446c0ff7 Merge branch 'MDL-63456-master' of git://github.com/merrill-oakland/moodle 2018-10-16 00:15:46 +02:00
Eloy Lafuente (stronk7) bbfda3b9db Merge branch 'MDL-62319-master' of git://github.com/damyon/moodle 2018-10-15 23:54:51 +02:00
Eloy Lafuente (stronk7) 12752c72d1 Merge branch 'MDL-63102-master' of git://github.com/peterRd/moodle 2018-10-15 23:34:45 +02:00
Eloy Lafuente (stronk7) 77d7f5e0dd Merge branch 'MDL-63337-master-fix' of https://github.com/junpataleta/moodle 2018-10-15 16:24:49 +02:00
Jun Pataleta c99b10368f MDL-63337 block_myoverview: Fix illegal whitespaces 2018-10-15 22:06:55 +08:00
Jun Pataleta 6bcf1e76c4 Merge branch 'MDL-63337-master' of git://github.com/bmbrands/moodle 2018-10-15 21:03:16 +08:00
David Monllao 4bc3f503fd MDL-63431 atto_media: Shorten line length 2018-10-15 10:23:48 +02:00
David Monllao 7ba798c01d Merge branch 'MDL-63431-master' of https://github.com/kabalin/moodle 2018-10-15 09:13:53 +02:00
Damyon Wiese 2debe416c6 Merge branch 'MDL-63352-master' of git://github.com/peterRd/moodle 2018-10-15 14:50:10 +08:00
Peter 9e95193e9f MDL-63352 block_timeline: Persist user preference on timeline
* Persist sort preference to the user table
* Persist filter preferences to the user table
* Add behat tests to test persistence
* Add the gdpr exports for the user preferences as well as unit tests for the same
* Updated view_nav.min
2018-10-15 14:46:12 +08:00
Bas Brands 6481a21fc3 MDL-63337 block_myoverview: enrol_get_my_courses sort ul.timeaccess 2018-10-15 08:42:08 +02:00
Bas Brands e4b4b9e7da MDL-63337 block_myoverview: add improved block myoverview 2018-10-15 08:42:08 +02:00
Damyon Wiese 283acb8b22 Merge branch 'MDL-63041-master' of git://github.com/bmbrands/moodle 2018-10-15 13:29:31 +08:00
Andrew Nicols 489dd14569 Merge branch 'MDL-63542-master' of git://github.com/jleyva/moodle 2018-10-15 10:57:38 +08:00
AMOS bot ecafc74651 Automatically generated installer lang files 2018-10-15 00:07:11 +00:00
Eloy Lafuente (stronk7) 040360468c MDL-63655 core: Fix miss-placed parenthesis 2018-10-15 01:02:25 +02:00
Marina Glancy ced982cf15 MDL-63648 tool_xmldb: drag and drop sorting 2018-10-13 14:03:46 +02:00
Ruslan Kabalin 0030362e4c MDL-63431 atto_media: Fix non-unique id issues and extend tests. 2018-10-12 12:20:34 +01:00
Ruslan Kabalin cb6941685e MDL-63431 atto_media: Add title global attribute support. 2018-10-12 12:20:34 +01:00
Peter 970bb713b3 MDL-63102 core_block: Reduced spacing between blocks
Reduce the calculated bottom margin between blocks to half
2018-10-12 10:13:36 +08:00
Peter f9d156ca5a MDL-63040 core_my: Remove page header
* Remove user name and image from the page header
* Modify header template to accept new fields
2018-10-12 08:12:46 +08:00
Amaia Anabitarte 856c51a80b MDL-63068 user: Allow underscore for profile custom fields shortname 2018-10-11 16:39:57 +02:00
Amaia Anabitarte 5e4aaa886c MDL-62920 user: Uploading deleted user and adding to a cohort 2018-10-11 16:27:07 +02:00
Shamim Rezaie 44b30f9ced MDL-63626 mod_quiz: Fixed a bug when there was no attempt on the quiz 2018-10-12 01:03:39 +11:00
Marina Glancy d8c50267b9 MDL-63625 core: sortable_list iOS scrolling
For iOS we need to register non passive events not only for touchstart but also for touchmove
and touchend. Also iOS could open two move dialogue windows instead of one
2018-10-11 15:08:46 +02:00
Eloy Lafuente (stronk7) 3cced42eb3 weekly release 3.6dev 2018-10-11 13:22:36 +02:00
Eloy Lafuente (stronk7) 51b066f9b8 NOBUG: Fixed SVG browser compatibility 2018-10-11 13:22:34 +02:00
Eloy Lafuente (stronk7) a8d67b3685 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2018-10-11 13:22:33 +02:00
Damyon Wiese a0b009115e MDL-62319 assignfeedback_editpdf: Disable touch scrolling
Assignment editpdf canvas provides it's own scroll tool and the native browser one breaks
the rest of the tools for the canvas. Turn it off.
2018-10-11 13:28:01 +08:00
Nathan Nguyen 923641f71c MDL-62319 Assign: Grading interface is broken when using iOS 11.3 devices 2018-10-11 13:27:56 +08:00
AMOS bot b8764e3ae4 Automatically generated installer lang files 2018-10-11 00:07:10 +00:00
Eloy Lafuente (stronk7) 19456c3956 Merge branch 'MDL-62891-master-callable_name' of git://github.com/mudrd8mz/moodle 2018-10-10 23:29:40 +02:00
Eloy Lafuente (stronk7) 23a7374b02 Merge branch 'MDL-63225-master' of git://github.com/jleyva/moodle 2018-10-10 23:24:27 +02:00
David Monllao e9659a17ba Merge branch 'MDL-51803-master-handle' of https://github.com/marinaglancy/moodle 2018-10-10 14:27:17 +02:00
Peter Spicer 9eac857649 MDL-63451 core_message: Properly escape URLs for notification popup 2018-10-10 13:05:05 +01:00
David Monllao 398d4ef03e Merge branch 'MDL-63373' of git://github.com/stronk7/moodle 2018-10-10 12:56:38 +02:00
Marina Glancy f7d1a24eee MDL-51803 core: sortable list not passive touch events
Some browsers do not support options passed to the event browsers. Check if browser
supports it before adding options.
2018-10-10 12:34:46 +02:00
Marina Glancy 5c170231dd MDL-51803 core: encourage use drag handle in sortable list 2018-10-10 11:32:32 +02:00
Eloy Lafuente (stronk7) 6db31715b3 Merge branch 'MDL-61245-master' of git://github.com/jleyva/moodle 2018-10-10 11:14:57 +02:00
David Monllao a169745489 MDL-60710 course: Fix incorrect reference to role 2018-10-10 10:57:47 +02:00
Juan Leyva ca48cc915b MDL-61245 core_blog: New Web Service core_blog_view_entries 2018-10-10 09:58:08 +02:00
Jun Pataleta 3151c3b98b Merge branch 'MDL-46415-master' of https://github.com/lucaboesch/moodle 2018-10-10 12:05:44 +08:00
Jake Dallimore de60737dd7 MDL-60145 course: fix bug with group restictions button during mod edit
If a mod doesn't support groups, then we remove the grouping element,
and now also the 'add group/group restriction' helper button too.
2018-10-10 08:40:07 +08:00
AMOS bot 428c82f54f Automatically generated installer lang files 2018-10-10 00:07:07 +00:00
Eloy Lafuente (stronk7) 89957b6c34 Merge branch 'MDL-63439-master' of git://github.com/damyon/moodle 2018-10-10 00:47:40 +02:00
Eloy Lafuente (stronk7) 609c73be26 Merge branch 'MDL-29895' of https://github.com/enovation/moodle 2018-10-10 00:29:16 +02:00
Daniel Neis Araujo c8dcecf3f3 MDL-63603 enrol: Add Indian Rupee to paypal enrolment currencies 2018-10-09 18:19:14 -03:00
Eloy Lafuente (stronk7) 25fe592cf0 Merge branch 'MDL-62395-master' of git://github.com/junpataleta/moodle 2018-10-09 23:06:28 +02:00
Andreas Grähn b80f15efca MDL-46415 tinymce: SVG emoticons size 2018-10-09 22:19:39 +02:00
Marina Glancy 261a3a3085 MDL-51803 core: sortable list, fix for touch devices 2018-10-09 16:05:39 +02:00
David Monllao b43f926b44 MDL-51803 autoscroll: Fix incorrect reference to function 2018-10-09 13:58:51 +02:00
David Monllao ce49b96586 Merge branch 'MDL-51803-master-mouse' of git://github.com/marinaglancy/moodle 2018-10-09 13:53:29 +02:00
Marina Glancy e3c2a1bb3a MDL-51803 core: fix for touchstart 2018-10-09 13:28:39 +02:00
Marina Glancy e134ad7b38 MDL-51803 core: sortable list singleton 2018-10-09 13:28:33 +02:00
Eloy Lafuente (stronk7) fac3c7ff4c Merge branch 'MDL-63427-master' of git://github.com/mihailges/moodle 2018-10-09 13:21:11 +02:00
Andreas Grähn 748bb77266 MDL-46415 atto: SVG emoticons size 2018-10-09 12:09:44 +02:00
Andreas Grähn c77c036c4d MDL-46415 pix: SVG emoticons 2018-10-09 11:43:42 +02:00
Eloy Lafuente (stronk7) bf0072e6c3 Merge branch 'MDL-63401-master' of git://github.com/andrewnicols/moodle 2018-10-09 11:35:29 +02:00
David Monllao f79460dafa Merge branch 'MDL-62738_master' of https://github.com/mfabriczy/moodle 2018-10-09 09:23:57 +02:00
David Monllao b52e22dccb Merge branch 'MDL-51969-master' of https://github.com/dmitriim/moodle 2018-10-09 09:19:53 +02:00
Peter 63d0d9b472 MDL-63043 core_blocks: Increase the fixed width to 360
Increase the fixed width of the column to 360. Already does the realign below centre column

Compiled css file
2018-10-09 15:01:21 +08:00
David Monllao bbb2141084 Merge branch 'MDL-60710-master' of git://github.com/abias/moodle 2018-10-09 09:00:42 +02:00
David Monllao e2f8547acf Merge branch 'MDL-61378-master' of git://github.com/damyon/moodle 2018-10-09 08:57:49 +02:00
Jun Pataleta 14719185b0 Merge branch 'MDL-62491-master-fix' of git://github.com/abgreeve/moodle 2018-10-09 14:09:28 +08:00
Jun Pataleta 6a28761848 Merge branch 'MDL-63241-master-take2' of https://github.com/lucaboesch/moodle 2018-10-09 12:49:07 +08:00
Damyon Wiese 2015327b28 MDL-61378 forum: Upgrade notes
Tell developers to correctly nest calls to forum_print_post
2018-10-09 09:35:02 +08:00
Damyon Wiese 1bf3a76a59 MDL-61378 forum: Standardize HTML output for posts
Improve the format of the HTML representing a forum post.

1. Use <article> tag to mark it correctly.
2. Use <time> tag to include the real datetime information.
3. Use <address> tag to specify who and when the post came from.
4. Use heading level tags to mark the subject of each post.
5. Properly nest reply posts within their parent <article>
6. Use a header tab for each article to split the metadata from the content.
7. Use CSS to separate links, not text content.

Because posts are now nested properly, the heading for each one refers to it's own article
and we don't need to generate arbitrary heading level tags depending on how deep the post
is nested.
2018-10-09 09:34:57 +08:00
Adrian Greeve ea81e783ef MDL-62491 privacy: Fix running the download script.
Previously running the code to generate the download file
was very fagile. Now the code can be run anywhere without
problems occuring copying files.
2018-10-09 09:31:13 +08:00
Damyon Wiese 490e48a4df MDL-63439 assign: Unicode charsets for pdf
Prefer to use freesans font for generated pdfs as it has the biggest charset support.
2018-10-09 09:28:06 +08:00
Jun Pataleta f849b0faa9 Merge branch 'MDL-63194' of https://github.com/timhunt/moodle 2018-10-09 08:56:02 +08:00
Andrew Nicols 751b5e8b92 MDL-63401 tool_dataprivacy: Change default for require end date
We should preserve the existing behaviour.
2018-10-09 08:31:59 +08:00
Andrew Nicols 9a8944c52d MDL-63401 tool_dataprivacy: Simplify where processing 2018-10-09 08:21:38 +08:00
Andrew Nicols 7200ab20cd MDL-63401 tool_dataprivacy: Move final cap check to endpoint 2018-10-09 08:21:25 +08:00
Mihail Geshoski e3b53ef1f4 MDL-63427 block_myprofile: My profile block UI improvements 2018-10-09 08:09:11 +08:00
Alexander Bias da4d17313d MDL-60710 course: Overhaul of Behat tests 2018-10-08 22:49:36 +02:00
Alexander Bias 3ebba90a6b MDL-60710 course: Refine strings 2018-10-08 22:49:13 +02:00
Eric Merrill 1ddf3b6a0f MDL-63456 qtype_multichoice: Return a default options object if missing 2018-10-08 15:50:02 -04:00
Eric Merrill efea324715 MDL-63456 question: Improve Aiken error handling and multichoice errors 2018-10-08 15:50:02 -04:00
Tim Hunt 7a8782c4ae MDL-63194 quiz editing: subtle drag-drop bug if moving between sections 2018-10-08 17:37:11 +01:00
Bas Brands faff02ae6b MDL-63041 theme boost: remove region main border padding for dashboard 2018-10-08 17:07:30 +02:00
Juan Leyva bd4a6a7060 MDL-63583 course: Include course/lib.php always
core_course_get_courses_by_field WS must include always course/lib.php to not depend on functions including it.
2018-10-08 16:32:15 +02:00
Andrew Nicols 65f77d319e MDL-63401 tool_dataprivacy: Allow expiriration of users without end date 2018-10-08 20:49:59 +08:00
Andrew Nicols 2136ec3da3 MDL-63401 tool_dataprivacy: Rewrite expired deletion handling
This change rewrites the way in which expiry is calculated and addresses
a number of closely related issues:

Users can customise, and add blocks with data to, their dashboard.  When
a user had done so, the user could be flagged for deletion, but the
blocks in their Dashboard were subject to the default block retention
policy. In addition there is no way to override the retention policy for
user blocks.

This change modifies the structure of the expiry mechanism:
- to consider any subcontext of the user context to be a part of the user
  context during calculation. User child contexts are not the property
  of the system, and should not be treated separately.
- the way in which the context expiry mechanism worked was to select
  use a multiple different managers based solely on the context level.
  Because of the use of user blocks, this proved to be unreliable as
  blocks has been attributed purely to courses.
  This has been changed to a single manager which is aware of hierarchy
  and deletions as a whole.
- to prepare for upcoming work relating to more detailed expiry
  mechanisms, a new expiry_info class is introduced and used to
  merge the expiry of child contexts into a working in-memory view.

This changeset includes extensive unit tests.
2018-10-08 20:49:55 +08:00
Andrew Nicols 204abd3c97 MDL-63401 core: Do not delete the user context
As long as we have a user record, we should not delete the context which
relates to it.
2018-10-08 20:49:17 +08:00
Andrew Nicols cbae8dcd57 MDL-63401 tool_dataprivacy: Move cap checks to endpoints from API 2018-10-08 20:49:17 +08:00
David Monllao 4e725169f9 MDL-60425 blog: Remove empty line 2018-10-08 12:52:04 +02:00
David Monllao 92adfa3cd2 Merge branch 'MDL-60425-master' of git://github.com/jleyva/moodle 2018-10-08 12:51:05 +02:00
Marina Glancy dbe5689ef1 MDL-51803 core: integration review 2018-10-08 11:50:47 +02:00
Marina Glancy 6b9cb2481c MDL-51803 core: integration review 2018-10-08 11:50:47 +02:00
Marina Glancy 539cb25050 MDL-51803 core: reusable element for sorting lists 2018-10-08 11:50:47 +02:00
Marina Glancy a21d34776b MDL-51803 core: autoscroll module from OU 2018-10-08 11:50:47 +02:00
David Monllao de0d394192 Merge branch 'MDL-63323-wrong-classes-attribute-into-activity_navigation' of https://github.com/davidherney/moodle 2018-10-08 11:30:15 +02:00
Adrian Greeve ff40c7d374 MDL-62491 navigation: Update to tree.js to allow callbacks. 2018-10-08 09:00:08 +08:00
Adrian Greeve 812c409203 MDL-62491 mod_assign: Fill in the rewrite plugin urls properly. 2018-10-08 09:00:08 +08:00
Adrian Greeve e90a0a7415 MDL-62491 core_privacy: Add html files to the user data export.
This adds html to the data export that allows for easier navigation
and reading of data.
2018-10-08 09:00:08 +08:00
Luca Bösch 7294f412fc MDL-63241 calendar: Add missing table alias in SQL query. 2018-10-07 21:43:47 +02:00
Marcus Fabriczy db25ea5a96 MDL-62738: editor_tinymce: Fix call stack size bug on Safari
The call stack size was being exceeded via a recursive loop brought
by MDL-61189.

To fix, this item removes MDL-36803 and MDL-41328 as the iOS keyboard works
nicely on Safari with TinyMCE.
2018-10-06 17:21:51 +09:30
Juan Leyva 10b88bf2c7 MDL-63542 core_course: Support stealth activities in WS 2018-10-05 14:51:01 +02:00
Eloy Lafuente (stronk7) 8a95de6bcc MDL-63421 env: Moodle 3.4.x and 3.5.x do not support PHP 7.3 2018-10-05 13:36:26 +02:00
Eloy Lafuente (stronk7) b08cdad21a MDL-63373 install: update the list of stale files for 3.6 2018-10-05 12:37:10 +02:00
David Mudrák 75ab4d2eb7 MDL-62891 core: Stop using var_export() to describe callables
Make use of the newly added function get_callable_name() when reporting
that an exception happened during shutdown.
2018-10-05 09:10:16 +02:00
David Mudrák 905d02f458 MDL-62891 core: Introduce new get_callable_name() function 2018-10-05 09:10:16 +02:00
Dmitrii Metelkin f9ec2496f8 MDL-51969 mod_lti: Fixed missing tool proxy GUID 2018-10-05 15:14:15 +10:00
Jun Pataleta 129783b98c weekly release 3.6dev 2018-10-05 10:29:01 +08:00
Jun Pataleta 5ce76aa2b6 NOBUG: Fixed SVG browser compatibility 2018-10-05 10:29:00 +08:00
Jun Pataleta 360c9681bc Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2018-10-05 10:28:59 +08:00
Jun Pataleta 7216596760 MDL-62395 tool_dataprivacy: Purpose name and description in one column
* Show the purpose's name and description under one column.
2018-10-05 09:20:02 +08:00
Alexander Bias 63044a2391 MDL-60710 course: Refine setting name and description 2018-10-04 08:32:30 +02:00
Jun Pataleta 6cd50cb215 Merge branch 'MDL-35788-master' of git://github.com/andrewnicols/moodle 2018-10-04 12:45:09 +08:00
Jun Pataleta 428a47fcbf MDL-63528 auth: Behat scenario for "Remember username" display 2018-10-04 12:22:35 +08:00
Jun Pataleta 36d7b587cb MDL-63528 auth: Show "Remember username" on login form only when needed 2018-10-04 11:39:53 +08:00
Andrew Nicols 94df729b92 MDL-35788 mod_forum: Move post creation fetch 2018-10-04 11:15:17 +08:00
Jun Pataleta 86abaf31c8 Merge branch 'MDL-63442-master' of git://github.com/abias/moodle 2018-10-04 11:02:34 +08:00
AMOS bot bf5e1b2a77 Automatically generated installer lang files 2018-10-04 00:07:14 +00:00
Eloy Lafuente (stronk7) 83c249a665 Merge branch 'MDL-63141-master' of git://github.com/rezaies/moodle 2018-10-04 00:20:02 +02:00
Eloy Lafuente (stronk7) c6e19d9cfa Merge branch 'MDL-63142-master' of git://github.com/rezaies/moodle 2018-10-04 00:18:35 +02:00
Eloy Lafuente (stronk7) 57aaa0c423 Merge branch 'MDL-63143-master' of git://github.com/rezaies/moodle 2018-10-04 00:02:21 +02:00
Eloy Lafuente (stronk7) 2f46cab80d MDL-62610 tests: fix Gherkin lint problem 2018-10-03 23:56:31 +02:00
Eloy Lafuente (stronk7) 95f82860d5 Merge branch 'MDL-62610-master' of git://github.com/lameze/moodle 2018-10-03 18:00:08 +02:00
David Monllao 1ef89ad49c Merge branch 'mdl63334-master' of https://github.com/tlock/moodle 2018-10-03 17:19:18 +02:00
David Monllao d6946bb0f9 Merge branch 'MDL-62558-master' of git://github.com/abgreeve/moodle 2018-10-03 11:17:06 +02:00
Jun Pataleta 7c137e7845 Merge branch 'MDL-63426-master' of https://github.com/lucaboesch/moodle 2018-10-03 15:25:22 +08:00
Jun Pataleta 941b90a509 Merge branch 'MDL-63211_master' of git://github.com/markn86/moodle 2018-10-03 13:45:52 +08:00
Mark Nelson 0d203bbf8d MDL-63211 core_message: respect new setting 'messagingallusers' 2018-10-03 11:58:39 +08:00
Mark Nelson c886e2c94d MDL-63211 core_message: deprecated api::is_user_blocked 2018-10-03 11:58:39 +08:00
Damyon Wiese b8dad795f7 MDL-63211 message: update behat
Approve the contact requests in the behat test.
2018-10-03 11:58:39 +08:00
Mark Nelson be016b0144 MDL-63211 core: added notification when contact request is made 2018-10-03 11:58:39 +08:00
Mark Nelson 892aad5185 MDL-63211 core_message: add temporary pending contact requests page 2018-10-03 11:51:29 +08:00
Mark Nelson f219eac7b4 MDL-63211 core: update core to use new APIs 2018-10-03 11:51:29 +08:00
Mark Nelson beeadbf783 MDL-63211 core: updated upgrade.txt files 2018-10-03 11:51:29 +08:00
Mark Nelson 742c27b3e8 MDL-63211 core_message: updated privacy provider 2018-10-03 11:51:29 +08:00
Mark Nelson 522841861f MDL-63211 core_message: added new web services 2018-10-03 11:35:26 +08:00
Mark Nelson 0b3eadcd96 MDL-63211 core_message: deprecated functions and added new API 2018-10-03 11:35:26 +08:00
Mark Nelson bacebf3738 MDL-63211 core: created new events for blocking/unblocking users 2018-10-03 11:35:25 +08:00
Adrian Greeve edbdeb6315 MDL-62558 tool_dataprivacy: Create a summary page for users. 2018-10-03 10:16:25 +08:00
Jun Pataleta 850707a0bb Merge branch 'MDL-35788-master' of git://github.com/andrewnicols/moodle 2018-10-03 10:13:40 +08:00
Eloy Lafuente (stronk7) 682357004f Merge branch 'MDL-60685-master' of git://github.com/damyon/moodle 2018-10-03 00:23:10 +02:00
Eloy Lafuente (stronk7) b18df698e7 Merge branch 'MDL-63435-master' of https://github.com/lucaboesch/moodle 2018-10-02 23:47:52 +02:00
Eloy Lafuente (stronk7) ca2ac0c1a3 Merge branch 'MDL-58000-master' of https://github.com/mackensen/moodle 2018-10-02 23:39:27 +02:00
Juan Leyva bb96ff716d MDL-60425 core_blog: New WS core_blog_get_entries 2018-10-02 14:49:48 +02:00
Juan Leyva 9de4402112 MDL-60425 core_blog: Move access validation to API 2018-10-02 14:49:48 +02:00
Juan Leyva 27190655b0 MDL-63225 webservice: Return proper debuginfo on WS exceptions
In order to make developers easy, we should give some clues about the type of the data generating exceptions.
2018-10-02 13:14:33 +02:00
Andrew Nicols 13976bcf83 Merge branch 'MDL-63493-master' of git://github.com/junpataleta/moodle 2018-10-02 11:40:20 +08:00
Jun Pataleta b79482f5d7 MDL-63493 core_question: Fix field parameters for the index definitions
* The fields for the ID number-related indexes that were created for
  the question and question_categories tables in MDL-62708 should not
  be in comma-separated strings.
2018-10-02 11:31:36 +08:00
Jun Pataleta 0410cee69e MDL-63493 core_message: Fix field parameters for the index definitions
* The fields for the ID number-related indexes that were created for
  the messages and message_user_actions tables in MDL-36941 should not
  be in comma-separated strings.
2018-10-02 11:31:36 +08:00
David Knuplesch a487a3edf2 MDL-60710 course: setting to show/hide duplicate coursecontact 2018-10-01 13:39:17 +02:00
Simey Lameze 484b179d06 MDL-62610 mod_quiz: fix behat failure 2018-10-01 09:53:34 +08:00
Simey Lameze 73aefa6bfc MDL-62610 mod_quiz: fix CiBoT issues 2018-10-01 08:27:28 +08:00
Andrew Nicols 424920f8fb MDL-35788 forum: Show post creation time not modified 2018-10-01 08:16:42 +08:00
Shamim Rezaie 0ce3fef70a MDL-63390 quiz_statistics: Remove Min/Median/Maximum rows
Part of MDL-62610
2018-10-01 07:53:10 +08:00
Shamim Rezaie 422d78648c MDL-63390 quiz_statistics: Make the summary row more distinguishable 2018-10-01 07:52:59 +08:00
Shamim Rezaie 24c28f3c9b MDL-63390 Quiz: Use lang rules to format quiz summark as a percentage
Part of MDL-62610
2018-10-01 07:52:50 +08:00
Shamim Rezaie bef224c6e4 MDL-63390 quiz_statistics: Added formating functions
Refactored quiz_statistics_table class to remove some duplications by defining and using
format_range(), format_percentage() and format_percentage_range() methods.

Part of MDL-62610
2018-10-01 07:52:42 +08:00
Shamim Rezaie 84140b9137 MDL-63390 quiz_statistics, question: Handling variants as well
Variants should also be treated like random questions in the sense that
a summary row
should be displayed for them as well.
This commit deals with handling variants.
Also the name of the calculated_random_question_summary class has
changed to
calculated_question_summary to be more generic as the summary row is not
specific to random questions only.
Also removed the protected function too_many_subq_and_or_variant_rows
and the const SUBQ_AND_VARIANT_ROW_LIMIT as they were not being used
anymore.

Part of MDL-62610
2018-10-01 07:52:31 +08:00
Shamim Rezaie f4bc55871c MDL_63390 question: Fixed get_min_max_of and get_min_max_of_sd
Fixed calculated_random_question_summary:get_min_max_of and calculated_random_question_summary:get_min_max_of_sd
functions and added unit tests

Part of MDL-62610
2018-10-01 07:52:18 +08:00
Tim Hunt c5499edaef MDL-63185 mod_quiz: more fixes to new behat code
Part of MDL-62610
2018-09-28 11:07:21 +08:00
Simey Lameze 9b1fc262d8 MDL-63185 mod_quiz: make CiBoT happy again
Part of MDL-62610
2018-09-28 11:07:21 +08:00
Simey Lameze bd92cfc6f9 MDL-63185 mod_quiz: add behat coverage for statistics report
Part of MDL-62610
2018-09-28 11:07:21 +08:00
Simey Lameze df48d3cc71 MDL-63185 mod_quiz: replace user session handling to use set_user()
Part of MDL-62610
2018-09-28 11:07:21 +08:00
Simey Lameze a190910595 MDL-63185 core_test: add set_user function to behat
Part of MDL-62610
2018-09-28 11:07:21 +08:00
Simey Lameze 6e4fe9afe0 MDL-63185 mod_quiz: convert responses report behat to use new step
Part of MDL-62610
2018-09-28 11:07:21 +08:00
Simey Lameze 90ef250d52 MDL-63185 mod_quiz: create steps to handle diferent behaviours
Part of MDL-62610
2018-09-28 11:07:21 +08:00
Simey Lameze 71fc74cee5 MDL-63185 core_question: add callback to some question types
Part of MDL-62610
2018-09-28 11:07:21 +08:00
Simey Lameze 3c4ff02e41 MDL-63185 mod_quiz: replace existing tests to use new step
Part of MDL-62610
2018-09-28 11:07:21 +08:00
Simey Lameze 5c0654d7ff MDL-63185 mod_quiz: change APIs to handle attempts on behat
Thanks to Tim Hunt for all the help.

Part of MDL-62610
2018-09-28 11:07:21 +08:00
Simey Lameze 35aa9ade76 MDL-63185 mod_quiz: add custom behat step to create user attempts
Thanks to Tim Hunt for all the help.

Part of MDL-62610
2018-09-28 11:07:21 +08:00
Shamim Rezaie b5fff70bdd MDL-63186 quiz_statistics: Highlight the summary row if is dubious
The summary row should be highlighted if any of the summarised rows are dubious.

Part of MDL-62610
2018-09-28 11:07:21 +08:00
Shamim Rezaie 666889f0f8 MDL-63186 quiz_statistics: Show each columns min,max in the summary row
The statistics table have been modified so that the summary row shows the minimum and maximum
values of each column for the set of questions that are being summarised.

Part of MDL-62610
2018-09-28 11:07:21 +08:00
Shamim Rezaie 6a966ea8d4 MDL-63186 workshopform_numerrors: Move percents lang string to core
Moved 'percents' lang string from workshopform_numerrors to core_moodle.

AMOS BEGIN
 MOV [percents,workshopform_numerrors],[percents,core_moodle]
AMOS END

Part of MDL-62610
2018-09-28 11:07:21 +08:00
Shamim Rezaie d79fef2ab5 MDL-63186 question: Calculate extremums of summarised questions
Modified calculated_random_question_summary class so that it can return minimum and maximum
of each attribute of the sub questions it is summarising.

Part of MDL-62610
2018-09-28 11:07:21 +08:00
Shamim Rezaie 6ee2b972c9 MDL-63186 quiz_statistics: Remove q number from the summary row
Part of MDL-62610
2018-09-28 11:07:21 +08:00
Ryan Wyllie 29cc55079a MDL-63186 question: include random questions in statistics calculator
Part of MDL-62610
2018-09-28 11:07:21 +08:00
Jun Pataleta 74844ced9d MDL-62395 bootstrapbase: Add more w-XX classes for BS4 compatibility
I added w-25, w-50 and w-75.
2018-09-28 10:25:59 +08:00
Jun Pataleta 526d2aa58e MDL-62395 tool_dataprivacy: Use BS4 table classes
* Use standard Bootstrap4 table classes for the categories and purposes
  tables.
* Set w-25 for the name and description columns of the purposes table.
* Set w-50 for the description column of the categories table.
* Set a minimum width for the actions column of these tables.
2018-09-28 10:25:58 +08:00
Mark Nelson b393296311 MDL-63211 core: deprecated events for blocking/unblocking contacts
The message_contact_blocked and message_contact_unblocked
events were deprecated. The reason being that you will be
able to block and unblock any user, regardless if they are
a contact or not. This information is also now stored in a
separate DB table.
2018-09-28 10:19:57 +08:00
Mark Nelson b65bfc8ab4 MDL-63211 core: upgrade to remove duplicate contacts
Remove any duplicate rows - from now on adding contacts just requires 1 row.
The person who made the contact request (userid) and the person who approved
it (contactid). Upgrade the table so that the first person to add the contact
was the one who made the request.
2018-09-28 10:19:57 +08:00
Mark Nelson 3ec5c7701c MDL-63211 core: upgrade to remove non-mutual contacts 2018-09-28 10:19:56 +08:00
Andrew Nicols 0b4c5e7706 Merge branch 'MDL-63477-master' of https://github.com/ryanwyllie/moodle 2018-09-28 09:47:49 +08:00
Ryan Wyllie 52b7845553 MDL-63477 blocks_timeline: fix behat test in clean theme 2018-09-28 09:40:57 +08:00
Mark Nelson 4428b042cb MDL-63211 core: upgrade to move blocked contacts to new table 2018-09-28 09:16:31 +08:00
Mark Nelson d842d9a90a MDL-63211 core: added new database tables
Allow NULL values for timecreated in both message_contacts
and message_users_blocked because there is existing data
that has no timecreated value associated with it.
2018-09-28 09:15:52 +08:00
David Herney 97fd2fb575 MDL-63323 course: Fixed wrong classes key in activity_navigation class
Replaced "classes" by "class" attribute, when the prev and next links are builded into the activity navigation.
2018-09-27 18:40:46 -05:00
Luca Bösch 1876162315 MDL-63435 gradebook: let activity icons re-appear. 2018-09-27 18:12:08 +02:00
Luca Bösch c789dd4f55 MDL-63426 repository_dropbox: Use post 2017 icon 2018-09-27 18:12:00 +02:00
Eloy Lafuente (stronk7) 81bbf426f6 weekly release 3.6dev 2018-09-27 15:17:37 +02:00
Andrew Nicols 1b80703e6c MDL-63044 blocks_timeline: Remove old minified JS 2018-09-27 14:25:25 +08:00
Andrew Nicols b8ecdc4896 MDL-63044 blocks_timeline: Fixes in integration 2018-09-27 14:16:49 +08:00
Andrew Nicols 20f9b981f9 Merge branch 'dashboard-split-overview-block' of https://github.com/ryanwyllie/moodle 2018-09-27 14:08:55 +08:00
Ryan Wyllie 1e44de35b3 MDL-63044 block_timeline: add timeline block 2018-09-27 13:10:45 +08:00
Ryan Wyllie 44eb44e415 MDL-63044 block_myoverview: remove timeline view 2018-09-27 13:10:45 +08:00
Ryan Wyllie bbe6eadda7 MDL-63044 block_myoverview: remove tab preference 2018-09-27 13:10:45 +08:00
Ryan Wyllie 2c13ae01d9 MDL-63044 javascript: improve paged content widget 2018-09-27 13:10:45 +08:00
Ryan Wyllie 2c1d19fde6 MDL-63044 course: add get_enrolled_courses_by_timeline_classification 2018-09-27 13:10:44 +08:00
Ryan Wyllie 296ff0a768 MDL-63044 theme_boost: add dir-ltr-hide and dir-rtl-hide classes 2018-09-27 13:09:24 +08:00
Ryan Wyllie 916c0ded83 MDL-63044 theme_boost: fix secondary outline button styling 2018-09-27 13:09:23 +08:00
Ryan Wyllie 2d41f5b2fa MDL-63044 theme_boost: add line-height classes 2018-09-27 13:09:23 +08:00
Ryan Wyllie edd7fa33d0 MDL-63044 theme: add background pulse grey class 2018-09-27 13:09:23 +08:00
Ryan Wyllie 9d1d5ae05c MDL-63044 theme_boost: add icon class 2018-09-27 13:09:23 +08:00
Ryan Wyllie 40a14ef345 MDL-63044 icon: add next and previous icons 2018-09-27 13:09:23 +08:00
Ryan Wyllie 119c0124c4 MDL-63044 javascript: add getUserMidnightForTimestamp to user_date 2018-09-27 13:09:23 +08:00
Ryan Wyllie 6e403eb62f MDL-63044 javascript: add global helper for dropdowns 2018-09-27 13:09:23 +08:00
Ryan Wyllie d4e8e94025 MDL-63044 javascript: add simple pubsub implementation 2018-09-27 13:09:23 +08:00
Eloy Lafuente (stronk7) d6b71d7923 Merge branch 'MDL-54035_master-fix' of git://github.com/dmonllao/moodle 2018-09-26 23:28:34 +02:00
Eloy Lafuente (stronk7) 659d9fe942 Merge branch 'MDL-63013-master-prioritypolicy' of git://github.com/mudrd8mz/moodle 2018-09-26 23:21:09 +02:00
David Monllao e8ce6ca306 MDL-54035 accesslib: Check if the user can switch role before switching 2018-09-26 13:03:08 +02:00
Eloy Lafuente (stronk7) 201d21edad Merge branch 'MDL-63113-master' of git://github.com/bmbrands/moodle 2018-09-26 10:57:20 +02:00
David Monllao 0e79528704 Merge branch 'MDL-61161-master' of https://github.com/mackensen/moodle 2018-09-26 10:23:39 +02:00
Bas Brands a81e6914d7 MDL-63113 theme boost: initialsbar wrapping 2018-09-26 10:18:11 +02:00
Eloy Lafuente (stronk7) d813c9e745 Merge branch 'MDL-61981-master_nestedmath' of git://github.com/Mankro/moodle 2018-09-25 23:36:17 +02:00
Eloy Lafuente (stronk7) 51181541ab Merge branch 'MDL-62279-master' of git://github.com/damyon/moodle 2018-09-25 23:25:10 +02:00
Eloy Lafuente (stronk7) a649a3a120 Merge branch 'MDL-62714-boost_course_visibility_in_navbar' of https://github.com/fskandalis/moodle 2018-09-25 23:17:52 +02:00
Eloy Lafuente (stronk7) de7c685e52 Merge branch 'MDL-63253-master-adminsearchresults' of git://github.com/mudrd8mz/moodle 2018-09-25 22:56:11 +02:00
Eloy Lafuente (stronk7) 0ddc272116 Merge branch 'MDL-62334-master' of https://github.com/danielneis/moodle 2018-09-25 22:50:41 +02:00
Charles Fulton 3b31d8c92c MDL-61161 course: grace period for classifying in progress courses 2018-09-25 14:11:32 -04:00
Daniel Neis Araujo 28af88f364 MDL-62334 admin: add a new course link on admin/search 2018-09-25 14:31:50 -03:00
Eloy Lafuente (stronk7) b687205e27 Merge branch 'MDL-60028' of https://github.com/paulholden/moodle 2018-09-25 16:57:58 +02:00
Eloy Lafuente (stronk7) b8749c6208 Merge branch 'wip-MDL-62708-master' of https://github.com/Beedell/moodle 2018-09-25 16:52:50 +02:00
Charles Fulton 49b464f814 MDL-58000 badges: use large image when baking 2018-09-25 10:46:05 -04:00
Eloy Lafuente (stronk7) fc008d6769 MDL-57610 assignfeedback_editpdf: add missing UK to install.xml 2018-09-25 15:21:42 +02:00
Eloy Lafuente (stronk7) 4f06a97702 Merge branch 'MDL-57610' of git://github.com/aolley/moodle 2018-09-25 14:46:09 +02:00
David Monllao 8199e69b47 Merge branch 'MDL-63119-master' of git://github.com/lameze/moodle 2018-09-25 12:36:08 +02:00
David Monllao cebb7ba17c Merge branch 'MDL-62930-master' of git://github.com/damyon/moodle 2018-09-25 12:28:10 +02:00
David Monllao 9d4c8d45ef Merge branch 'MDL-62717-master' of https://github.com/lucaboesch/moodle 2018-09-25 12:18:36 +02:00
Alexander Bias 3e24741d0a MDL-63442 login: Show MOODLEID cookie note only if needed
AMOS BEGIN
 CPY [cookiesenabled,core],[cookiesenabledonlysession,core]
AMOS END
2018-09-25 12:16:47 +02:00
David Monllao 85d4b77cd3 Merge branch 'MDL-61967-master' of git://github.com/sarjona/moodle 2018-09-25 11:08:53 +02:00
Andrew Nicols 1a9fc39277 Merge branch 'MDL-63346' of https://github.com/stronk7/moodle 2018-09-25 08:35:08 +08:00
Adam Olley 1afbb97b6b MDL-57610 assignfeedback_editpdf: integration cleanup
* Add a note to upgrade.php to notify devs/admins of the new setting.
* Replace update_record with set_field.
* Add missing phpdoc.
2018-09-25 09:54:39 +09:30
Sara Arjona 5290d0604b MDL-61967 core_user: Allow filtering by No groups on participants page
A new optional parameter $context has been added to the
core_group::groups_get_members_join() function.
Besides, some core_group methods now accept -1 (USERSWITHOUTHGROUP) for
the groupid field.
2018-09-24 18:33:45 +02:00
Eloy Lafuente (stronk7) 0de29dbf35 MDL-63020 tests: ensure that searching for is null values also works ok 2018-09-24 17:38:10 +02:00
Eloy Lafuente (stronk7) 985b6b75c2 Merge branch 'MDL-63020' of git://github.com/timhunt/moodle 2018-09-24 16:01:21 +02:00
Tim Hunt eb6c769a8c MDL-63020 dml: improve the unit tests 2018-09-24 11:41:25 +01:00
David Monllao bac1731614 Merge branch 'MDL-61573-master' of https://github.com/Kathrin84/moodle 2018-09-24 11:24:49 +02:00
John Beedell dfa85ad002 MDL-62708 qformat_xml: phpunit test correction. 2018-09-24 09:37:12 +01:00
David Monllao 6ef77520cd MDL-47962 upgrade.txt: Update commit reference 2018-09-24 09:50:05 +02:00
David Monllao ccff34bf07 Merge branch 'MDL-47962' of git://github.com/timhunt/moodle 2018-09-24 09:45:47 +02:00
David Monllao bdc511364c MDL-54035 upgrade.txt: Limit comments to relevant info for upgrades 2018-09-24 09:41:18 +02:00
Jonathan Champ d2a98f89bd MDL-54035 course: Test reset roles in reset_course_userdata()
Previously, reset_course_userdata() was deleting the role_capabilities
directly, but has_capability() checks the local capabilities cache
which was still returning the previous value.
2018-09-21 09:17:43 -04:00
Jonathan Champ 1113e34675 MDL-54035 accesslib: Add context->get_parent_context_paths()
Returns full context paths for parent contexts. Useful for exact
matches, such as when checking dirtycontexts.
2018-09-21 09:17:43 -04:00
Jonathan Champ 1d049e08e5 MDL-54035 accesslib: add mark_user_dirty helper
Instead of marking an entire context dirty and affecting all users
of those contexts, mark the user as dirty when the change only
affects that user.
2018-09-21 09:17:43 -04:00
Jonathan Champ 34dd57053d MDL-54035 accesslib: only modify role_capabilities in accesslib
Whenever the role_capabilities table is changed, we need to remember
to clear the cache for the role(s) being modified. This is far simpler
when all of those changes happen in a single file, i.e. accesslib.php,
allowing other parts of the application to use the public functions
without requiring knowledge of the cache internals.
2018-09-21 09:17:43 -04:00
Jonathan Champ b2f349a433 MDL-54035 accesslib: separate role definition cache clear
Thanks to MDL-49398, we can separate the combined user session and role
definition cache clearing function into two separate functions. At the
same time, we want to identify and remove mark_dirty() calls that were
added for role definition changes but were incorrectly left behind.

Change highlights:
 - Remove unnecessary mark_dirty() calls performed after
   assign_capability(), unassign_capability(), delete_role(),
   deleted contexts, brand new contexts
 - Move role definition cache clear from the user-centric
   accesslib_clear_all_caches() to the newly created,
   role-dedicated accesslib_reset_role_cache()
2018-09-21 09:17:42 -04:00
John Beedell 6189fda47f MDL-62708 question: Add idnumbers to question and question category 2018-09-21 12:26:24 +01:00
Paul Holden f56e695883 MDL-60028 enrol: fix counting of enrolled users in a given context.
Previously users enrolled in a course via multiple enrolment methods
would be counted multiple times.
2018-09-21 10:14:55 +01:00
Markku Riekkinen a776169ee9 MDL-61981 filter_mathjaxloader: add unit tests 2018-09-21 09:58:42 +03:00
Markku Riekkinen 194ffa2344 MDL-61981 filter_mathjaxloader: nested math environments
The MathJax filter used to break mathematics if inline math was
used inside display math. Nolink spans were added around
the inline math even though it was nested inside another math
environment. This fix is aware of the nesting so that the spans
may be inserted only at the outer math environment. No regular
expressions are used because they do not support detecting
arbitrary, unlimited nesting of parentheses in the text, which
is now needed.
2018-09-21 09:58:27 +03:00
Tim Hunt 3923151a1a MDL-47962 filter_glossary: changes made during integration review 2018-09-20 17:58:01 +01:00
Tim Hunt 5a8c44d000 MDL-47962 filter_glossary: only create replacement HTML if needed 2018-09-20 17:58:01 +01:00
Tim Hunt 1d8d00d91d MDL-47962 filter_glossary: only prepare the replacement if used 2018-09-20 17:58:00 +01:00
Tim Hunt ac66652078 MDL-47962 filter_glossary: clean up filterobject class
This is another preliminary commit, rationalising the ->work... fields
and also moving the code that sets them up into a separate function.
This is also to prepare for the next commit.
2018-09-20 17:58:00 +01:00
Tim Hunt c01503de75 MDL-47962 filter_glossary: only prepare_phrases_for_filtering once 2018-09-20 17:58:00 +01:00
Tim Hunt 2abf8fbf86 MDL-47962 filter_glossary: use preg features for fullmatch
This eliminates a lot of necessary string manipulation for something
that preg can just do with the \b assertion.

The change also extracts all the work to prepare ->work_phrase (renamed
->regexp) into a separate function. This is to pave the way for future
efficiency gains, but for now I have not done them, so it is easier to
verify by inspection that this commit does not change behaviour.

Also, some tidy-ups to the filterobject structure, to eliminate some
redundant fields.
2018-09-20 17:58:00 +01:00
Tim Hunt d22699af7f MDL-47962 filter_glossary: cache concept list in a MUC static cache
This is a slight improvement on a suggestion by David Monllaó
2018-09-20 17:58:00 +01:00
Tim Hunt b0a3b52fe9 MDL-47962 filter_glossary: Fix lang string concatenation 2018-09-20 17:58:00 +01:00
Tim Hunt c633345265 MDL-47962 filter_glossary: $GLOSSARY_EXCLUDEENTRY shouldn't stop caching
Also, greatly improved unit tests, to test more cases of how the filter
should work.
2018-09-20 17:58:00 +01:00
Tim Hunt 43d270e4ef MDL-47962 filterlib: Fix lots of coding style 2018-09-20 17:58:00 +01:00
Tim Hunt 5abc431335 MDL-63020 ddl: fix nullable unique indexes in OCI and MS SQL
This works-around the default non-standard behaviour of these DB engines.
2018-09-20 17:41:22 +01:00
Tim Hunt 54b2b1d27f MDL-63020 xmldb: Improve PHPdoc comments for better IDE autocomplete 2018-09-20 17:41:22 +01:00
Luca Bösch 490476a118 MDL-62717 forum: Create announcements forum with HTML format intro. 2018-09-20 17:47:35 +02:00
Eloy Lafuente (stronk7) 6902f39141 weekly release 3.6dev 2018-09-20 12:11:53 +02:00
Eloy Lafuente (stronk7) ef10e7db4c MDL-63346 nodejs: Bump to created from scratch shrinkwrap file
Steps:

- remove node_modules & npm-shrinkwrap.json
- npm cache clear --force
- npm install
- npm shrinkwrap
2018-09-20 11:00:02 +02:00
Eloy Lafuente (stronk7) 5bd0dc6483 MDL-23545 question: fix remaining sizes leading to failures 2018-09-19 23:07:20 +02:00
Eloy Lafuente (stronk7) 881f451bf0 Merge branch 'MDL-23545-phpunit-fixes' of https://github.com/timhunt/moodle 2018-09-19 18:10:37 +02:00
Eloy Lafuente (stronk7) dd3508df5b MDL-59227 course: Use low level early renaming to avoid dupes
Instead of using set_coursemodule_name() to proceed with the name
change we perform the change earlier in the process, both to avoid
duplicate events caused by the renaming function and also to get the new
name used by all proper generated events.
2018-09-19 17:20:23 +02:00
David Monllao 4453613767 Merge branch 'MDL-63140-master' of git://github.com/rezaies/moodle 2018-09-19 13:30:43 +02:00
Tim Hunt 59ffae414c MDL-23545 qformat_xml: fix another Behat test 2018-09-19 12:18:59 +01:00
David Monllao 25561b3751 Merge branch 'MDL-63135-master' of git://github.com/rezaies/moodle 2018-09-19 13:12:40 +02:00
David Mudrák 7fb0e8a260 MDL-63013 tool_policy: Add Behat tests for the new style of agreements
The tests make sure that both existing users as well as signing up users
can accept policies with "on their own page" style of agreement prior
reaching the consent page.
2018-09-19 09:55:42 +02:00
David Mudrák 362ae1b443 MDL-63013 tool_policy: Change acceptance flow for policies with own page
The idea of the patch is to check the list of policies that are shown
before and on the consent page. If that list contains a policy that is
supposed to be accepted on its own page, the existing flow is
interrupted and the user is redirected to a view.php to display that
particular policy.

The view template for such a policy contains a button for getting the
user agreement. When pressed, the policy is marked as accepted and we
can go to start again.

To make this working during the signup, we need to extend the existing
logic and start tracking which particular policies the visitor accepted
prior reaching the signup form. Similarly, we need to start track which
particular policies were displayed and use that list when evaluating
which policies were unchecked on the consent page.
2018-09-19 09:55:42 +02:00
David Mudrák 23b663ed55 MDL-63013 tool_policy: Policy agreement style can be defined now
The patch introduces a new property of a policy document called
"Agreement style". It allows the admin to define if the policy should be
accepted together with all others on the consent page (legacy and
default behaviour) or on its page before the consent page is reached
(the new optional behaviour).
2018-09-19 09:55:42 +02:00
Eloy Lafuente (stronk7) 61367994bd Merge branch 'MDL-23545-phpunit-fixes' of https://github.com/timhunt/moodle 2018-09-19 00:26:25 +02:00
Eloy Lafuente (stronk7) 4cde0a5212 Merge branch 'MDL-63116-master-1' of git://github.com/mihailges/moodle 2018-09-18 23:26:51 +02:00
Eloy Lafuente (stronk7) ead7a5393e Merge branch 'MDL-59227' of https://github.com/rlorenzo/moodle 2018-09-18 23:11:34 +02:00
Mihail Geshoski 457047de6c MDL-61908 privacy: Fix heading in data privacy pages 2018-09-18 18:49:04 +02:00
Eloy Lafuente (stronk7) ddf86f9930 Merge branch 'MDL-63109-master' of git://github.com/mihailges/moodle 2018-09-18 17:50:13 +02:00
David Monllao 542201d547 Merge branch 'MDL-63138-master' of git://github.com/rezaies/moodle 2018-09-18 16:39:58 +02:00
David Monllao 11decdb19c Merge branch 'MDL-63139-master' of git://github.com/rezaies/moodle 2018-09-18 16:36:55 +02:00
David Monllao 6302d4cf64 Merge branch 'MDL-63117-master' of git://github.com/rezaies/moodle 2018-09-18 16:32:58 +02:00
Tim Hunt f19c6f60cd MDL-23545 qformat_xml: don't allow irrelevant DB differences to break tests
Also slightly improve formatting of the exported file.
2018-09-18 13:52:51 +01:00
David Monllao 0e5144fe24 Merge branch 'MDL-63333_master' of git://github.com/markn86/moodle 2018-09-18 12:17:46 +02:00
Mihail Geshoski 85de6d525d MDL-63109 privacy: Add behat tests 2018-09-18 15:06:23 +08:00
Kathrin Osswald df8eec5206 MDL-61573 user: Changes to pix path for better support of fa mapping 2018-09-18 08:28:23 +02:00
Jun Pataleta 58e529e0c0 Merge branch 'm36_MDL-63319_MySQL_MSSQL_Rename_Field_Reserved_Word' of https://github.com/scara/moodle 2018-09-18 14:10:11 +08:00
Mihail Geshoski 2b85015b83 MDL-63109 privacy: Fix the initialisation of the policy acceptance modal 2018-09-18 12:55:35 +08:00
Adam Olley bc32547da9 MDL-57610 assignfeedback_editpdf: Add test coverage for conversion task
Without this, we have no coverage of the convert_submissions task. This test
validates it both works normally, and that it also skips queued items that have
exceeded the conversion attempt limit introduced in this improvement.
2018-09-18 14:14:24 +09:30
Tim Schroeder d2111dbccf MDL-63119 calendar: now showing event end in modal
When clicking on an event in the month view, a modal opens with
    information about it. That modal did previously only show the start time
    of the event. It now also shows the end (if the event has one).
2018-09-18 11:40:07 +08:00
Jun Pataleta 902ec3d0f8 Merge branch 'MDL-23545-master-fix' of git://github.com/junpataleta/moodle 2018-09-18 10:07:56 +08:00
Jun Pataleta 73311d3157 MDL-23545 question_format: Replace tabs with spaces in upgrade.txt 2018-09-18 10:04:03 +08:00
Jun Pataleta 3d2659097e Merge branch 'wip-MDL-23545-master' of https://github.com/Beedell/moodle 2018-09-18 09:47:38 +08:00
Damyon Wiese 14ae3b74aa MDL-62930 theme_boost: Remove custom-select styles
These styles cause the custom select fields to overlap their containers. See the license field in the file picker single file info dialogue for an example.
2018-09-18 08:41:38 +08:00
Rohan Khajuria e372389251 MDL-59227 course: add (copy) to duplicated modules 2018-09-17 15:14:12 -07:00
Eloy Lafuente (stronk7) 044e343bbd Merge branch 'MDL-63279_master' of https://github.com/aanabit/moodle 2018-09-17 23:56:37 +02:00
Eloy Lafuente (stronk7) d20250ab3e Merge branch 'MDL-58781_master' of https://github.com/aanabit/moodle 2018-09-17 23:39:35 +02:00
Eloy Lafuente (stronk7) 4ab33be074 Merge branch 'MDL-63009-master' of git://github.com/mickhawkins/moodle 2018-09-17 23:30:13 +02:00
Eloy Lafuente (stronk7) 01d7b4b6dd Merge branch 'MDL-63184-master-2' of git://github.com/junpataleta/moodle 2018-09-17 23:10:39 +02:00
Eloy Lafuente (stronk7) 8d6892167b Merge branch 'MDL-63371' of git://github.com/timhunt/moodle 2018-09-17 23:09:20 +02:00
Eloy Lafuente (stronk7) 7c5a9faf41 Merge branch 'MDL-63354-master' of https://github.com/HuongNV13/moodle 2018-09-17 23:05:31 +02:00
David Mudrák 8b8b9a9415 MDL-63253 admin: Show location of the found items at search results page
The search results page showed just the titles of the found matching
pages / sections but not their location within the admin tree. In
certain cases, we even have multiple admin pages with the same title -
making it impossible to distinguish which is which.

The patch makes it so that the path of the found admin page / section is
displayed below the title.
2018-09-17 20:34:31 +02:00
Jun Pataleta 302089f52b MDL-63184 tool_dataprivacy: Ensure PO roles have correct capability 2018-09-17 22:12:34 +08:00
David Monllao 79e321cbc4 Merge branch 'MDL-62554-master' of git://github.com/junpataleta/moodle 2018-09-17 13:44:49 +02:00
Eloy Lafuente (stronk7) 771665a2a0 Merge branch 'MDL-63215-master' of https://github.com/lucaboesch/moodle 2018-09-17 10:40:41 +02:00
Eloy Lafuente (stronk7) ba03ff5d32 Merge branch 'MDL-63379-master' of git://github.com/junpataleta/moodle 2018-09-17 09:54:31 +02:00
Jun Pataleta 8420b61c25 MDL-63379 user: Fix Behat tests for participants filtering 2018-09-17 11:25:37 +08:00
Mark Nelson cbc3833d27 MDL-63333 core: removed unused setting 'messaginghidereadnotifications' 2018-09-17 10:02:37 +08:00
Mihail Geshoski 19bad13a55 MDL-63116 privacy: Add bulk actions to the privacy request table 2018-09-17 08:13:06 +08:00
Mihail Geshoski 99496e35ae MDL-63116 privacy: Add behat tests 2018-09-17 08:13:06 +08:00
Mihail Geshoski 598160ef4c MDL-63116 privacy: Add unit tests 2018-09-17 08:13:06 +08:00
Adam Olley b722a457ad MDL-57610 assignfeedback_editpdf: remove queued jobs that keep failing
Without this, its possible to get a document in the editpdf conversion queue
that keeps failing - and in some cases completely crashing the PHP script
despite exception handling - which ends up blocking the processing of the queue
entirely.

This change allows for a configurable number of attempts the conversion
task will perform before removing the item from the queue.
2018-09-17 09:30:43 +09:30
Michelle Melton 29ec0d5543 MDL-63215 block_rss_client: Escaping tags in RSS entries 2018-09-16 23:49:15 +02:00
Matteo Scaramuccia 211d04f43e MDL-63319 ddl: Added getRenameFieldSQL() coverage 2018-09-14 22:41:18 +02:00
Matteo Scaramuccia 66c34d3578 MDL-63319 ddl: Improved rename_field() coverage
DB API should allow to rename fields, including renaming
those columns named using a reserved word.
2018-09-14 22:41:18 +02:00
Matteo Scaramuccia 12b6041aac MDL-63319 ddl: MSSQL should rename reserved words 2018-09-14 22:31:39 +02:00
Matteo Scaramuccia 0fb34e9108 MDL-63319 ddl: MySQL should rename reserved words 2018-09-14 22:31:39 +02:00
John Beedell 1dab8faafd MDL-23545 question: XML import/export add category description 2018-09-14 16:54:25 +01:00
Tim Hunt 802ff4c933 MDL-63371 question: USE_RAW_DATA case in check_qt_var_name_restrictions 2018-09-14 16:43:41 +01:00
Amaia Anabitarte fdb45f7943 MDL-63279 messaging: Add admin setting for toggling site-wide messaging 2018-09-14 13:20:18 +02:00
Amaia Anabitarte b0af7093cf MDL-58781 mod_feedback: Inconsistency in analysis exported to excel 2018-09-14 12:47:56 +02:00
Shamim Rezaie 8ce2f61789 MDL-63143 mod_lesson: Check if the module is visible to the user 2018-09-14 20:34:10 +10:00
Shamim Rezaie e56833ca06 MDL-63143 mod_lesson: Add userid param to mod_lesson calendar callbacks 2018-09-14 20:34:00 +10:00
Eloy Lafuente (stronk7) 83a548c1d2 MDL-63346 travis: GRUNT job immune to npm-shrinkwrap.json changes
When upgrading nodejs/npm versions, there are modifications to
different packages or to the format of the npm-shrinkwrap.json
file. Usually that leads to failed jobs untill the bundled file
is updated.

To avoid that, we just ignore the npm-shrinkwrap.json file, so
just the REAL modifications in css/js/ignore stuff are considered.
2018-09-14 11:55:23 +02:00
Eloy Lafuente (stronk7) 674ef9baac weekly release 3.6dev 2018-09-14 11:06:32 +02:00
Eloy Lafuente (stronk7) 3741c59c14 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2018-09-14 11:06:29 +02:00
Shamim Rezaie 50f347214e MDL-63140 mod_glossary: Check if the module is visible to the user 2018-09-14 17:43:23 +10:00
Shamim Rezaie cbeb3995dc MDL-63142 mod_label: Check if the module is visible to the user 2018-09-14 17:39:21 +10:00
Shamim Rezaie a7da4c5fc8 MDL-63142 mod_label: Add userid param to mod_label calendar callbacks 2018-09-14 17:22:35 +10:00
Huong Nguyen 83f9f83a55 MDL-63354 Group: Rollover text on long group names is not consistent 2018-09-14 09:41:06 +07:00
Eloy Lafuente (stronk7) f71c8d96bd MDL-61169 iplookup: Change to another block still remaining to SF 2018-09-13 19:01:09 +02:00
Jun Pataleta ac61871ebe Merge branch 'MDL-51177-master' of git://github.com/andrewnicols/moodle 2018-09-13 16:17:02 +08:00
Andrew Nicols 11cd7c89d4 MDL-51177 atto_html: Check isHTML before hiding editor 2018-09-13 15:38:14 +08:00
Jun Pataleta 01f098afaa MDL-62554 tool_dataprivacy: Integration review fixes 2018-09-13 14:07:25 +08:00
Eloy Lafuente (stronk7) 0e05bac861 Merge branch 'MDL-60630-master' of git://github.com/andrewnicols/moodle 2018-09-12 23:14:54 +02:00
Andrew Nicols 666196271f MDL-60630 cachestore: Remove memcache plugin 2018-09-12 21:07:01 +08:00
Michael Hawkins 0971131a78 MDL-63009 tool_dataprivacy: Added site name/link to request emails 2018-09-12 17:41:58 +08:00
Eloy Lafuente (stronk7) 79e2d710d3 Merge branch 'MDL-63329-master' of git://github.com/andrewnicols/moodle 2018-09-12 10:19:19 +02:00
Jun Pataleta d1ae9c72c6 Merge branch 'mdl63321-master' of https://github.com/tlock/moodle 2018-09-12 15:34:59 +08:00
Jun Pataleta 19d8da7561 Merge branch 'MDL-51177-master' of git://github.com/andrewnicols/moodle 2018-09-12 13:30:39 +08:00
Andrew Nicols 3951d50a89 MDL-51177 core: Ignore built files in stylelint 2018-09-12 12:36:19 +08:00
Andrew Nicols 6e1008ddd0 MDL-51177 atto_html: Import htmlplus functionality 2018-09-12 10:12:15 +08:00
Jun Pataleta d784584243 Merge branch 'MDL-63231-set-default-value-for-int-param-MOODLE_Master' of https://github.com/guillalva06/moodle 2018-09-12 10:00:01 +08:00
Jun Pataleta 82585098f8 Merge branch 'MDL-50314_master' of git://github.com/do-you-even-curl/moodle 2018-09-12 09:44:36 +08:00
Andrew Nicols 89aff0d828 MDL-63329 core: Remove memcache session support 2018-09-12 08:15:35 +08:00
Eloy Lafuente (stronk7) db5057d7bd Merge branch 'MDL-63130_master' of git://github.com/markn86/moodle 2018-09-11 23:55:00 +02:00
Eloy Lafuente (stronk7) 6625cff604 Merge branch 'MDL-63136-master' of git://github.com/rezaies/moodle 2018-09-11 23:52:02 +02:00
Eloy Lafuente (stronk7) cbfc6b3f3f Merge branch 'MDL-62528-master' of git://github.com/bmbrands/moodle 2018-09-11 23:02:40 +02:00
Guillermo Alvarez e0dac0f4d7 MDL-63231 filepicker: Skype validation for null values
In file_get_all_files_in_draftarea function an integer could get
a null value so it is necessary to execute this function only
when is called with a valid integer value.
2018-09-11 09:03:23 -05:00
Shamim Rezaie 52c9bbbfae MDL-63141 mod_imscp: Check if the module is visible to the user 2018-09-11 15:35:21 +10:00
Shamim Rezaie 06800b5414 MDL-63141 mod_imscp: Add userid param to mod_imscp calendar callbacks 2018-09-11 15:14:47 +10:00
Tim Lock 394d0f15d9 MDL-63334 tool_privacy: Handle modules without privacy support. 2018-09-11 12:49:31 +09:30
Fotis Skandalis 8665cc33e0 MDL-62714 theme_boost: Course visibility in navigation bar
Added check in navbar.mustache to add dimmed_text class if needed.
Added is_hidden() in navigationlib.php to return if the class needs
to be added.
2018-09-10 16:51:35 +03:00
Charles YVANES 458453cee0 MDL-29895 core: removed require_login() when not needed 2018-09-10 11:22:50 +02:00
Jun Pataleta f239f97d34 Merge branch 'wip-MDL-62520_MASTER' of https://github.com/jason-platts/moodle 2018-09-10 16:22:48 +08:00
Jun Pataleta 48eb55a1e5 MDL-62554 tool_dataprivacy: Bump version for new WS functions 2018-09-10 12:16:20 +08:00
Jun Pataleta e547ba1de5 MDL-62554 tool_dataprivacy: Fix display of activity options 2018-09-10 12:16:20 +08:00
Jun Pataleta 40e4e99186 MDL-62554 tool_dataprivacy: Fix template for Bootstrapbase compatibility 2018-09-10 12:16:20 +08:00
Jun Pataleta 28c1b4138c MDL-62554 tool_dataprivacy: Remove defaults form
With the changes in this issue, this form is no longer being used.
2018-09-10 12:16:20 +08:00
Jun Pataleta 4e0d2064bb MDL-62554 tool_dataprivacy: Behat tests for managing registry defaults
* Also new step definitions and generator for:
  - Creating categories and purposes
  - Assigning category and purpose to context instances.
2018-09-10 12:16:20 +08:00
Jun Pataleta 08248c30a7 MDL-62554 tool_dataprivacy: Unit tests for new WS/API functions 2018-09-10 12:16:20 +08:00
Jun Pataleta a1af857354 MDL-62554 tool_dataprivacy: Fix fetching of default contexts
* We also need to handle default contexts for activities. If defaults
  for an activity is set, fetch that. If not, fetch the defaults for
  the context level.
2018-09-10 12:16:20 +08:00
Jun Pataleta f7bcdf61c5 MDL-62554 tool_dataprivacy: Allow setting of activity defaults
* Allow the setting of data registry defaults for activity modules.
* Rewrite the defaults page so that it uses templates.
* Use a tabbed layout for the defaults page that shows the default
  category and purpose per context level.
* New API and web service functions that enables the setting of the
  defaults.
2018-09-10 12:16:12 +08:00
Tim Lock 9790093d1a MDL-63321 block: Fix warning in Calendar month block after MDL-60587 2018-09-10 07:43:41 +09:30
AMOS bot 4dc9cf5b84 Automatically generated installer lang files 2018-09-08 00:07:23 +00:00
Tim Schroeder 3a33d51497 MDL-50314 mod_quiz: removed hardcoded export columns
* The columns 'institution', 'department' and 'email' are no longer
  automatically included in all quiz result exports.
* These columns can still be used, but have to be configured under
  'showuseridentity'.
2018-09-07 14:18:25 +02:00
Shamim Rezaie 00aa8d3f32 MDL-63140 mod_glossary: Add userid param to glossary calendar callbacks 2018-09-07 18:20:03 +10:00
Shamim Rezaie eb4c801cef MDL-63136 mod_data: Check if the module is visible to the user 2018-09-07 17:40:29 +10:00
Shamim Rezaie 362f9e7c61 MDL-63136 mod_data: Add userid param to mod_data calendar callbacks 2018-09-07 17:40:16 +10:00
Shamim Rezaie 46b29219e3 MDL-63139 mod_forum: Check if the module is visible to the user 2018-09-07 16:55:19 +10:00
Shamim Rezaie d46da4aadc MDL-63139 mod_forum: Add userid param to mod_forum calendar callbacks 2018-09-07 16:47:56 +10:00
Shamim Rezaie ac0f38b1d8 MDL-63138 mod_folder: Check if the module is visible to the user 2018-09-07 14:58:35 +10:00
Shamim Rezaie a0e19ccf32 MDL-63138 mod_folder: Add userid param to mod_folder calendar callback 2018-09-07 14:58:16 +10:00
Jun Pataleta 6e2e63457e weekly release 3.6dev 2018-09-07 11:10:02 +08:00
Jun Pataleta 0fb5aa730c Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2018-09-07 11:09:47 +08:00
Mark Nelson 8a261177f7 MDL-63130 core_message: add unit test 2018-09-06 18:16:33 +08:00
Pavel Sokolov f88cc4ccae MDL-63130 message: message_count_unread_message counts sent messages 2018-09-06 18:16:06 +08:00
Shamim Rezaie a8df987e07 MDL-63135 mod_choice: Check if the module is visible to the user 2018-09-06 20:14:04 +10:00
Shamim Rezaie 1b82088f98 MDL-63135 mod_choice: Add userid param to mod_choice calendar callback 2018-09-06 20:09:50 +10:00
Shamim Rezaie 0ec076ef34 MDL-63135 mod_choice: Added choice_get_user_response function
A new function to return choice answers records of a given user in a given choice activity.
2018-09-06 20:01:05 +10:00
Shamim Rezaie dd1ba60f30 MDL-63117 mod_book: Check if the module is visible to the user 2018-09-06 17:41:06 +10:00
Shamim Rezaie a4fd6c07ba MDL-63117 mod_book: Add userid param to mod_book calendar callbacks 2018-09-06 15:54:36 +10:00
David Mudrák 5e2236a2f0 MDL-60820 workshop: Fix default value of submissiontypefile 2018-09-05 11:29:53 +02:00
Jake Dallimore c96c9601af MDL-62947 mod_feedback: fix feedback so it correctly uses forms API
Feedback code was doing the following, which is incompatible with the
sec-patched quickforms lib:
- appending '[0]' to non-group element names, meaning type checks in
getCleanType() were falling back to PARAM_RAW instead of PARAM_INT,
and meaning _findValue() was comparing elements it thought to be arrays
with scalar submit values (worked with eval() implementation as the 0th
element of a string was the character, but not working when patched).
- external unit tests incorrectly testing multichoice questions in the
process_page tests - patched lib highlighted failures.

It was also doing the following:
- actively setting null as default element values instead of 0 for
radio buttons and dropdowns (for 'not selected'). This is incompatible
with more recent quickforms lib (see MDL-63070).
- creating groups using addElement instead of addGroup - not recommended

This patch addresses the above.
2018-09-05 12:12:20 +08:00
Jake Dallimore c87010baca MDL-62947 core_form: fix remote code execution exploit in QuickForms
Applies the patch found upstream:
https://github.com/pear/HTML_QuickForm/commit/
d3a6d5c44dedf3c164c6c79198e4ef479bcedcd2 and make util methods static
for php7 compatibility.
2018-09-05 12:12:19 +08:00
AMOS bot fba3372009 Automatically generated installer lang files 2018-09-05 00:07:20 +00:00
Damyon Wiese 7c05d8a3d2 MDL-62748 course: maxsections is a limit
For course formats shipped with core, maxsections should be a limit to the number of sections
allowed in the course.
2018-09-04 22:44:45 +02:00
Mihail Geshoski f468f6d02a MDL-62857 theme_boost: Better filtering on navbar / breadcrumbs 2018-09-04 22:44:45 +02:00
Tim Hunt cb8aefa658 MDL-62880 qtype_ddwtos: drop support for legacy import format
It was more than 8 years since we wrote in that format.
2018-09-04 22:44:45 +02:00
Eloy Lafuente (stronk7) f6cafe495e Merge branch 'MDL-63249-master-enfix' of git://github.com/mudrd8mz/moodle 2018-09-04 22:34:51 +02:00
Jun Pataleta d58fd3dcbb Merge branch 'MDL-60578-master' of git://github.com/jleyva/moodle 2018-09-04 21:18:02 +08:00
David Monllao acfdb84f3c Merge branch 'MDL-62342-master' of git://github.com/mihailges/moodle 2018-09-04 14:33:50 +02:00
Juan Leyva f39d43af41 MDL-60578 mod_feedback: Handle correctly site feedbacks 2018-09-04 14:18:41 +02:00
Marina Glancy 38fefb5cdf MDL-60578 mod_feedback: pass courseid to WS 2018-09-04 14:18:39 +02:00
David Monllao 3db611ec31 MDL-62347 output: Fix phpdoc param name 2018-09-04 14:08:53 +02:00
David Monllao 72621d23ae Merge branch 'MDL-62347-master' of git://github.com/bmbrands/moodle 2018-09-04 14:05:41 +02:00
David Monllao 6a98671916 Merge branch 'MDL-60820-master-workshopsubmissiontypes' of git://github.com/mudrd8mz/moodle 2018-09-04 13:07:00 +02:00
David Monllao ffc4cc9a25 Merge branch 'MDL-62944' of https://github.com/NeillM/moodle 2018-09-04 12:15:36 +02:00
David Monllao adb8eb9c9c Merge branch 'MDL-55993-master' of https://github.com/albertolarah/moodle 2018-09-04 10:51:28 +02:00
Helen Foster 24a29d720c MDL-63249 lang: Merge English strings from the en_fix language pack
Significant string changes:

* completionpass_help, gradetopassnotset in mod_quiz - grade to pass set
  in quiz settings not gradebook
* namecolumnmissing,core_cohort - fixing incorrect message about adding
  users to a cohort
2018-09-04 08:40:48 +02:00
Jun Pataleta 8a03a5cba1 Merge branch 'MDL-60901' of git://github.com/stronk7/moodle 2018-09-04 10:17:23 +08:00
Eloy Lafuente (stronk7) 6b4a2b0ea1 Merge branch 'MDL-48846-master' of git://github.com/sarjona/moodle 2018-09-03 23:39:07 +02:00
Eloy Lafuente (stronk7) 4941d2d97d Merge branch 'MDL-63255-master' of git://github.com/vmdef/moodle 2018-09-03 23:31:00 +02:00
Eloy Lafuente (stronk7) cf2fea1d25 Merge branch 'MDL-61742-master-inactiveproviders' of git://github.com/mudrd8mz/moodle 2018-09-03 23:23:12 +02:00
Eloy Lafuente (stronk7) ced7e0efff Merge branch 'MDL-62848-master-placeholderwidth' of git://github.com/mudrd8mz/moodle 2018-09-03 22:52:31 +02:00
David Monllao dfc6f782e1 Merge branch 'MDL-38301-master' of git://github.com/junpataleta/moodle 2018-09-03 12:44:50 +02:00
David Monllao c4aa41ca2f Merge branch 'MDL-55744-master_atto_should_not_autosave_on_not_loggedin_users' of https://github.com/dravek/moodle 2018-09-03 12:27:25 +02:00
Alberto Lara Hernández c60f5ae136 Merge branch 'MDL-55993-master' of https://github.com/albertolarah/moodle into MDL-55993-master 2018-09-03 12:18:58 +02:00
Alberto Lara Hernández 96a037f755 MDL-55993 mod_assign: web services don´t set a URL. 2018-09-03 12:18:41 +02:00
David Monllao f3b4a63f91 Merge branch 'MDL-63238-master' of git://github.com/bmbrands/moodle 2018-09-03 10:36:16 +02:00
Eloy Lafuente (stronk7) 9b92642cf1 MDL-60901 environment: 3.6 requirements
Changes include:
- MySQL 5.6 is required.
- PostgreSQL 8.4 is required.
- Oracle 11.2 is required.
- 64bits architecture is recommended.
2018-09-03 10:15:26 +02:00
Víctor Déniz Falcón b93767f3ee MDL-63255 core_user: fix harcoded sql table aliases 2018-09-03 06:53:40 +01:00
Mihail Geshoski 2e72392bbf MDL-62342 privacy: Fix strings used in the consent on behalf modal 2018-09-03 12:53:19 +08:00
Mihail Geshoski c106d489c5 MDL-62342 privacy: Use singular/plural form in labels 2018-09-03 12:53:19 +08:00
Mihail Geshoski c69a43f2fc MDL-56998 blog: Remove associated blog posts when module is deleted 2018-09-03 08:33:38 +08:00
AMOS bot 029b3a923d Automatically generated installer lang files 2018-09-02 00:07:18 +00:00
AMOS bot 607958a1b3 Automatically generated installer lang files 2018-09-01 00:07:18 +00:00
David Mudrák c261ada88b MDL-62848 form: Fix width of the autocomplete input field
Make sure that the autcomplete input field is wide enough to display the
placeholder text.
2018-08-31 14:51:05 +02:00
David Mudrák 5cdf8d49c7 MDL-62848 form: Fix missing support for {{#js}} helper in autocomplete
The form-autocomplete module uses three Mustache templates
core/form_autocomplete_input, core/form_autocomplete_suggestions and
core/form_autocomplete_selection. However, it did not support executing
the JS that is eventually part of those templates.
2018-08-31 14:51:05 +02:00
Mark Johnson 7d2ad716dd MDL-60820 workshop: Allow teacher to specify submission types
This allows the teacher to define what students are supposed to submit
(online text and/or attachment) and if the given submission part is
required or optional.
2018-08-31 14:48:29 +02:00
Dan Poltawski 292df9f613 MDL-48846 filter: Stop reffering to invalid moodle.org/download/mimetex 2018-08-31 12:37:14 +02:00
David Mudrák 39d2c68856 MDL-61742 messaging: Do not send messages from inactive providers
Before this patch, we only checked that the given provider has been
configured in the user or system preferences. However, if the provider's
component is disabled, it does not even appear in these preferences.
Additionally, there was no check that the message / notification
provider is among providers allowed to be consumed by the recipient.

The patch checks that the message origin is among providers returned by
the message_get_providers_for_user() so disabled plugins can't act as
sources of messages and users can't receive messages from providers they
do not have capability for. This mitigates the risk of abusing a plugin
as a source of spam, for example.

Unit test is fixed and extended. When the $CFG->messaging is disabled,
no messages between users should be sent (I can't understand why the
unit test was written in an opposite way). Added assertions for the
raised debugging message.
2018-08-31 12:15:30 +02:00
Neill Magill 656837d65f MDL-62944 calendar: Clarify the intended use of $checkcapability 2018-08-31 10:15:37 +01:00
Simey Lameze baedf0662a MDL-62944 calendar: Fix actionevent logic on template
During the calendar work, we have added the feature of
drag and drop activity event or "action events".

The problem at that time was, action events could not be
editable through the calendar UI, but should be allowed
to drag and drop. So, we couldn't use the return of
calendar_edit_event_allowed() because it can return true
(in case of teachers, that have permission to change the
activity) and the attribute isactionevent was created to
control on the UI if the user is viewing an action event.

So what my patch does is just add the check if we are
viewing an action event, and in this case, it won't display
the cog to edit that event.
2018-08-31 10:15:37 +01:00
Neill Magill bbf1fde412 MDL-62944 activities: Activities should not require capability
Activities should not require the user manipulating them to have
calendar capabilities for their events to be added to the Moodle
calendar
2018-08-31 10:15:37 +01:00
Neill Magill 196aa50489 MDL-62944 activities: Test adding activities with no calendar capability 2018-08-31 10:15:36 +01:00
Neill Magill 2363b99e69 MDL-62944 completion: Calendar capabilities should not be required
The completion API should not require a user to have the capability to
add calendar events for it to function correctly.
2018-08-31 10:15:36 +01:00
Neill Magill 3f560e80ed MDL-62944 completion: Test that completion dates add events to calendar
When a user does not have calendar capabilities completion dates should
still be created correctly.
2018-08-31 10:15:35 +01:00
Neill Magill 0b673d9714 MDL-62944 mod_data: Action menu missing from database pages
The action menu was missing from many of the database activity pages,
which meant that it could not be accessed until enough had been done to
the activity to make the editing tabs that used view.php accessible.
2018-08-31 10:15:32 +01:00
Eloy Lafuente (stronk7) 175b3708c9 weekly release 3.6dev 2018-08-30 19:03:58 +02:00
Eloy Lafuente (stronk7) 9bbef5bcf1 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2018-08-30 19:03:55 +02:00
Andrew Nicols 6950592fcd Merge branch 'MDL-62535-master-fix' of github.com:abgreeve/moodle 2018-08-30 13:49:15 +08:00
Adrian Greeve dfc5e6d10e MDL-62535 grading methods: Unit test update for fix. 2018-08-30 13:19:21 +08:00
Adrian Greeve fe7d6e31f9 MDL-62535 grading methods: Fix for multiple intances.
We were only exporting the one instance per item id.
Instead we should have been exporting all instances for each
item id.
2018-08-30 11:35:52 +08:00
AMOS bot 29bfe883de Automatically generated installer lang files 2018-08-30 00:07:55 +00:00
Eloy Lafuente (stronk7) cf76059eda Merge branch 'MDL-62535-master' of git://github.com/abgreeve/moodle 2018-08-30 01:19:57 +02:00
Eloy Lafuente (stronk7) 12ef47cd99 MDL-63165 question: Bump expected size of question exports (take II) 2018-08-29 14:38:40 +02:00
Jake Dallimore 9e85412247 Merge branch 'MDL-63165-master-fix' of https://github.com/andrewnicols/moodle 2018-08-29 12:33:29 +08:00
Andrew Nicols dab0f9aae7 MDL-63165 question: Bump expected size of question exports 2018-08-29 10:43:21 +08:00
Jake Dallimore 8981ac0197 Merge branch 'MDL-62657-master' of git://github.com/junpataleta/moodle 2018-08-29 09:30:07 +08:00
Andrew Nicols e36019c2f3 Merge branch 'wip-MDL-62742-master' of git://github.com/marinaglancy/moodle 2018-08-29 08:31:08 +08:00
Eloy Lafuente (stronk7) 1766184e97 Merge branch 'MDL-63094-master' of git://github.com/andrewnicols/moodle 2018-08-28 23:53:58 +02:00
Eloy Lafuente (stronk7) 770fc03ef6 Merge branch 'MDL-62914-master' of git://github.com/lameze/moodle 2018-08-28 23:15:36 +02:00
David Monllao 4f855defce Merge branch 'wip-MDL-63165-master' of https://github.com/Beedell/moodle 2018-08-28 12:28:25 +02:00
Marina Glancy 442f12f81a MDL-62742 core: rename coursecat->core_course_category
Also rename course_in_list -> core_course_list_element
Deprecate class coursecat_sortable_records
2018-08-28 11:36:23 +02:00
Jake Dallimore efbbbf3373 Merge branch 'MDL-63101-master' of git://github.com/andrewnicols/moodle 2018-08-28 16:55:07 +08:00
Jake Dallimore 240f437a4d Merge branch 'MDL-63086-master' of git://github.com/andrewnicols/moodle 2018-08-28 08:47:43 +08:00
Andrew Nicols 75ad50cba0 Merge branch 'MDL-62782-master' of git://github.com/damyon/moodle 2018-08-28 07:06:22 +08:00
Eloy Lafuente (stronk7) ed0d19e7b9 Merge branch 'MDL-62989-master' of git://github.com/mihailges/moodle 2018-08-27 17:51:20 +02:00
Jun Pataleta 1b070cfe41 MDL-63187 tool_dataprivacy: Behat fixes for confirmation lang strings 2018-08-27 22:34:33 +08:00
David Monllao 76e9e2f9c0 Merge branch 'MDL-63174-master-emptyusername' of git://github.com/mudrd8mz/moodle 2018-08-27 15:06:55 +02:00
David Monllao c682ea4fd1 Merge branch 'MDL-63179-master' of https://github.com/lucaboesch/moodle 2018-08-27 12:21:00 +02:00
David Monllao 0d9ddf210c MDL-63187 tool_dataprivacy: Update delete purpose and category lang strings 2018-08-27 12:11:53 +02:00
David Monllao b8122ba333 Merge branch 'MDL-63187-master' of git://github.com/junpataleta/moodle 2018-08-27 11:54:24 +02:00
David Monllao ed20d9dbe9 Merge branch 'MDL-63210_master' of git://github.com/markn86/moodle 2018-08-27 11:46:27 +02:00
David Monllao 39d5bf09eb Merge branch 'MDL-63234-master' of git://github.com/andrewnicols/moodle 2018-08-27 11:32:09 +02:00
David Monllao 12f767820a Merge branch 'MDL-62867-missing_colon_in_query' of https://github.com/bitumin/moodle 2018-08-27 11:22:27 +02:00
Bas Brands 8e1a1c26be MDL-63238 theme boost: set background for #region-main 2018-08-27 10:50:49 +02:00
Andrew Nicols 111c6a5661 MDL-63086 block_rss_client: Move skip time calculation to task 2018-08-27 15:49:27 +08:00
Andrew Nicols fdab90a7d4 Merge branch 'MDL-53024-master' of git://github.com/damyon/moodle 2018-08-27 15:45:57 +08:00
Zig Tan 8f7d07fa7d MDL-38301 mod_assign: Fix date validation logic & message consistency 2018-08-27 15:26:22 +08:00
Andrew Nicols 0a197875df MDL-63101 cache: Improve accuracy of cache event invalidation 2018-08-27 14:43:42 +08:00
Andrew Nicols 16159f2223 Merge branch 'MDL-59169-master' of https://github.com/nwp90/moodle 2018-08-27 09:43:30 +08:00
Andrew Nicols 1a5a0b9b5f MDL-63234 blocks_recent_activity; Ensure courselib is loaded 2018-08-25 08:39:03 +08:00
Alberto Lara Hernández 52c9bf79b7 MDL-55993 mod_assign: web services don´t set a URL. 2018-08-24 16:42:13 +02:00
John Beedell d0a60444a1 MDL-63165 Question: xml import of question categories 2018-08-24 15:20:18 +01:00
Mitxel Moriana d2029eff28 MDL-62867 tags: Fix missing colon in sql placeholder
Due to a missing colon in an sql query field value placeholder
the calculation of the ordering field for a newly added tag
was ignoring itemid.
2018-08-24 14:59:13 +02:00
Luca Bösch 2711941cb9 MDL-63179 enrol_self: String and @return tag corrected. 2018-08-24 13:38:19 +02:00
Mihail Geshoski d6e8841313 MDL-62989 privacy: Improve data request order for users 2018-08-24 15:32:34 +08:00
Jake Dallimore 8df868e9e0 weekly release 3.6dev 2018-08-24 13:08:47 +08:00
Mark Nelson ce1db1f7db MDL-63210 core: convert for loop to forEach in JS 2018-08-24 11:31:32 +08:00
Eloy Lafuente (stronk7) a20ff7089c Merge branch 'MDL-63028-master' of git://github.com/bmbrands/moodle 2018-08-23 12:48:41 +02:00
Bas Brands 4a5ceb215f MDL-63028 Theme boost: fix footer maintenance page 2018-08-23 10:55:26 +02:00
Jun Pataleta e477bed27b MDL-63187 tool_dataprivacy: Improve confirm message lang strings
* Updated the delete confirmation messages so that the category/purpose
names are shown in italics. This makes it easier for the privacy officer
to see the category/purpose that is being deleted.
2018-08-23 16:53:03 +08:00
Andrew Nicols 2c6771d793 Merge branch 'MDL-57281-master-fix' of https://github.com/andrewnicols/moodle 2018-08-23 15:47:28 +08:00
Andrew Nicols 67984597fb MDL-57281 question: Correct path to Quiz admin in test 2018-08-23 15:44:23 +08:00
Jake Dallimore a37a616213 Merge branch 'MDL-57281-master-fix' of https://github.com/andrewnicols/moodle 2018-08-23 08:20:13 +08:00
Andrew Nicols e8449116ef MDL-57281 enrol_lti: Nav to Published as LTI tools 2018-08-23 08:08:59 +08:00
Víctor Déniz Falcón 5a4b4c06ec MDL-57281 behat: Fix some goutte tests (cannot click on li)
Simply they are not needed, without JS everything is expanded.
2018-08-22 18:34:50 +02:00
Jake Dallimore 7e93539cf6 MDL-36255 core_grade: fix to ensure correct context used for filters
Some grade object (outcomes,scales) can be created at site or course
context, so this patch just makes sure we use the respective context
when applying format_string to the name in the get_name() function.
2018-08-22 17:55:50 +08:00
Damyon Wiese 334db37769 MDL-53024 assign: Remove incorrect logic in query
We are simplifying this query so it will return grades if the attempt matches
the submission attempt, or there is no submission. The case where there is a grade
but no submission can happen only for group assignments.
2018-08-22 12:59:10 +08:00
Andrew Nicols 5ab0e8aae3 MDL-63094 tool_policy: Fix the cookie banner to the bottom
Floating banners cause issues with clickability in Behat as it is unable
to understand that it cannot interact with the elements underneath the
floating banner, or that it needs to scroll the page so that the
required content is no longer beneath the floating banner.

Changing the banner to be fixed to the bottom of the page during Behat
runes is a reliable fix.
2018-08-22 11:00:08 +08:00
Andrew Nicols 4d1a42fb7c MDL-63094 js: Do not check visibility before hiding backdrop
It's possible for the backdrop to be created during the show, before the
modal is actually fully shown.

This check is unnecessary because the getBackdrop() function always
returns a value and will always succeed.
2018-08-22 10:23:30 +08:00
Andrew Nicols 4b6780417e MDL-63094 tool_policy: Fix race condition in modal display
The way in which the modal was displayed meant that there were no
pending JS items, whilst the modal was rendered, causing random behat
fails.

This JS has been restructured to create the Modal and pass it a set of
Promises for both the title, and body.
2018-08-22 10:23:30 +08:00
Henning Bostelmann 0e141964e0 MDL-62914 Calendar: handle TZURL iCal property 2018-08-22 10:07:41 +08:00
Andrew Nicols d5bf22ecd1 Merge branch 'MDL-62660' of https://github.com/stronk7/moodle 2018-08-22 08:02:47 +08:00
Eloy Lafuente (stronk7) 726c0ab9a3 MDL-62660 xmldb: fix tool_dataprivacy_request_>status to int(2)
So the new defined statuses fit in the column for all databases.
2018-08-21 23:57:35 +02:00
Eloy Lafuente (stronk7) 3a6f371640 Merge branch 'MDL-63028-master' of git://github.com/bmbrands/moodle 2018-08-21 19:23:37 +02:00
Jun Pataleta 9193226522 MDL-63187 tool_dataprivacy: Behat tests for purposes/categories CRUD 2018-08-21 16:34:29 +08:00
Jun Pataleta bcff8dfb3f MDL-63187 tool_dataprivacy: Fix delete button text
* No need to add the purpose/category name for the delete button itself
* Fix delete confirmation lang strings.
* Add button titles to Add purpose/category buttons so they can be
  clicked on when running Behat tests.
2018-08-21 16:18:55 +08:00
Jake Dallimore 805ce3de79 Merge branch 'MDL-36255-master' of https://github.com/lucaboesch/moodle 2018-08-21 16:04:17 +08:00
Jun Pataleta 69781cdae1 MDL-62657 user: More users fields for creation/update WS functions 2018-08-21 12:08:20 +08:00
Jake Dallimore e9f1946ca1 Merge branch 'MDL-62534-master' of https://github.com/mackensen/moodle 2018-08-21 11:43:56 +08:00
Andrew Nicols 440dad627f Merge branch 'MDL-62660-master' of git://github.com/junpataleta/moodle 2018-08-21 11:09:33 +08:00
Andrew Nicols 9adf5f0595 Merge branch 'MDL-57281-master' of https://github.com/vmdef/moodle 2018-08-21 10:49:10 +08:00
Jun Pataleta 4ecb1c6221 MDL-62660 tool_dataprivacy: Behat fix for data deletion 2018-08-21 10:27:21 +08:00
Jun Pataleta 237c85d303 MDL-62660 tool_dataprivacy: CI fixes 2018-08-21 09:28:48 +08:00
Andrew Nicols 13b4a1f4bb Merge branch 'MDL-63131-master' of https://github.com/sammarshallou/moodle 2018-08-21 08:57:17 +08:00
sam marshall b5311ce466 MDL-63131 Web services: Callback to allow web service overrides 2018-08-20 15:32:34 +01:00
Charles Fulton 4a34a26aa9 MDL-62534 course formats: do not purge empty sections on upgrade 2018-08-20 09:11:01 -04:00
Víctor Déniz Falcón 02fda279ed MDL-57281 behat: deprecated step definition I navigate to node in
Definition step deprecated and affected tests modified.
2018-08-20 12:53:26 +01:00
Michael Hawkins a1e1cf63fd MDL-62660 tool_dataprivacy: Behat additions for deletion and data expiry 2018-08-20 15:31:20 +08:00
Michael Hawkins 95a844ebdc MDL-62660 tool_dataprivacy: Add and update PHPUnit tests
Updated tests with latest statuses.
Added testing for request download expiry functionality and method.
Added assign_site_dpo within a parent class for unit tests.
2018-08-20 15:31:20 +08:00
Michael Hawkins 5f9a31ee79 MDL-62660 tool_dataprivacy: Add scheduled task to expire data requests 2018-08-20 15:31:20 +08:00
Michael Hawkins 693f690c18 MDL-62660 tool_dataprivacy: Add ability to expire data requests
Also replaced Completed status with situation specific statuses.
Also improved UX on request pages in line with expiries and the aadditional statuses.
2018-08-20 15:31:20 +08:00
Andrew Nicols 7bd269e82d MDL-62660 tool_dataprivacy: Add method for unit tests to run adhoc tasks 2018-08-20 15:31:20 +08:00
Luca Bösch 8ad225b431 MDL-36255 grades: allow multilang filters in grades 2018-08-20 08:29:36 +02:00
Jake Dallimore 4638819780 Merge branch 'MDL-63097' of git://github.com/stronk7/moodle 2018-08-20 13:51:50 +08:00
Adrian Greeve 4905daf497 MDL-62535 tool_dataprivacy: Registry shows deprecated interfaces. 2018-08-20 11:32:01 +08:00
Adrian Greeve 4c6781f009 MDL-62535 privacy: Create deprecated provider interface.
Any interfaces that have become deprecated should extend
this interface.
2018-08-20 11:32:01 +08:00
Adrian Greeve 0aedccc973 MDL-62535 core_grading: Unit test for new methods. 2018-08-20 11:32:01 +08:00
Adrian Greeve 620dbfbe89 MDL-62535 mod_assign: Update to providers to include adv grading. 2018-08-20 11:32:01 +08:00
Adrian Greeve f3a6d9bb76 MDL-62535 core_grading: Update to providers and interface.
The previous interface was inadequate for retrieving user
information stored in the sub-plugins.

A new interface and methods have been added to successfully
deal with user data.
2018-08-20 11:32:01 +08:00
Andrew Nicols a4c596cb00 Merge branch 'MDL-63176' of https://github.com/spvickers/moodle 2018-08-20 11:15:35 +08:00
Jake Dallimore 88dc63c335 Merge branch 'MDL-57741-master' of git://github.com/cescobedo/moodle 2018-08-20 10:11:49 +08:00
Eloy Lafuente (stronk7) a9428fab11 weekly release 3.6dev 2018-08-17 17:37:15 +02:00
Eloy Lafuente (stronk7) beaff3f103 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2018-08-17 17:37:12 +02:00
David Mudrák 784883e1ee MDL-63174 user: user_create_user to throw exception on empty username
The core API function user_create_user() did not check the case when the
given username was empty.

Also adding a missing string 'usernamelowercase' for the existing lower
case check and unit tests.
2018-08-17 13:24:31 +02:00
David Mudrák 0e99d58c35 MDL-63174 user: core_user_create_users to throw exception on empty names
To be consistent with the web administration UI, we should not allow to
create invalid user records with empty username, lastname or firstname
via the web services.
2018-08-17 13:24:31 +02:00
Jake Dallimore 215ecb017a Merge branch 'MDL-62884-master' of git://github.com/damyon/moodle 2018-08-17 16:02:05 +08:00
Damyon Wiese a3124b15dc MDL-62884 privacy: Additional fix for popper.js
For a table with action menus inside a scrollable region, we need to ensure
the table is at least big enough.
2018-08-17 15:12:05 +08:00
Stephen Vickers 1272a926d5 MDL-63176 enrol_lti: Add $COURSE to global
Ensure that capabilities using $COURSE can be parsed.
2018-08-16 22:41:57 +01:00
cescobedo ea3c5ba14b MDL-57741 enrol_lti: Add Launch URL to Published as LTI tools 2018-08-16 09:08:38 +02:00
Nick Phillips 9a2da73753 MDL-59169 gradebook: Add groupid to gpr tracking & use
Added groupid to grade_plugin_return tracking, modified constructor
to use query params as defaults if passed-in params not supplied,
used groupid tracking in core reports.

grade_get_graded_users_select also fixed to use gpr (otherwise using
it breaks when course current group has changed between render and
submit).

Fixed coding style issue in gpr constructor & documented properties.

Added upgrade.txt noting gpr changes.
2018-08-16 04:03:51 +02:00
AMOS bot e28bc33b19 Automatically generated installer lang files 2018-08-16 00:08:08 +00:00
Bas Brands 0e202eca75 MDL-62528 forum: Fixed vertical position when loading permalinks 2018-08-15 11:37:21 +02:00
Jake Dallimore 71926adb0d Merge branch 'MDL-63050-master' of git://github.com/andrewnicols/moodle 2018-08-15 10:59:37 +08:00
Andrew Nicols 6cf24801a9 Merge branch 'MDL-62600-master' of git://github.com/mickhawkins/moodle 2018-08-15 08:53:30 +08:00
AMOS bot 21b1892843 Automatically generated installer lang files 2018-08-15 00:07:31 +00:00
Luke Carrier 6b6fd4b0b7 MDL-61238 cohort: require_once all libraries 2018-08-15 00:12:38 +02:00
Eloy Lafuente (stronk7) 92af6a3998 Merge branch 'MDL-62341-master' of git://github.com/mihailges/moodle 2018-08-15 00:03:18 +02:00
Eloy Lafuente (stronk7) 326792694e Merge branch 'MDL-58409-master_needs_clean_in_autocomplete_element' of https://github.com/dravek/moodle 2018-08-14 17:29:48 +02:00
Eloy Lafuente (stronk7) 9c1c0de78c Merge branch 'MDL-61650-master' of git://github.com/damyon/moodle 2018-08-14 16:49:44 +02:00
David Monllao 8e6c2ce300 Merge branch 'MDL-36754-master' of git://github.com/andrewnicols/moodle 2018-08-14 10:18:55 +02:00
Andrew Nicols 2e8d476165 MDL-36754 core_files: Add back missing baseurl line 2018-08-14 15:54:12 +08:00
David Monllao 3ff9233a18 Merge branch 'MDL-36754-master' of git://github.com/andrewnicols/moodle 2018-08-14 08:49:45 +02:00
Jake Dallimore ed9d61ef4a Merge branch 'MDL-63031-master' of https://github.com/prg3/moodle 2018-08-14 12:11:25 +08:00
Paul Greidanus 05f6ed0034 MDL-63031 administration: Allow plugins to define trace storage
This will allow the use of other storage systems implemented
in plugins.
It also allows for disabling the built in DB based profiling, which
will be useful when using an external target to not waste DB storage.
2018-08-13 21:54:48 -06:00
Michael Hawkins 161a5c8ab9 MDL-62600 tool_dataprivacy: Corrected availability of PO pages to admins 2018-08-14 11:28:31 +08:00
Andrew Nicols bc51085174 Merge branch 'MDL-62643-master' of git://github.com/damyon/moodle 2018-08-14 09:04:17 +08:00
Andrew Nicols b426a2840f Merge branch 'MDL-62896-master' of git://github.com/k-holland/moodle 2018-08-14 07:44:04 +08:00
Andrew Nicols 7fa3089753 MDL-36754 mod_forum: Use token for emailed pictures 2018-08-14 07:08:29 +08:00
Andrew Nicols 88d89512e4 MDL-36754 output: Support token pluginfiles in userpic 2018-08-14 07:08:29 +08:00
Andrew Nicols 883f655552 MDL-36754 output: Support token pluginfiles in group pic 2018-08-14 07:06:09 +08:00
Andrew Nicols 8af75f08e8 MDL-36754 tests: Move moodle_url tests to own file 2018-08-14 07:06:09 +08:00
Andrew Nicols 91f1f28233 MDL-36754 core_files: Support tokens when rewriting text
Support use of a token for access to pluginfile.php when rewriting text
content.

This is primarily intended for notifications where the user is unlikely
to be logged into Moodle when receiving the notification.
2018-08-14 06:57:32 +08:00
Andrew Nicols 4a74ab0200 MDL-36754 core_files: Add a token version of pluginfile 2018-08-14 06:57:32 +08:00
David Monllao 49a973014c Merge branch 'MDL-62761-master' of https://github.com/jmvedrine/moodle 2018-08-13 15:29:34 +02:00
David Monllao bf19506dfb Merge branch 'MDL-62886-master' of https://github.com/lucaboesch/moodle 2018-08-13 14:25:26 +02:00
Bas Brands 4f9d62835a MDL-62347 course: pagination phpunit updates 2018-08-13 13:45:33 +02:00
David Monllao 93e0b1593c Merge branch 'MDL-59015-master' of git://github.com/mihailges/moodle 2018-08-13 12:19:13 +02:00
David Monllao 66be962523 Merge branch 'MDL-62994-master' of git://github.com/mihailges/moodle 2018-08-13 12:12:09 +02:00
Bas Brands f3df9f9f62 MDL-62347 course: move boost pagination renderer in core 2018-08-13 11:58:25 +02:00
Bas Brands c8d5001f9a MDL-62347 course: use standard pagination renderer 2018-08-13 11:58:25 +02:00
Karen Holland 179a9f24db MDL-62896 Privacy: External plugin Additional label update. 2018-08-13 08:32:21 +00:00
Jake Dallimore e99564e51b Merge branch 'MDL-60114_master_radio-option-choose' of https://github.com/awagner/moodle 2018-08-13 16:02:54 +08:00
Mihail Geshoski 4e829d2d75 MDL-59015 blocks: Confusing View more button in course overview block 2018-08-13 08:53:19 +08:00
Mihail Geshoski be38df119d MDL-62341 privacy: Add behat test 2018-08-13 07:52:09 +08:00
Mihail Geshoski e55e9df388 MDL-62341 privacy: Add link to previous page in viewall policies page 2018-08-13 07:52:09 +08:00
Jean-Michel Vedrine a4ffdbf3f0 MDL-62761 lesson: wrong deadlines on index with overrides 2018-08-12 07:44:41 +02:00
Andreas Wagner 288cbbf2d5 MDL-60114 mod_data: adding db activity lost radio field choose option 2018-08-11 07:41:40 +02:00
Luca Bösch fba3c3be8e MDL-62886 boost: radio form element required icon 2018-08-10 17:11:28 +02:00
Eloy Lafuente (stronk7) 6e445671c1 weekly release 3.6dev 2018-08-10 13:21:51 +02:00
Eloy Lafuente (stronk7) cd69396ab4 NOBUG: Fixed SVG browser compatibility 2018-08-10 13:21:49 +02:00
Andrew Nicols 89db4cc26e Merge branch 'MDL-62619' of git://github.com/stronk7/moodle 2018-08-10 08:43:43 +08:00
Eloy Lafuente (stronk7) 2bf974e7ef MDL-63097 phpunit: decouple user lastping and session start in tests
Previously the test was assuming that the user last ping, when
accessing to a chat should match the first (enter) system message
sent to the chat. And that's ok 99% of times but, if seconds advance
between the creation of the chat_users record and the chat_messages
one, then they don't match.

So now, the assumption is not used anymore and the expectation
is the timestamp of that first (enter) system message, explicitly.
2018-08-10 02:32:37 +02:00
Eloy Lafuente (stronk7) c9840c0144 MDL-62619 privacy: Prevent action when boolean queries are involved
Before the patch, queries like:

SELECT 1 FROM dual UNION SELECT 2 FROM dual

were failing badly, with everything but the first numeric element
being ignored by the optimization.

So, being conservative, now we reduce the query being analysed,
ignoring any subquery, inline view (anything within parenthesis
in general) and, in the remaining query, if a boolean query (UNION,
MINUS, INTERSECT...) is found, we don't apply any optimization.
2018-08-09 16:05:55 +02:00
Eloy Lafuente (stronk7) b76d8da4a6 Merge branch 'MDL-62581-master' of git://github.com/damyon/moodle 2018-08-09 00:09:12 +02:00
Jun Pataleta 2454ddb6ef Merge branch 'MDL-45170-master' of git://github.com/junpataleta/moodle 2018-08-08 16:27:55 +08:00
Jun Pataleta c353ad20c3 MDL-45170 core: Integration review fixes
* Pass $forcehttps parameter to call extract_draft_file_urls_from_text()
 call in \core_weblib_testcase::test_extract_draft_file_urls_from_text()
* Style fixes
2018-08-08 16:17:32 +08:00
Charles Fulton 7d7d3b1731 MDL-45170 files: check other draftfile areas when processing 2018-08-08 16:15:23 +08:00
Andrew Nicols f89f6cf04e Merge branch 'MDL-62899-search-icons-master' of https://github.com/dmitriim/moodle 2018-08-08 13:17:34 +08:00
Andrew Nicols 0c759ba614 Merge branch 'MDL-56335-master' of git://github.com/mihailges/moodle 2018-08-08 13:14:00 +08:00
Andrew Nicols 1718a59ee2 Merge branch 'MDL-62993_master' of git://github.com/markn86/moodle 2018-08-08 13:10:41 +08:00
Andrew Nicols 03655bb050 Merge branch 'MDL-50225_master' of git://github.com/markn86/moodle 2018-08-08 08:14:55 +08:00
Eloy Lafuente (stronk7) bc7ee099ae Merge branch 'MDL-62619-master-privacycontexts' of git://github.com/mudrd8mz/moodle 2018-08-08 01:02:16 +02:00
Eloy Lafuente (stronk7) 6760a7e3e9 Merge branch 'MDL-43334-master' of git://github.com/damyon/moodle 2018-08-08 00:11:16 +02:00
Eloy Lafuente (stronk7) 43ae41a100 Merge branch 'MDL-50325_inconsistent_check_missing_module' of http://github.com/enovation/moodle 2018-08-08 00:06:09 +02:00
Eloy Lafuente (stronk7) ff4bab999b Merge branch 'MDL-61839-master' of git://github.com/mihailges/moodle 2018-08-07 23:52:08 +02:00
Eloy Lafuente (stronk7) 521ebb76b0 Merge branch 'MDL-61870-master' of git://github.com/damyon/moodle 2018-08-07 23:48:31 +02:00
Eloy Lafuente (stronk7) 54635fdee8 Merge branch 'MDL-62750_master' of https://github.com/aanabit/moodle 2018-08-07 17:10:14 +02:00
Eloy Lafuente (stronk7) 937a608d71 Merge branch 'MDL-63026_master' of git://github.com/dmonllao/moodle 2018-08-07 15:59:51 +02:00
Eloy Lafuente (stronk7) c8bea6ae57 Merge branch 'MDL-53297-master' of git://github.com/cescobedo/moodle 2018-08-07 15:57:00 +02:00
Eloy Lafuente (stronk7) 925d1dc60e Merge branch 'MDL-62065-master' of git://github.com/cescobedo/moodle 2018-08-07 15:51:34 +02:00
David Matamoros 2ee47aeca5 MDL-55744 EDITOR_ATTO: Now atto does not autosave for not loggedin user 2018-08-07 15:29:53 +02:00
David Matamoros 18e2f40377 MDL-58409 core_form: needs clean in autocomplete element 2018-08-07 10:59:34 +02:00
Dmitrii Metelkin 66f145efd1 MDL-62899 search: add document icons 2018-08-07 17:40:57 +10:00
Andrew Nicols 6acae5165c Merge branch 'MDL-62975_master' of git://github.com/markn86/moodle 2018-08-07 14:38:00 +08:00
Andrew Nicols dcb2d4bfcf Merge branch 'MDL-62798-master' of git://github.com/mihailges/moodle 2018-08-07 13:07:31 +08:00
Andrew Nicols 4af25b000f Merge branch 'MDL-54741-master' of git://github.com/mihailges/moodle 2018-08-07 12:19:44 +08:00
Andrew Nicols 7b4dbb05e3 Merge branch 'MDL-55449-master' of git://github.com/abgreeve/moodle 2018-08-07 11:44:38 +08:00
Adrian Greeve cc4952e997 MDL-55449 messages: Remove support for stdClass messages.
This also makes message_sent::create_from_ids() $courseid
parameter required.
2018-08-07 11:04:22 +08:00
Andrew Nicols 19d5c416e0 Merge branch 'MDL-63012-master' of https://github.com/jobyh/moodle 2018-08-07 09:32:55 +08:00
Andrew Nicols 2a8830379f Merge branch 'wip-MDL-61424-master' of git://github.com/marinaglancy/moodle 2018-08-07 08:18:58 +08:00
Andrew Nicols 89763f5226 Merge branch 'MDL-62945-master' of https://github.com/HuongNV13/moodle 2018-08-07 08:08:18 +08:00
Eloy Lafuente (stronk7) 90bdc5be4b Merge branch 'MDL-62237-master' of https://github.com/lucaboesch/moodle 2018-08-06 14:22:21 +02:00
Amaia Anabitarte 23c2316697 MDL-62750 lang: Trim langlist setting values 2018-08-06 09:38:14 +01:00
Andrew Nicols 75f23dc80f MDL-61515 theme: Pre-compile boost 2018-08-06 15:21:11 +08:00
Andrew Nicols 3e7c330bda Merge branch 'MDL-61515-master' of git://github.com/bmbrands/moodle 2018-08-06 13:55:04 +08:00
Andrew Nicols e980f89a4f Merge branch 'MDL-62996-master' of git://github.com/junpataleta/moodle 2018-08-06 12:10:51 +08:00
Mihail Geshoski 02de9f2014 MDL-62798 repositories: Report sections by name in server repository 2018-08-06 09:55:35 +08:00
Mihail Geshoski 9d98033ff9 MDL-61839 glossary: One letter search in glossary returns all entries 2018-08-06 09:45:34 +08:00
Mihail Geshoski 216b89475d MDL-54741 general: 3.2 final deprecation in lib/deprecatedlib.php 2018-08-06 09:29:54 +08:00
Mihail Geshoski f2cdf99382 MDL-56335 behat: prefixed_tablenode_transformations final deprecation 2018-08-06 09:27:08 +08:00
Andrew Nicols b4463cf9a7 Merge branch 'MDL-62969_master' of git://github.com/markn86/moodle 2018-08-06 09:21:14 +08:00
Luca Bösch ce3c772677 MDL-62237 repositories: Add SVG icons for built-in repositories 2018-08-03 14:20:55 +02:00
Jason Platts e52856bc9a MDL-62520 user: User identity fields not searchable in Participants list 2018-08-03 10:35:24 +01:00
Damyon Wiese 8cee90e3bf MDL-61650 assign: More consistent empty text
Consistently check for empty submissions with count_words(trim($text)).
2018-08-03 16:52:31 +08:00
Huong Nguyen 4889d6ac23 MDL-62945 Quiz: Increase max group of Question type Gap Select 2018-08-03 14:26:45 +07:00
Damyon Wiese cc9384f121 MDL-62279 assign: Properly set the defaults
Before an assignment has been created, we need to use the site defaults,
not the per instance defaults for the settings.
2018-08-03 15:03:53 +08:00
Andrew Nicols 6e020b161a weekly release 3.6dev 2018-08-03 11:30:11 +08:00
Andrew Nicols 5a5fbdb248 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2018-08-03 11:30:09 +08:00
Eloy Lafuente (stronk7) 5114d1168b Merge branch 'MDL-57244-master-text' of git://github.com/abgreeve/moodle 2018-08-02 19:16:58 +02:00
Damyon Wiese 851b5c7f2a MDL-60685 assign: Do not falsely use admin user
When an assign_grades record is automatically populated, do not use the admin user as the default grader.

This would generate false information on the assignment summary screen and send false notifications from
the admin user.
2018-08-02 14:19:34 +08:00
Damyon Wiese 192e48bb90 MDL-61870 mod_assign: Conditionally backup groups
When group info is not backed up, do not backup assignment submissions or overrides that related to a specific group.
We are already correctly not restoring them, but it is more robust not to include them in the backup file at all.
2018-08-02 12:55:13 +08:00
Zig Tan 8ea4df50c9 MDL-61870 mod_assign: Fix/clean up imported group override duedates
Applying patch supplied from Damyon Wiese to address the root-cause
of this issue in the backup/restore logic.
2018-08-02 12:55:13 +08:00
Zig Tan 6bcc6f877a MDL-61870 mod_assign: Fix/clean up imported group override duedates
- Prevent group override duedate events from being imported when groups are excluded
- Clean up any existing group override duedate events when editing assignment in upgradelib.php
- Updated lib.php unit tests
2018-08-02 12:55:12 +08:00
Andrew Nicols aa75f70280 Merge branch 'MDL-59847-master' of https://github.com/snake/moodle 2018-08-02 11:39:50 +08:00
Andrew Nicols d7978b1740 Merge branch 'MDL-62983-master' of git://github.com/sarjona/moodle 2018-08-02 11:17:13 +08:00
Andrew Nicols 31b02f6ef5 MDL-63050 cachestore_redis: Update hExists to check empty 2018-08-02 10:59:53 +08:00
Andrew Nicols ed3ff719f2 MDL-63050 redis: Make session check compatible with Redis 4.0 2018-08-02 10:57:53 +08:00
Adrian Greeve eb8dfd5bf8 MDL-57244 lib: Update to upgrade.txt files about renamed classes. 2018-08-02 10:34:18 +08:00
David Mudrák afa3e0ff32 MDL-59847 core: Stop supporting custom identity fields in user selectors
The user_selector classes supported custom list of extra identity
fields. But they should obey the configured user policy and respect the
privacy setting made by site administrators. So the list of user
identifiers should never be hard-coded, but the setting
$CFG->showuseridentity should be always respected.
2018-08-02 10:22:07 +08:00
David Mudrák ef65e09af0 MDL-59847 core: Fix display of hidden identity fields in user selectors
User selectors now respect the user's permission to view other users'
hidden profile fields.
2018-08-02 10:22:05 +08:00
Eloy Lafuente (stronk7) d8971be88f Merge branch 'MDL-57666-master' of git://github.com/mihailges/moodle 2018-08-02 01:27:41 +02:00
Eloy Lafuente (stronk7) bac049773f Merge branch 'MDL-62965-master-userprofilesignup' of git://github.com/mudrd8mz/moodle 2018-08-02 00:37:40 +02:00
Eloy Lafuente (stronk7) 20c7822f6d Merge branch 'MDL-57244-master' of git://github.com/abgreeve/moodle 2018-08-02 00:24:14 +02:00
Eloy Lafuente (stronk7) c965349aad Merge branch 'MDL-59595-master-2' of git://github.com/snake/moodle 2018-08-02 00:21:23 +02:00
Eloy Lafuente (stronk7) 3578f04762 Merge branch 'MDL-51883-master' of git://github.com/mihailges/moodle 2018-08-01 16:39:45 +02:00
Eloy Lafuente (stronk7) d2ba6eea3b Merge branch 'MDL-62977_master' of git://github.com/markn86/moodle 2018-08-01 16:36:25 +02:00
Eloy Lafuente (stronk7) 1ffa22bbc7 Merge branch 'MDL-61041-master' of git://github.com/damyon/moodle 2018-08-01 16:36:12 +02:00
Jonathon Fowler 89e27d9999 MDL-62983 core_user: Hold multiple filters when clicking any link 2018-08-01 09:33:34 +02:00
Mihail Geshoski 5ab8824394 MDL-51883 libraries: 3.1 final deprecation in lib/deprecatedlib.php 2018-08-01 10:32:37 +08:00
Eloy Lafuente (stronk7) 8c76cf65e8 Merge branch 'MDL-62344-master-final' of https://github.com/Tsheke/moodle 2018-07-31 23:53:52 +02:00
Eloy Lafuente (stronk7) c121e849c1 Merge branch 'MDL-41847-master' of git://github.com/sarjona/moodle 2018-07-31 23:50:43 +02:00
David Monllao 77f9983189 Merge branch 'MDL-61290_master' of https://github.com/aanabit/moodle 2018-07-31 17:18:17 +02:00
Amaia Anabitarte 4a6cd05ae1 MDL-61290 mod_feedback: adding groups to csv download
Thanks Christine LEGEMBLE for your proposal
2018-07-31 15:32:43 +01:00
Bas Brands bf45d7eba3 MDL-63028 Theme boost: flexbox for Boost footer 2018-07-31 15:24:36 +02:00
David Monllao f967e6795d Merge branch 'MDL-63001_master' of git://github.com/markn86/moodle 2018-07-31 13:52:49 +02:00
David Monllao 834ee94fe3 Merge branch 'master_MDL-58015' of https://github.com/danmarsden/moodle 2018-07-31 13:36:21 +02:00
David Monllao f3e240e7e0 Merge branch 'MDL-59611-master' of git://github.com/damyon/moodle 2018-07-31 13:30:41 +02:00
David Monllao a1b2d95092 Merge branch 'MDL-44538-master' of https://github.com/lucaboesch/moodle 2018-07-31 11:18:39 +02:00
Jun Pataleta 77b6d458e5 Merge branch 'MDL-58768-master-2' of git://github.com/rezaies/moodle 2018-07-31 16:18:44 +08:00
David Monllao 7afa724cb5 MDL-63026 course: Fix reference to unexisting capability 2018-07-31 08:31:16 +02:00
Andrew Nicols ea08da4613 Merge branch 'MDL-61960-master' of git://github.com/farhan6318/moodle 2018-07-31 07:23:50 +08:00
Eloy Lafuente (stronk7) 060277a401 Merge branch 'MDL-57977-master' of git://github.com/vmdef/moodle 2018-07-30 21:09:55 +02:00
David Monllao a50b8a438a Merge branch 'MDL-56712-master' of git://github.com/mihailges/moodle 2018-07-30 17:47:51 +02:00
David Monllao c5c618fe10 Merge branch 'MDL-54858-master' of git://github.com/mihailges/moodle 2018-07-30 17:41:06 +02:00
David Monllao 627d9aa6c8 Merge branch 'MDL-55188-master' of git://github.com/abgreeve/moodle 2018-07-30 17:33:21 +02:00
Eloy Lafuente (stronk7) e32fe4339a Merge branch 'MDL-63002_master' of git://github.com/markn86/moodle 2018-07-30 16:15:16 +02:00
Marina Glancy 9991670ff9 MDL-61424 admin: reset registration if token is rejected 2018-07-30 16:12:05 +02:00
Mark Nelson 8bfe908209 MDL-63002 core: fixed incorrect calls to non-existent delete_record() 2018-07-30 20:59:42 +08:00
Adrian Perez ac33483290 MDL-63002 core_grade: fixed deletion of overriden letters 2018-07-30 20:47:21 +08:00
David Monllao af0671c218 Merge branch 'MDL-60435_master' of git://github.com/markn86/moodle 2018-07-30 13:37:12 +02:00
Jun Pataleta a7870910ea Merge branch 'MDL-62931-master' of git://github.com/rezaies/moodle 2018-07-30 16:34:57 +08:00
Jun Pataleta a5d3d98bf9 Merge branch 'MDL-62943-master' of git://github.com/mihailges/moodle 2018-07-30 16:05:03 +08:00
Claude Vervoort 29acede1f0 MDL-62993 ltiservice_memberships: make message an array per spec
Also added resultSourcedId to member for BC.
2018-07-30 10:05:46 +08:00
Mark Nelson f8d15c66c3 MDL-62975 core_form: deprecate the htmleditor element 2018-07-30 10:01:01 +08:00
Mark Nelson 4d67fe6161 MDL-50225 core: replace usages of print_textarea() 2018-07-30 09:57:01 +08:00
Mark Nelson dc4dea0e40 MDL-50225 core: removed unused message bulk action files
In core we now use a modal to perform these actions. I
initially thought these were kept because they were a fall
back if JS was disabled. However, the functionality is
broken and doesn't work. Since we do not have to support
non-JS anymore these files have simply been removed as well
as relevant strings deprecated.
2018-07-30 09:57:01 +08:00
Mark Nelson c1f7cf67f4 MDL-50225 mod_wiki: removed unused file wiki/editors/html.php 2018-07-30 09:55:12 +08:00
Mark Nelson 350d7b0686 MDL-50225 core: properly deprecate print_textarea 2018-07-30 09:55:11 +08:00
Mihail Geshoski d8e8734291 MDL-62943 core_output: Final deprecation of update_module_button 2018-07-30 09:43:49 +08:00
Mihail Geshoski b4d5080892 MDL-57666 repositories: Error when copying file from Dropbox repository 2018-07-30 09:28:48 +08:00
Mihail Geshoski d77b5db55f MDL-56712 media: Remove 3.2 deprecated functions and classes 2018-07-30 09:25:34 +08:00
Adrian Greeve b41e1d7c55 MDL-55188 events: Final deprecation of part of events 1 API. 2018-07-30 09:25:06 +08:00
Adrian Greeve 5454e72c21 MDL-55188 events: First deprecation of eventslib.php 2018-07-30 09:23:54 +08:00
cescobedo 2769bf315b MDL-55188 events: Final deprecation events_trigger. 2018-07-30 09:21:21 +08:00
Mihail Geshoski f6094cd9f7 MDL-54858 user: Final deprecation of useredit_update_picture
Credit to Ankit Agarwal.
2018-07-30 09:13:20 +08:00
cescobedo df536ab17d MDL-62065 core_access: First deprecation of get roles on exact context 2018-07-29 22:43:06 +02:00
Joby Harding fbd1877f20 MDL-63012 grunt: Update Node version check message 2018-07-29 21:06:52 +01:00
AMOS bot 04638845a5 Automatically generated installer lang files 2018-07-29 00:07:10 +00:00
Shamim Rezaie fda4374a67 MDL-58768 mod_assign: Added userid param to calendar callbacks
The mod_assign_core_calendar_is_event_visible and mod_assign_core_calendar_provide_event_action
functions now accept a new parameter ($userid) so they are not always dependet to the logged in user.
2018-07-28 07:51:33 +10:00
Shamim Rezaie 907b175c05 MDL-58768 core: Fix a typo for callback name 2018-07-28 07:51:33 +10:00
Shamim Rezaie faa5d173cc MDL-58768 mod_assign: Add $user param to assign::can_grade 2018-07-28 07:51:32 +10:00
Shamim Rezaie 95ae74a7bc MDL-58768 calendar: Add $requestinguser to the container class
The requesting user is not always the same as the current user. The container class now allows a different user
to be set as the requesting user. All capability checks are done against the requesting user.

Also, the $requestinguser is passed to core_calendar_provide_event_action and core_calendar_is_event_visible
callback functions. These callback functions need to be updated in all activity modules to accept a $user parameter.
2018-07-28 07:51:32 +10:00
Shamim Rezaie f7115c2e80 MDL-58768 coursecat: coursecat::get to accept a $user parameter 2018-07-28 07:51:32 +10:00
Shamim Rezaie 7385ee37f9 MDL-58768 Calendar: Update get_raw_events_legacy_implementation
Update get_raw_events_legacy_implementation to work with the passed $users parameter instead of the logged in user.
Also, fixed a bug where get_raw_events_legacy_implementation was failing when $users was set to true, and a list of
$groups was given.
2018-07-28 07:51:32 +10:00
Shamim Rezaie d8c6c21c95 MDL-58768 Calendar: Added user param to calendar_set_filters
Decoupled calendar_set_filters from $USER.
Also removed the backward compatibility bit from the function because it was a left over.
2018-07-28 07:41:50 +10:00
Shamim Rezaie bd8705732d MDL-58768 Calendar: Added userid param to calendar_get_default_courses 2018-07-28 07:41:50 +10:00
Johnny Tsheke 155bf1dd2f MDL-62344 mod_label: ID number feature support 2018-07-27 06:03:24 -04:00
David Mudrák 06db58b787 MDL-62965 core_user: Fix missing user profile fields on signup page 2018-07-27 10:37:03 +02:00
Jun Pataleta 1d4eecffc6 Merge branch 'MDL-62950-master' of git://github.com/andrewnicols/moodle 2018-07-27 16:19:22 +08:00
David Mudrák c4e7c3cac4 MDL-62619 privacy: Fix a missing alias in the blog provider class
The new implementation revealed another existing bug that did not expose
before due to coincidently same named table alias in the outer query.
2018-07-27 10:14:43 +02:00
David Mudrák cea03cbd43 MDL-62619 privacy: Fix some bits of performance improvements
* We need to use is_numeric() in this case as is_int() would never
  return true.
* Extend the supported cases, add support for SQL consisting just of
  numerical value or selectinga numerical constant.
* Do not rely on any particulat letter case in provided SQL.
* Add unit tests for the new method. Even when it is a protected one, it
  is an essential unit to be tested on its own.
2018-07-27 10:14:43 +02:00
Andrew Nicols d7cb7550c7 MDL-62619 privacy: Improve performance of contexts loading
When possible, we want to use JOIN over WHERE IN. It is known that the
later performs badly in MySQL.
2018-07-27 10:14:43 +02:00
Mark Nelson 2dd3384083 MDL-63001 core_form: final deprecation of the submitlink element 2018-07-27 16:05:28 +08:00
Jun Pataleta b1cc8171c0 MDL-62996 tool_dataprivacy: Add 3.4/3.3 upgrade steps to 3.5+
This is to ensure that sites that have the early dev version of the tool
can upgrade smoothly to 3.5 and up.
2018-07-27 15:56:37 +08:00
David Mudrák 6808227b1f MDL-59847 core: Fix display of hidden identity fields in user lists
Places that display list of users (such as course participants page)
with additional identifier fields now respect the user's permission to
view other users' hidden profile fields.
2018-07-27 09:55:22 +02:00
Sara Arjona b6e594b1b9 MDL-41847 core_user: Add preferred lang field to the user creation form
The preferred language has been added only to the user creation form.
For existing users, you should access to the user profile, click over
Preferences and go to the Preferred language page.
2018-07-27 09:01:33 +02:00
Sara Arjona 0b979a6083 MDL-41847 core_user: Add lang to login URL email for new user accounts 2018-07-27 09:01:33 +02:00
Mihail Geshoski db03bff7df MDL-62994 course: Final deprecation of add_modchoosertoggle() 2018-07-27 11:33:17 +08:00
Mark Nelson 1b722e3c31 MDL-62977 mod_wiki: style buttons appropriately 2018-07-27 10:46:35 +08:00
Andrew Nicols 3f068cf381 MDL-62950 behat: Disable editing for boost test 2018-07-27 10:05:17 +08:00
Dan Marsden 7c75e02730 MDL-58015 mod_scorm: set orgidentifier correctly for popup. 2018-07-27 10:36:09 +12:00
Eloy Lafuente (stronk7) 6e8235c7d3 weekly release 3.6dev 2018-07-26 19:56:33 +02:00
Eloy Lafuente (stronk7) 7e7732e8e7 NOBUG: Fixed file access permissions 2018-07-26 19:56:32 +02:00
Vadim Tabunshchik d5f47f8f39 MDL-62871 quiz: incorrect foreign key declaration 2018-07-26 11:36:43 +02:00
Andrew Nicols cc806faf18 MDL-62950 behat: Correct navbar references 2018-07-26 15:29:05 +08:00
Andrew Nicols 49f427de13 MDL-62950 behat: Correct use of nav 2018-07-26 14:56:35 +08:00
Andrew Nicols d80fbaaca6 MDL-62950 behat: Correct path to P&P 2018-07-26 14:49:04 +08:00
Andrew Nicols 739b7bcf9f Merge branch 'MDL-54742-master-integration' of https://github.com/mihailges/moodle 2018-07-26 10:34:15 +08:00
Mihail Geshoski 8ba04d4565 MDL-54742 general: Remove 'revealpassword' string deprecated in 3.2 2018-07-26 10:19:36 +08:00
Eloy Lafuente (stronk7) e270bf92a1 Merge branch 'MDL-62771-master_move_plag_disclosure' of https://github.com/jmcgettrick/moodle 2018-07-26 00:34:37 +02:00
Eloy Lafuente (stronk7) b562240b61 Merge branch 'MDL-57622-master' of git://github.com/mihailges/moodle 2018-07-26 00:22:37 +02:00
Jun Pataleta 6830ae12c7 Merge branch 'MDL-62852-master' of git://github.com/sarjona/moodle 2018-07-25 16:38:47 +08:00
Sara Arjona 7b3a113776 MDL-62852 policy: Display policy audience in the viewall.php page 2018-07-25 10:20:01 +02:00
Damyon Wiese 3412b12c22 MDL-61041 assign: Remove assignment 2.2 upgrader 2018-07-25 14:11:10 +08:00
Jun Pataleta a77beeb245 Merge branch 'MDL-62807-master' of git://github.com/damyon/moodle 2018-07-25 13:48:15 +08:00
Andrew Nicols 59d072a81a Merge branch 'MDL-60826-master-fix' of https://github.com/lameze/moodle 2018-07-25 13:40:25 +08:00
Andrew Nicols dc45b688b3 Merge branch 'MDL-55259_master' of git://github.com/markn86/moodle 2018-07-25 13:35:53 +08:00
Simey Lameze f8a95c3df6 MDL-60826 calendar: fix group event type logic 2018-07-25 12:43:37 +08:00
Andrew Nicols 5ecca25603 Merge branch 'MDL-62897-master' of git://github.com/rezaies/moodle 2018-07-25 12:42:31 +08:00
Tony Butler 9ed5b0c1f6 MDL-59611 mod_assign: Move help icons for subplugin types out of labels 2018-07-25 12:23:08 +08:00
Damyon Wiese 459c2d909d MDL-62884 privacy: Fix styles
An action menu displayed inside a table needs to be tested on every theme. It is
required to ensure that the menu displays correctly, even when it would display outside
the scrollable region for the table.
2018-07-25 12:09:11 +08:00
Cory Buecker 520c5e080b MDL-62969 mod_lti: fix parsed value for LtiLink.memberships.url
Fixes a typo in the function that replaces the LTI placeholder variable
LtiLink.memberships.url with the actual endpoint. Without this change,
the placeholder variable, "$LtiLink.memberships.url" is not replaced in
the LTI launch parameters.
2018-07-25 11:59:36 +08:00
Shamim Rezaie 3f0a60e33d MDL-62897 Questions: Find duplicate top cats per context and fix them 2018-07-25 12:26:08 +10:00
Andrew Nicols 834054ee06 Merge branch 'MDL-60826-master' of git://github.com/lameze/moodle 2018-07-25 09:18:53 +08:00
Simey Lameze 687112af22 MDL-60826 calendar: further performance improvements
This commit does few tweaks and other performance improvements to
calendar_get_allowed_event_types to be more efficient. Also some minor
queries optimizations on the event form to fetch the list of courses
without groups.
2018-07-25 08:54:59 +08:00
Andrew Nicols c46919aa91 Merge branch 'MDL-61652-master' of git://github.com/mihailges/moodle 2018-07-25 08:32:22 +08:00
Eloy Lafuente (stronk7) 193a3aa9d7 Merge branch 'MDL-62961_master' of git://github.com/markn86/moodle 2018-07-25 01:24:34 +02:00
Eloy Lafuente (stronk7) cbbbdf27b1 Merge branch 'MDL-62935-master' of git://github.com/bmbrands/moodle 2018-07-25 01:16:38 +02:00
Eloy Lafuente (stronk7) 6c48428f37 Merge branch 'MDL-55365-master' of git://github.com/cescobedo/moodle 2018-07-25 01:02:33 +02:00
Eloy Lafuente (stronk7) e3f3c41252 Merge branch 'MDL-62653-master' of git://github.com/andrewnicols/moodle 2018-07-25 00:37:05 +02:00
Eloy Lafuente (stronk7) 75d4e6c4f1 Merge branch 'MDL-54551_master' of git://github.com/markn86/moodle 2018-07-25 00:26:16 +02:00
cescobedo 605354de50 MDL-53297 core_course: Final deprecation of xxx_delete_course callback 2018-07-24 23:09:47 +02:00
Eloy Lafuente (stronk7) 252905427c Merge branch 'MDL-60874-master-enrolautocomplete' of git://github.com/mudrd8mz/moodle 2018-07-24 19:03:32 +02:00
Amaia Anabitarte 9c7b226579 MDL-55778 enrol_self: New string for 'Notify before..' options
AMOS BEGIN
 CPY [expirynotifyall,core_enrol],[expirynotifyall,enrol_self]
 CPY [expirynotifyenroller,core_enrol],[expirynotifyenroller,enrol_self]
AMOS END
2018-07-24 18:41:00 +02:00
Eloy Lafuente (stronk7) 402d1c538a Merge branch 'MDL-62925_master' of git://github.com/markn86/moodle 2018-07-24 18:31:48 +02:00
Jun Pataleta f7497ace8a Merge branch 'MDL-62919-master' of git://github.com/cescobedo/moodle 2018-07-24 16:24:39 +08:00
Bas Brands 1deead46cc MDL-62935 boost: slideshow view page overflow 2018-07-24 10:22:13 +02:00
sam marshall 635c7b29a0 MDL-61652 tool_dataprivacy: Add capabilities to control data downloads 2018-07-24 14:23:16 +08:00
Jun Pataleta 07249cbb3a Merge branch 'MDL-62939-master-cleanhtmluserdesc' of git://github.com/mudrd8mz/moodle 2018-07-24 11:58:38 +08:00
Jake Dallimore 7d91564204 MDL-59595 admin: Make sure $ADMIN is properly unset when changing users 2018-07-24 08:25:30 +08:00
Jake Dallimore dbf66238b7 MDL-59595 admin: unit test covering the adminroot cache reset scenario
The adminroot cache should be reset when the current user is changed,
which can occur during cron or during unit tests.
2018-07-24 08:25:30 +08:00
Simey Lameze e2b7dca006 MDL-60826 groups: deprecate groups_get_all_groups_for_courses function 2018-07-24 07:58:35 +08:00
Simey Lameze 0f1e7ec906 MDL-60826 calendar: restrict course fields to be retrieved 2018-07-24 07:58:34 +08:00
Simey Lameze cf2df6199d MDL-60826 calendar: update manage subscription page to use new function 2018-07-24 07:58:34 +08:00
Simey Lameze 375b15a346 MDL-60826 calendar: deprecate calendar_get_all_allowed_types 2018-07-24 07:58:34 +08:00
Simey Lameze dfc609e55d MDL-60826 calendar: lazy load groups on event form 2018-07-24 07:58:34 +08:00
Simey Lameze 633c5ffbfe MDL-60826 calendar: tests for calendar_get_allowed_event_types 2018-07-24 07:58:34 +08:00
Simey Lameze 4be55b06da MDL-60826 calendar: introduce calendar_get_allowed_event_types function 2018-07-24 07:58:34 +08:00
Victor Deniz 10505522fc MDL-57977 search: GlobalSearch by alternate name fields
Enable support for searching all name fields in search
2018-07-23 10:10:05 +01:00
Damyon Wiese 2660e38faf MDL-62581 backup: CSS fixes
Sanitise the CSS for backup and restore. Main fixes are to sanitise the form-inline styles and set a fixed
width for the search forms within the restore form.
2018-07-23 16:19:30 +08:00
Adrian Greeve 3714fe7e6e MDL-57244 general: Remove old class renames. 2018-07-23 15:54:13 +08:00
Mark Nelson 0089fc929e MDL-62961 mod_feedback: style buttons appropriately 2018-07-23 15:47:38 +08:00
Andrew Nicols 9266d24827 Merge branch 'MDL-35977-master' of git://github.com/mihailges/moodle 2018-07-23 15:30:51 +08:00
Jun Pataleta 60bf79ac88 Merge branch 'MDL-62948-master' of git://github.com/andrewnicols/moodle 2018-07-23 15:20:47 +08:00
Jun Pataleta 6ab64dde9c Merge branch 'MDL-62949-master' of git://github.com/andrewnicols/moodle 2018-07-23 14:55:18 +08:00
Andrew Nicols 1f16daa4cf Merge branch 'MDL-62962-master' of git://github.com/junpataleta/moodle 2018-07-23 14:51:18 +08:00
Andrew Nicols a6034c9611 Merge branch 'MDL-54742-master' of git://github.com/mihailges/moodle 2018-07-23 14:29:55 +08:00
Mihail Geshoski 10bd37fabd MDL-54742 general: Remove strings deprecated in 3.2 2018-07-23 14:25:14 +08:00
Jun Pataleta f0ccce9af7 MDL-62962 tool_dataprivacy: Move user generation within the test 2018-07-23 13:35:50 +08:00
Shamim Rezaie 94fe904ed6 MDL-62897 Questions: Fix multi top cats in question_save_from_deletion 2018-07-23 14:37:40 +10:00
Shamim Rezaie 30dd3c5d0f MDL-62897 restore: Fix component name in get_string() 2018-07-23 14:37:40 +10:00
Shamim Rezaie 32338e7bda MDL-62931 Questions: Escaping lang strings properly 2018-07-23 14:24:29 +10:00
Andrew Nicols 653c30708d Merge branch 'MDL-61707-master' of git://github.com/mihailges/moodle 2018-07-23 11:33:20 +08:00
Farhan Karmali fad9dc9290 MDL-61960 blocks: Standard block plugins use legacy cron 2018-07-23 08:53:04 +05:30
Andrew Nicols 311199f52e Merge branch 'MDL-29701-master' of https://github.com/phuchau1509/moodle 2018-07-23 09:42:24 +08:00
Mihail Geshoski 204178d646 MDL-61707 authentication: Remove presignup session upon user signup 2018-07-23 09:33:08 +08:00
Mihail Geshoski 5f2628c517 MDL-57622 behat: Remove behat steps deprecated in 3.2 2018-07-23 09:25:59 +08:00
Mihail Geshoski 329a84b489 MDL-35977 comments: Missing label in blog and assignment comment area 2018-07-23 08:55:14 +08:00
cescobedo 8d2432f543 MDL-55365 behat: Remove deprecated api's in behat_config_mananger.php 2018-07-20 09:34:26 +02:00
Andrew Nicols 0180369b27 weekly release 3.6dev 2018-07-20 15:09:02 +08:00
Andrew Nicols 5794a467e2 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2018-07-20 15:09:00 +08:00
Andrew Nicols 2585f77a11 MDL-62949 calendar: Fix behat nav to calendar 2018-07-20 11:48:15 +08:00
Andrew Nicols e06f0c44ea MDL-62948 tool_policy: Increase window size
In the default window size the floating footer detaling the privacy
policies covers the "Login as guest" button.
2018-07-20 11:10:49 +08:00
Jake Hau b6976f1a87 MDL-29701 editor: mform disableif doesn't work on editor element 2018-07-19 11:38:26 +07:00
Jun Pataleta a766f5dc00 Merge branch 'MDL-62811' of git://github.com/timhunt/moodle 2018-07-19 08:46:51 +08:00
Jun Pataleta 432e755f2b Merge branch 'MDL-62769' of https://github.com/timhunt/moodle 2018-07-19 08:46:50 +08:00
Jun Pataleta 76ca5c61d0 Merge branch 'MDL-62781-master' of git://github.com/junpataleta/moodle 2018-07-19 08:46:49 +08:00
David Monllao 3ffb8d2317 Merge branch 'MDL-59447-master' of https://github.com/nwp90/moodle 2018-07-19 08:46:48 +08:00
David Monllao 810f12c25b Merge branch 'MDL-53972-master' of git://github.com/mihailges/moodle 2018-07-19 08:46:48 +08:00
David Monllao 1f9964a6e0 Merge branch 'MDL-54830-master' of https://github.com/snake/moodle 2018-07-19 08:46:47 +08:00
David Monllao 98b5b9d8a5 Merge branch 'MDL-61355' of git://github.com/danmarsden/moodle 2018-07-19 08:46:46 +08:00
David Monllao 7485089c91 Merge branch 'MDL-61351_master' of git://github.com/markn86/moodle 2018-07-19 08:46:45 +08:00
David Monllao 523704d9ec Merge branch 'MDL-62868-master' of https://github.com/snake/moodle 2018-07-19 08:46:44 +08:00
David Monllao a02f330b5d Merge branch 'MDL-62663' of https://github.com/andrewhancox/moodle 2018-07-19 08:46:43 +08:00
Tomasz Muras 7cdd97b252 MDL-50325 core: Use plugins API to check module status. 2018-07-18 16:54:31 +02:00
David Mudrák 067d0efe85 MDL-62939 user: Fix field type of the user profile description
As this is an editor element field, the it is supposed to be PARAM_RAW.
Otherwise it cleans-up certain non-HTML syntax such as Markdown
blockquote characters.
2018-07-18 14:27:14 +02:00
Mark Nelson feb6a52035 MDL-54551 core: touch-up after review
1. Reworded the string.
2. Removed logic handling form data.
3. Do not use window.location.replace.
2018-07-18 18:08:37 +08:00
Thom Rawson acf94de6d5 MDL-54551 core: AJAX call redirects to login page when session expired 2018-07-18 18:07:16 +08:00
Mark Nelson 512a1d310f MDL-55259 core: removed lib/password_compat/lib/password.php 2018-07-18 16:18:48 +08:00
Jun Pataleta 061e9f4b11 MDL-62781 core_question: Remove unnecessary assertion 2018-07-18 09:57:49 +08:00
Tim Hunt 7ca1b32808 MDL-62781 question/privacy: fix tests with CodeRunner is installed
The tests were assuming that no plugin ever created questions on
install.

Also change the tests to do the counting in the DB. That is more
efficient.
2018-07-18 09:57:49 +08:00
AMOS bot 7c66d04911 Automatically generated installer lang files 2018-07-18 00:07:26 +00:00
cescobedo 9de1a91532 MDL-62919 auth_shibboleth: Use the right shibboleth_auth_instructions
Change $CFG->auth_instructions by shibboleth/auth_instructions in the index_form.html
2018-07-17 21:06:44 +02:00
Tim Schroeder 0f1dffe6af MDL-61351 auth_shibboleth: removed redundant session handler class check 2018-07-17 16:45:20 +08:00
Tim Schroeder 81f55e41a7 MDL-61351 core: added \core\session\manager\get_handler_class()
* This is needed e.g. by the shibboleth logout handler to check which
type of sessions are used.
2018-07-17 16:45:20 +08:00
Mark Nelson 4beca90f3d MDL-61351 auth_shibboleth: move new functions to separate class
This reduces the amount of code to an already confusing logout.php
file and prevents conflicts if someone else happens to be using
the same function name in a file.
2018-07-17 16:45:20 +08:00
David Monllao e385230046 Merge branch 'MDL-60924-master' of git://github.com/sarjona/moodle 2018-07-17 09:38:04 +02:00
Tim Schroeder 1e737e38f9 MDL-61351 shibboleth: Logout: fix session handler class not being used
* use $CFG->session_handler_class to determine which type of session is
  used
* if not set, use $CFG->dbsession instead
2018-07-17 15:27:26 +08:00
Andrew Nicols 9e52f4adc2 Merge branch 'MDL-62889_master' of git://github.com/markn86/moodle 2018-07-17 12:11:34 +08:00
Mark Nelson b77e5841f8 MDL-62889 message_popup: redirect using moodle_url
Without this relative URLs passed (like /message/index.php)
were being redirected to HOST/message/index.php rather than
$CFG->wwwroot/message/index.php.
2018-07-17 11:54:52 +08:00
Mark Nelson c5fcbd1081 MDL-62889 message_popup: redirect to notification page if url is empty
If you pass a URL that is not a valid URL (for example
';') it is cleaned to an empty string which redirects to
$CFG->wwwroot/message/output/popup/ which is not a valid
page.
2018-07-17 11:54:52 +08:00
Mark Nelson 7d5b9da80c MDL-62889 message_popup: allow redirects to external URLs
Many institutions create notifications that link to an
external service. We need to allow redirects to these
systems.
2018-07-17 11:44:41 +08:00
Mark Nelson d2eb1ca91e MDL-62889 message_popup: only add redirecturl if it exists
We allow notifications to have a null value for the 'contexturl'.
In this case we should not be appending a 'redirecturl' param to
the URL when it is going to be empty.
2018-07-17 11:44:41 +08:00
Andrew Nicols affd85ce24 Merge branch 'MDL-53697-master' of git://github.com/abgreeve/moodle 2018-07-17 11:36:44 +08:00
Andrew Nicols 38036e73c2 Merge branch 'MDL-53808-master' of git://github.com/cescobedo/moodle 2018-07-17 11:34:59 +08:00
Mark Nelson 94a1861c84 MDL-62925 mod_wiki: style 'Search wikis' button 2018-07-17 11:31:20 +08:00
Andrew Nicols 4a91bd6f62 Merge branch 'MDL-62849-master' of git://github.com/abgreeve/moodle 2018-07-17 10:31:29 +08:00
Adrian Greeve f38766e166 MDL-62849 files lib: Add method to return all files.
Added a function which returns all the files from all directories
in the draftarea.
2018-07-17 10:25:11 +08:00
AMOS bot e575ad38c8 Automatically generated installer lang files 2018-07-17 00:08:09 +00:00
David Mudrák 3dbda9f846 MDL-60874 enrol_manual: Improve searching of users in quick enrol UI
* The maximum of users to be displayed raised from 30 to 100. This is
  consistent with the legacy users selector available via enrolment
  methods page.
* If there are more users found matching the search criteria, notify the
  user instead of displaying them. This is to prevent false impression
  that there are only that many users.
* Added behat tests for the new behaviour.
2018-07-16 21:27:26 +02:00
David Mudrák 9411beb384 MDL-60874 core_form: allow autocomplete AJAX handlers return a string
Custom AJAX handlers for the form autocomplete fields can now optionally
return string in their processResults() callback. If a string is
returned, it is displayed instead of the list of suggested items.

The string is displayed same way as we inform about no available
suggestions.
2018-07-16 21:27:25 +02:00
sarjona 7fde83584f MDL-60924 core_user: Hold participant filters when clicking some link 2018-07-16 18:03:12 +02:00
David Monllao c6f64c217d Merge branch 'MDL-52953-master' of git://github.com/abgreeve/moodle 2018-07-16 14:17:56 +02:00
David Monllao aa59fb2ea2 Merge branch 'MDL-49025' of https://github.com/NeillM/moodle 2018-07-16 13:34:57 +02:00
David Monllao 011c1a4291 Merge branch 'MDL-61019-master' of https://github.com/lucaboesch/moodle 2018-07-16 13:25:06 +02:00
Mark Nelson c61a4a9d21 MDL-60435 auth_shibboleth: changed accepted image types 2018-07-16 18:31:57 +08:00
Mark Nelson 87647c07fb MDL-60435 auth_shibboleth: dont display button if not configured 2018-07-16 18:31:57 +08:00
Mark Nelson 4826b1e42b MDL-60435 auth_shibboleth: removed usage of deprecated loginhttps 2018-07-16 18:31:57 +08:00
fabmen c637d96786 MDL-60435 auth_shibboleth: Display IDPs for Authentication Shibboleth.
Using Identity Providers for Authentication Shibboleth, instead of a manual link.
2018-07-16 18:31:52 +08:00
Mihail Geshoski 98f9db0d63 MDL-53972 feedback: Final deprecation in mod/feedback/lib.php 2018-07-16 14:21:18 +08:00
Damyon Wiese 6a621b0ce7 MDL-62807 output: Support .list-unstyled class
Category management lists should not have bullets.

We support this class in "boost" theme but not in bootstrapbase and there are uses of it in core.
2018-07-16 14:03:42 +08:00
Andrew Nicols bfeef10af0 Merge branch 'MDL-45851' of git://github.com/timhunt/moodle 2018-07-16 13:10:24 +08:00
Jake Dallimore bdd410a6f4 MDL-54830 core_course: fix maxbytes logic in course_update web service
The service should allow the special value of 0 (site limit) to be set.
2018-07-16 10:41:17 +08:00
Jake Dallimore fd6d98cc90 MDL-62868 core_group: clear group_grouping cache when changing grouping 2018-07-16 10:34:52 +08:00
Jake Dallimore c6150f1104 Merge branch 'MDL-45389-master' of https://github.com/lucaboesch/moodle 2018-07-16 10:11:40 +08:00
Neill Magill 650779d609 MDL-49025 assign: Submissions of an empty directory should not save
Before this change if only a folder was submitted the submission_is_empty
check would return true. This meant that the draft area would be saved.
The is_empty check would then be called which would return false. This
caused the submission form to indicate to the user that the submission
had failed.

Now is_empty and submission_is_empty should both return false if only
folders are submitted.
2018-07-13 14:03:42 +01:00
Neill Magill 3ebfab9810 MDL-49025 assign: Test than an empty directory will not submit 2018-07-13 14:03:41 +01:00
Luca Bösch 9004441b7b MDL-61019 Theme boost: lesson display issues with buttons/progress bar. 2018-07-13 09:27:06 +02:00
Luca Bösch 5cb24d2299 MDL-45389 theme_bootstrapbase: Forum index page alignment in clean. 2018-07-13 09:26:47 +02:00
Luca Bösch 41a7fec75f MDL-44538 action_menu: rounded corner of highlights only where needed. 2018-07-13 09:26:41 +02:00
Andrew Nicols df95c479fc MDL-62653 behat: Ensure that tasks run properly from behat 2018-07-13 13:54:42 +08:00
Jake Dallimore 8c51626841 weekly release 3.6dev 2018-07-13 12:26:07 +08:00
Jake Dallimore 856602d992 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2018-07-13 12:26:05 +08:00
Nick Phillips b6efeb4730 MDL-59447 question: GIFT import to respect multichoice defaults
Fix GIFT import to respect default answernumbering for new multichoice
questions (introduced in MDL-50011). Default for shuffleanswers is still
ignored, as this is a rather coarse-grained way to do it, and the wrong
setting for shuffleanswers would irreversibly alter the meaning of some
questions.

This is not an ideal long-term fix, but will save significant effort
for anyone who needs to be able to set answernumbering style for
questions imported in GIFT format.
2018-07-13 13:33:33 +12:00
Adrian Greeve 4bebed4011 MDL-53697 mod: Final deprecation of xxx_get_types(). 2018-07-12 10:19:09 +08:00
Christian Lawson-Perfect 7dcbe6a983 MDL-61355 SCORM: fix correct_response prefix check
The regexes to detect the optional prefixes at the start of some
interaction types are constructed to optionally match the prefix, so we
need to ensure that the matched group is really there when trying to
strip it from the given value in CRCheckValueNodes.

also remove "check for prefix" from CRcheckValueNodes

prefixes on correct responses patterns are removed in the section above
by CRremovePrefixes, so this block was redundant.
The `.pre` property for each correct_response is not used anywhere
else, so this removes their definitions too.
2018-07-12 10:44:30 +12:00
David Monllao 2a021ac3a0 Merge branch 'MDL-62618-master' of git://github.com/mickhawkins/moodle 2018-07-11 18:47:57 +02:00
David Monllao c2164bff0d Merge branch 'MDL-47899-master' of https://github.com/lucaboesch/moodle 2018-07-11 12:29:23 +02:00
David Monllao fd2b5d5c63 MDL-59599 navigation: Respect previous activity-level navigation
The original patch was overwriting grading methods navigation.

All credit goes to Andrew Nicols.
2018-07-11 12:01:08 +02:00
Luca Bösch aab977e0ce MDL-47899 forms: course search form info list bullet points alignment.
AMOS BEGIN
    MOV [searchhelp,moodle],[coursesearch_help,moodle]
AMOS END
2018-07-11 11:58:14 +02:00
cescobedo 437ffc9f46 MDL-53808 external_api: Remove external_function_info 2018-07-11 11:11:33 +02:00
Adrian Greeve 28d0d12f5f MDL-52953 tool_log: Deprecation of the legacy log store. 2018-07-11 09:45:52 +08:00
Jake Dallimore 98a09721d7 Merge branch 'MDL-62712-master' of https://github.com/HuongNV13/moodle 2018-07-11 09:02:15 +08:00
Andrew Nicols 034e9ce5cd Merge branch 'MDL-52318-master' of https://github.com/snake/moodle 2018-07-11 08:33:13 +08:00
Andrew Nicols 124cd929fb Merge branch 'MDL-62026-master' of git://github.com/junpataleta/moodle 2018-07-11 08:13:11 +08:00
Andrew Hancox 7068dd3990 MDL-62663 core_user: Enforce viewalldetails capability when editing user 2018-07-10 13:28:24 +01:00
David Monllao 76dbb5884d Merge branch 'MDL-62262-master' of https://github.com/lucaboesch/moodle 2018-07-10 13:30:17 +02:00
David Monllao e7941ae3e9 Merge branch 'MDL-62823' of https://github.com/NeillM/moodle 2018-07-10 11:43:37 +02:00
David Monllao 58b987282e Merge branch 'MDL-42818-master' of git://github.com/zig-moodle/moodle 2018-07-10 11:31:24 +02:00
Andrew Nicols 5a0a8686e3 Merge branch 'MDL-61578-master' of git://github.com/mickhawkins/moodle 2018-07-10 16:45:55 +08:00
Huong Nguyen 0b245bf390 MDL-62712 Filepicker: Improve upload process
Lost the uploading file when user press Submit before upload process has done
2018-07-10 15:18:45 +07:00
David Monllao 147b4f3dee Merge branch 'MDL-61110_master' of https://github.com/nadavkav/moodle 2018-07-10 09:59:06 +02:00
David Monllao debbed03ed Merge branch 'MDL-62814-master' of https://github.com/HuongNV13/moodle 2018-07-10 07:50:45 +02:00
David Monllao cbc67cba73 Merge branch 'MDL-62533-master' of git://github.com/zig-moodle/moodle 2018-07-10 07:37:19 +02:00
Jun Pataleta 0433707f7b MDL-62026 tool_dataprivacy: Behat tests for contacting PO 2018-07-10 12:31:08 +08:00
Jun Pataleta ef7f7cfdf8 MDL-62026 tool_dataprivacy: Allow manual completion of general enquiries 2018-07-10 12:30:56 +08:00
Andrew Hancox 820f28c61b MDL-61578 backup: Added unit test for is_course_modified check. 2018-07-10 10:50:30 +08:00
Michael Hawkins 4b9c2928d4 MDL-61578 backup: Prevent backup logging triggering fresh backups.
Thanks to Renaat Debleu for their contribution to this solution.
2018-07-10 10:50:30 +08:00
Andrew Nicols 39650bc12f Merge branch 'MDL-62746-master' of git://github.com/junpataleta/moodle 2018-07-10 09:33:05 +08:00
Jake Dallimore 793fe5fc4c Merge branch 'MDL-62772-master_always_show_disclosure' of https://github.com/jmcgettrick/moodle 2018-07-10 08:59:34 +08:00
David Monllao 1ef11d5182 Merge branch 'MDL-62753' of https://github.com/OdyX/moodle 2018-07-09 15:15:40 +02:00
David Monllao 6ce50554ee Merge branch 'MDL-56881-master' of https://github.com/snake/moodle 2018-07-09 14:38:19 +02:00
David Monllao 5edfece170 Merge branch 'MDL-62037-master' of https://github.com/lethevinh/moodle 2018-07-09 13:48:47 +02:00
David Monllao 381bb72153 Merge branch 'MDL-62831-master' of git://github.com/damyon/moodle 2018-07-09 13:36:05 +02:00
David Monllao 6af4e08333 MDL-59599 navigation: Strict zero-position comparision 2018-07-09 12:27:25 +02:00
David Monllao 727592291b Merge branch 'MDL-59599-master' of https://github.com/Kathrin84/moodle 2018-07-09 11:58:53 +02:00
John McGettrick 9481cc0e06 MDL-62772 mod_assign: Show disclosure for all submitters 2018-07-09 09:26:38 +01:00
Jake Dallimore 3143160204 Merge branch 'MDL-62180-master' of https://github.com/lucaboesch/moodle 2018-07-09 15:46:25 +08:00
Andrew Nicols 8dfafebc13 Merge branch 'MDL-33509-master' of git://github.com/mihailges/moodle 2018-07-09 13:52:31 +08:00
Andrew Nicols a31b3cf30b Merge branch 'MDL-62808_master' of git://github.com/markn86/moodle 2018-07-09 13:29:29 +08:00
Damyon Wiese 6fea9dc4b3 MDL-43334 backup: Fix cancel JS
The cancel button is a form element within a div that has the confirmcancel class. When we
accept a cancel modal, we should attempt to click the most specific form element of the
div, not the entire div.
2018-07-09 12:17:23 +08:00
Damyon Wiese ddd7ff1827 MDL-43334 backup: Lanuage for cancel
Cancel backup buttons need clear lang strings.
2018-07-09 12:17:18 +08:00
Andrew Nicols 2f6f156a8f MDL-56093 auth_db: Remove issue no. from comment 2018-07-09 12:14:17 +08:00
Andrew Nicols 33d2796f0a Merge branch 'MDL_56093' of https://github.com/eledia/moodle 2018-07-09 12:13:58 +08:00
Jake Dallimore 545a1382aa Merge branch 'MDL-61359-master' of git://github.com/mickhawkins/moodle 2018-07-09 12:10:33 +08:00
Mark Nelson c57fadcc64 MDL-62808 core_message: fixed 'useridto' being incorrectly set to 0 2018-07-09 12:00:06 +08:00
Jake Dallimore 1c1d738ba0 MDL-52318 core_form: allow multiple filepicker-enabled url elements
In cases when filepicker support is enabled, this patch adds a wrapper
div around the url element and includes the filepicker id in its id.
This allows the js callback code to target the specific input field
with which it is associated.
2018-07-09 11:29:23 +08:00
Jake Dallimore 5a8791336a MDL-56881 mod_choice: add unit tests for choice_user_submit_response
Tests cover option limits and multiple option responses.
2018-07-09 11:02:50 +08:00
Jake Dallimore 03577962ef MDL-56881 mod_choice: clarify lang string for limit-reached scenarios 2018-07-09 11:02:50 +08:00
Jake Dallimore a039751aee MDL-56881 mod_choice: fix bug with limits when saving existing choice
The check determining whether a choice option's limit was exceeded was
including the user's existing answers in its checks, meaning a user
couldn't save an existing choice answer, or select further options,
if all a choice option limit was reached. This patch fixes that.
2018-07-09 11:02:45 +08:00
AMOS bot 10fcb75876 Automatically generated installer lang files 2018-07-07 00:08:17 +00:00
Nadav Kavalerchik 3cac3a8590 MDL-61110 LTIProvider: Store 'lis_course_section_sourcedid' value in DB 2018-07-07 00:50:02 +03:00
Luca Bösch 4a73ecc654 MDL-62262 quiz: quiz index page showing wrong dates. 2018-07-06 14:37:07 +02:00
Luca Bösch a494830c28 MDL-62180 course: Add distinctive class to activity navigation
Having a distinguishable class "activity-navigation" added to the activity
navigation allows that part to be easily styled. It could for example be
excluded from printing. Furthermore, this is providing consistency. Other
navigation elements have proper own classes as well.
2018-07-06 14:32:54 +02:00
vinhle 4dbc8c30a3 MDL-62037 Filepicker: Review image not change when overwrite same 2018-07-06 17:49:10 +07:00
John McGettrick 707dfd0c39 MDL-62771 mod_forum: Reformat for modern coding style 2018-07-06 09:32:14 +01:00
John McGettrick f3bf0ed5fc MDL-62771 mod_forum: Fix to move print_disclosure 2018-07-06 09:30:34 +01:00
Andrew Nicols c7d148dc20 weekly release 3.6dev 2018-07-06 14:05:06 +08:00
Andrew Nicols 21a59c3ff3 NOBUG: Fixed SVG browser compatibility 2018-07-06 14:05:04 +08:00
Andrew Nicols 55ececc04c Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2018-07-06 14:05:03 +08:00
Jun Pataleta 65cac80088 MDL-62746 tag: Convert YUI modals to AMD modals 2018-07-06 12:34:23 +08:00
Huong Nguyen 9d7ccae2d5 MDL-62814 Question: Improve column base display_header
Column base does not support custom tip if sortable is an array
2018-07-06 10:56:34 +07:00
Jun Pataleta d7ae1a92b1 MDL-62746 tag: Make forms in tag modals use proper BS classes 2018-07-06 10:14:04 +08:00
Tim Hunt b116f8b9ad MDL-62811 question bank: rendering shouldn't load individual questions 2018-07-05 17:00:45 +01:00
Benjamin Wolf c19ef03f71 MDL-56093 auth_db: Save custom profile fields in auth_db 2018-07-05 11:11:41 +02:00
Didier 'OdyX' Raboud 90ae1b90f1 MDL-62753 shibboleth: Logout: fix DB sessions kill
* Use the Moodle 2+ {sessions} table, and decode the session
  correctly using session_decode (adodb_unserialize is deprecated).
* Kill all user sessions using \core\session\manager's
  kill_user_sessions.
2018-07-05 08:57:03 +02:00
Michael Hawkins c157e137ee MDL-62618 user: Display full names consistently on users page 2018-07-05 10:08:33 +08:00
Michael Hawkins 26cee43786 MDL-62618 forum: Made full names displayed consistent 2018-07-05 10:03:18 +08:00
Jake Dallimore 523662f141 Merge branch 'MDL-62670-master' of git://github.com/sarjona/moodle 2018-07-05 09:25:41 +08:00
AMOS bot 2a5aa4eee7 Automatically generated installer lang files 2018-07-05 00:08:15 +00:00
Kathrin Osswald f37c3ec832 MDL-59599 navigation: Improve activity status for nav nodes. 2018-07-04 19:57:10 +02:00
Tim Hunt 3511063252 MDL-45851 restore: random questions must always be created
They are really a pointer from a particular quiz to a question category.
They should never be shared, because if they are, unexpected things
happend when they are edited.
2018-07-04 16:33:30 +01:00
Sara Arjona 8502f02ae0 MDL-62670 policy: viewall.php must display always all active policies
The viewall.php page is called from the mobile app to display the policies
to the users before agree them. That's why it must display all the active
policies (even for guests), to guarantee the users agree all current
policies from the app.
2018-07-04 12:04:41 +02:00
Jake Dallimore f84e9c4ead Merge branch 'MDL-37624-master-fix' of git://github.com/junpataleta/moodle 2018-07-04 16:40:29 +08:00
Jun Pataleta d180b40066 MDL-37624 pix: Use updated location icons for Clean
Credits to Barbara Ramiro
2018-07-04 16:26:53 +08:00
Jun Pataleta f327168f44 MDL-37624 theme_boost: Rebuild moodle.css 2018-07-04 16:26:07 +08:00
Tim Hunt 0b18d0c960 MDL-62820 question import: properly escape output 2018-07-04 15:40:50 +08:00
Jun Pataleta a746b6e840 Merge branch 'MDL-37624-master' of git://github.com/mickhawkins/moodle 2018-07-04 15:33:43 +08:00
Michael Hawkins 4c838be5bb MDL-37624 calendar: Updated location db comment 2018-07-04 14:52:44 +08:00
Jake Dallimore 9dc7f25f9f Merge branch 'wip-nolink-bug' of https://gitlab.di.unito.it/rabellino/moodle 2018-07-04 14:37:14 +08:00
Damyon Wiese 166fa40a98 MDL-62782 assign: viewgrades allows files
Grade viewer role should be able to see feedback files for an assignment submission.
2018-07-04 14:17:28 +08:00
Sara Arjona 0138ad60b0 MDL-62670 policy: Remove footer link when there are not active policies 2018-07-04 07:52:47 +02:00
Jake Dallimore a2e64810d4 Merge branch 'MDL-41463-master' of https://github.com/lucaboesch/moodle 2018-07-04 12:59:00 +08:00
Damyon Wiese e655cbb857 MDL-62831 mod_assign: Download as folders help
The help string for the download as folders setting should not mention the number of files
submitted by the student. It is not related to that, it is only dependant on the value of this setting.
2018-07-04 12:20:24 +08:00
Jake Dallimore bbaab1bae7 Merge branch 'MDL-44081-master' of git://github.com/zig-moodle/moodle 2018-07-04 10:50:25 +08:00
Jake Dallimore 7eb7e4b9ea Merge branch 'MDL-62834-master' of git://github.com/andrewnicols/moodle 2018-07-04 10:44:51 +08:00
Andrew Nicols 481548f580 MDL-62834 behat: Move include to function 2018-07-04 10:29:15 +08:00
Eloy Lafuente (stronk7) ab044c6cd5 Merge branch 'wip-MDL-62526-master' of git://github.com/marinaglancy/moodle 2018-07-04 04:19:12 +02:00
Adrian Greeve 720d5b3b85 MDL-62616 tool_log: Add a setting to disable exporting logs. 2018-07-04 09:58:49 +08:00
Eloy Lafuente (stronk7) a101b25863 Merge branch 'MDL-62288_master' of https://bitbucket.org/ujiapps/moodle-uji 2018-07-04 01:20:08 +02:00
Eloy Lafuente (stronk7) 37c6bd9bed Merge branch 'wip-MDL-59259-master' of git://github.com/marinaglancy/moodle 2018-07-04 01:09:47 +02:00
Eloy Lafuente (stronk7) 6b82c53bf3 Merge branch 'MDL-62792' of https://github.com/timhunt/moodle 2018-07-04 00:54:44 +02:00
Eloy Lafuente (stronk7) c475c97b45 Merge branch 'MDL-62838' of git://github.com/timhunt/moodle 2018-07-04 00:49:23 +02:00
Eloy Lafuente (stronk7) 7fb95a9d2d Merge branch 'MDL-62834' of git://github.com/timhunt/moodle 2018-07-04 00:46:33 +02:00
Eloy Lafuente (stronk7) af0202c5c2 Merge branch 'MDL-62211-master' of git://github.com/junpataleta/moodle 2018-07-03 23:33:02 +02:00
David Monllao 6d57e23197 Merge branch 'MDL-61296-master' of git://github.com/cescobedo/moodle 2018-07-03 23:33:02 +02:00
David Monllao b596cdda82 Merge branch 'MDL-62656-master' of git://github.com/mihailges/moodle 2018-07-03 23:33:01 +02:00
David Monllao 2af5c8e7ef Merge branch 'MDL-60014-master-catcherror-nopermission-annotatepdfcron' of https://github.com/Eva-Dv/moodle 2018-07-03 23:33:01 +02:00
David Monllao 772ae9d4fd Merge branch 'MDL-62691-master' of git://github.com/bmbrands/moodle 2018-07-03 23:33:00 +02:00
David Monllao f8839747ce Merge branch 'MDL-62813-master' of git://github.com/lameze/moodle 2018-07-03 23:33:00 +02:00
David Monllao de0b684c38 Merge branch 'MDL-62654-master' of git://github.com/bmbrands/moodle 2018-07-03 15:19:18 +02:00
David Monllao 3a0e92cd6a Merge branch 'MDL-32232-master' of https://github.com/lucaboesch/moodle 2018-07-03 13:59:57 +02:00
David Mudrák dd808ec6b9 MDL-62796 tool_policy: Fix a regression in Behat test
We now correctly show the popup with links to policies that apply to
anonymous visitors of the site. So the name of the guests only policy
became visible in this popup in more cases and it caused false failures.

The point of the lines affected by this patch is to make sure that the
policy does / does not appear in the list of policies to be accepted. So
I am making it more specific of where the text is / is not supposed to
be seen.
2018-07-03 10:58:29 +02:00
Jake Dallimore 83e2051845 Merge branch 'MDL-59261-master' of git://github.com/ryanwyllie/moodle 2018-07-03 14:44:32 +08:00
Bas Brands af9edb2e6a MDL-59261 theme_boost: compiled css fallback 2018-07-03 14:14:52 +08:00
Michael Hawkins a990e4faff MDL-62767 theme: Remove old localcaches when clearing/updating theme cache 2018-07-03 14:00:29 +08:00
Michael Hawkins 9af6a71c70 MDL-62801 themes: Added missing filelib include 2018-07-03 13:07:27 +08:00
Marina Glancy d80533be40 MDL-62790 course: cap check in core_course_get_categories 2018-07-03 12:01:15 +08:00
Mihail Geshoski daa31a0491 MDL-33509 forms: Change button type in url resource editing page 2018-07-03 11:53:09 +08:00
Jake Dallimore 25a592ff5f Merge branch 'MDL-62715-master' of git://github.com/andrewnicols/moodle 2018-07-03 08:49:35 +08:00
Eloy Lafuente (stronk7) d34b408d98 Merge branch 'MDL-62763-master-enfix' of git://github.com/mudrd8mz/moodle 2018-07-02 20:09:07 +02:00
Eloy Lafuente (stronk7) b197a1d4cb Merge branch 'MDL-62621-master-ixcomment' of git://github.com/mudrd8mz/moodle 2018-07-02 20:00:29 +02:00
David Monllao 3f3d7fec0c Merge branch 'wip-MDL-62796-master' of git://github.com/marinaglancy/moodle 2018-07-02 12:21:42 +02:00
Helen Foster 9722f6a25e MDL-62763 lang: Merge English strings from the en_fix language pack
Significant string changes:

* various strings in tool_dataprivacy and tool_policy - 'Data Protection
  Officer' changed to 'privacy officer'
* idnumbermod_help,core - mentioning resource and custom reporting
2018-07-02 11:15:26 +02:00
David Monllao e460c95893 Merge branch 'MDL-62713-master' of https://github.com/sammarshallou/moodle 2018-07-02 10:40:40 +02:00
Eloy Lafuente (stronk7) 744a9de339 Merge branch 'MDL-61244-master-fix' of git://github.com/junpataleta/moodle 2018-07-02 10:36:30 +02:00
Jake Dallimore 221a79361a Merge branch 'MDL-62801-master' of git://github.com/mickhawkins/moodle 2018-07-02 16:18:23 +08:00
David Mudrák 82b7ad70b1 MDL-62621 comments: Add missing indexes on comments table
The composite index over the fields contextid, commentarea and itemid
helps the comments API to load all comments for the given area
effectively.

The index over the userid field helps the privacy API to load all
comments by the given user.
2018-07-02 10:04:26 +02:00
Jun Pataleta 26ffa8e4d3 MDL-61244 core_admin: Fix Behat navigation to purge caches page 2018-07-02 14:56:42 +08:00
Mihail Geshoski c3c42514a1 MDL-62656 course: Align elements in course and category management 2018-07-02 08:25:01 +08:00
Eloy Lafuente (stronk7) aedd74c610 Merge branch 'MDL-61244_master' of https://gitlab.com/marxjohnson/moodle 2018-07-02 01:42:00 +02:00
Tim Hunt 1146659db4 MDL-62838 filters: dont use statics inside functions. Use MUC 2018-06-29 17:24:41 +01:00
Tim Hunt 8aedf6d478 MDL-62834 behat: new step for enabling filters 2018-06-29 11:26:41 +01:00
sam marshall 23f6a88341 MDL-62713 core_search: Cron error indexing sections in some cases 2018-06-29 10:48:16 +01:00
Neill Magill e69ea0ea5d MDL-62823 filter: Save changes button should be styled 2018-06-29 08:40:41 +01:00
Michael Hawkins 3f2ed99d26 MDL-62801 themes: Remove old mustache caches when new one generated 2018-06-29 10:49:21 +08:00
Michael Hawkins 9a3ee0c396 MDL-37624 calendar: string and behat testing fixes 2018-06-29 10:46:57 +08:00
Michael Hawkins ef4e04ee26 MDL-37624 calendar: Added location support 2018-06-29 10:46:54 +08:00
Jun Pataleta 4c72ffa5ef MDL-62211 tool_dataprivacy: Request filtering and pagination
* Make data requests page use table_sql to make it sortable
* Also, add an autocomplete element that enables filtering by
  status and request type.
2018-06-29 10:32:04 +08:00
Michael Hawkins 6924e32e4a MDL-61359 message: Updated sender contact text to text node content 2018-06-29 10:26:07 +08:00
Zig Tan a8f7818beb MDL-62533 assign: Show assign hidden status on grading summary page 2018-06-29 09:37:57 +08:00
Zig Tan bc87f6a2e3 MDL-44081 assign: Fix Grader annotation button accessibility ordering 2018-06-29 09:26:58 +08:00
Luca Bösch 4f2e193eb6 MDL-41463 course: Reset remove groups section advanced toggle. 2018-06-28 23:06:45 +02:00
Luca Bösch 73e571aae1 MDL-32232 lesson: changing a page type chooser option for consistency 2018-06-28 23:06:34 +02:00
Sergio Rabellino adeff60562 MDL-61403 filter: Fix for the nolink tag ignored
Fix for the nolink tag ignored if there are some other attributes defined in the same span
2018-06-28 11:01:26 +02:00
Marina Glancy a589b992f8 MDL-59259 tool_uploadcourse: apply course format options 2018-06-28 16:37:27 +08:00
Simey Lameze 23b05f1841 MDL-62813 calendar: add behat test for form validation 2018-06-28 14:04:46 +08:00
Jake Dallimore f61ee4e857 weekly release 3.6dev 2018-06-28 14:02:55 +08:00
Simey Lameze c20ac98869 MDL-62813 calendar: fix dmlreadexception on event form 2018-06-28 13:22:20 +08:00
Marina Glancy 6e40d1edfe MDL-62526 admin: ask privacy policy agreement for moodle.net 2018-06-28 11:43:48 +08:00
Eloy Lafuente (stronk7) ce514b08ee Merge branch 'MDL-62325-master' of git://github.com/rezaies/moodle 2018-06-28 02:05:50 +02:00
Eloy Lafuente (stronk7) b66476d15d Merge branch 'wip-MDL-62755-master' of git://github.com/abgreeve/moodle 2018-06-28 01:55:53 +02:00
Eloy Lafuente (stronk7) d7a10f5746 Merge branch 'MDL-61889-master' of git://github.com/junpataleta/moodle 2018-06-28 01:44:26 +02:00
Eloy Lafuente (stronk7) 8f63202014 Merge branch 'MDL-62747' of https://github.com/timhunt/moodle 2018-06-28 00:30:38 +02:00
Eloy Lafuente (stronk7) d451152b7e Merge branch 'MDL-62783' of https://github.com/timhunt/moodle 2018-06-28 00:25:33 +02:00
Eloy Lafuente (stronk7) 9d05da3f6d Merge branch 'm36_MDL-51080_MAriaDB_Wrong_DB_Type' of https://github.com/scara/moodle 2018-06-27 23:25:03 +02:00
Jake Dallimore 2bffba3cb6 Merge branch 'MDL-61732-master' of https://github.com/Dagefoerde/moodle 2018-06-27 12:17:48 +08:00
Eloy Lafuente (stronk7) ef0a8b99b2 Merge branch 'MDL-45088-master' of https://github.com/lucaboesch/moodle 2018-06-27 03:21:53 +02:00
Eloy Lafuente (stronk7) 242b8fc0f3 Merge branch 'MDL-62703-master' of git://github.com/bmbrands/moodle 2018-06-27 03:17:31 +02:00
Eloy Lafuente (stronk7) e872f93325 Merge branch 'MDL-41265-master' of git://github.com/mihailges/moodle 2018-06-27 03:06:47 +02:00
Eloy Lafuente (stronk7) d77104e28c Merge branch 'MDL-62471_master' of git://github.com/dmonllao/moodle 2018-06-27 02:38:27 +02:00
Eloy Lafuente (stronk7) 0eac61de66 Merge branch 'MDL-62735-master-refactor' of https://github.com/snake/moodle 2018-06-26 10:44:08 +02:00
Juan Pablo de Castro 6aa8a3b6d0 MDL-14274 lib/evalmath: support of conditional math in formulas.
- Comparison operators >, ==, <, <=, >=
- "if(condition, valueiftrue, valueif false)" function.

(amended to keep non-related lines unmodified - whitespace & indent)
2018-06-26 10:25:44 +02:00
Jake Dallimore decd90e2a3 Merge branch 'MDL-62698' of git://github.com/timhunt/moodle 2018-06-26 15:26:21 +08:00
Juan Segarra Montesinos 77e17113a1 MDL-62288 mod_glossary: Add links to glossary entries for all users 2018-06-26 09:03:10 +02:00
Marina Glancy e2029b8387 MDL-62796 tool_policy: show popup for users who are not logged in 2018-06-26 13:24:44 +08:00
Jun Pataleta dd26f1be12 MDL-61889 tool_dataprivacy: Fix CI errors 2018-06-26 13:20:31 +08:00
Eloy Lafuente (stronk7) 01911b9f1f Merge branch 'MDL-59047-master' of git://github.com/bmbrands/moodle 2018-06-26 03:04:35 +02:00
Eloy Lafuente (stronk7) cb6ba9b1be Merge branch 'MDL-62730-master' of https://github.com/snake/moodle 2018-06-26 02:53:42 +02:00
Eloy Lafuente (stronk7) 8e059bc39f Merge branch 'MDL-51419-master' of https://github.com/snake/moodle 2018-06-26 02:41:43 +02:00
Eva Davitasvili 88c77c8ea3 MDL-60014 assign: Annotate PDF - catch no permission error 2018-06-25 14:11:24 -04:00
Tim Hunt 9f38628abc MDL-62792 filters: fix some bad PHPdocs 2018-06-25 15:50:15 +01:00
Tim Hunt 20482f9d41 MDL-62792 filter_mathjaxloader: don't use statics for once-only items 2018-06-25 15:05:33 +01:00
Shamim Rezaie d6e821294e MDL-62325 enrol_paypal: Added some keys and indexes to enrol_paypal.
- Added these keys to the enrol_paypal db: courseid, userid, instanceid
- Added these indexes to the enrol_paypal db: business, receiver_email
2018-06-25 11:57:26 +10:00
Adrian Greeve 11d828ef6f MDL-62755 mod_assign: Update to unit tests.
Overrides are now checked to be exported properly.
2018-06-25 09:49:13 +08:00
Adrian Greeve ea24047619 MDL-62755 mod_assign: Fix override export problem.
The cutoffdate and allowsubmissionsfromdate were not
being exported.
2018-06-25 09:49:13 +08:00
Mihail Geshoski f721ac68d4 MDL-41265 resource: Page resource option to show/hide last modified 2018-06-25 09:13:04 +08:00
Tim Hunt f4e18a0ae7 MDL-62783 XMLDB: Generate PHP with [] arrays 2018-06-22 13:58:27 +01:00
Tim Hunt bc6687bab3 MDL-62698 quiz_overview: new index should not be unique 2018-06-22 13:32:04 +01:00
Christian Glahn 4e715dd69d MDL-61732 filters: Have emoticons respect nolink
Also extracts static emoticon cache to a field in order to increases
testability of filter_emoticon, because we are now able to reset the
static emoticon cache before tests, particularly for observing the
response to changing $CFG->emoticons.
2018-06-22 10:30:55 +02:00
Jake Dallimore 4d5046b0eb MDL-51419 core_files: Support for utf8 in file names in MS Edge 2018-06-22 10:29:23 +08:00
Jake Dallimore 548c260d82 MDL-62730 themes: Fix calendar icon alignment for datetime in Boost 2018-06-22 10:16:28 +08:00
Jake Dallimore 692e22f9ed MDL-62735 core_search: searchareas page now respects indexing support 2018-06-22 10:14:09 +08:00
Luca Bösch 2846038ed1 MDL-45088 xmldb: Fix table alignment 2018-06-21 19:38:41 +02:00
Eloy Lafuente (stronk7) 6153be6850 weekly release 3.6dev 2018-06-21 14:00:54 +02:00
Tim Hunt db421d4d52 MDL-62769 quiz statistics: graph should show all, not last, variant 2018-06-21 12:55:43 +01:00
Bas Brands 4226e45d16 MDL-61515 Theme boost: add disabled carousel transitions back in 2018-06-21 10:09:47 +02:00
Andrew Nicols de06b63344 MDL-62715 mod_assign: Bump submissions back when grading in tests 2018-06-21 08:40:39 +08:00
Jun Pataleta 2a969f3cd6 Merge branch 'MDL-62017-master' of https://github.com/lucaboesch/moodle 2018-06-20 19:40:39 +08:00
David Monllao 62dc3fde0a Merge branch 'MDL-61482-master' of git://github.com/zig-moodle/moodle 2018-06-20 13:29:17 +02:00
David Monllao 130ab46d37 Merge branch 'MDL-44646-master' of https://github.com/lucaboesch/moodle 2018-06-20 13:07:32 +02:00
David Monllao 88b4c9d260 MDL-62471 tool_dataprivacy: Test compatible with 32 bits OS 2018-06-20 12:48:28 +02:00
cescobedo a282b0f51d MDL-61296 auth_ldap: remove PHP notices when field does not exist. 2018-06-20 11:39:16 +02:00
Luca Bösch 936e9c82b2 MDL-62017 tool_customlang: format language customisation buttons. 2018-06-20 10:53:23 +02:00
Luca Bösch 78f6d02b8c MDL-44646 administration: Users can be filtered by course enrollment 2018-06-20 06:48:59 +02:00
Andrew Nicols e3037af566 Merge branch 'master_MDL-62705_results_order_no_context' of https://github.com/mattporritt/moodle 2018-06-20 08:35:59 +08:00
Andrew Nicols 7febc1e3d8 Merge branch 'wip-MDL-62391-master' of git://github.com/abgreeve/moodle 2018-06-20 08:33:32 +08:00
Eloy Lafuente (stronk7) cb57d12d01 Merge branch 'mdl57404' of https://github.com/egiles/moodle 2018-06-20 01:02:30 +02:00
Eloy Lafuente (stronk7) b7dcb575d2 Merge branch 'MDL-62014-master' of git://github.com/nashtechdev01/moodle 2018-06-20 00:57:21 +02:00
Eloy Lafuente (stronk7) 61a9f8d147 Merge branch 'MDL-36424-master' of https://github.com/lucaboesch/moodle 2018-06-19 19:19:59 +02:00
Eloy Lafuente (stronk7) 77eee742f0 Merge branch 'wip-MDL-61786-master' of git://github.com/abgreeve/moodle 2018-06-19 19:14:43 +02:00
Eloy Lafuente (stronk7) cb461375a8 Merge branch 'MDL-62358-master' of https://github.com/HuongNV13/moodle 2018-06-19 19:05:26 +02:00
Eloy Lafuente (stronk7) 706898c83e Merge branch 'MDL-44791-master' of https://github.com/lucaboesch/moodle 2018-06-19 18:59:41 +02:00
Eloy Lafuente (stronk7) 3a55517a53 Merge branch 'MDL-62449-master' of git://github.com/sarjona/moodle 2018-06-19 18:18:51 +02:00
Tim Hunt a1bc8928cc MDL-62747 accesslib: rdef caching should handle roles with no caps 2018-06-19 16:26:00 +01:00
Zig Tan 8be71d396b MDL-61482 mod_assign: Clean html in offline grading CSV 2018-06-19 23:19:13 +08:00
Bas Brands c8c595e6d0 MDL-62691 Theme boost: editpdf hide dropdown close btn 2018-06-19 16:57:10 +02:00
Bas Brands d7dbf65770 MDL-62703 Themes: remove hover styles in course listings 2018-06-19 16:32:08 +02:00
Bas Brands 7605e3899f MDL-59047 question type: short answer boost styles 2018-06-19 14:32:35 +02:00
David Monllao fa6f911fc5 Merge branch 'MDL-62588-master' of git://github.com/rezaies/moodle 2018-06-19 12:52:15 +02:00
David Monllao c85a3823b8 Merge branch 'MDL-44859-master' of https://github.com/lucaboesch/moodle 2018-06-19 12:06:48 +02:00
Jun Pataleta ec4d05c6b6 Merge branch 'MDL-61894-master' of https://github.com/lucaboesch/moodle 2018-06-19 17:57:31 +08:00
David Monllao fca5c2de05 Merge branch 'MDL-58702-master' of git://github.com/zig-moodle/moodle 2018-06-19 11:53:21 +02:00
Adrian Greeve 373a09a86a MDL-62391 tool_dataprivacy: Added more detail about data requests.
This adds the detail about who requested the data request to the
tables and data request information page.
2018-06-19 14:50:29 +08:00
Huong Nguyen 430241eb4b MDL-62597 Privacy: Request date column should include time 2018-06-19 14:50:00 +08:00
Zig Tan fcb7d2a976 MDL-42818 assign: Add grading UI indicator about followup submission 2018-06-19 14:06:17 +08:00
Andrew Nicols 67196d5080 Merge branch 'MDL-60950-master' of git://github.com/damyon/moodle 2018-06-19 11:36:59 +08:00
Damyon Wiese 994d0da35e MDL-60950 assign: Update incompatible unit test
Maintain compatibility with unit test changes after MDL-55609.
2018-06-19 10:56:53 +08:00
Damyon Wiese c957707106 MDL-60950 assign: Rename class
testable_assign was renamed to mod_assign_testable_assign
2018-06-19 10:53:51 +08:00
Andrew Nicols 68a482e167 Merge branch 'MDL-62283-master' of https://github.com/Kathrin84/moodle 2018-06-19 10:36:37 +08:00
Andrew Nicols 2ffb5ea5e9 Merge branch 'MDL-62519_master' of git://github.com/markn86/moodle 2018-06-19 10:33:52 +08:00
Damyon Wiese 07d237840e MDL-60950 assign: Robust filtering of grading table
For assignments with gradetype set to none, we need special handling when generating the query to filter submissions that need grading.
2018-06-19 10:09:42 +08:00
Damyon Wiese a5ff898f90 MDL-60950 assign: Test for the requires grading filter
This test covers when the requires grading filter is applied, but the
assignment has no grade and the feedbackcomments plugin is disabled.
2018-06-19 10:09:42 +08:00
Andrew Nicols 29532b3758 Merge branch 'MDL-62597-master' of https://github.com/HuongNV13/moodle 2018-06-19 09:42:36 +08:00
Eloy Lafuente (stronk7) f3611eabc8 Merge branch 'MDL-59429-master' of git://github.com/mickhawkins/moodle 2018-06-19 02:06:54 +02:00
Eloy Lafuente (stronk7) 9153d6ea05 Merge branch 'MDL-62638-master' of git://github.com/bmbrands/moodle 2018-06-19 02:03:08 +02:00
Eloy Lafuente (stronk7) eeb0597493 Merge branch 'MDL-62571_master' of git://github.com/markn86/moodle 2018-06-19 01:49:05 +02:00
Sara Arjona 1d76dd714c MDL-62449 scorm: Move related data to data in the privacy export 2018-06-18 10:42:26 +02:00
Sara Arjona cd3ef1fbc4 MDL-62449 scorm: Add SCORM data to privacy export (name, description) 2018-06-18 10:42:26 +02:00
Jun Pataleta 0197ac313c Merge branch 'MDL-62614-master' of git://github.com/zig-moodle/moodle 2018-06-18 16:12:40 +08:00
Jun Pataleta d2b1d001bb Merge branch 'MDL-62709_master' of git://github.com/markn86/moodle 2018-06-18 15:16:18 +08:00
Jun Pataleta 35f5be26ae Merge branch 'MDL-62658_master' of git://github.com/markn86/moodle 2018-06-18 14:36:54 +08:00
Jun Pataleta 4fb6f0b5ce Merge branch 'wip-MDL-62474-master' of git://github.com/abgreeve/moodle 2018-06-18 14:32:42 +08:00
Mark Nelson 4f6cb2ee77 MDL-62658 message_popup: fixed issue with malformed URL being generated 2018-06-18 14:27:54 +08:00
Adrian Greeve f43ed74cb0 MDL-62474 theme_boost: Update to provider and unit test.
Theme boost contains a user preference which was not reported
before. Unit tests have been added to test the update.
2018-06-18 14:03:38 +08:00
Andrew Nicols 3b6811a113 Merge branch 'MDL-62320-master' of git://github.com/vmdef/moodle 2018-06-18 13:47:21 +08:00
Willian Mano dfcbcfc319 MDL-62474 theme_boost: Fix Boost privacy provider 2018-06-18 13:33:41 +08:00
Shamim Rezaie f84df305c0 MDL-62588 enrol_paypal: Add missing instanceid field 2018-06-18 15:14:04 +10:00
Huong Nguyen af2e8ed947 MDL-62614 Privacy: Core tag provider delete_item_tags function not work 2018-06-18 12:59:13 +08:00
Andrew Nicols dcb2cea690 Merge branch 'MDL-62234-master' of git://github.com/bmbrands/moodle 2018-06-18 09:51:18 +08:00
Andrew Nicols b885f0bf60 Merge branch 'MDL-57968-master' of git://github.com/cescobedo/moodle 2018-06-18 08:57:13 +08:00
Evan Giles 53007faad1 MDL-57404 admin_settings: Allow comments in ip block
This adds the ability to to add comments to ip lists in moodle.

Currently, the configiplist textentry box does not allow the user to annotate
the IP addresses defined.  For example, I'd like to be able to define:
 192.168.1.1     # London office
 10.1.1.1        # New york office
 118.209.246.240 # My home IP

This would allow me to revisit this list after a few months, and remove
IP addresses that are no longer required - without having to manually confirm
each IP address
2018-06-16 21:08:46 +10:00
Victor Deniz 046dd892c7 MDL-62320 mimetypes: Add JSON to the default mime types list 2018-06-15 12:54:23 +01:00
Kathrin Osswald c449fbcf72 MDL-62283 theme Boost: No nav drawer pref on small screens 2018-06-15 13:14:28 +02:00
Damyon Wiese 43c8e1f596 MDL-62643 assign: Skip empty online text files
Online text assignment submissions with no text entered into the editor should not
create a blank html document for providing feedback.
2018-06-15 14:07:08 +08:00
HungTran d2d82a9d7d MDL-62014 course: Add title to activity completion button 2018-06-15 10:18:26 +07:00
Michael Hawkins 0be294c005 MDL-59429 roles: Log add/remove admin users. 2018-06-15 10:22:54 +08:00
Zig Tan e689e4d446 MDL-58702 backup: Fix restoration of role mappings labels
Changes:
- Add logic to retrieve all the existing current roles.
- Apply the backup's role shortname by matching on the archetype.
- Added backup lang string 'undefinedrolemapping'.
2018-06-15 09:55:53 +08:00
Matt Porritt 784ed31ea0 MDL-62705 Global Search: results order selection does not display
As of 3.5 a search plugin can define the result orders it supports.
When a search plugin defines multiple sort orders and the search is
conducted without a context (no context query param in the URL),
the code to load the available sort orders from the enabled search
backend is never called.

This patch gets the supported search orders for the enabled search
engine regardless of context being provided or not. As prior, the
search order selection will not display if the only result order
option is relevance.
2018-06-15 11:31:36 +10:00
Matteo Scaramuccia 09ca972877 MDL-51080 env: warn when running MariaDB w/ wrong dbtype 2018-06-14 23:54:35 +02:00
Luca Bösch e6914883ed MDL-61894 tag: Modal buttons style. 2018-06-14 17:34:29 +02:00
Luca Bösch df24fb7172 MDL-44859 grade: Inverse the order of the add category and item buttons 2018-06-14 17:33:41 +02:00
Luca Bösch b1a8a5052c MDL-44791 admin: Open server check doc links in new window. 2018-06-14 17:33:35 +02:00
Ed Basset 1764defb5a MDL-36424 wiki: set group so subwiki tabs/pages display correctly 2018-06-14 17:33:18 +02:00
Mark Johnson e3389c83b2 MDL-61244 caching: Allow granular purging of caches 2018-06-14 15:04:42 +01:00
Huong Nguyen 628b4c86af MDL-62358 Question: Improve number function
Support all 'question numbers' that might be needed
2018-06-14 19:43:55 +07:00
Huong Nguyen cf9b6587c0 MDL-62597 Privacy: Request date column should include time 2018-06-14 19:40:31 +07:00
Eloy Lafuente (stronk7) 9e7c397889 weekly release 3.6dev 2018-06-14 10:55:47 +02:00
Eloy Lafuente (stronk7) 7fb9a2550e Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2018-06-14 10:55:44 +02:00
Mark Nelson cd9ecbd81c MDL-62709 core_message: convert NULL format types in task 2018-06-14 13:18:46 +08:00
David M Penner 8791c50d64 MDL-62709 core_message: fix for silently ignored errors in task 2018-06-14 12:20:42 +08:00
Jun Pataleta 3662898b7c Merge branch 'MDL-60207-master' of git://github.com/andrewnicols/moodle 2018-06-14 10:29:11 +08:00
Andrew Nicols 460dc37184 MDL-60207 modal: Fix close modal behat for clean 2018-06-14 10:19:45 +08:00
Mark Nelson 0c34cc5a93 MDL-31443 core_backup: change review heading to 'Restore settings' 2018-06-13 17:49:38 +02:00
Luca Bösch 2e8491a5be MDL-31443 core_backup: revert changes to util/ui/renderer.php 2018-06-13 17:49:38 +02:00
Bas Brands 1b21702511 MDL-62234 Theme boost: Improve atto dialogue styling 2018-06-13 11:34:41 +02:00
Jun Pataleta 398e912054 Merge branch 'MDL59980_block_bug' of git://github.com/kristian-94/moodle 2018-06-13 10:00:00 +08:00
Andrew Nicols 0e75d337ee Merge branch 'MDL-60207-master' of git://github.com/ryanwyllie/moodle 2018-06-13 09:41:45 +08:00
Andrew Nicols c3f13f534d Merge branch 'MDL-6074-master' of git://github.com/mihailges/moodle 2018-06-13 09:38:55 +08:00
Mihail Geshoski 5226999dd7 MDL-6074 blocks: Hide user in online users block 2018-06-13 09:02:24 +08:00
AMOS bot 33866de211 Automatically generated installer lang files 2018-06-13 00:07:55 +00:00
Kristian Ringer c0bc8d38a5 MDL-59980 core_admin: Fix bug preventing block modification in settings 2018-06-13 09:36:27 +10:00
Eloy Lafuente (stronk7) a9f6dd075a Merge branch 'MDL-62651-master' of git://github.com/andrewnicols/moodle 2018-06-12 18:38:05 +02:00
Eloy Lafuente (stronk7) d0f9d0ef4d Merge branch 'MDL-62446-master' of git://github.com/lameze/moodle 2018-06-12 18:21:40 +02:00
David Monllao 4a47a69519 Merge branch 'MDL-58063-master' of git://github.com/mihailges/moodle 2018-06-12 11:05:37 +02:00
David Monllao bcb4a27dd6 Merge branch 'MDL-55609-master' of git://github.com/andrewnicols/moodle 2018-06-12 10:07:35 +02:00
Mark Nelson 6ffd66f350 MDL-62519 atto_recordrtc: detach click listener when recording again 2018-06-12 14:35:03 +08:00
Jun Pataleta d495276134 Merge branch 'wip-MDL-62574-master' of git://github.com/abgreeve/moodle 2018-06-12 11:57:01 +08:00
Adrian Greeve 666aae9deb MDL-62574 core_privacy: Unit tests to check the context base.
This now tests the possibility of a context being deleted.
2018-06-12 11:24:38 +08:00
Adrian Greeve c84cb13cd4 MDL-62574 core_privacy: Check the contextlist for real contexts.
There are situations when contexts will be deleted in the provider.
The context list is not updated and so we have introduced a try
catch.
2018-06-12 11:24:38 +08:00
Andrew Nicols 7ab9d0aedf Merge branch 'wip_MDL-62576_master' of git://github.com/gjb2048/moodle 2018-06-12 10:25:01 +08:00
Andrew Nicols 01d0c0cb49 Merge branch 'MDL-62628-master' of git://github.com/mihailges/moodle 2018-06-12 09:49:18 +08:00
Andrew Nicols 6f38bb9bdc Merge branch 'MDL-60819-master' of https://github.com/snake/moodle 2018-06-12 08:58:49 +08:00
Eloy Lafuente (stronk7) e692de3e58 Merge branch 'MDL-62649-master' of git://github.com/mihailges/moodle 2018-06-12 01:45:13 +02:00
Eloy Lafuente (stronk7) 3036620e0b Merge branch 'MDL-62460-master' of git://github.com/junpataleta/moodle 2018-06-12 01:41:37 +02:00
Eloy Lafuente (stronk7) 3afd0a2523 Merge branch 'MDL-31443-master' of https://github.com/lucaboesch/moodle 2018-06-12 01:35:19 +02:00
Eloy Lafuente (stronk7) d157f8774e Merge branch 'MDL-62577-m' of https://github.com/micaherne/moodle 2018-06-12 00:07:43 +02:00
Mark Nelson 4626c848c2 MDL-62571 mod_forum: fixed redirection URLs 2018-06-11 18:29:58 +08:00
David Monllao 009ab16689 Merge branch 'MDL-61484-master' of git://github.com/junpataleta/moodle 2018-06-11 10:33:52 +02:00
Jun Pataleta 64818f403d MDL-61484 mod_chat: Add CHAT_SESSION_GAP constant 2018-06-11 15:59:13 +08:00
Jun Pataleta d7b236fa5e MDL-61484 mod_chat: Fix chat_get_sessions logic 2018-06-11 15:59:06 +08:00
Jun Pataleta 70175dbe8f MDL-61484 mod_chat: More unit tests for chat
* For chat_get_sessions()
* Fix externallib test
2018-06-11 15:48:41 +08:00
Leon Stringer 6bdccc7438 MDL-61786 auth: Changed strings for Test Settings to lang strings
The output strings for the Test Settings function were hard-coded English
strings. They've been changed to standard language strings which can be
translated and maintained via AMOS.
2018-06-11 14:14:26 +08:00
Jun Pataleta 15b3d284f3 Merge branch 'MDL-62594-master' of git://github.com/bmbrands/moodle 2018-06-11 13:55:43 +08:00
Jake Dallimore 28c3f6e4d8 MDL-60819 core_files: fix exception thrown from generate_image_thumbnail
This function now requires gdlib.php.
2018-06-11 10:44:51 +08:00
Andrew Nicols 5e12ab5ef2 Merge branch 'MDL-62270-MASTER-Cron-task-fails-on-data-privacy-related-task' of https://github.com/adamtppaw/moodle 2018-06-11 09:32:59 +08:00
Luca Bösch f55b45e473 MDL-31443 backup: Title and cancel messages stating import and restore 2018-06-08 11:35:02 +02:00
Bas Brands dad7b51e5f MDL-62654 Theme Boost: update readme on @supports prefixer issues 2018-06-08 10:14:17 +02:00
Simey Lameze 424441471d MDL-62446 mod_glossary: optimize provider code 2018-06-08 10:25:45 +08:00
Simey Lameze 98d24a4824 MDL-62446 mod_glossary: improve privacy unit tests 2018-06-08 10:04:38 +08:00
Mihail Geshoski 6f48461344 MDL-62628 resource: Folder name formatting issue when displayed inline 2018-06-08 08:35:29 +08:00
Mihail Geshoski 5b97c08412 MDL-58063 blocks: Cannot access manage files in HTML block in clean 2018-06-08 08:25:53 +08:00
Gareth J Barnard 76721ad65b MDL-62576 theme_boost: Course jump to menu not centred 2018-06-07 20:41:39 +01:00
Eloy Lafuente (stronk7) 50e48a8f2d weekly release 3.6dev 2018-06-07 16:59:48 +02:00
Bas Brands ab17aad569 MDL-62638 Theme boost: remove broken css 2018-06-07 16:44:27 +02:00
Bas Brands f2b71ab281 MDL-62594 question type: cloze question theme boost 2018-06-07 13:58:43 +02:00
Eloy Lafuente (stronk7) 3d371e6971 Merge branch 'MDL-17943_master' of git://github.com/markn86/moodle 2018-06-06 20:23:57 +02:00
David Monllao a7fb68f27f Merge branch 'MDL-62273-master' of https://github.com/sammarshallou/moodle 2018-06-06 11:16:41 +02:00
Jun Pataleta 054900f5ed Merge branch 'MDL-61826-master' of git://github.com/junpataleta/moodle 2018-06-06 11:16:38 +02:00
Jun Pataleta 959d5fadc6 Merge branch 'MDL-46513_master' of git://github.com/markn86/moodle 2018-06-06 11:16:34 +02:00
Jun Pataleta 43cc39bbc2 Merge branch 'MDL-62225-master' of https://github.com/lucisgit/moodle 2018-06-06 11:16:31 +02:00
Jun Pataleta d585953dfe Merge branch 'MDL-62586-master' of git://github.com/bmbrands/moodle 2018-06-06 11:16:28 +02:00
Andrew Nicols f32a9acadf Merge branch 'm36_MDL-61702_MariaDB_InnoDB10d3d1_Params_Removed' of https://github.com/scara/moodle 2018-06-06 11:16:25 +02:00
Orzu Ionut 403f553623 MDL-61670 assign: show uploaded files timestamp
Amended to fix commit message. Rename variable to lower.
2018-06-06 11:16:22 +02:00
Eloy Lafuente (stronk7) b1e700747a Merge branch 'MDL-39486-master' of git://github.com/mihailges/moodle 2018-06-06 11:16:19 +02:00
David Monllao 01dc21198f Merge branch 'MDL-46344-master' of https://github.com/lucaboesch/moodle 2018-06-06 11:16:16 +02:00
David Monllao 75ebfbdf99 Merge branch 'MDL-50812-master' of https://github.com/nashtechdev01/moodle 2018-06-06 11:16:13 +02:00
Jun Pataleta ae061649d4 Merge branch 'MDL-62336_master' of git://github.com/markn86/moodle 2018-06-06 11:16:09 +02:00
David Monllao c051057058 Merge branch 'wip-MDL-61694_Check_Password_Callback' of https://github.com/Spudley/moodle 2018-06-06 11:16:06 +02:00
Jun Pataleta 5870677fd4 Merge branch 'MDL-61778-master' of git://github.com/mickhawkins/moodle 2018-06-06 11:16:03 +02:00
Jun Pataleta dce622fba9 Merge branch 'MDL-62605-master' of https://github.com/lucaboesch/moodle 2018-06-06 11:16:00 +02:00
Mark Nelson cf24ef0279 MDL-17943 core: adjusted the 'mustconfirm' string 2018-06-06 13:04:43 +08:00
Mark Nelson e4f7841370 MDL-17943 core: send email when user has forgotten their password
If a user is unconfirmed and attempts to reset their password
they receive the message 'Your registration has not yet been
confirmed!' which means they can never reset their password,
and therefore can not log-in to have their confirmation email
resent.

This patch adjusts the message to mention they should check their
mailbox and attempts to send them the confirmation email.
2018-06-06 13:01:53 +08:00
Mark Nelson 81c1e2036b MDL-17943 core_admin: added 'Resend email' link to user list 2018-06-06 12:47:20 +08:00
Mark Nelson 08c69a1456 MDL-17943 core: added button to resend confirmation email
This button is shown when a user logs in but has not yet
been confirmed.
2018-06-06 12:47:20 +08:00
Jun Pataleta 7766dbed5d MDL-61826 auth: Make Facebook endpoints more maintainable 2018-06-06 12:44:24 +08:00
Łukasz Szeremeta ac45c16544 MDL-61826 auth: Facebook OAuth2 - getting a better-quality profile photo
Get 200x200 px instead of 50x50 px user profile picture from Facebook OAuth2.
2018-06-06 12:09:09 +08:00
Andrew Nicols 31bef9bdc8 MDL-62651 tool_task: Add adhoc CLI runner 2018-06-06 11:48:37 +08:00
Mihail Geshoski 89e78fd094 MDL-62649 course: Course and category management items displayed wrongly 2018-06-06 11:36:44 +08:00
cescobedo 84e03ed859 MDL-57968 core_message: Remove multiple unnecessary AJAX requests
Remove AJAX requests core_message_get_unread_conversations_count and
message_popup_get_unread_popup_notification_count and
render the unread messages and notifications into mustache template.
2018-06-06 01:02:00 +02:00
Luca Bösch 4a42d3decd MDL-62605 core_user: course name filter in unenrol modal. 2018-06-05 07:55:58 +02:00
Eloy Lafuente (stronk7) 2ace1fb16b Merge branch 'fix/MDL-52666' of https://github.com/mikr0/moodle 2018-06-04 17:36:19 +02:00
David Monllao e812df2260 Merge branch 'MDL-62620' of git://github.com/stronk7/moodle 2018-06-04 14:28:15 +02:00
David Monllao 995457b8cf Merge branch 'wip-MDL-37977-master' of git://github.com/marinaglancy/moodle 2018-06-04 14:22:01 +02:00
David Monllao b321d231ff Merge branch 'MDL-42366-master' of https://github.com/lucisgit/moodle 2018-06-04 13:17:07 +02:00
adamtppaw c6363e8c23 MDL-62270 Privacy: Cron task fails when admin directory renamed 2018-06-03 22:12:43 +02:00
Eloy Lafuente (stronk7) 9a89adcb98 MDL-62620 behat: Update master to use 3.36.0 behat extension tag 2018-06-01 12:16:04 +02:00
Luca Bösch d8343b5432 MDL-46344 outputrenderers: Localize 'This page is'. 2018-06-01 11:41:30 +02:00
sam marshall bef86c669c MDL-62273 Profile: Callback allows plugins to control profile access
Adds a new callback, <plugin>_control_view_profile. Plugins may
return core_user::VIEWPROFILE_PREVENT to prevent access,
core_user::VIEWPROFILE_DO_NOT_PREVENT to make no change, or
core_user::VIEWPROFILE_FORCE_ALLOW to allow access even when Moodle
would normally prevent it.

This allows third-party plugins to restrict (or allow) access to
profile pages in response to arbitrary business logic.
2018-06-01 09:59:01 +01:00
Jun Pataleta 9e76aac08e MDL-62460 tool_dataprivacy: Render selected user properly on validation 2018-06-01 16:08:36 +08:00
Marina Glancy dcce35754c MDL-37977 frontpage: Move html from index.php to renderer 2018-06-01 11:32:08 +08:00
Marina Glancy a400dd2d85 MDL-37977 frontpage: renderer method for frontpage section1 2018-06-01 11:32:06 +08:00
Michael Hawkins d0f3b5f083 MDL-61778 message: Renamed online status icon and replaced Boost icon 2018-06-01 10:15:11 +08:00
Andrew Nicols b762445485 MDL-55609 mod_assign: Deprecate base_test 2018-06-01 07:31:50 +08:00
Andrew Nicols a6b8fc7830 MDL-55609 assignfeedback_comments: Remove shared setUp 2018-06-01 07:30:32 +08:00
Andrew Nicols a41bf00517 MDL-55609 mod_assign: Move fixture to folder 2018-06-01 07:30:32 +08:00
Andrew Nicols 757d5b7cdc MDL-55609 mod_assign: Remove shared setUp for all tests 2018-06-01 07:30:32 +08:00
Andrew Nicols e984917db8 MDL-55609 testing: Add a create_and_enrol helper 2018-06-01 07:30:32 +08:00
Matteo Scaramuccia 82c2d98fa2 MDL-61702 dml: MariaDB 10.3 supports only the Barracuda file format.
More details about this change also in https://tracker.moodle.org/browse/MDL-59099

Ref.: https://mariadb.com/kb/en/library/mariadb-1031-release-notes/#other-variables
2018-05-31 22:55:00 +02:00
David Monllao 5b4ca9eb5b weekly release 3.6dev 2018-05-31 08:39:27 +02:00
Tim Hunt a266ae30fa MDL-50812 core_useragent: <body> classes for Chrome and Edge 2018-05-31 09:42:07 +07:00
Tony Butler 8e64242131 MDL-62225 assignfeedback_editpdf: Add alt text for nav button shortcuts 2018-05-30 15:58:18 +01:00
Tony Butler 166ac972c3 MDL-42366 assignfeedback_editpdf: Improve meaningfulness of cursor image
Various improvements to make the cursor image more accurately reflect
the currently selected editing tool or action:
 * Replace crosshair with default cursor for read-only student view
 * Use currently selected stamp image as cursor when using stamp tool
 * Use text cursor for text higlighter tool and improve its accuracy
 * Use default cursor for select tool (as indicated by its button icon)
2018-05-30 14:50:34 +01:00
David Monllao 8cb2821928 Merge branch 'MDL-62532-master' of git://github.com/rezaies/moodle 2018-05-30 10:20:02 +02:00
Andrew Nicols 5a38bc90a8 Merge branch 'MDL-57486-master-fix' of git://github.com/junpataleta/moodle 2018-05-30 13:20:42 +08:00
Jun Pataleta 95c2e43008 MDL-57486 tool_recyclebin: Close the files recordset properly 2018-05-30 13:15:30 +08:00
Andrew Nicols f77bb2834c Merge branch 'MDL-57600-master' of git://github.com/lameze/moodle 2018-05-30 09:16:57 +08:00
Andrew Nicols b3475a6874 MDL-57486 tool_recyclebin: Coding style fix 2018-05-30 08:35:08 +08:00
Andrew Nicols 3d579187e9 Merge branch 'master_MDL-57486' of https://github.com/danmarsden/moodle 2018-05-30 08:31:12 +08:00
David Monllao 4069f62436 MDL-62381 editor_tinymce: Rearrange style modification 2018-05-29 16:36:26 +02:00
David Monllao 060884dfd6 Merge branch 'MDL-62381_master' of https://github.com/Syxton/moodle 2018-05-29 16:34:40 +02:00
Matt Davidson 197e714dfd MDL-62381 editor: Fix tinymce icons
Icon sizing is being overwritten on images.
2018-05-29 09:04:08 -04:00
Jun Pataleta f1b701e6ce Merge branch 'MDL-62544-master' of git://github.com/Dagefoerde/moodle 2018-05-29 16:24:59 +08:00
Bas Brands b1a74e40ff MDL-62586 Themes: use Boostrap media compontent for author display 2018-05-29 09:27:04 +02:00
Dan Marsden 5efcb522b1 MDL-57486 tool_recyclebin: Delete items when context already deleted. 2018-05-29 14:24:50 +12:00
Ryan Wyllie 7e0305be70 MDL-60207 javascript: remove click handler in YUI modal initialiser 2018-05-29 10:05:00 +08:00
Treu Quan 30e1f5a023 MDL-60207 javascript: close modal when user touch/click outside it 2018-05-29 10:04:37 +08:00
Jun Pataleta f9be03432a Merge branch 'MDL-56498-master' of git://github.com/mickhawkins/moodle 2018-05-29 09:37:16 +08:00
David Monllao 77e7c45487 Merge branch 'MDL-62316_oauth_guess_image_fix' of https://github.com/leonstr/moodle 2018-05-28 16:46:30 +02:00
David Monllao c89b495650 Merge branch 'wip-MDL-62584-master' of git://github.com/marinaglancy/moodle 2018-05-28 16:31:00 +02:00
Eloy Lafuente (stronk7) 00977e984e MDL-62478 upgrade: add 3.5.0 separation line to all upgrade scripts 2018-05-28 13:15:48 +02:00
David Monllao d5010fb5e2 MDL-42779 course: Update line jump so it equals 35 2018-05-28 11:46:38 +02:00
David Monllao 4a34457ea7 Merge branch 'MDL-42779-master' of https://github.com/lucaboesch/moodle 2018-05-28 11:42:44 +02:00
Mark Nelson 273e0a822a MDL-62336 media_videojs: ensure videos have unique IDs 2018-05-28 16:43:57 +08:00
David Monllao 1d6dd4388d Merge branch 'MDL-57742_master' of git://github.com/markn86/moodle 2018-05-28 09:13:53 +02:00
Mark Nelson 88e16674b2 MDL-46513 mod_chat: pass has_capability result to fullname function 2018-05-28 15:11:25 +08:00
David Monllao 17ed12eb17 Merge branch 'm35_MDL-59596_DDL_Issues_With_MariaDB_10p2_SQLMode' of https://github.com/scara/moodle 2018-05-28 08:15:09 +02:00
Jun Pataleta 8a930e444b Merge branch 'wip-MDL-62493-master' of git://github.com/marinaglancy/moodle 2018-05-28 13:01:09 +08:00
Mark Nelson 6d32804f8a MDL-57742 core_lib: Updated readme_moodle.txt 2018-05-28 12:55:25 +08:00
David Balch 528060a1a9 MDL-57742 core_lib: Make tool_consumer_instance_guid optional
In the specification, tool_consumer_instance_guid is only listed
as recommended. However, the library was requiring it.

https://www.imsglobal.org/specs/ltiv2p0/implementation-guide#toc-42
2018-05-28 12:47:05 +08:00
Andrew Nicols 87095d1405 Merge branch 'MDL-62515-master' of git://github.com/junpataleta/moodle 2018-05-28 12:27:45 +08:00
Marina Glancy 024ede2c6b MDL-62584 xmlrpc: return correct content-length 2018-05-28 11:14:42 +08:00
Simey Lameze 4834d388da MDL-57600 course: fix typo on courselib test 2018-05-28 09:38:16 +08:00
Alex a91437a3c1 MDL-57600 format: Fix spelling errors 2018-05-28 09:35:35 +08:00
Jun Pataleta 6a7a11a7b3 Merge branch 'MDL-61832-master' of https://github.com/lucaboesch/moodle 2018-05-28 09:21:48 +08:00
Shamim Rezaie 3722c7d697 MDL-62532 core_question: Include standard tags in the tags autocomplete 2018-05-28 10:53:57 +10:00
Andrew Nicols 407f5d053c MDL-62543 mod_forum: Add RSS Unit tests 2018-05-28 08:53:45 +08:00
Andrew Nicols daad84d150 Merge branch 'MDL-62543-master' of git://github.com/tobiasreischmann/moodle 2018-05-28 08:53:41 +08:00
Eloy Lafuente (stronk7) 4a0c770372 Merge branch 'MDL-62408_master' of https://github.com/marxjohnson/moodle 2018-05-28 01:40:07 +02:00
Michael Aherne e99a39624e MDL-62577 unit tests: Quote class name in re-run command. 2018-05-25 16:46:45 +01:00
Marina Glancy 7115c32949 MDL-62493 tool_policy: correct redirection
do not override session->wantsurl
do not redirect guests to user.php, they get an error there
2018-05-25 14:29:40 +08:00
Marina Glancy deaf67147d MDL-62493 tool_policy: allow guests to sign up 2018-05-25 14:29:40 +08:00
Mihail Geshoski 57c888c0fa MDL-39486 lesson: Length of label text too narrow in matching questions 2018-05-25 10:01:25 +08:00
Jan Dageförde df751f0040 MDL-62544 privacy: error notification type 2018-05-24 16:44:17 +02:00
Jan Dageförde 97009b73cf MDL-62544 privacy: Allow data requests on behalf of a user by admin/DPO 2018-05-24 16:43:06 +02:00
Luca Bösch ed38521b1d MDL-61832 lesson: don't hide lesson page editing options 2018-05-24 15:45:30 +02:00
Luca Bösch d29bde5943 MDL-42779 course: Pagination in management page preserves view action 2018-05-24 15:44:35 +02:00
David Monllao 6b2e04676a weekly on-sync release 3.6dev 2018-05-24 10:47:52 +02:00
David Monllao 3399860ee8 NOBUG: Fixed SVG browser compatibility 2018-05-24 10:47:51 +02:00
David Monllao 59cc07ae99 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2018-05-24 10:47:50 +02:00
Tobias Reischmann 82b50d3187 MDL-62543 forum: Switched the usage of the deleted flag for rss
The deleted flag was introduced through the Privacy API and was used
for post selection for the rss feed. In there it was used in the
wrong way, which lead to the exclusion of all non deleted posts instead
of excluding all deleted ones.
This commit fixes this problem.
2018-05-23 14:05:28 +02:00
Simey Lameze 1bcc54ef25 MDL-61189 editor_tinymce: save data before submitting 2018-05-23 10:48:27 +08:00
Jake Dallimore b345895a9d Merge branch 'MDL-61932-master' of git://github.com/junpataleta/moodle 2018-05-23 10:01:08 +08:00
Leon Stringer 02cc1ecd77 MDL-62316 OAuth 2: Only guess image if base URL set.
If you added an OAuth 2 service with no base URL guess_image() would try to
parse this empty value looking for a favicon.ico.  We now check if the base
URL is empty beforehand and skip this if so.
2018-05-22 17:43:05 +01:00
Jun Pataleta d980528873 MDL-61932 mod_glossary: Fetch the correct front page section 1 ID 2018-05-22 17:15:58 +08:00
Jun Pataleta 7e603553d5 Merge branch 'wip-MDL-62239-master' of https://github.com/Beedell/moodle 2018-05-22 10:05:13 +08:00
Andrew Nicols f94aaed80b Merge branch 'MDL-62482' of git://github.com/timhunt/moodle 2018-05-22 09:37:57 +08:00
Andrew Nicols 227d6d68a3 Merge branch 'MDL-62488_master' of https://github.com/marxjohnson/moodle 2018-05-22 09:29:47 +08:00
Andrew Nicols f979e2d418 Merge branch 'MDL-62477' of git://github.com/stronk7/moodle 2018-05-22 09:20:06 +08:00
Jake Dallimore 6ef703d8a6 Merge branch 'MDL-61015-master' of https://github.com/lucaboesch/moodle 2018-05-22 08:14:52 +08:00
Eloy Lafuente (stronk7) 6b47d8066a Merge branch 'MDL-62500-master' of git://github.com/andrewnicols/moodle 2018-05-21 13:37:16 +02:00
John Beedell 2d55b0b736 MDL-62239 QTYPE: iOS 11.3 broke Moodle drag-drop question types 2018-05-21 11:13:09 +01:00
David Monllao a765519a42 Merge branch 'm36_MDL-61893_Accept_Any_Node_Carbon_Version' of https://github.com/scara/moodle 2018-05-21 12:04:44 +02:00
Luca Bösch 398ed46942 MDL-61015 course: consistently display hidden sections
This commit moves the availability info on top.
2018-05-21 11:33:35 +02:00
David Monllao 30f61e4d30 Merge branch 'MDL-62516-master' of git://github.com/andrewnicols/moodle 2018-05-21 11:15:02 +02:00
Jun Pataleta 5c334275df Merge branch 'MDL-62229-master' of git://github.com/jleyva/moodle 2018-05-21 17:04:08 +08:00
Andrew Nicols 94d55c0041 Merge branch 'wip-MDL-62481-master' of git://github.com/marinaglancy/moodle 2018-05-21 15:49:41 +08:00
Jake Dallimore ed00590ad8 Merge branch 'MDL-62440' of git://github.com/timhunt/moodle 2018-05-21 14:55:16 +08:00
Andrew Nicols 630081dd91 MDL-62516 mod_forum: Only delete files for requested user 2018-05-21 14:12:17 +08:00
Jun Pataleta 3f3f914d46 MDL-62515 templates: Remove unnecessary button role for submit button 2018-05-21 09:32:56 +08:00
Andrew Nicols 4396a8f241 Merge branch 'MDL-62386-master' of git://github.com/bmbrands/moodle 2018-05-21 09:10:50 +08:00
AMOS bot 3f2168dcb9 Automatically generated installer lang files 2018-05-21 00:06:14 +00:00
Andrew Nicols 39e14b2325 MDL-62500 tag: Update checkbox label when updating tag 2018-05-20 15:14:50 +08:00
Matteo Scaramuccia 495a5c5a73 MDL-61893 JavaScript: Bumped npm packages
Performed by removing the current 'npm-shrinkwrap.json' file:
$ rm -Rf node_modules
$ rm -f npm-shrinkwrap.json
$ npm install
$ npm shrinkwrap
2018-05-18 00:36:44 +02:00
Matteo Scaramuccia 22d032301b MDL-61893 JavaScript: Accept any node version but Carbon (LTS) 2018-05-18 00:36:43 +02:00
Mark Johnson 3bc65933cf MDL-62488 filebrowser: Stop unit tests assuming number of categories 2018-05-17 16:01:26 +01:00
Tim Hunt 27d625a863 MDL-62482 file_storage: may have many files with same content hash 2018-05-17 11:24:33 +01:00
Tim Hunt 5359c517d0 MDL-62440 participants: out-of-memory is many site-wide role assigns 2018-05-17 10:42:31 +01:00
Jun Pataleta 266eccfde6 MDL-61932 mod_glossary: Display site-level glossaries on section 1
* Glossary activities created on the front page by importing
entries are being added to section 0, but the front page only shows
activities on section 1.
2018-05-17 16:02:36 +08:00
Marina Glancy 08ef342aba MDL-62481 atto_recordrtc: add svg icons 2018-05-17 14:43:43 +08:00
Marina Glancy 3b29978c8e MDL-61015 course: consistently display hidden sections
When section is hidden but the course setting says to show hidden sections display the hidden
sections consistently with how we display the sections with access restriction.

The only difference is that we didn't previously display the summary of the hidden section
in this case, the new logic repeats this behavior
2018-05-17 08:01:24 +02:00
Eloy Lafuente (stronk7) 5798aee926 MDL-62477 backup: Bump release to 3.6 2018-05-17 01:53:43 +02:00
Eloy Lafuente (stronk7) 22744b745b weekly back-to-dev release 3.6dev 2018-05-16 19:03:03 +02:00
Eloy Lafuente (stronk7) cf6825cc43 NOBUG: Change travis.yml back to master 2018-05-16 18:44:30 +02:00
Michael Hawkins 105974cd08 MDL-56498 message: Ensure clicked notifications are marked read 2018-05-16 14:59:06 +08:00
Mark Johnson 104fc7fd0d MDL-62408 behat: Correct PHPUNIT_TEST checks in behat_config_util 2018-05-15 09:09:25 +01:00
Bas Brands 881098f39c MDL-62386 theme: Fix audio playback display for HTML audio
Fixed for boost
Fixed for bootstrapbase
2018-05-11 14:51:04 +02:00
Juan Leyva d808c2202f MDL-62229 tool_mobile: Add missing supported module
The Workshop module it’s been supported since Moodle 3.4 so it
should’ve been included here.
2018-04-26 19:11:43 +02:00
Simon Champion 99405aa7e2 MDL-61694 core: Add callback to allow additional password check.
The standard password validation does some basic strength checks, but
there are a number of other ways to validate a password, such as
checking that it doesn't contain common words. Adding a plugin hook
here allows us to keep up with changes in best practice in this area
as it evolves over time.
2018-04-16 13:40:54 +01:00
Charles YVANES a0db02bf7f MDL-52666 performance: added REQUEST_METHOD in performance_info 2018-04-13 10:25:48 +02:00
Matteo Scaramuccia 1f8d943461 MDL-59596 ddl: Support MariaDB 10.2.4+ SQL_MODE new default value. 2018-03-26 23:12:36 +02:00
Matteo Scaramuccia f6b16e95a8 MDL-59596 ddl: Added has_breaking_change_sqlmode() 2018-03-26 23:12:36 +02:00
3747 changed files with 251547 additions and 53286 deletions
+2
View File
@@ -9,6 +9,8 @@ auth/cas/CAS/
enrol/lti/ims-blti/
filter/algebra/AlgParser.pm
filter/tex/mimetex.*
lib/editor/atto/plugins/html/yui/src/codemirror/
lib/editor/atto/plugins/html/yui/src/beautify/
lib/editor/atto/yui/src/rangy/js/*.*
lib/editor/tinymce/plugins/pdw/tinymce/
lib/editor/tinymce/plugins/spellchecker/rpc.php
+1 -1
View File
@@ -203,7 +203,7 @@
}
},
{
files: ["**/amd/src/*.js"],
files: ["**/amd/src/*.js", "Gruntfile.js"],
// Check AMD with some slightly stricter rules.
rules: {
'no-unused-vars': 'error',
+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
+4
View File
@@ -1,7 +1,9 @@
# Generated by "grunt ignorefiles"
**/yui/build/*
theme/bootstrapbase/style/
theme/clean/style/custom.css
theme/more/style/custom.css
theme/boost/style/moodle.css
node_modules/
vendor/
admin/tool/policy/amd/src/jquery-eu-cookie-law-popup.js
@@ -10,6 +12,8 @@ auth/cas/CAS/
enrol/lti/ims-blti/
filter/algebra/AlgParser.pm
filter/tex/mimetex.*
lib/editor/atto/plugins/html/yui/src/codemirror/
lib/editor/atto/plugins/html/yui/src/beautify/
lib/editor/atto/yui/src/rangy/js/*.*
lib/editor/tinymce/plugins/pdw/tinymce/
lib/editor/tinymce/plugins/spellchecker/rpc.php
+11 -8
View File
@@ -11,6 +11,11 @@ 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
@@ -18,10 +23,6 @@ php:
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:
@@ -56,7 +57,7 @@ matrix:
include:
# 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='8.9'
env: DB=none TASK=GRUNT NVM_VERSION='lts/carbon'
exclude:
# MySQL - it's just too slow.
@@ -76,10 +77,10 @@ install:
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' ];
@@ -207,7 +208,7 @@ before_script:
# We need the official upstream for comparison
git remote add upstream https://github.com/moodle/moodle.git;
git fetch upstream MOODLE_35_STABLE;
git fetch upstream MOODLE_36_STABLE;
export GIT_PREVIOUS_COMMIT="`git merge-base FETCH_HEAD $TRAVIS_COMMIT`";
export GIT_COMMIT="$TRAVIS_COMMIT";
export UPSTREAM_FETCH_HEAD=`git rev-parse FETCH_HEAD`
@@ -263,7 +264,9 @@ script:
grunt ;
# Add all files to the git index and then run diff --cached to see all changes.
# This ensures that we get the status of all files, including new files.
# We ignore npm-shrinkwrap.json to make the tasks immune to npm changes.
git add . ;
git reset -- npm-shrinkwrap.json ;
git diff --cached --exit-code ;
fi
+17 -3
View File
@@ -24,6 +24,7 @@
* Grunt configuration
*/
/* eslint-env node */
module.exports = function(grunt) {
var path = require('path'),
tasks = {},
@@ -37,7 +38,7 @@ module.exports = function(grunt) {
var expected = semver.validRange(grunt.file.readJSON('package.json').engines.node);
var actual = semver.valid(process.version);
if (!semver.satisfies(actual, expected)) {
grunt.fail.fatal('Node version too old. Require ' + expected + ', version installed: ' + actual);
grunt.fail.fatal('Node version not satisfied. Require ' + expected + ', version installed: ' + actual);
}
// Windows users can't run grunt in a subdirectory, so allow them to set
@@ -137,6 +138,16 @@ module.exports = function(grunt) {
}
}
},
sass: {
dist: {
files: {
"theme/boost/style/moodle.css": "theme/boost/scss/preset/default.scss"
}
},
options: {
includePaths: ["theme/boost/scss/"]
}
},
watch: {
options: {
nospawn: true // We need not to spawn so config can be changed dynamically.
@@ -212,9 +223,11 @@ module.exports = function(grunt) {
// Generate .stylelintignore.
var stylelintIgnores = [
'# Generated by "grunt ignorefiles"',
'**/yui/build/*',
'theme/bootstrapbase/style/',
'theme/clean/style/custom.css',
'theme/more/style/custom.css'
'theme/more/style/custom.css',
'theme/boost/style/moodle.css'
].concat(thirdPartyPaths);
grunt.file.write('.stylelintignore', stylelintIgnores.join('\n'));
};
@@ -362,6 +375,7 @@ module.exports = function(grunt) {
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');
@@ -374,7 +388,7 @@ module.exports = function(grunt) {
grunt.registerTask('js', ['amd', 'yui']);
// Register CSS taks.
grunt.registerTask('css', ['stylelint:scss', 'stylelint:less', 'less:bootstrapbase', 'stylelint:css']);
grunt.registerTask('css', ['stylelint:scss', 'sass', 'stylelint:less', 'less:bootstrapbase', 'stylelint:css']);
// Register the startup task.
grunt.registerTask('startup', 'Run the correct tasks for the current directory', tasks.startup);
+75
View File
@@ -0,0 +1,75 @@
<?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/>.
/**
* Form for selective purging of caches.
*
* @package core
* @copyright 2018 The Open University
* @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');
/**
* Form for selecting which caches to purge on admin/purgecaches.php
*
* @package core
* @copyright 2018 The Open University
* @author Mark Johnson <mark.johnson@open.ac.uk>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class purge_caches extends \moodleform {
/**
* Define a "Purge all caches" button, and a fieldset with checkboxes for selectively purging separate caches.
*/
public function definition() {
$mform = $this->_form;
$mform->addElement('hidden', 'returnurl', $this->_customdata['returnurl']);
$mform->setType('returnurl', PARAM_LOCALURL);
$mform->addElement('submit', 'all', get_string('purgecaches', 'admin'));
$mform->addElement('header', 'purgecacheheader', get_string('purgeselectedcaches', 'admin'));
$checkboxes = [
$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', 'filter', '', get_string('purgefiltercache', 'admin')),
$mform->createElement('advcheckbox', 'muc', '', get_string('purgemuc', 'admin')),
$mform->createElement('advcheckbox', 'other', '', get_string('purgeothercaches', 'admin'))
];
$mform->addGroup($checkboxes, 'purgeselectedoptions');
$mform->addElement('submit', 'purgeselectedcaches', get_string('purgeselectedcaches', 'admin'));
}
/**
* If the "Purge selected caches" button was pressed, ensure at least one cache was selected.
*
* @param array $data
* @param array $files
* @return array Error messages
*/
public function validation($data, $files) {
$errors = [];
if (isset($data['purgeselectedcaches']) && empty(array_filter($data['purgeselectedoptions']))) {
$errors['purgeselectedoptions'] = get_string('purgecachesnoneselected', 'admin');
}
return $errors;
}
}
+98 -89
View File
@@ -514,100 +514,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 +620,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 +719,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
}
+27 -6
View File
@@ -28,7 +28,16 @@ define('CLI_SCRIPT', true);
require(__DIR__.'/../../config.php');
require_once($CFG->libdir.'/clilib.php');
list($options, $unrecognized) = cli_get_params(array('help' => false), array('h' => 'help'));
$longoptions = [
'help' => false,
'muc' => false,
'theme' => false,
'lang' => false,
'js' => false,
'filter' => false,
'other' => false
];
list($options, $unrecognized) = cli_get_params($longoptions, ['h' => 'help']);
if ($unrecognized) {
$unrecognized = implode("\n ", $unrecognized);
@@ -36,20 +45,32 @@ if ($unrecognized) {
}
if ($options['help']) {
$help =
"Invalidates all Moodle internal caches
// The indentation of this string is "wrong" but this is to avoid a extra whitespace in console output.
$help = <<<EOF
Invalidates Moodle internal caches
Specific caches can be defined (alone or in combination) using arguments. If none are specified,
all caches will be purged.
Options:
-h, --help Print out this help
--muc Purge all MUC caches (includes lang cache)
--theme Purge theme cache
--lang Purge language string cache
--js Purge JavaScript cache
--filter Purge text filter cache
--other Purge all file caches and other miscellaneous caches (may include MUC
if using cachestore_file).
Example:
\$sudo -u www-data /usr/bin/php admin/cli/purge_caches.php
";
\$ sudo -u www-data /usr/bin/php admin/cli/purge_caches.php
EOF;
echo $help;
exit(0);
}
purge_all_caches();
purge_caches(array_filter($options));
exit(0);
+23 -4
View File
@@ -51,7 +51,8 @@ list($options, $unrecognized) = cli_get_params(
'non-interactive' => false,
'allow-unstable' => false,
'help' => false,
'lang' => $lang
'lang' => $lang,
'verbose-settings' => false
),
array(
'h' => 'help'
@@ -84,6 +85,9 @@ Options:
site language if not set. Defaults to 'en' if the lang
parameter is invalid or if the language pack is not
installed.
--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.
-h, --help Print out this help
Example:
@@ -184,9 +188,24 @@ upgrade_noncore(true);
// log in as admin - we need doanything permission when applying defaults
\core\session\manager::set_user(get_admin());
// apply all default settings, just in case do it twice to fill all defaults
admin_apply_default_settings(NULL, false);
admin_apply_default_settings(NULL, false);
// Apply default settings and output those that have changed.
cli_heading(get_string('cliupgradedefaultheading', 'admin'));
$settingsoutput = admin_apply_default_settings(null, false);
foreach ($settingsoutput as $setting => $value) {
if ($options['verbose-settings']) {
$stringvlaues = array(
'name' => $setting,
'defaultsetting' => var_export($value, true) // Expand objects.
);
echo get_string('cliupgradedefaultverbose', 'admin', $stringvlaues) . PHP_EOL;
} else {
echo get_string('cliupgradedefault', 'admin', $setting) . PHP_EOL;
}
}
// This needs to happen at the end to ensure it occurs after all caches
// have been purged for the last time.
+547
View File
@@ -2097,6 +2097,7 @@
<VENDOR name="oracle" version="10.2" />
</DATABASE>
<PHP version="7.0.0" level="required">
<RESTRICT function="restrict_php_version_73" message="unsupportedphpversion73" />
</PHP>
<PCREUNICODE level="optional">
<FEEDBACK>
@@ -2273,6 +2274,7 @@
<VENDOR name="oracle" version="10.2" />
</DATABASE>
<PHP version="7.0.0" level="required">
<RESTRICT function="restrict_php_version_73" message="unsupportedphpversion73" />
</PHP>
<PCREUNICODE level="optional">
<FEEDBACK>
@@ -2435,4 +2437,549 @@
</CUSTOM_CHECK>
</CUSTOM_CHECKS>
</MOODLE>
<MOODLE version="3.6" requires="3.1">
<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.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>
<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>
</COMPATIBILITY_MATRIX>
-4
View File
@@ -28,10 +28,6 @@ require_once($CFG->libdir . '/adminlib.php');
$action = optional_param('action', '', PARAM_ALPHA);
$filterpath = optional_param('filterpath', '', PARAM_PLUGIN);
require_login();
$systemcontext = context_system::instance();
require_capability('moodle/site:config', $systemcontext);
admin_externalpage_setup('managefilters');
// Clean up bogus filter states first.
+96
View File
@@ -0,0 +1,96 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* This file is used to display a categories sub categories, external pages, and settings.
*
* @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('../config.php');
require_once("{$CFG->libdir}/adminlib.php");
$contextid = required_param('id', PARAM_INT);
$confirm = optional_param('confirm', null, PARAM_INT);
$returnurl = optional_param('returnurl', null, PARAM_LOCALURL);
$PAGE->set_url('/admin/lock.php', ['id' => $contextid]);
list($context, $course, $cm) = get_context_info_array($contextid);
$parentcontext = $context->get_parent_context();
if ($parentcontext && !empty($parentcontext->locked)) {
// Can't make changes to a context whose parent is locked.
throw new \coding_exception('Not sure how you got here');
}
if ($course) {
$isfrontpage = ($course->id == SITEID);
} else {
$isfrontpage = false;
$course = $SITE;
}
require_login($course, false, $cm);
require_capability('moodle/site:managecontextlocks', $context);
$PAGE->set_pagelayout('admin');
$PAGE->navigation->clear_cache();
$a = (object) [
'contextname' => $context->get_context_name(),
];
if (null !== $confirm && confirm_sesskey()) {
$context->set_locked(!empty($confirm));
if ($context->locked) {
$lockmessage = get_string('managecontextlocklocked', 'admin', $a);
} else {
$lockmessage = get_string('managecontextlockunlocked', 'admin', $a);
}
if (empty($returnurl)) {
$returnurl = $context->get_url();
} else {
$returnurl = new moodle_url($returnurl);
}
redirect($returnurl, $lockmessage);
}
$heading = get_string('managecontextlock', 'admin');
$PAGE->set_title($heading);
$PAGE->set_heading($heading);
echo $OUTPUT->header();
if ($context->locked) {
$confirmstring = get_string('confirmcontextunlock', 'admin', $a);
$target = 0;
} else {
$confirmstring = get_string('confirmcontextlock', 'admin', $a);
$target = 1;
}
$confirmurl = new \moodle_url($PAGE->url, ['confirm' => $target]);
if (!empty($returnurl)) {
$confirmurl->param('returnurl', $returnurl);
}
echo $OUTPUT->confirm($confirmstring, $confirmurl, $context->get_url());
echo $OUTPUT->footer();
-3
View File
@@ -28,9 +28,6 @@ require_once($CFG->libdir.'/adminlib.php');
// This is an admin page
admin_externalpage_setup('managemessageoutputs');
// Require site configuration capability
require_capability('moodle/site:config', context_system::instance());
// Get the submitted params
$disable = optional_param('disable', 0, PARAM_INT);
$enable = optional_param('enable', 0, PARAM_INT);
-2
View File
@@ -12,8 +12,6 @@ $page = optional_param('page', 0, PARAM_INT);
$perpage = optional_param('perpage', 30, PARAM_INT);
$action = trim(strtolower(optional_param('action', '', PARAM_ALPHA)));
require_login();
admin_externalpage_setup('ssoaccesscontrol');
if (!extension_loaded('openssl')) {
-2
View File
@@ -34,10 +34,8 @@ $step = optional_param('step', 'verify', PARAM_ALPHA);
$hostid = required_param('hostid', PARAM_INT);
require_login();
$context = context_system::instance();
require_capability('moodle/site:config', $context, $USER->id, true, "nopermissions");
$mnet = get_mnet_environment();
-2
View File
@@ -6,12 +6,10 @@
require_once($CFG->libdir.'/adminlib.php');
include_once($CFG->dirroot.'/mnet/lib.php');
require_login();
admin_externalpage_setup('net');
$context = context_system::instance();
require_capability('moodle/site:config', $context, $USER->id, true, "nopermissions");
$site = get_site();
$mnet = get_mnet_environment();
-4
View File
@@ -32,10 +32,6 @@ require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->dirroot.'/mnet/lib.php');
require_once($CFG->dirroot.'/'.$CFG->admin.'/mnet/peer_forms.php');
require_login();
$context = context_system::instance();
require_capability('moodle/site:config', $context, $USER->id, true, 'nopermissions');
/// Initialize variables.
$hostid = optional_param('hostid', 0, PARAM_INT);
-4
View File
@@ -29,14 +29,10 @@ require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->dirroot . '/' . $CFG->admin .'/mnet/profilefields_form.php');
$mnet = get_mnet_environment();
require_login();
$hostid = required_param('hostid', PARAM_INT);
$mnet_peer = new mnet_peer();
$mnet_peer->set_id($hostid);
$context = context_system::instance();
require_capability('moodle/site:config', $context, $USER->id, true, 'nopermissions');
admin_externalpage_setup('mnetpeers');
$form = new mnet_profile_form(null, array('hostid' => $hostid));
-3
View File
@@ -30,11 +30,8 @@ require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->dirroot . '/' . $CFG->admin . '/mnet/services_form.php');
$mnet = get_mnet_environment();
require_login();
admin_externalpage_setup('mnetpeers');
$context = context_system::instance();
require_capability('moodle/site:config', $context, $USER->id, true, "nopermissions");
$hostid = required_param('hostid', PARAM_INT);
-4
View File
@@ -21,12 +21,8 @@ if ($CFG->mnet_dispatcher_mode === 'off') {
print_error('mnetdisabled', 'mnet');
}
require_login();
admin_externalpage_setup('mnettestclient');
$context = context_system::instance();
require_capability('moodle/site:config', $context);
error_reporting(DEBUG_ALL);
echo $OUTPUT->header();
-4
View File
@@ -5,12 +5,8 @@
require_once($CFG->libdir.'/adminlib.php');
include_once($CFG->dirroot.'/mnet/lib.php');
require_login();
admin_externalpage_setup('trustedhosts');
$context = context_system::instance();
require_capability('moodle/site:config', $context, $USER->id, true, "nopermissions");
if (!extension_loaded('openssl')) {
echo $OUTPUT->header();
+6 -2
View File
@@ -87,9 +87,13 @@
$table->set_attribute('class', 'admintable generaltable');
$table->setup();
foreach ($modules as $module) {
$pluginmanager = core_plugin_manager::instance();
if (!file_exists("$CFG->dirroot/mod/$module->name/lib.php")) {
foreach ($modules as $module) {
$plugininfo = $pluginmanager->get_plugin_info('mod_'.$module->name);
$status = $plugininfo->get_status();
if ($status === core_plugin_manager::PLUGIN_STATUS_MISSING) {
$strmodulename = '<span class="notifyproblem">'.$module->name.' ('.get_string('missingfromdisk').')</span>';
$missing = true;
} else {
-2
View File
@@ -35,8 +35,6 @@ if ($action == 'newon') {
admin_externalpage_setup($pagename);
require_capability('moodle/site:config', context_system::instance());
$baseurl = "$CFG->wwwroot/$CFG->admin/portfolio.php";
$sesskeyurl = "$CFG->wwwroot/$CFG->admin/portfolio.php?sesskey=" . sesskey();
$configstr = get_string('manageportfolios', 'portfolio');
+20 -13
View File
@@ -27,36 +27,43 @@ require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
$confirm = optional_param('confirm', 0, PARAM_BOOL);
$returnurl = optional_param('returnurl', null, PARAM_LOCALURL);
$returnurl = optional_param('returnurl', '/admin/purgecaches.php', PARAM_LOCALURL);
$returnurl = new moodle_url($returnurl);
admin_externalpage_setup('purgecaches');
$form = new core_admin\form\purge_caches(null, ['returnurl' => $returnurl]);
// If we have got here as a confirmed aciton, do it.
if ($confirm && confirm_sesskey()) {
if ($data = $form->get_data()) {
// Valid request. Purge, and redirect the user back to where they came from.
purge_all_caches();
$selected = $data->purgeselectedoptions;
purge_caches($selected);
if ($returnurl) {
$returnurl = $CFG->wwwroot . $returnurl;
if (isset($data->all)) {
$message = get_string('purgecachesfinished', 'admin');
} else {
$returnurl = new moodle_url('/admin/purgecaches.php');
$message = get_string('purgeselectedcachesfinished', 'admin');
}
redirect($returnurl, get_string('purgecachesfinished', 'admin'));
} else if ($confirm && confirm_sesskey()) {
purge_caches();
$message = get_string('purgecachesfinished', 'admin');
}
// Otherwise, show a button to actually purge the caches.
$actionurl = new moodle_url('/admin/purgecaches.php', array('sesskey'=>sesskey(), 'confirm'=>1));
if ($returnurl) {
$actionurl->param('returnurl', $returnurl);
if (isset($message)) {
redirect($returnurl, $message);
}
// Otherwise, show a form to actually purge the caches.
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('purgecaches', 'admin'));
echo $OUTPUT->heading(get_string('purgecachespage', 'admin'));
echo $OUTPUT->box_start('generalbox', 'notice');
echo html_writer::tag('p', get_string('purgecachesconfirm', 'admin'));
echo $OUTPUT->single_button($actionurl, get_string('purgecaches', 'admin'), 'post');
echo $form->render();
echo $OUTPUT->box_end();
echo $OUTPUT->footer();
-1
View File
@@ -31,7 +31,6 @@ require_once($CFG->libdir . '/adminlib.php');
require_once($CFG->libdir . '/tablelib.php');
// Check permissions.
require_login();
$systemcontext = context_system::instance();
require_capability('moodle/question:config', $systemcontext);
$canviewreports = has_capability('report/questioninstances:view', $systemcontext);
+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);
+9 -8
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.
*/
@@ -40,14 +40,15 @@ if ($unregistration && \core\hub\registration::is_registered()) {
if ($siteunregistrationform->is_cancelled()) {
redirect(new moodle_url('/admin/registration/index.php'));
} else if ($data = $siteunregistrationform->get_data()) {
if (\core\hub\registration::unregister($data->unpublishalladvertisedcourses,
$data->unpublishalluploadedcourses)) {
\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');
echo $OUTPUT->heading(get_string('registerwithmoodleorgremove', 'core_hub'), 3, 'main');
$siteunregistrationform->display();
echo $OUTPUT->footer();
exit;
@@ -81,7 +82,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()) {
@@ -103,11 +104,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');
+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);
+29 -7
View File
@@ -823,8 +823,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'));
@@ -1450,9 +1449,11 @@ class core_admin_renderer extends plugin_renderer_base {
$class = 'requires-failed';
$label = html_writer::span(get_string('dependencyfails', 'core_plugin'), 'label label-important');
}
$requires[] = html_writer::tag('li',
html_writer::span(get_string('moodleversion', 'core_plugin', $plugin->versionrequires), 'dep dep-core').
' '.$label, array('class' => $class));
if ($reqinfo->reqver != ANY_VERSION) {
$requires[] = html_writer::tag('li',
html_writer::span(get_string('moodleversion', 'core_plugin', $plugin->versionrequires), 'dep dep-core').
' '.$label, array('class' => $class));
}
} else {
$actions = array();
@@ -1990,7 +1991,7 @@ class core_admin_renderer extends plugin_renderer_base {
if (empty($CFG->docroot) or $environment_result->plugin) {
$report = get_string($stringtouse, 'admin', $rec);
} else {
$report = $this->doc_link(join($linkparts, '/'), get_string($stringtouse, 'admin', $rec));
$report = $this->doc_link(join($linkparts, '/'), get_string($stringtouse, 'admin', $rec), true);
}
// Enclose report text in div so feedback text will be displayed underneath it.
$report = html_writer::div($report);
@@ -2091,6 +2092,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);
}
}
-1
View File
@@ -47,7 +47,6 @@ if ($action == 'newon') {
$visible = false;
}
require_capability('moodle/site:config', context_system::instance());
admin_externalpage_setup($pagename);
$sesskeyurl = $CFG->wwwroot.'/'.$CFG->admin.'/repository.php?sesskey=' . sesskey();
-1
View File
@@ -42,7 +42,6 @@ if ($edit){
}
admin_externalpage_setup($pagename, '', null, new moodle_url('/admin/repositoryinstance.php'));
require_capability('moodle/site:config', $context);
$baseurl = new moodle_url("/$CFG->admin/repositoryinstance.php", array('sesskey'=>sesskey()));
+23
View File
@@ -80,9 +80,16 @@ if (optional_param('add', false, PARAM_BOOL) and confirm_sesskey()) {
}
if (isset($admins[$newmain])) {
$logstringold = implode(', ', $admins);
unset($admins[$newmain]);
array_unshift($admins, $newmain);
$logstringnew = implode(', ', $admins);
set_config('siteadmins', implode(',', $admins));
add_to_config_log('siteadmins', $logstringold, $logstringnew, null);
redirect($PAGE->url);
}
}
@@ -95,8 +102,16 @@ if (optional_param('add', false, PARAM_BOOL) and confirm_sesskey()) {
$admins[$admin] = $admin;
}
}
$logstringold = implode(', ', $admins);
$admins[$confirmadd] = $confirmadd;
$logstringnew = implode(', ', $admins);
set_config('siteadmins', implode(',', $admins));
add_to_config_log('siteadmins', $logstringold, $logstringnew, 'core');
redirect($PAGE->url);
} else if ($confirmdel and confirm_sesskey() and $confirmdel != $USER->id) {
@@ -107,8 +122,16 @@ if (optional_param('add', false, PARAM_BOOL) and confirm_sesskey()) {
$admins[$admin] = $admin;
}
}
$logstringold = implode(', ', $admins);
unset($admins[$confirmdel]);
$logstringnew = implode(', ', $admins);
set_config('siteadmins', implode(',', $admins));
add_to_config_log('siteadmins', $logstringold, $logstringnew, 'core');
redirect($PAGE->url);
}
-1
View File
@@ -46,7 +46,6 @@ $controller = new $classformode[$mode]();
if (optional_param('submit', false, PARAM_BOOL) && data_submitted() && confirm_sesskey()) {
$controller->process_submission();
$syscontext->mark_dirty();
$event = null;
// Create event depending on mode.
switch ($mode) {
@@ -123,9 +123,6 @@ abstract class core_role_capability_table_with_risks extends core_role_capabilit
assign_capability($changedcap, $this->permissions[$changedcap],
$this->roleid, $this->context->id, true);
}
// Force accessinfo refresh for users visiting this context.
$this->context->mark_dirty();
}
public function display() {
+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, $CFG;
global $DB;
if (!$this->roleid) {
// Creating role.
@@ -448,8 +448,7 @@ class core_role_define_role_table_advanced extends core_role_capability_table_wi
// 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
// should not be that frequent, so here is the ugly brutal approach.
require_once($CFG->libdir . '/coursecatlib.php');
coursecat::role_assignment_changed($this->role->id, context_system::instance());
core_course_category::role_assignment_changed($this->role->id, context_system::instance());
}
// Assignable contexts.
@@ -624,7 +623,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);
}
+85 -5
View File
@@ -13,6 +13,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Privacy Subsystem implementation for core_role.
*
@@ -20,7 +21,9 @@
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace core_role\privacy;
defined('MOODLE_INTERNAL') || die();
use \core_privacy\local\metadata\collection;
@@ -28,6 +31,8 @@ use \core_privacy\local\request\contextlist;
use \core_privacy\local\request\approved_contextlist;
use \core_privacy\local\request\transform;
use \core_privacy\local\request\writer;
use \core_privacy\local\request\userlist;
use \core_privacy\local\request\approved_userlist;
/**
* Privacy provider for core_role.
@@ -39,7 +44,8 @@ class provider implements
\core_privacy\local\metadata\provider,
\core_privacy\local\request\subsystem\provider,
\core_privacy\local\request\subsystem\plugin_provider,
\core_privacy\local\request\user_preference_provider {
\core_privacy\local\request\user_preference_provider,
\core_privacy\local\request\core_userlist_provider {
/**
* Get information about the user data stored by this plugin.
@@ -151,6 +157,50 @@ class provider implements
return $contextlist;
}
/**
* Get the list of users within a specific context.
*
* @param userlist $userlist The userlist containing the list of users who have data in this context/plugin combination.
*/
public static function get_users_in_context(userlist $userlist) {
if (empty($userlist)) {
return;
}
$context = $userlist->get_context();
// Include users who created or modified role capabilities.
$sql = "SELECT modifierid as userid
FROM {role_capabilities}
WHERE contextid = :contextid";
$params = [
'contextid' => $context->id
];
$userlist->add_from_sql('userid', $sql, $params);
// Include users that have a role assigned to them.
$sql = "SELECT userid
FROM {role_assignments}
WHERE contextid = :contextid";
$userlist->add_from_sql('userid', $sql, $params);
// Include users who created or modified the role assignment.
// Differentiate and exclude special cases where tool_cohortroles adds records through the
// "Assign user roles to cohort" feature into the role_assignments table.
// These records should be separately processed in tool_cohortroles.
$sql = "SELECT modifierid as userid
FROM {role_assignments}
WHERE contextid = :contextid
AND component != 'tool_cohortroles'";
$userlist->add_from_sql('userid', $sql, $params);
}
/**
* Export all user data for the specified user, in the specified contexts.
*
@@ -315,6 +365,32 @@ class provider implements
// Remove data from role_assignments.
$DB->delete_records('role_assignments', ['contextid' => $context->id]);
}
/**
* Delete multiple users within a single context.
*
* @param approved_userlist $userlist The approved context and user information to delete information for.
*/
public static function delete_data_for_users(approved_userlist $userlist) {
global $DB;
// Don't remove data from role_capabilities.
// Because this data affects the whole Moodle, there are override capabilities.
// Don't belong to the modifier user.
$context = $userlist->get_context();
$userids = $userlist->get_userids();
if (empty($userids)) {
return;
}
list($usersql, $userparams) = $DB->get_in_or_equal($userids, SQL_PARAMS_NAMED);
$params = ['contextid' => $context->id] + $userparams;
// Remove data from role_assignments.
$DB->delete_records_select('role_assignments',
"contextid = :contextid AND userid {$usersql}", $params);
}
/**
* Delete all user data for this user only.
*
@@ -332,10 +408,14 @@ class provider implements
return;
}
$userid = $contextlist->get_user()->id;
foreach ($contextlist->get_contexts() as $context) {
// Only delete the roles assignments where the user is assigned in all contexts.
$DB->delete_records('role_assignments', ['userid' => $userid, 'contextid' => $context->id]);
}
$contextids = $contextlist->get_contextids();
list($contextsql, $contextparams) = $DB->get_in_or_equal($contextids, SQL_PARAMS_NAMED);
$params = ['userid' => $userid] + $contextparams;
// Only delete the roles assignments where the user is assigned in all contexts.
$DB->delete_records_select('role_assignments',
"userid = :userid AND contextid {$contextsql}", $params);
}
/**
* Delete user entries in role_assignments related to the feature
-1
View File
@@ -54,7 +54,6 @@ if ($return === 'manage') {
// Check access permissions.
$systemcontext = context_system::instance();
require_login();
require_capability('moodle/role:manage', $systemcontext);
admin_externalpage_setup('defineroles', '', array('action' => $action, 'roleid' => $roleid), new moodle_url('/admin/roles/define.php'));
+1 -4
View File
@@ -48,7 +48,6 @@ $defineurl = $CFG->wwwroot . '/' . $CFG->admin . '/roles/define.php';
// Check access permissions.
$systemcontext = context_system::instance();
require_login();
require_capability('moodle/role:manage', $systemcontext);
admin_externalpage_setup('defineroles');
@@ -85,12 +84,10 @@ switch ($action) {
die;
}
if (!delete_role($roleid)) {
// The delete failed, but mark the context dirty in case.
$systemcontext->mark_dirty();
// The delete failed.
print_error('cannotdeleterolewithid', 'error', $baseurl, $roleid);
}
// Deleted a role sitewide...
$systemcontext->mark_dirty();
redirect($baseurl);
break;
+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');
+270
View File
@@ -13,6 +13,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Privacy test for core_role
*
@@ -21,13 +22,16 @@
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
use \core_role\privacy\provider;
use \core_privacy\local\request\approved_contextlist;
use \core_privacy\local\request\writer;
use \core_privacy\tests\provider_testcase;
use \core_privacy\local\request\transform;
use \tool_cohortroles\api;
use \core_privacy\local\request\approved_userlist;
/**
* Privacy test for core_role
@@ -54,6 +58,7 @@ class core_role_privacy_testcase extends provider_testcase {
$this->assertEquals(get_string('privacy:metadata:preference:showadvanced', 'core_role'),
$prefs->definerole_showadvanced->description);
}
/**
* Check all contexts are returned if there is any user data for this user.
*/
@@ -231,6 +236,7 @@ class core_role_privacy_testcase extends provider_testcase {
}
}
}
/**
* Test for provider::delete_data_for_all_users_in_context().
*/
@@ -316,6 +322,7 @@ class core_role_privacy_testcase extends provider_testcase {
$count = $DB->count_records('role_assignments', ['contextid' => $usercontext2->id]);
$this->assertEquals(0, $count);
}
/**
* Test for provider::delete_data_for_user().
*/
@@ -373,6 +380,7 @@ class core_role_privacy_testcase extends provider_testcase {
$count = $DB->count_records('role_assignments', ['modifierid' => $user->id]);
$this->assertEquals(2, $count);
}
/**
* Export for a user with a key against a script where no instance is specified.
*/
@@ -426,6 +434,7 @@ class core_role_privacy_testcase extends provider_testcase {
$exported = $writer->get_related_data($subcontextteacher, 'cohortroles');
$this->assertEquals($user2->id, reset($exported)->userid);
}
/**
* Test for provider::delete_user_role_to_cohort().
*/
@@ -460,6 +469,267 @@ class core_role_privacy_testcase extends provider_testcase {
$count = $DB->count_records('role_assignments', ['userid' => $user->id, 'component' => 'tool_cohortroles']);
$this->assertEquals(0, $count);
}
/**
* Test that only users within a course context are fetched.
*/
public function test_get_users_in_context() {
global $DB;
$this->resetAfterTest();
$component = 'core_role';
$this->setAdminUser();
$admin = \core_user::get_user_by_username('admin');
// Create user1.
$user1 = $this->getDataGenerator()->create_user();
$usercontext1 = \context_user::instance($user1->id);
// Create user2.
$user2 = $this->getDataGenerator()->create_user();
$usercontext2 = \context_user::instance($user2->id);
// Create course1.
$course1 = $this->getDataGenerator()->create_course();
$coursecontext1 = \context_course::instance($course1->id);
// Create course category.
$coursecat = $this->getDataGenerator()->create_category();
$coursecatcontext = \context_coursecat::instance($coursecat->id);
// Create chat module.
$cm = $this->getDataGenerator()->create_module('chat', ['course' => $course1->id]);
$cmcontext = \context_module::instance($cm->cmid);
$systemcontext = \context_system::instance();
// Create a block.
$block = $this->getDataGenerator()->create_block('online_users');
$blockcontext = \context_block::instance($block->id);
$studentrole = $DB->get_record('role', array('shortname' => 'student'), '*', MUST_EXIST);
$managerrole = $DB->get_record('role', array('shortname' => 'manager'), '*', MUST_EXIST);
// Role assignments CONTEXT_COURSE.
role_assign($studentrole->id, $user1->id, $coursecontext1->id);
role_assign($studentrole->id, $user2->id, $coursecontext1->id);
// Role assignments CONTEXT_COURSECAT.
role_assign($studentrole->id, $user2->id, $coursecatcontext->id);
// Role assignments CONTEXT_SYSTEM.
role_assign($studentrole->id, $user1->id, $systemcontext->id);
// Role assignments CONTEXT_MODULE.
role_assign($studentrole->id, $user2->id, $cmcontext->id);
// Role assigments CONTEXT_BLOCK.
role_assign($studentrole->id, $user1->id, $blockcontext->id);
// Role assigments CONTEXT_USER.
role_assign($managerrole->id, $user1->id, $usercontext2->id);
// Role capabilities.
$this->setUser($user1);
assign_capability('moodle/backup:backupcourse', CAP_ALLOW, $studentrole->id, $cmcontext->id);
// The user list for usercontext1 should not return any users.
$userlist1 = new \core_privacy\local\request\userlist($usercontext1, $component);
provider::get_users_in_context($userlist1);
$this->assertCount(0, $userlist1);
// The user list for usercontext2 should user1 and admin (role creator).
$userlist2 = new \core_privacy\local\request\userlist($usercontext2, $component);
provider::get_users_in_context($userlist2);
$this->assertCount(2, $userlist2);
$expected = [
$user1->id,
$admin->id
];
$this->assertEquals($expected, $userlist2->get_userids(), '', 0.0, 10, true);
// The user list for coursecontext1 should user1, user2 and admin (role creator).
$userlist3 = new \core_privacy\local\request\userlist($coursecontext1, $component);
provider::get_users_in_context($userlist3);
$this->assertCount(3, $userlist3);
$expected = [
$user1->id,
$user2->id,
$admin->id
];
$this->assertEquals($expected, $userlist3->get_userids(), '', 0.0, 10, true);
// The user list for coursecatcontext should user2 and admin (role creator).
$userlist4 = new \core_privacy\local\request\userlist($coursecatcontext, $component);
provider::get_users_in_context($userlist4);
$this->assertCount(2, $userlist4);
$expected = [
$user2->id,
$admin->id
];
$this->assertEquals($expected, $userlist4->get_userids(), '', 0.0, 10, true);
// The user list for systemcontext should user1 and admin (role creator).
$userlist6 = new \core_privacy\local\request\userlist($systemcontext, $component);
provider::get_users_in_context($userlist6);
$this->assertCount(2, $userlist6);
$expected = [
$user1->id,
$admin->id
];
$this->assertEquals($expected, $userlist6->get_userids(), '', 0.0, 10, true);
// The user list for cmcontext should user1, user2 and admin (role creator).
$userlist7 = new \core_privacy\local\request\userlist($cmcontext, $component);
provider::get_users_in_context($userlist7);
$this->assertCount(3, $userlist7);
$expected = [
$user1->id,
$user2->id,
$admin->id
];
$this->assertEquals($expected, $userlist7->get_userids(), '', 0.0, 10, true);
// The user list for blockcontext should user1 and admin (role creator).
$userlist8 = new \core_privacy\local\request\userlist($blockcontext, $component);
provider::get_users_in_context($userlist8);
$this->assertCount(2, $userlist8);
$expected = [
$user1->id,
$admin->id
];
$this->assertEquals($expected, $userlist8->get_userids(), '', 0.0, 10, true);
}
/**
* Test that data for users in approved userlist is deleted.
*/
public function test_delete_data_for_users() {
global $DB;
$this->resetAfterTest();
$component = 'core_role';
$this->setAdminUser();
$admin = \core_user::get_user_by_username('admin');
// Create user1.
$user1 = $this->getDataGenerator()->create_user();
// Create user2.
$user2 = $this->getDataGenerator()->create_user();
$usercontext2 = \context_user::instance($user2->id);
// Create course1.
$course1 = $this->getDataGenerator()->create_course();
$coursecontext1 = \context_course::instance($course1->id);
// Create course category.
$coursecat = $this->getDataGenerator()->create_category();
$coursecatcontext = \context_coursecat::instance($coursecat->id);
// Create chat module.
$cm = $this->getDataGenerator()->create_module('chat', ['course' => $course1->id]);
$cmcontext = \context_module::instance($cm->cmid);
$systemcontext = \context_system::instance();
// Create a block.
$block = $this->getDataGenerator()->create_block('online_users');
$blockcontext = \context_block::instance($block->id);
$studentrole = $DB->get_record('role', array('shortname' => 'student'), '*', MUST_EXIST);
$managerrole = $DB->get_record('role', array('shortname' => 'manager'), '*', MUST_EXIST);
// Role assignments CONTEXT_COURSE.
role_assign($studentrole->id, $user1->id, $coursecontext1->id);
role_assign($studentrole->id, $user2->id, $coursecontext1->id);
// Role assignments CONTEXT_COURSECAT.
role_assign($studentrole->id, $user2->id, $coursecatcontext->id);
// Role assignments CONTEXT_SYSTEM.
role_assign($studentrole->id, $user1->id, $systemcontext->id);
// Role assignments CONTEXT_MODULE.
role_assign($studentrole->id, $user2->id, $cmcontext->id);
// Role assigments CONTEXT_BLOCK.
role_assign($studentrole->id, $user1->id, $blockcontext->id);
// Role assigments CONTEXT_USER.
role_assign($managerrole->id, $user1->id, $usercontext2->id);
// Role capabilities.
$this->setUser($user1);
assign_capability('moodle/backup:backupcourse', CAP_ALLOW, $studentrole->id, $cmcontext->id);
// The user list for usercontext2 should user1 and admin (role creator).
$userlist1 = new \core_privacy\local\request\userlist($usercontext2, $component);
provider::get_users_in_context($userlist1);
$this->assertCount(2, $userlist1);
// The user list for coursecontext1 should user1, user2 and admin (role creator).
$userlist2 = new \core_privacy\local\request\userlist($coursecontext1, $component);
provider::get_users_in_context($userlist2);
$this->assertCount(3, $userlist2);
// The user list for coursecatcontext should user2 and admin (role creator).
$userlist3 = new \core_privacy\local\request\userlist($coursecatcontext, $component);
provider::get_users_in_context($userlist3);
$this->assertCount(2, $userlist3);
// The user list for systemcontext should user1 and admin (role creator).
$userlist4 = new \core_privacy\local\request\userlist($systemcontext, $component);
provider::get_users_in_context($userlist4);
$this->assertCount(2, $userlist4);
// The user list for cmcontext should user1, user2 and admin (role creator).
$userlist5 = new \core_privacy\local\request\userlist($cmcontext, $component);
provider::get_users_in_context($userlist5);
$this->assertCount(3, $userlist5);
// The user list for blockcontext should user1 and admin (role creator).
$userlist6 = new \core_privacy\local\request\userlist($blockcontext, $component);
provider::get_users_in_context($userlist6);
$this->assertCount(2, $userlist6);
// Convert $userlist1 into an approved_contextlist.
$approvedlist1 = new approved_userlist($usercontext2, $component, $userlist1->get_userids());
// Delete using delete_data_for_user.
provider::delete_data_for_users($approvedlist1);
// Re-fetch users in usercontext2.
$userlist1 = new \core_privacy\local\request\userlist($usercontext2, $component);
provider::get_users_in_context($userlist1);
$this->assertCount(0, $userlist1);
// Convert $userlist2 into an approved_contextlist.
$approvedlist2 = new approved_userlist($coursecontext1, $component, $userlist2->get_userids());
// Delete using delete_data_for_user.
provider::delete_data_for_users($approvedlist2);
// Re-fetch users in coursecontext1.
$userlist2 = new \core_privacy\local\request\userlist($coursecontext1, $component);
provider::get_users_in_context($userlist2);
$this->assertCount(0, $userlist2);
// Convert $userlist3 into an approved_contextlist.
$approvedlist3 = new approved_userlist($coursecatcontext, $component, $userlist3->get_userids());
// Delete using delete_data_for_user.
provider::delete_data_for_users($approvedlist3);
// Re-fetch users in coursecatcontext.
$userlist3 = new \core_privacy\local\request\userlist($coursecatcontext, $component);
provider::get_users_in_context($userlist3);
$this->assertCount(0, $userlist3);
// Convert $userlist4 into an approved_contextlist.
$approvedlist4 = new approved_userlist($systemcontext, $component, $userlist4->get_userids());
// Delete using delete_data_for_user.
provider::delete_data_for_users($approvedlist4);
// Re-fetch users in systemcontext.
$userlist4 = new \core_privacy\local\request\userlist($systemcontext, $component);
provider::get_users_in_context($userlist4);
// The data from role_capabilities should still be present. The user list should return the admin user.
$this->assertCount(1, $userlist4);
$expected = [$admin->id];
$this->assertEquals($expected, $userlist4->get_userids());
// Convert $userlist5 into an approved_contextlist.
$approvedlist5 = new approved_userlist($cmcontext, $component, $userlist5->get_userids());
// Delete using delete_data_for_user.
provider::delete_data_for_users($approvedlist5);
// Re-fetch users in cmcontext.
$userlist5 = new \core_privacy\local\request\userlist($cmcontext, $component);
provider::get_users_in_context($userlist5);
// The data from role_capabilities should still be present. The user list should return user1.
$this->assertCount(1, $userlist5);
$expected = [$user1->id];
$this->assertEquals($expected, $userlist5->get_userids());
// Convert $userlist6 into an approved_contextlist.
$approvedlist6 = new approved_userlist($blockcontext, $component, $userlist6->get_userids());
// Delete using delete_data_for_user.
provider::delete_data_for_users($approvedlist6);
// Re-fetch users in blockcontext.
$userlist6 = new \core_privacy\local\request\userlist($blockcontext, $component);
provider::get_users_in_context($userlist6);
$this->assertCount(0, $userlist6);
}
/**
* Supoort function to get all the localised roles name
* in a simple array for testing.
+111 -84
View File
@@ -28,113 +28,139 @@ admin_externalpage_setup('searchareas');
$areaid = optional_param('areaid', null, PARAM_ALPHAEXT);
$action = optional_param('action', null, PARAM_ALPHA);
$indexingenabled = \core_search\manager::is_indexing_enabled(); // This restricts many of the actions on this page.
// Get a search manager instance, which we'll need for display and to handle some actions.
try {
$searchmanager = \core_search\manager::instance();
} catch (core_search\engine_exception $searchmanagererror) {
// Continue, we return an error later depending on the requested action.
// In action cases, we'll throw this exception below. In non-action cases, we produce a lang string error.
}
// Handle all the actions.
if ($action) {
// If dealing with an areaid, we need to check that the area exists.
if ($areaid) {
// We need to check that the area exists.
$area = \core_search\manager::get_search_area($areaid);
if ($area === false) {
throw new moodle_exception('invalidrequest');
}
}
if ($action !== 'enable' && $action !== 'disable') {
// All actions but enable/disable need the search engine to be ready.
if (!empty($searchmanagererror)) {
throw $searchmanagererror;
}
// All the indexing actions.
if (in_array($action, ['delete', 'indexall', 'reindexall', 'deleteall'])) {
// Show confirm prompt for all these actions as they may be inadvisable, or may cause
// an interruption in search functionality, on production systems.
if (!optional_param('confirm', 0, PARAM_INT)) {
// Display confirmation prompt.
$a = null;
if ($areaid) {
$a = html_writer::tag('strong', $area->get_visible_name());
// All of these actions require that indexing is enabled.
if ($indexingenabled) {
// For all of these actions, we strictly need a manager instance.
if (isset($searchmanagererror)) {
throw $searchmanagererror;
}
$actionparams = ['sesskey' => sesskey(), 'action' => $action, 'confirm' => 1];
if ($areaid) {
$actionparams['areaid'] = $areaid;
}
$actionurl = new moodle_url('/admin/searchareas.php', $actionparams);
$cancelurl = new moodle_url('/admin/searchareas.php');
echo $OUTPUT->header();
echo $OUTPUT->confirm(get_string('confirm_' . $action, 'search', $a),
// Show confirm prompt for all these actions as they may be inadvisable, or may cause
// an interruption in search functionality, on production systems.
if (!optional_param('confirm', 0, PARAM_INT)) {
// Display confirmation prompt.
$a = null;
if ($areaid) {
$a = html_writer::tag('strong', $area->get_visible_name());
}
$actionparams = ['sesskey' => sesskey(), 'action' => $action, 'confirm' => 1];
if ($areaid) {
$actionparams['areaid'] = $areaid;
}
$actionurl = new moodle_url('/admin/searchareas.php', $actionparams);
$cancelurl = new moodle_url('/admin/searchareas.php');
echo $OUTPUT->header();
echo $OUTPUT->confirm(get_string('confirm_' . $action, 'search', $a),
new single_button($actionurl, get_string('continue'), 'post', true),
new single_button($cancelurl, get_string('cancel'), 'get'));
echo $OUTPUT->footer();
exit;
echo $OUTPUT->footer();
exit;
} else {
// Confirmed, so run the required action.
require_sesskey();
switch ($action) {
case 'delete':
$searchmanager->delete_index($areaid);
\core\notification::success(get_string('searchindexdeleted', 'admin'));
break;
case 'indexall':
$searchmanager->index();
\core\notification::success(get_string('searchindexupdated', 'admin'));
break;
case 'reindexall':
$searchmanager->index(true);
\core\notification::success(get_string('searchreindexed', 'admin'));
break;
case 'deleteall':
$searchmanager->delete_index();
\core\notification::success(get_string('searchalldeleted', 'admin'));
break;
default:
break;
}
// Redirect back to the main page after taking action.
redirect(new moodle_url('/admin/searchareas.php'));
}
}
} else if (in_array($action, ['enable', 'disable'])) {
// Toggling search areas requires no confirmation.
require_sesskey();
switch ($action) {
case 'enable':
$area->set_enabled(true);
\core\notification::success(get_string('searchareaenabled', 'admin'));
break;
case 'disable':
$area->set_enabled(false);
core\notification::success(get_string('searchareadisabled', 'admin'));
break;
default:
break;
}
redirect(new moodle_url('/admin/searchareas.php'));
} else {
// Invalid action.
throw new moodle_exception('invalidaction');
}
}
// We are now taking an actual action, so require sesskey.
require_sesskey();
switch ($action) {
case 'enable':
$area->set_enabled(true);
\core\notification::add(get_string('searchareaenabled', 'admin'), \core\output\notification::NOTIFY_SUCCESS);
break;
case 'disable':
$area->set_enabled(false);
\core\notification::add(get_string('searchareadisabled', 'admin'), \core\output\notification::NOTIFY_SUCCESS);
break;
case 'delete':
$search = \core_search\manager::instance();
$search->delete_index($areaid);
\core\notification::add(get_string('searchindexdeleted', 'admin'), \core\output\notification::NOTIFY_SUCCESS);
break;
case 'indexall':
$searchmanager->index();
\core\notification::add(get_string('searchindexupdated', 'admin'), \core\output\notification::NOTIFY_SUCCESS);
break;
case 'reindexall':
$searchmanager->index(true);
\core\notification::add(get_string('searchreindexed', 'admin'), \core\output\notification::NOTIFY_SUCCESS);
break;
case 'deleteall':
$searchmanager->delete_index();
\core\notification::add(get_string('searchalldeleted', 'admin'), \core\output\notification::NOTIFY_SUCCESS);
break;
default:
throw new moodle_exception('invalidaction');
break;
}
// Redirect back to the main page after taking action.
redirect(new moodle_url('/admin/searchareas.php'));
// Display.
if (isset($searchmanager) && $indexingenabled) {
\core\notification::info(get_string('indexinginfo', 'admin'));
} else if (isset($searchmanager)) {
$params = (object) [
'url' => (new moodle_url("/admin/settings.php?section=manageglobalsearch#admin-searchindexwhendisabled"))->out(false)
];
\core\notification::error(get_string('indexwhendisabledfullnotice', 'search', $params));
} else {
// In non-action cases, init errors are translated and displayed to the user as error notifications.
$errorstr = get_string($searchmanagererror->errorcode, $searchmanagererror->module, $searchmanagererror->a);
\core\notification::error($errorstr);
}
echo $OUTPUT->header();
$searchareas = \core_search\manager::get_search_areas_list();
if (empty($searchmanagererror)) {
$areasconfig = $searchmanager->get_areas_config($searchareas);
} else {
$areasconfig = false;
}
if (!empty($searchmanagererror)) {
$errorstr = get_string($searchmanagererror->errorcode, $searchmanagererror->module, $searchmanagererror->a);
echo $OUTPUT->notification($errorstr, \core\output\notification::NOTIFY_ERROR);
} else {
echo $OUTPUT->notification(get_string('indexinginfo', 'admin'), \core\output\notification::NOTIFY_INFO);
}
$table = new html_table();
$table->id = 'core-search-areas';
$table->head = [
get_string('searcharea', 'search'),
get_string('enable'),
get_string('newestdocindexed', 'admin'),
get_string('searchlastrun', 'admin'),
get_string('searchindexactions', 'admin')
];
$table->head = array(get_string('searcharea', 'search'), get_string('enable'), get_string('newestdocindexed', 'admin'),
get_string('searchlastrun', 'admin'), get_string('searchindexactions', 'admin'));
$searchareas = \core_search\manager::get_search_areas_list();
$areasconfig = isset($searchmanager) ? $searchmanager->get_areas_config($searchareas) : false;
foreach ($searchareas as $area) {
$areaid = $area->get_area_id();
$columns = array(new html_table_cell($area->get_visible_name()));
@@ -144,7 +170,7 @@ foreach ($searchareas as $area) {
new pix_icon('t/hide', get_string('disable'), 'moodle', array('title' => '', 'class' => 'iconsmall')),
null, array('title' => get_string('disable')));
if ($areasconfig) {
if ($areasconfig && $indexingenabled) {
$columns[] = $areasconfig[$areaid]->lastindexrun;
if ($areasconfig[$areaid]->indexingstart) {
@@ -173,7 +199,11 @@ foreach ($searchareas as $area) {
$columns[] = html_writer::alist($actions, ['class' => 'unstyled list-unstyled']);
} else {
$blankrow = new html_table_cell(get_string('searchnotavailable', 'admin'));
if (!$areasconfig) {
$blankrow = new html_table_cell(get_string('searchnotavailable', 'admin'));
} else {
$blankrow = new html_table_cell(get_string('indexwhendisabledshortnotice', 'search'));
}
$blankrow->colspan = 3;
$columns[] = $blankrow;
}
@@ -192,10 +222,7 @@ foreach ($searchareas as $area) {
}
// Cross-search area tasks.
$options = array();
if (!empty($searchmanagererror)) {
$options['disabled'] = true;
}
$options = (isset($searchmanager) && $indexingenabled) ? [] : ['disabled' => true];
echo $OUTPUT->box_start('search-areas-actions');
echo $OUTPUT->single_button(admin_searcharea_action_url('indexall'), get_string('searchupdateindex', 'admin'), 'get', $options);
echo $OUTPUT->single_button(admin_searcharea_action_url('reindexall'), get_string('searchreindexindex', 'admin'), 'get', $options);
@@ -204,7 +231,7 @@ echo $OUTPUT->box_end();
echo html_writer::table($table);
if (empty($searchmanagererror)) {
if (isset($searchmanager)) {
// Show information about queued index requests for specific contexts.
$searchrenderer = $PAGE->get_renderer('core_search');
echo $searchrenderer->render_index_requests_info($searchmanager->get_index_requests_info());
+2 -1
View File
@@ -38,7 +38,8 @@ if (!($settingspage->check_access())) {
$statusmsg = '';
$errormsg = '';
if ($data = data_submitted() and confirm_sesskey()) {
// Form is submitted with changed settings. Do not want to execute when modifying a block.
if ($data = data_submitted() and confirm_sesskey() and isset($data->action) and $data->action == 'save-settings') {
$count = admin_write_settings($data);
// Regardless of whether any setting change was written (a positive count), check validation errors for those that didn't.
+2 -2
View File
@@ -37,8 +37,8 @@ if ($hassiteconfig) {
$predictors[$fullclassname] = new lang_string('pluginname', $pluginname);
}
$settings->add(new \core_analytics\admin_setting_predictor('analytics/predictionsprocessor',
new lang_string('predictionsprocessor', 'analytics'), new lang_string('predictionsprocessor_help', 'analytics'),
'\mlbackend_php\processor', $predictors)
new lang_string('defaultpredictionsprocessor', 'analytics'), new lang_string('predictionsprocessor_help', 'analytics'),
\core_analytics\manager::default_mlbackend(), $predictors)
);
// Log store.
+10 -4
View File
@@ -32,9 +32,9 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) { // sp
'customusermenuitems',
new lang_string('customusermenuitems', 'admin'),
new lang_string('configcustomusermenuitems', 'admin'),
'grades,grades|/grade/report/mygrades.php|grades
messages,message|/message/index.php|message
preferences,moodle|/user/preferences.php|preferences',
'grades,grades|/grade/report/mygrades.php|t/grades
messages,message|/message/index.php|t/message
preferences,moodle|/user/preferences.php|t/preferences',
PARAM_RAW,
'50',
'10'
@@ -218,6 +218,9 @@ preferences,moodle|/user/preferences.php|preferences',
// coursecontact is the person responsible for course - usually manages enrolments, receives notification, etc.
$temp = new admin_settingpage('coursecontact', new lang_string('courses'));
$temp->add(new admin_setting_special_coursecontact());
$temp->add(new admin_setting_configcheckbox('coursecontactduplicates',
new lang_string('coursecontactduplicates', 'admin'),
new lang_string('coursecontactduplicates_desc', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('courselistshortnames',
new lang_string('courselistshortnames', 'admin'),
new lang_string('courselistshortnames_desc', 'admin'), 0));
@@ -227,6 +230,10 @@ preferences,moodle|/user/preferences.php|preferences',
new lang_string('configcourseoverviewfileslimit', 'admin'), 1, PARAM_INT));
$temp->add(new admin_setting_configtext('courseoverviewfilesext', new lang_string('courseoverviewfilesext'),
new lang_string('configcourseoverviewfilesext', 'admin'), '.jpg,.gif,.png'));
$temp->add(new admin_setting_configtext('coursegraceperiodbefore', new lang_string('coursegraceperiodbefore', 'admin'),
new lang_string('configcoursegraceperiodbefore', 'admin'), 0, PARAM_INT));
$temp->add(new admin_setting_configtext('coursegraceperiodafter', new lang_string('coursegraceperiodafter', 'admin'),
new lang_string('configcoursegraceperiodafter', 'admin'), 0, PARAM_INT));
$ADMIN->add('appearance', $temp);
$temp = new admin_settingpage('ajax', new lang_string('ajaxuse'));
@@ -252,4 +259,3 @@ preferences,moodle|/user/preferences.php|preferences',
$ADMIN->add('appearance', $temp);
} // end of speedup
+7 -2
View File
@@ -43,6 +43,12 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
array('moodle/category:manage')
)
);
$ADMIN->add('courses',
new admin_externalpage('addnewcourse', new lang_string('addnewcourse'),
new moodle_url('/course/edit.php', array('category' => 0)),
array('moodle/category:manage')
)
);
$ADMIN->add('courses',
new admin_externalpage('restorecourse', new lang_string('restorecourse', 'admin'),
new moodle_url('/backup/restorefile.php', array('contextid' => context_system::instance()->id)),
@@ -149,7 +155,6 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
$ADMIN->add('courses', $temp);
// "courserequests" settingpage.
$temp = new admin_settingpage('courserequest', new lang_string('courserequest'));
$temp->add(new admin_setting_configcheckbox('enablecourserequests', new lang_string('enablecourserequests', 'admin'), new lang_string('configenablecourserequests', 'admin'), 0));
@@ -325,7 +330,7 @@ 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));
+12 -1
View File
@@ -16,6 +16,16 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$temp->add(new admin_setting_configexecutable('pathtosassc', new lang_string('pathtosassc', 'admin'), new lang_string('pathtosassc_help', 'admin'), ''));
$temp->add(new admin_setting_configcheckbox('contextlocking', new lang_string('contextlocking', 'core_admin'),
new lang_string('contextlocking_desc', 'core_admin'), 0));
$temp->add(new admin_setting_configcheckbox(
'contextlockappliestoadmin',
new lang_string('contextlockappliestoadmin', 'core_admin'),
new lang_string('contextlockappliestoadmin_desc', 'core_admin'),
1
));
$temp->add(new admin_setting_configcheckbox('forceclean', new lang_string('forceclean', 'core_admin'),
new lang_string('forceclean_desc', 'core_admin'), 0));
@@ -83,7 +93,8 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$ADMIN->add('development', new admin_externalpage('mnettestclient', new lang_string('testclient', 'mnet'), "$CFG->wwwroot/$CFG->admin/mnet/testclient.php"));
}
$ADMIN->add('development', new admin_externalpage('purgecaches', new lang_string('purgecaches','admin'), "$CFG->wwwroot/$CFG->admin/purgecaches.php"));
$ADMIN->add('development', new admin_externalpage('purgecaches', new lang_string('purgecachespage', 'admin'),
"$CFG->wwwroot/$CFG->admin/purgecaches.php"));
$ADMIN->add('development', new admin_externalpage('thirdpartylibs', new lang_string('thirdpartylibs','admin'), "$CFG->wwwroot/$CFG->admin/thirdpartylibs.php"));
} // end of speedup
+53
View File
@@ -0,0 +1,53 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* This file gives information about Moodle Services
*
* @package core
* @copyright 2018 Amaia Anabitarte <amaia@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
if ($hassiteconfig) {
// Create Moodle Services information.
$moodleservices->add(new admin_setting_heading('moodleservicesintro', '',
new lang_string('moodleservices_help', 'admin')));
// Moodle Partners information.
if (empty($CFG->disableserviceads_partner)) {
$moodleservices->add(new admin_setting_heading('moodlepartners',
new lang_string('moodlepartners', 'admin'),
new lang_string('moodlepartners_help', 'admin')));
}
// Moodle app information.
$moodleservices->add(new admin_setting_heading('moodleapp',
new lang_string('moodleapp', 'admin'),
new lang_string('moodleapp_help', 'admin')));
// Branded Moodle app information.
if (empty($CFG->disableserviceads_branded)) {
$moodleservices->add(new admin_setting_heading('moodlebrandedapp',
new lang_string('moodlebrandedapp', 'admin'),
new lang_string('moodlebrandedapp_help', 'admin')));
}
}
+2 -1
View File
@@ -7,7 +7,8 @@ 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'),
new lang_string('configpathtophp', 'admin'), ''));
$temp->add(new admin_setting_configexecutable('pathtodu', new lang_string('pathtodu', 'admin'), new lang_string('configpathtodu', 'admin'), ''));
$temp->add(new admin_setting_configexecutable('aspellpath', new lang_string('aspellpath', 'admin'), new lang_string('edhelpaspellpath'), ''));
$temp->add(new admin_setting_configexecutable('pathtodot', new lang_string('pathtodot', 'admin'), new lang_string('pathtodot_help', 'admin'), ''));
+27 -3
View File
@@ -15,10 +15,34 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$optionalsubsystems->add(new admin_setting_configcheckbox('messaging', new lang_string('messaging', 'admin'), new lang_string('configmessaging','admin'), 1));
$optionalsubsystems->add(new admin_setting_configcheckbox('messaginghidereadnotifications', new lang_string('messaginghidereadnotifications', 'admin'), new lang_string('configmessaginghidereadnotifications','admin'), 0));
$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));
$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')
);
$optionalsubsystems->add(new admin_setting_configselect(
'messagingdeletereadnotificationsdelay',
new lang_string('messagingdeletereadnotificationsdelay', 'admin'),
new lang_string('configmessagingdeletereadnotificationsdelay', 'admin'),
604800,
$options)
);
$optionalsubsystems->add(new admin_setting_configselect(
'messagingdeleteallnotificationsdelay',
new lang_string('messagingdeleteallnotificationsdelay', 'admin'),
new lang_string('configmessagingdeleteallnotificationsdelay', 'admin'),
2620800,
$options)
);
$optionalsubsystems->add(new admin_setting_configcheckbox('messagingallowemailoverride', new lang_string('messagingallowemailoverride', 'admin'), new lang_string('configmessagingallowemailoverride','admin'), 0));
+5
View File
@@ -15,6 +15,11 @@ $ADMIN->add('root', new admin_externalpage('registrationmoodleorg', new lang_str
// hidden upgrade script
$ADMIN->add('root', new admin_externalpage('upgradesettings', new lang_string('upgradesettings', 'admin'), "$CFG->wwwroot/$CFG->admin/upgradesettings.php", 'moodle/site:config', true));
// Adding Moodle Services information page.
$moodleservices = new admin_settingpage('moodleservices', new lang_string('moodleservices',
'admin'));
$ADMIN->add('root', $moodleservices);
if ($hassiteconfig) {
$optionalsubsystems = new admin_settingpage('optionalsubsystems', new lang_string('advancedfeatures', 'admin'));
$ADMIN->add('root', $optionalsubsystems);
@@ -0,0 +1,45 @@
{{!
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_description
Admin setting description template.
Context variables required for this template:
* labelfor - id of the form element
* title - Setting title
* name - Setting name
Example context (json):
{
"title": "Setting title",
"name": "Name",
"description": "Description goes here"
}
}}
{{!
Setting description.
}}
<div class="form-item form-horizontal clearfix">
<div class="form-label">
<label>
{{{title}}}
</label>
<span class="form-shortname ">{{{name}}}</span>
</div>
<div class="controls felement fstatic">{{{description}}}</div>
</div>
+1
View File
@@ -40,6 +40,7 @@
<div class="settingsform clearfix">
{{#params}}
<input type="hidden" name="{{name}}" value="{{value}}">
<input type="hidden" name="action" value="save-settings">
{{/params}}
<input type="hidden" name="sesskey" value="{{sesskey}}">
<input type="hidden" name="return" value="{{return}}">
@@ -22,7 +22,7 @@
Context variables required for this template:
* actionurl - Url to post to
* hasresults - True if there are results
* results - List of results containing url, title, settings (array of raw html)
* results - List of results containing url, title, path (array of strings), settings (array of raw html)
* showsave - Show save buttons
Example context (json):
@@ -30,7 +30,7 @@
"actionurl": "/",
"hasresults": true,
"results": [
{ "url": "/", "title": "Match!", "settings": [ "blah blah blah" ] }
{ "url": "/", "title": "Match!", "path": ["Administration", "Match!"], "settings": [ "blah blah blah" ] }
]
}
}}
@@ -41,9 +41,15 @@
</div>
<fieldset>
<div class="clearer"></div>
<h2 class="main">{{#str}}searchresults, admin{{/str}}</h2>
{{#hasresults}}
{{#results}}
<h2 class="main">{{#str}}searchresults, admin{{/str}} - <a href="{{url}}">{{{title}}}</a></h2>
<h3 class="adminpagetitle"><a href="{{url}}">{{{title}}}</a></h3>
<ul class="adminpagepath" aria-label="{{#str}} pagepath, core {{/str}}">
{{#path}}
<li>{{.}}</li>
{{/path}}
</ul>
<fieldset class="adminsettings">
{{#settings}}
<div class="clearer"></div>
+5 -29
View File
@@ -48,7 +48,6 @@ 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;
}
@@ -57,17 +56,12 @@ class behat_admin extends behat_base {
// 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_forms::i_am_on_homepage');
}
// 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('searchinsettings', 'admin'), $label]);
$this->execute("behat_general::i_click_on_in_the", [get_string('search', 'admin'), 'button', '.block_settings', 'css_element']);
// 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.
@@ -83,35 +77,17 @@ class behat_admin extends behat_base {
"@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;
}
// 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 "Add a new user" node in "Site administration>Users>Accounts"
| 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 "Add a new user" node in "Site administration>Users>Accounts"
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 |
+17
View File
@@ -65,3 +65,20 @@ 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 not see "User Four"
Scenario: Filter user accounts by enrolled in any course
When I set the following fields to these values:
| id_anycourses | Yes |
And I press "Add filter"
Then I should see "User One"
And I should see "User Two"
And I should 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_anycourses | No |
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"
+1
View File
@@ -9,6 +9,7 @@ Feature: Manage tokens
| username | password | firstname | lastname |
| testuser | testuser | Joe | Bloggs |
| testuser2 | testuser2 | TestFirstname | TestLastname |
And I change window size to "small"
And I log in as "admin"
And I am on site homepage
+34
View File
@@ -0,0 +1,34 @@
@core @core_admin
Feature: Purge caches
In order to see changes to cached data
As a Moodle administrator
I want manually purge different data and file caches
Background:
Given I log in as "admin"
And I navigate to "Development > Purge caches" in site administration
Scenario: Purge all caches
Given I should not see "All caches were purged"
When I press "Purge all caches"
Then I should see "All caches were purged"
Scenario: Purge selected caches
Given I should not see "Selected caches were purged"
When I set the field "Themes" to "1"
And I press "Purge selected caches"
Then I should see "The selected caches were purged"
Scenario: Purge selected caches without selecting any caches
Given I should not see "Select one or more caches to purge"
When I press "Purge selected caches"
Then I should not see "The selected caches were purged"
And I should see "Select one or more caches to purge"
Scenario: Redirect back to the original page after following a Purge all caches link
Given I am on site homepage
And I should see "Available courses"
And I should not see "All caches were purged"
When I follow "Purge all caches"
Then I should see "All caches were purged"
And I should see "Available courses"
@@ -72,6 +72,22 @@ class edit_model extends \moodleform {
$mform->addElement('select', 'timesplitting', get_string('timesplittingmethod', 'analytics'), $timesplittings);
$mform->addHelpButton('timesplitting', 'timesplittingmethod', 'analytics');
$defaultprocessor = \core_analytics\manager::get_predictions_processor_name(
\core_analytics\manager::get_predictions_processor()
);
$predictionprocessors = ['' => get_string('defaultpredictoroption', 'analytics', $defaultprocessor)];
foreach ($this->_customdata['predictionprocessors'] as $classname => $predictionsprocessor) {
if ($predictionsprocessor->is_ready() !== true) {
continue;
}
$optionname = \tool_analytics\output\helper::class_to_option($classname);
$predictionprocessors[$optionname] = \core_analytics\manager::get_predictions_processor_name($predictionsprocessor);
}
$mform->addElement('select', 'predictionsprocessor', get_string('predictionsprocessor', 'analytics'),
$predictionprocessors);
$mform->addHelpButton('predictionsprocessor', 'predictionsprocessor', 'analytics');
$mform->addElement('hidden', 'id', $this->_customdata['id']);
$mform->setType('id', PARAM_INT);
@@ -153,6 +153,12 @@ class invalid_analysables implements \renderable, \templatable {
$data->analysables[] = $obj;
}
if (empty($data->analysables)) {
$data->noanalysables = [
'message' => get_string('noinvalidanalysables', 'tool_analytics'),
'announce' => true,
];
}
return $data;
}
}
@@ -141,7 +141,7 @@ class models_list implements \renderable, \templatable {
if ($contextid == SYSCONTEXTID) {
$contextname = get_string('allpredictions', 'tool_analytics');
} else {
$contextname = shorten_text($context->get_context_name(true, true), 90);
$contextname = shorten_text($context->get_context_name(false, true), 40);
}
$predictioncontexts[$contextid] = $contextname;
}
@@ -247,7 +247,7 @@ class models_list implements \renderable, \templatable {
}
// Clear model.
if (!empty($predictioncontexts)) {
if (!empty($predictioncontexts) || $model->is_trained()) {
$actionid = 'clear-' . $model->get_id();
$PAGE->requires->js_call_amd('tool_analytics/model', 'confirmAction', [$actionid, 'clear']);
$urlparams['action'] = 'clear';
@@ -173,7 +173,8 @@ function tool_analytics_calculate_course_dates($course, $options) {
$formatoptions = $format->get_format_options();
// Change this for a course formats API level call in MDL-60702.
if (method_exists($format, 'update_end_date') && $formatoptions['automaticenddate']) {
if ((get_class($format) == 'format_weeks' || is_subclass_of($format, 'format_weeks')) &&
method_exists($format, 'update_end_date') && $formatoptions['automaticenddate']) {
// Special treatment for weeks-based formats with automatic end date.
if ($options['update']) {
@@ -62,7 +62,7 @@ $string['indicators'] = 'Indicators';
$string['info'] = 'Info';
$string['insights'] = 'Insights';
$string['invalidanalysables'] = 'Invalid site elements';
$string['invalidanalysablesinfo'] = 'This pages lists this site analysable elements that can not be used by this prediction model. The listed elements can not be used neither to train the prediction model nor the prediction model can get predictions for them.';
$string['invalidanalysablesinfo'] = 'This page lists analysable elements that can\'t be used by this prediction model. The listed elements can\'t be used either to train the prediction model nor can the prediction model obtain predictions for them.';
$string['invalidanalysablestable'] = 'Invalid site analysable elements table';
$string['invalidprediction'] = 'Invalid to get predictions';
$string['invalidtraining'] = 'Invalid to train the model';
@@ -75,6 +75,7 @@ $string['nextpage'] = 'Next page';
$string['nodatatoevaluate'] = 'There is no data to evaluate the model';
$string['nodatatopredict'] = 'No new elements to get predictions for';
$string['nodatatotrain'] = 'There is no new data that can be used for training';
$string['noinvalidanalysables'] = 'This site does not contain any invalid analysable element.';
$string['notdefined'] = 'Not yet defined';
$string['pluginname'] = 'Analytic models';
$string['predictionresults'] = 'Prediction results';
+5 -2
View File
@@ -110,7 +110,8 @@ switch ($action) {
'id' => $model->get_id(),
'model' => $model,
'indicators' => $model->get_potential_indicators(),
'timesplittings' => \core_analytics\manager::get_enabled_time_splitting_methods()
'timesplittings' => \core_analytics\manager::get_enabled_time_splitting_methods(),
'predictionprocessors' => \core_analytics\manager::get_all_prediction_processors()
);
$mform = new \tool_analytics\output\form\edit_model(null, $customdata);
@@ -126,7 +127,8 @@ switch ($action) {
$indicators[] = \core_analytics\manager::get_indicator($indicatorclass);
}
$timesplitting = \tool_analytics\output\helper::option_to_class($data->timesplitting);
$model->update($data->enabled, $indicators, $timesplitting);
$predictionsprocessor = \tool_analytics\output\helper::option_to_class($data->predictionsprocessor);
$model->update($data->enabled, $indicators, $timesplitting, $predictionsprocessor);
redirect(new \moodle_url('/admin/tool/analytics/index.php'));
}
@@ -137,6 +139,7 @@ switch ($action) {
$callable = array('\tool_analytics\output\helper', 'class_to_option');
$modelobj->indicators = array_map($callable, json_decode($modelobj->indicators));
$modelobj->timesplitting = \tool_analytics\output\helper::class_to_option($modelobj->timesplitting);
$modelobj->predictionsprocessor = \tool_analytics\output\helper::class_to_option($modelobj->predictionsprocessor);
$mform->set_data($modelobj);
$mform->display();
break;
@@ -48,31 +48,38 @@
<div class="box">
<h3>{{#str}}modelinvalidanalysables, tool_analytics, {{modelname}}{{/str}}</h3>
<div>{{#str}}invalidanalysablesinfo, tool_analytics{{/str}}</div>
<div class="m-t-2 m-b-1">
<span>{{#prev}}{{> core/single_button}}{{/prev}}</span>
<span>{{#next}}{{> core/single_button}}{{/next}}</span>
</div>
<table class="generaltable fullwidth">
<caption class="accesshide">{{#str}}invalidanalysablestable, tool_analytics{{/str}}</caption>
<thead>
<tr>
<th scope="col">{{#str}}name{{/str}}</th>
<th scope="col">{{#str}}invalidtraining, tool_analytics{{/str}}</th>
<th scope="col">{{#str}}invalidprediction, tool_analytics{{/str}}</th>
</tr>
</thead>
<tbody>
{{#analysables}}
<tr>
<td>{{{url}}}</td>
<td>{{validtraining}}</td>
<td>{{validprediction}}</td>
</tr>
{{/analysables}}
</tbody>
</table>
<div class="m-t-1 m-b-2">
<span>{{#prev}}{{> core/single_button}}{{/prev}}</span>
<span>{{#next}}{{> core/single_button}}{{/next}}</span>
</div>
{{#noanalysables}}
<div class="m-t-2 m-b-1">
{{> core/notification_info}}
</div>
{{/noanalysables}}
{{^noanalysables}}
<div class="m-t-2 m-b-1">
<span>{{#prev}}{{> core/single_button}}{{/prev}}</span>
<span>{{#next}}{{> core/single_button}}{{/next}}</span>
</div>
<table class="generaltable fullwidth">
<caption class="accesshide">{{#str}}invalidanalysablestable, tool_analytics{{/str}}</caption>
<thead>
<tr>
<th scope="col">{{#str}}name{{/str}}</th>
<th scope="col">{{#str}}invalidtraining, tool_analytics{{/str}}</th>
<th scope="col">{{#str}}invalidprediction, tool_analytics{{/str}}</th>
</tr>
</thead>
<tbody>
{{#analysables}}
<tr>
<td>{{{url}}}</td>
<td>{{validtraining}}</td>
<td>{{validprediction}}</td>
</tr>
{{/analysables}}
</tbody>
</table>
<div class="m-t-1 m-b-2">
<span>{{#prev}}{{> core/single_button}}{{/prev}}</span>
<span>{{#next}}{{> core/single_button}}{{/next}}</span>
</div>
{{/noanalysables}}
</div>
+2 -2
View File
@@ -24,6 +24,6 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2018051400; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2018050800; // Requires this Moodle version.
$plugin->version = 2018120300; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2018112800; // Requires this Moodle version.
$plugin->component = 'tool_analytics'; // Full name of the plugin (used for diagnostics).
@@ -1,72 +0,0 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Script to show all the assignments that have not been upgraded after the main upgrade.
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define('NO_OUTPUT_BUFFERING', true);
require_once(__DIR__ . '/../../../config.php');
require_once($CFG->libdir . '/adminlib.php');
require_once($CFG->dirroot . '/'.$CFG->admin.'/tool/assignmentupgrade/locallib.php');
require_once($CFG->dirroot . '/'.$CFG->admin.'/tool/assignmentupgrade/upgradableassignmentstable.php');
require_once($CFG->dirroot . '/'.$CFG->admin.'/tool/assignmentupgrade/upgradableassignmentsbatchform.php');
require_sesskey();
// This calls require_login and checks moodle/site:config.
admin_externalpage_setup('assignmentupgrade', '', array(), tool_assignmentupgrade_url('batchupgrade'));
$PAGE->set_pagelayout('maintenance');
$PAGE->navbar->add(get_string('batchupgrade', 'tool_assignmentupgrade'));
$renderer = $PAGE->get_renderer('tool_assignmentupgrade');
$confirm = required_param('confirm', PARAM_BOOL);
if (!$confirm) {
print_error('invalidrequest');
die();
}
raise_memory_limit(MEMORY_EXTRA);
// Release session.
\core\session\manager::write_close();
echo $renderer->header();
echo $renderer->heading(get_string('batchupgrade', 'tool_assignmentupgrade'));
$current = 0;
if (optional_param('upgradeall', false, PARAM_BOOL)) {
$assignmentids = tool_assignmentupgrade_load_all_upgradable_assignmentids();
} else {
$assignmentids = explode(',', optional_param('selected', '', PARAM_TEXT));
}
$total = count($assignmentids);
foreach ($assignmentids as $assignmentid) {
list($summary, $success, $log) = tool_assignmentupgrade_upgrade_assignment($assignmentid);
$current += 1;
$params = array('current'=>$current, 'total'=>$total);
echo $renderer->heading(get_string('upgradeprogress', 'tool_assignmentupgrade', $params), 3);
echo $renderer->convert_assignment_result($summary, $success, $log);
}
echo $renderer->continue_button(tool_assignmentupgrade_url('listnotupgraded'));
echo $renderer->footer();
@@ -1,73 +0,0 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Privacy Subsystem implementation for tool_assignmentupgrade.
*
* @package tool_assignmentupgrade
* @copyright 2018 Zig Tan <zig@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace tool_assignmentupgrade\privacy;
use core_privacy\local\metadata\collection;
use core_privacy\local\request\writer;
defined('MOODLE_INTERNAL') || die();
/**
* Privacy Subsystem for tool_assignmentupgrade implementing metadata, plugin, and user_preference providers.
*
* @copyright 2018 Zig Tan <zig@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class provider implements
\core_privacy\local\metadata\provider,
\core_privacy\local\request\user_preference_provider {
/**
* Returns meta data about this system.
*
* @param collection $collection The initialised collection to add items to.
* @return collection A listing of user data stored through this system.
*/
public static function get_metadata(collection $collection) : collection {
$collection->add_user_preference(
'tool_assignmentupgrade_perpage',
'privacy:metadata:preference:perpage'
);
return $collection;
}
/**
* Export all user preferences for the plugin.
*
* @param int $userid The userid of the user whose data is to be exported.
*/
public static function export_user_preferences(int $userid) {
$perpage = get_user_preferences('tool_assignmentupgrade_perpage', null, $userid);
if ($perpage !== null) {
writer::export_user_preference(
'tool_assignmentupgrade',
'perpage',
$perpage,
get_string('privacy:metadata:preference:perpage', 'tool_assignmentupgrade')
);
}
}
}
-50
View File
@@ -1,50 +0,0 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* This tool can upgrade old assignment activities to the new assignment activity type
*
* The upgrade can be done on any old assignment instance providing it is using one of the core
* assignment subtypes (online text, single upload, etc).
* The new assignment module was introduced in Moodle 2.3 and although it completely reproduces
* the features of the existing assignment type it wasn't designed to replace it entirely as there
* are many custom assignment types people use and it wouldn't be practical to try to convert them.
* Instead the existing assignment type will be left in core and people will be encouraged to
* use the new assignment type.
*
* This screen is the main entry-point to the plugin, it gives the admin a list
* of options available to them.
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot
* @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->dirroot . '/'.$CFG->admin.'/tool/assignmentupgrade/locallib.php');
// This calls require_login and checks moodle/site:config.
admin_externalpage_setup('assignmentupgrade');
$renderer = $PAGE->get_renderer('tool_assignmentupgrade');
$actions = array();
$header = get_string('pluginname', 'tool_assignmentupgrade');
$actions[] = tool_assignmentupgrade_action::make('listnotupgraded');
echo $renderer->index_page($header, $actions);
@@ -1,61 +0,0 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Strings for the assignment upgrade tool
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['areyousure'] = 'Are you sure?';
$string['areyousuremessage'] = 'Are you sure you want to upgrade the assignment "{$a->name}"?';
$string['assignmentid'] = 'Assignment ID';
$string['assignmentnotfound'] = 'Assignment could not be found (id={$a})';
$string['assignmentsperpage'] = 'Assignments per page';
$string['assignmenttype'] = 'Assignment type';
$string['backtoindex'] = 'Back to index';
$string['batchoperations'] = 'Batch operations';
$string['batchupgrade'] = 'Upgrade multiple assignments';
$string['confirmbatchupgrade'] = 'Confirm batch upgrade assignments';
$string['conversioncomplete'] = 'Assignment converted';
$string['conversionfailed'] = 'The assignment conversion was not successful. The log from the upgrade was: <br />{$a}';
$string['listnotupgraded'] = 'List assignments that have not been upgraded';
$string['listnotupgraded_desc'] = 'You can upgrade individual assignments from here';
$string['noassignmentsselected'] = 'No assignments selected';
$string['noassignmentstoupgrade'] = 'There are no assignments that require upgrading';
$string['notsupported'] = '';
$string['notupgradedintro'] = 'This page lists the assignments created with an older version of Moodle that have not been upgraded to the new assignment module in Moodle 2.3. Not all assignments can be upgraded - if they were created with a custom assignment subtype, then that subtype will need to be upgraded to the new assignment plugin format in order to complete the upgrade.';
$string['notupgradedtitle'] = 'Assignments not upgraded';
$string['pluginname'] = 'Assignment upgrade helper';
$string['select'] = 'Select';
$string['submissions'] = 'Submissions';
$string['supported'] = 'Upgrade';
$string['updatetable'] = 'Update table';
$string['unknown'] = 'Unknown';
$string['upgradeassignmentsummary'] = 'Upgrade assignment: {$a->name} (Course: {$a->shortname})';
$string['upgradeassignmentsuccess'] = 'Result: Upgrade successful';
$string['upgradeassignmentfailed'] = 'Result: Upgrade failed. The log from the upgrade was: <br/><div class="tool_assignmentupgrade_upgradelog">{$a->log}</div>';
$string['upgradable'] = 'Upgradable';
$string['upgradeselected'] = 'Upgrade selected assignments';
$string['upgradeselectedcount'] = 'Upgrade {$a} selected assignments?';
$string['upgradeall'] = 'Upgrade all assignments';
$string['upgradeallconfirm'] = 'Upgrade all assignments?';
$string['upgradeprogress'] = 'Upgrade assignment {$a->current} of {$a->total}';
$string['upgradesingle'] = 'Upgrade single assignment';
$string['viewcourse'] = 'View the course with the converted assignment';
$string['privacy:metadata:preference:perpage'] = 'The assignment upgrade records per page preference set for the user.';
@@ -1,59 +0,0 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Script to show all the assignments that have not been upgraded after the main upgrade.
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot
* @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->dirroot . '/'.$CFG->admin.'/tool/assignmentupgrade/locallib.php');
require_once($CFG->dirroot . '/'.$CFG->admin.'/tool/assignmentupgrade/upgradableassignmentstable.php');
require_once($CFG->dirroot . '/'.$CFG->admin.'/tool/assignmentupgrade/upgradableassignmentsbatchform.php');
require_once($CFG->dirroot . '/'.$CFG->admin.'/tool/assignmentupgrade/paginationform.php');
// This calls require_login and checks moodle/site:config.
admin_externalpage_setup('assignmentupgrade', '', array(), tool_assignmentupgrade_url('listnotupgraded'));
$PAGE->navbar->add(get_string('listnotupgraded', 'tool_assignmentupgrade'));
$renderer = $PAGE->get_renderer('tool_assignmentupgrade');
$perpage = optional_param('perpage', 0, PARAM_INT);
if (!$perpage) {
$perpage = get_user_preferences('tool_assignmentupgrade_perpage', 100);
} else {
set_user_preference('tool_assignmentupgrade_perpage', $perpage);
}
$assignments = new tool_assignmentupgrade_assignments_table($perpage);
$batchform = new tool_assignmentupgrade_batchoperations_form();
$data = $batchform->get_data();
if ($data && $data->selectedassignments != '' || $data && isset($data->upgradeall)) {
require_sesskey();
echo $renderer->confirm_batch_operation_page($data);
} else {
$paginationform = new tool_assignmentupgrade_pagination_form();
$pagedata = new stdClass();
$pagedata->perpage = $perpage;
$paginationform->set_data($pagedata);
echo $renderer->assignment_list_page($assignments, $batchform, $paginationform);
}
-234
View File
@@ -1,234 +0,0 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Assignment upgrade tool library functions
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
/**
* Get the URL of a script within this plugin.
* @param string $script the script name, without .php. E.g. 'index'
* @param array $params URL parameters (optional)
* @return moodle_url
*/
function tool_assignmentupgrade_url($script, $params = array()) {
return new moodle_url('/admin/tool/assignmentupgrade/' . $script . '.php', $params);
}
/**
* Class to encapsulate the continue / cancel for batch operations
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class tool_assignmentupgrade_batchoperationconfirm implements renderable {
/** @var string $continuemessage The message to show above the continue cancel buttons */
public $continuemessage = '';
/** @var string $continueurl The url to load if the user clicks continue */
public $continueurl;
/**
* Constructor for this class
* @param stdClass $data - The data from the previous batch form
*/
public function __construct($data) {
if (isset($data->upgradeselected)) {
$this->continuemessage = get_string('upgradeselectedcount',
'tool_assignmentupgrade',
count(explode(',', $data->selectedassignments)));
$urlparams = array('upgradeselected'=>'1',
'confirm'=>'1',
'sesskey'=>sesskey(),
'selected'=>$data->selectedassignments);
$this->continueurl = new moodle_url('/admin/tool/assignmentupgrade/batchupgrade.php', $urlparams);
} else if (isset($data->upgradeall)) {
if (!tool_assignmentupgrade_any_upgradable_assignments()) {
$this->continuemessage = get_string('noassignmentstoupgrade', 'tool_assignmentupgrade');
$this->continueurl = '';
} else {
$this->continuemessage = get_string('upgradeallconfirm', 'tool_assignmentupgrade');
$urlparams = array('upgradeall'=>'1', 'confirm'=>'1', 'sesskey'=>sesskey());
$this->continueurl = new moodle_url('/admin/tool/assignmentupgrade/batchupgrade.php', $urlparams);
}
}
}
}
/**
* Class to encapsulate one of the functionalities that this plugin offers.
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class tool_assignmentupgrade_action {
/** @var string the name of this action. */
public $name;
/** @var moodle_url the URL to launch this action. */
public $url;
/** @var string a description of this aciton. */
public $description;
/**
* Constructor to set the fields.
*
* In order to create a new tool_assignmentupgrade_action instance you must use
* the tool_assignmentupgrade_action::make
* method.
*
* @param string $name the name of this action.
* @param moodle_url $url the URL to launch this action.
* @param string $description a description of this aciton.
*/
protected function __construct($name, moodle_url $url, $description) {
$this->name = $name;
$this->url = $url;
$this->description = $description;
}
/**
* Make an action with standard values.
* @param string $shortname internal name of the action. Used to get strings and build a URL.
* @param array $params any URL params required.
* @return tool_assignmentupgrade_action
*/
public static function make($shortname, $params = array()) {
return new self(
get_string($shortname, 'tool_assignmentupgrade'),
tool_assignmentupgrade_url($shortname, $params),
get_string($shortname . '_desc', 'tool_assignmentupgrade'));
}
}
/**
* Determine if there are any assignments that can be upgraded
* @return boolean - Are there any assignments that can be upgraded
*/
function tool_assignmentupgrade_any_upgradable_assignments() {
global $DB, $CFG;
require_once($CFG->dirroot . '/mod/assign/locallib.php');
// First find all the unique assignment types.
$types = $DB->get_records_sql('SELECT plugin AS assignmenttype,
value AS version
FROM {config_plugins}
WHERE
name = ? AND
plugin LIKE ?', array('version', 'assignment_%'));
$upgradabletypes = array();
foreach ($types as $assignment) {
$shorttype = substr($assignment->assignmenttype, strlen('assignment_'));
if (assign::can_upgrade_assignment($shorttype, $assignment->version)) {
$upgradabletypes[] = $shorttype;
}
}
list($sql, $params) = $DB->get_in_or_equal($upgradabletypes);
$count = $DB->count_records_sql('SELECT COUNT(id) FROM {assignment} WHERE assignmenttype ' . $sql, $params);
return $count > 0;
}
/**
* Load a list of all the assignmentids that can be upgraded
* @return array of assignment ids
*/
function tool_assignmentupgrade_load_all_upgradable_assignmentids() {
global $DB, $CFG;
require_once($CFG->dirroot . '/mod/assign/locallib.php');
// First find all the unique assignment types.
$types = $DB->get_records_sql('SELECT
plugin AS assignmenttype,
value AS version
FROM {config_plugins}
WHERE
name = ? AND
plugin LIKE ?', array('version', 'assignment_%'));
$upgradabletypes = array();
foreach ($types as $assignment) {
$shorttype = substr($assignment->assignmenttype, strlen('assignment_'));
if (assign::can_upgrade_assignment($shorttype, $assignment->version)) {
$upgradabletypes[] = $shorttype;
}
}
list($sql, $params) = $DB->get_in_or_equal($upgradabletypes);
$records = $DB->get_records_sql('SELECT id from {assignment} where assignmenttype ' . $sql, $params);
$ids = array();
foreach ($records as $record) {
$ids[] = $record->id;
}
return $ids;
}
/**
* Upgrade a single assignment. This is used by both upgrade single and upgrade batch
*
* @param int $assignmentid - The assignment id to upgrade
* @return array(string, boolean, string) -
* The array contains
* - the assignment summary (returned by tool_assignmentupgrade_get_assignment)
* - success
* - the upgrade log
*/
function tool_assignmentupgrade_upgrade_assignment($assignmentid) {
global $CFG;
require_once($CFG->dirroot . '/mod/assign/upgradelib.php');
$assignment_upgrader = new assign_upgrade_manager();
$info = tool_assignmentupgrade_get_assignment($assignmentid);
if ($info) {
$log = '';
$success = $assignment_upgrader->upgrade_assignment($assignmentid, $log);
} else {
$success = false;
$log = get_string('assignmentnotfound', 'tool_assignmentupgrade', $assignmentid);
$info = new stdClass();
$info->name = get_string('unknown', 'tool_assignmentupgrade');
$info->shortname = get_string('unknown', 'tool_assignmentupgrade');
}
return array($info, $success, $log);
}
/**
* Get the information about a assignment to be upgraded.
* @param int $assignmentid the assignment id.
* @return stdClass the information about that assignment.
*/
function tool_assignmentupgrade_get_assignment($assignmentid) {
global $DB;
return $DB->get_record_sql("
SELECT a.id, a.name, c.shortname, c.id AS courseid
FROM {assignment} a
JOIN {course} c ON c.id = a.course
WHERE a.id = ?", array($assignmentid));
}
-70
View File
@@ -1,70 +0,0 @@
M.tool_assignmentupgrade = {
init_upgrade_table: function(Y) {
Y.use('node', function(Y) {
checkboxes = Y.all('td.c0 input');
checkboxes.each(function(node) {
node.on('change', function(e) {
rowelement = e.currentTarget.get('parentNode').get('parentNode');
if (e.currentTarget.get('checked')) {
rowelement.setAttribute('class', 'selectedrow');
} else {
rowelement.setAttribute('class', 'unselectedrow');
}
});
rowelement = node.get('parentNode').get('parentNode');
if (node.get('checked')) {
rowelement.setAttribute('class', 'selectedrow');
} else {
rowelement.setAttribute('class', 'unselectedrow');
}
});
});
var selectall = Y.one('th.c0 input');
selectall.on('change', function(e) {
if (e.currentTarget.get('checked')) {
checkboxes = Y.all('td.c0 input');
checkboxes.each(function(node) {
rowelement = node.get('parentNode').get('parentNode');
node.set('checked', true);
rowelement.setAttribute('class', 'selectedrow');
});
} else {
checkboxes = Y.all('td.c0 input');
checkboxes.each(function(node) {
rowelement = node.get('parentNode').get('parentNode');
node.set('checked', false);
rowelement.setAttribute('class', 'unselectedrow');
});
}
});
var upgradeselectedbutton = Y.one('#id_upgradeselected');
upgradeselectedbutton.on('click', function(e) {
checkboxes = Y.all('td.c0 input');
var selectedassignments = [];
checkboxes.each(function(node) {
if (node.get('checked')) {
selectedassignments[selectedassignments.length] = node.get('value');
}
});
operation = Y.one('#id_operation');
assignmentsinput = Y.one('input.selectedassignments');
assignmentsinput.set('value', selectedassignments.join(','));
if (selectedassignments.length == 0) {
alert(M.util.get_string('noassignmentsselected', 'tool_assignmentupgrade'));
e.preventDefault();
}
});
var perpage = Y.one('#id_perpage');
perpage.on('change', function(e) {
window.onbeforeunload = null;
Y.one('.tool_assignmentupgrade_paginationform form').submit();
});
}
}
@@ -1,57 +0,0 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* This file contains the forms to create and edit an instance of this module
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot {@link http://www.netspot.com.au}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
require_once($CFG->libdir.'/formslib.php');
/**
* Assignment upgrade table display options
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot {@link http://www.netspot.com.au}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class tool_assignmentupgrade_pagination_form extends moodleform {
/**
* Define this form - called from the parent constructor
*/
public function definition() {
$mform = $this->_form;
$instance = $this->_customdata;
$mform->addElement('header', 'general', get_string('assignmentsperpage', 'tool_assignmentupgrade'));
// Visible elements.
$options = array(10=>'10', 20=>'20', 50=>'50', 100=>'100');
$mform->addElement('select', 'perpage', get_string('assignmentsperpage', 'assign'), $options);
// Hidden params.
$mform->addElement('hidden', 'action', 'saveoptions');
$mform->setType('action', PARAM_ALPHA);
// Buttons.
$this->add_action_buttons(false, get_string('updatetable', 'tool_assignmentupgrade'));
}
}
-249
View File
@@ -1,249 +0,0 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Defines the renderer for the assignment upgrade helper plugin.
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
/**
* Renderer for the assignment upgrade helper plugin.
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class tool_assignmentupgrade_renderer extends plugin_renderer_base {
/**
* Render the index page.
* @param string $detected information about what sort of site was detected.
* @param array $actions list of actions to show on this page.
* @return string html to output.
*/
public function index_page($detected, array $actions) {
$output = '';
$output .= $this->header();
$output .= $this->heading(get_string('pluginname', 'tool_assignmentupgrade'));
$output .= $this->box($detected);
$output .= html_writer::start_tag('ul');
foreach ($actions as $action) {
$output .= html_writer::tag('li',
html_writer::link($action->url, $action->name) . ' - ' .
$action->description);
}
$output .= html_writer::end_tag('ul');
$output .= $this->footer();
return $output;
}
/**
* Render a page that is just a simple message.
* @param string $message the message to display.
* @return string html to output.
*/
public function simple_message_page($message) {
$output = '';
$output .= $this->header();
$output .= $this->heading($message);
$output .= $this->back_to_index();
$output .= $this->footer();
return $output;
}
/**
* Render the confirm batch operation page
* @param stdClass $data Submitted form data with list of assignments to upgrade
* @return string html to output.
*/
public function confirm_batch_operation_page(stdClass $data) {
$output = '';
$output .= $this->header();
$output .= $this->heading(get_string('confirmbatchupgrade', 'tool_assignmentupgrade'));
$output .= $this->output->spacer(array(), true);
$output .= $this->container_start('tool_assignmentupgrade_confirmbatch');
$output .= $this->render(new tool_assignmentupgrade_batchoperationconfirm($data));
$output .= $this->container_end();
$output .= $this->back_to_index();
$output .= $this->footer();
return $output;
}
/**
* Render the confirm batch continue / cancel links
* @param tool_assignmentupgrade_batchoperationconfirm $confirm Wrapper class to determine the continue message and url
* @return string html to output.
*/
public function render_tool_assignmentupgrade_batchoperationconfirm(tool_assignmentupgrade_batchoperationconfirm $confirm) {
$output = '';
if ($confirm->continueurl) {
$output .= $this->output->confirm($confirm->continuemessage,
$confirm->continueurl,
tool_assignmentupgrade_url('listnotupgraded'));
} else {
$output .= $this->output->box($confirm->continuemessage);
$output .= $this->output->continue_button(tool_assignmentupgrade_url('listnotupgraded'));
}
return $output;
}
/**
* Render the list of assignments that still need to be upgraded page.
* @param tool_assignmentupgrade_assignments_table $assignments of data about assignments.
* @param tool_assignmentupgrade_batchoperations_form $batchform Submitted form with list of assignments to upgrade
* @param tool_assignmentupgrade_pagination_form $paginationform Form which contains the preferences for paginating the table
* @return string html to output.
*/
public function assignment_list_page(tool_assignmentupgrade_assignments_table $assignments,
tool_assignmentupgrade_batchoperations_form $batchform,
tool_assignmentupgrade_pagination_form $paginationform) {
$output = '';
$output .= $this->header();
$this->page->requires->js_init_call('M.tool_assignmentupgrade.init_upgrade_table', array());
$this->page->requires->string_for_js('noassignmentsselected', 'tool_assignmentupgrade');
$output .= $this->heading(get_string('notupgradedtitle', 'tool_assignmentupgrade'));
$output .= $this->box(get_string('notupgradedintro', 'tool_assignmentupgrade'));
$output .= $this->output->spacer(array(), true);
$output .= $this->container_start('tool_assignmentupgrade_upgradetable');
$output .= $this->container_start('tool_assignmentupgrade_paginationform');
$output .= $this->moodleform($paginationform);
$output .= $this->container_end();
$output .= $this->flexible_table($assignments, $assignments->get_rows_per_page(), true);
$output .= $this->container_end();
if ($assignments->anyupgradableassignments) {
$output .= $this->container_start('tool_assignmentupgrade_batchform');
$output .= $this->moodleform($batchform);
$output .= $this->container_end();
}
$output .= $this->back_to_index();
$output .= $this->footer();
return $output;
}
/**
* Render the result of an assignment conversion
* @param stdClass $assignmentsummary data about the assignment to upgrade.
* @param bool $success Set to true if the outcome of the conversion was a success
* @param string $log The log from the conversion
* @return string html to output.
*/
public function convert_assignment_result($assignmentsummary, $success, $log) {
$output = '';
$output .= $this->container_start('tool_assignmentupgrade_result');
$output .= $this->container(get_string('upgradeassignmentsummary', 'tool_assignmentupgrade', $assignmentsummary));
if (!$success) {
$output .= $this->container(get_string('conversionfailed', 'tool_assignmentupgrade', $log));
} else {
$output .= $this->container(get_string('upgradeassignmentsuccess', 'tool_assignmentupgrade'));
$url = new moodle_url('/course/view.php', array('id'=>$assignmentsummary->courseid));
$output .= $this->container(html_writer::link($url, get_string('viewcourse', 'tool_assignmentupgrade')));
}
$output .= $this->container_end();
return $output;
}
/**
* Render the are-you-sure page to confirm a manual upgrade.
* @param stdClass $assignmentsummary data about the assignment to upgrade.
* @return string html to output.
*/
public function convert_assignment_are_you_sure($assignmentsummary) {
$output = '';
$output .= $this->header();
$output .= $this->heading(get_string('areyousure', 'tool_assignmentupgrade'));
$params = array('id' => $assignmentsummary->id, 'confirmed' => 1, 'sesskey' => sesskey());
$output .= $this->confirm(get_string('areyousuremessage', 'tool_assignmentupgrade', $assignmentsummary),
new single_button(tool_assignmentupgrade_url('upgradesingle', $params), get_string('yes')),
tool_assignmentupgrade_url('listnotupgraded'));
$output .= $this->footer();
return $output;
}
/**
* Helper method dealing with the fact we can not just fetch the output of flexible_table
*
* @param flexible_table $table
* @param int $rowsperpage
* @param bool $displaylinks Show links in the table
* @return string HTML
*/
protected function flexible_table(flexible_table $table, $rowsperpage, $displaylinks) {
$o = '';
ob_start();
$table->out($rowsperpage, $displaylinks);
$o = ob_get_contents();
ob_end_clean();
return $o;
}
/**
* Helper method dealing with the fact we can not just fetch the output of moodleforms
*
* @param moodleform $mform
* @return string HTML
*/
protected function moodleform(moodleform $mform) {
$o = '';
ob_start();
$mform->display();
$o = ob_get_contents();
ob_end_clean();
return $o;
}
/**
* Render a link in a div, such as the 'Back to plugin main page' link.
* @param string|moodle_url $url the link URL.
* @param string $text the link text.
* @return string html to output.
*/
public function end_of_page_link($url, $text) {
return html_writer::tag('div', html_writer::link($url, $text), array('class' => 'mdl-align'));
}
/**
* Output a link back to the plugin index page.
* @return string html to output.
*/
public function back_to_index() {
return $this->end_of_page_link(tool_assignmentupgrade_url('index'), get_string('backtoindex', 'tool_assignmentupgrade'));
}
}
-23
View File
@@ -1,23 +0,0 @@
#page-admin-tool-assignmentupgrade-listnotupgraded .tool_assignmentupgrade_upgradetable .c0 {
display: none;
}
#page-admin-tool-assignmentupgrade-listnotupgraded.jsenabled .tool_assignmentupgrade_upgradetable .c0 {
display: table-cell;
}
/*
.gradingbatchoperationsform { display: none; }
.jsenabled .gradingbatchoperationsform { display: block; }
*/
#page-admin-tool-assignmentupgrade-listnotupgraded .tool_assignmentupgrade_upgradetable tr.selectedrow td {
background-color: #fec;
}
#page-admin-tool-assignmentupgrade-listnotupgraded .tool_assignmentupgrade_upgradetable tr.unselectedrow td {
background-color: white;
}
#page-admin-tool-assignmentupgrade-listnotupgraded .tool_assignmentupgrade_paginationform .hidden {
display: none;
}
@@ -1,75 +0,0 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Privacy tests for tool_assignmentupgrade.
*
* @package tool_assignmentupgrade
* @category test
* @copyright 2018 Zig Tan <zig@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
use \core_privacy\tests\provider_testcase;
use \core_privacy\local\request\writer;
use \tool_assignmentupgrade\privacy\provider;
/**
* Unit tests for tool_assignmentupgrade/classes/privacy/policy
*
* @copyright 2018 Zig Tan <zig@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class tool_assignmentupgrade_privacy_testcase extends provider_testcase {
/**
* Overriding setUp() function to always reset after tests.
*/
public function setUp() {
$this->resetAfterTest(true);
}
/**
* Test for provider::test_export_user_preferences().
*/
public function test_export_user_preferences() {
// Test setup.
$user = $this->getDataGenerator()->create_user();
$this->setUser($user);
// Add a user home page preference for the User.
set_user_preference('tool_assignmentupgrade_perpage', '100', $user);
// Test the user preference exists.
$params = [
'userid' => $user->id,
'name' => 'tool_assignmentupgrade_perpage'
];
// Test the user preferences export contains 1 user preference record for the User.
provider::export_user_preferences($user->id);
$contextuser = context_user::instance($user->id);
$writer = writer::with_context($contextuser);
$this->assertTrue($writer->has_any_data());
$exportedpreferences = $writer->get_user_preferences('tool_assignmentupgrade');
$this->assertCount(1, (array) $exportedpreferences);
$this->assertEquals('100', $exportedpreferences->perpage->value);
}
}
@@ -1,54 +0,0 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* This file contains the forms to create and edit an instance of this module
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot {@link http://www.netspot.com.au}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
require_once($CFG->libdir.'/formslib.php');
/**
* Assignment upgrade batch operations form.
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot {@link http://www.netspot.com.au}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class tool_assignmentupgrade_batchoperations_form extends moodleform {
/**
* Define this form - is called from parent constructor.
*/
public function definition() {
$mform = $this->_form;
$instance = $this->_customdata;
$mform->addElement('header', 'general', get_string('batchoperations', 'tool_assignmentupgrade'));
// Visible elements.
$mform->addElement('hidden', 'selectedassignments', '', array('class'=>'selectedassignments'));
$mform->setType('selectedassignments', PARAM_SEQUENCE);
$mform->addElement('submit', 'upgradeselected', get_string('upgradeselected', 'tool_assignmentupgrade'));
$mform->addElement('submit', 'upgradeall', get_string('upgradeall', 'tool_assignmentupgrade'));
}
}
@@ -1,182 +0,0 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* This file contains the definition for the grading table which subclassses easy_table
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot {@link http://www.netspot.com.au}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir.'/tablelib.php');
require_once($CFG->libdir.'/gradelib.php');
require_once($CFG->dirroot.'/mod/assign/locallib.php');
/**
* Extends table_sql to provide a table of assignment submissions
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot {@link http://www.netspot.com.au}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class tool_assignmentupgrade_assignments_table extends table_sql implements renderable {
/** @var int $perpage */
private $perpage = 10;
/** @var int $rownum (global index of current row in table) */
private $rownum = -1;
/** @var renderer_base for getting output */
private $output = null;
/** @var boolean anyupgradableassignments - True if there is one or more assignments that can upgraded */
public $anyupgradableassignments = false;
/**
* This table loads a list of the old assignment instances and tests them to see
* if they can be upgraded
*
* @param int $perpage How many per page
* @param int $rowoffset The starting row for pagination
*/
public function __construct($perpage, $rowoffset=0) {
global $PAGE;
parent::__construct('tool_assignmentupgrade_assignments');
$this->perpage = $perpage;
$this->output = $PAGE->get_renderer('tool_assignmentupgrade');
$this->define_baseurl(new moodle_url('/admin/tool/assignmentupgrade/listnotupgraded.php'));
$this->anyupgradableassignments = tool_assignmentupgrade_any_upgradable_assignments();
// Do some business - then set the sql.
if ($rowoffset) {
$this->rownum = $rowoffset - 1;
}
$fields = 'a.id as id,
a.name as name,
a.assignmenttype as type,
c.shortname as courseshortname,
c.id as courseid,
COUNT(s.id) as submissioncount';
$from = '{assignment} a JOIN {course} c ON a.course = c.id ' .
' LEFT JOIN {assignment_submissions} s ON a.id = s.assignment';
$where = '1 = 1';
$where .= ' GROUP BY a.id, a.name, a.assignmenttype, c.shortname, c.id ';
$this->set_sql($fields, $from, $where, array());
$this->set_count_sql('SELECT COUNT(*) FROM {assignment} a JOIN {course} c ON a.course = c.id', array());
$columns = array();
$headers = array();
$columns[] = 'select';
$headers[] = get_string('select', 'tool_assignmentupgrade') .
'<div class="selectall">' .
'<input type="checkbox" name="selectall" title="' . get_string('selectall') . '"/>' .
'</div>';
$columns[] = 'upgradable';
$headers[] = get_string('upgradable', 'tool_assignmentupgrade');
$columns[] = 'id';
$headers[] = get_string('assignmentid', 'tool_assignmentupgrade');
$columns[] = 'courseshortname';
$headers[] = get_string('course');
$columns[] = 'name';
$headers[] = get_string('name');
$columns[] = 'type';
$headers[] = get_string('assignmenttype', 'tool_assignmentupgrade');
$columns[] = 'submissioncount';
$headers[] = get_string('submissions', 'tool_assignmentupgrade');
// Set the columns.
$this->define_columns($columns);
$this->define_headers($headers);
$this->no_sorting('upgradable');
$this->no_sorting('select');
}
/**
* Return the number of rows to display on a single page
*
* @return int The number of rows per page
*/
public function get_rows_per_page() {
return $this->perpage;
}
/**
* Format a link to the assignment instance
*
* @param stdClass $row
* @return string
*/
public function col_name(stdClass $row) {
$url = new moodle_url('/mod/assignment/view.php', array('a' => $row->id));
return html_writer::link($url, $row->name);
}
/**
* Format a link to the upgrade single tool
*
* @param stdClass $row (contains cached result from previous upgradable check)
* @return string
*/
public function col_upgradable(stdClass $row) {
if ($row->upgradable) {
$urlparams = array('id' => $row->id, 'sesskey' => sesskey());
$url = new moodle_url('/admin/tool/assignmentupgrade/upgradesingleconfirm.php', $urlparams);
return html_writer::link($url, get_string('supported', 'tool_assignmentupgrade'));
} else {
return get_string('notsupported', 'tool_assignmentupgrade');
}
}
/**
* Insert a checkbox for selecting the current row for batch operations
*
* @param stdClass $row
* @return string
*/
public function col_select(stdClass $row) {
global $CFG;
$version = get_config('assignment_' . $row->type, 'version');
require_once($CFG->dirroot . '/mod/assign/locallib.php');
if (assign::can_upgrade_assignment($row->type, $version)) {
$row->upgradable = true;
return '<input type="checkbox" name="selectedassignment" value="' . $row->id . '"/>';
}
$row->upgradable = false;
return '';
}
/**
* Override the table show_hide_link to not show for select column
*
* @param string $column the column name, index into various names.
* @param int $index numerical index of the column.
* @return string HTML fragment.
*/
protected function show_hide_link($column, $index) {
if ($index > 0) {
return parent::show_hide_link($column, $index);
}
return '';
}
}
@@ -1,49 +0,0 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Script to show all the assignments that have not been upgraded after the main upgrade.
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot
* @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->dirroot . '/'.$CFG->admin.'/tool/assignmentupgrade/locallib.php');
require_sesskey();
$assignmentid = required_param('id', PARAM_INT);
// This calls require_login and checks moodle/site:config.
admin_externalpage_setup('assignmentupgrade',
'',
array(),
tool_assignmentupgrade_url('upgradesingle', array('id' => $assignmentid)));
$PAGE->navbar->add(get_string('upgradesingle', 'tool_assignmentupgrade'));
$renderer = $PAGE->get_renderer('tool_assignmentupgrade');
$log = '';
list($summary, $success, $log) = tool_assignmentupgrade_upgrade_assignment($assignmentid);
echo $renderer->header();
echo $renderer->heading(get_string('conversioncomplete', 'tool_assignmentupgrade'));
echo $renderer->convert_assignment_result($summary, $success, $log);
echo $renderer->continue_button(tool_assignmentupgrade_url('listnotupgraded'));
echo $renderer->footer();
@@ -1,44 +0,0 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Script to show all the assignments that have not been upgraded after the main upgrade.
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot
* @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->dirroot . '/'.$CFG->admin.'/tool/assignmentupgrade/locallib.php');
require_sesskey();
$assignmentid = required_param('id', PARAM_INT);
// This calls require_login and checks moodle/site:config.
admin_externalpage_setup('assignmentupgrade',
'',
array(),
tool_assignmentupgrade_url('upgradesingle', array('id' => $assignmentid)));
$PAGE->navbar->add(get_string('upgradesingle', 'tool_assignmentupgrade'));
$renderer = $PAGE->get_renderer('tool_assignmentupgrade');
$assignmentinfo = tool_assignmentupgrade_get_assignment($assignmentid);
echo $renderer->convert_assignment_are_you_sure($assignmentinfo);
@@ -20,7 +20,7 @@ Feature: Manage availability conditions
And the following config values are set as admin:
| enableavailability | 1 |
And I am on homepage
And I navigate to "Manage restrictions" node in "Site administration > Plugins > Availability restrictions"
And I navigate to "Plugins > Availability restrictions > Manage restrictions" in site administration
# Having clicked on it, I should also see the list of plugins.
And I should see "Restriction by date"
@@ -34,7 +34,7 @@ Feature: Manage availability conditions
| Course 1 | C1 | topics |
And I log in as "admin"
And I am on site homepage
When I navigate to "Manage restrictions" node in "Site administration > Plugins > Availability restrictions"
When I navigate to "Plugins > Availability restrictions > Manage restrictions" in site administration
# Check the icon is there (it should be a Hide icon, meaning is currently visible).
Then "Hide" "icon" should exist in the "Restriction by date" "table_row"
@@ -24,6 +24,6 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2018051400;
$plugin->requires = 2018050800;
$plugin->version = 2018120300;
$plugin->requires = 2018112800;
$plugin->component = 'tool_availabilityconditions';
+11
View File
@@ -109,6 +109,17 @@ require_once(__DIR__ . '/../../../../lib/behat/lib.php');
require_once(__DIR__ . '/../../../../lib/behat/classes/behat_command.php');
require_once(__DIR__ . '/../../../../lib/behat/classes/behat_config_manager.php');
// Remove error handling overrides done in config.php. This is consistent with admin/tool/behat/cli/util_single_run.php.
$CFG->debug = (E_ALL | E_STRICT);
$CFG->debugdisplay = 1;
error_reporting($CFG->debug);
ini_set('display_errors', '1');
ini_set('log_errors', '1');
// Import the necessary libraries.
require_once($CFG->libdir . '/setuplib.php');
require_once($CFG->libdir . '/behat/classes/util.php');
// For drop option check if parallel site.
if ((empty($options['parallel'])) && ($options['drop']) || $options['updatesteps']) {
$options['parallel'] = behat_config_manager::get_behat_run_config_value('parallel');
+1 -1
View File
@@ -218,7 +218,7 @@ if ($options['install']) {
// Run behat command to get steps in feature files.
$featurestepscmd = behat_command::get_behat_command(true);
$featurestepscmd .= ' --config ' . behat_config_manager::get_behat_cli_config_filepath();
$featurestepscmd .= ' --dry-run --format=moodle_step_count';
$featurestepscmd .= ' --dry-run --format=moodle_stepcount';
$processes = cli_execute_parallel(array($featurestepscmd), __DIR__ . "/../../../../");
$status = print_update_step_output(array_pop($processes), $behatstepfile);
+6 -6
View File
@@ -23,29 +23,29 @@
*/
$string['aim'] = 'This administration tool helps developers and test writers to create .feature files describing Moodle\'s functionalities and run them automatically. Step definitions available for use in .feature files are listed below.';
$string['allavailablesteps'] = 'All the available steps definitions';
$string['allavailablesteps'] = 'All available step definitions';
$string['errorbehatcommand'] = 'Error running behat CLI command. Try running "{$a} --help" manually from CLI to find out more about the problem.';
$string['errorcomposer'] = 'Composer dependencies are not installed.';
$string['errordataroot'] = '$CFG->behat_dataroot is not set or is invalid.';
$string['errorsetconfig'] = '$CFG->behat_dataroot, $CFG->behat_prefix and $CFG->behat_wwwroot need to be set in config.php.';
$string['erroruniqueconfig'] = '$CFG->behat_dataroot, $CFG->behat_prefix and $CFG->behat_wwwroot values need to be different than $CFG->dataroot, $CFG->prefix, $CFG->wwwroot, $CFG->phpunit_dataroot and $CFG->phpunit_prefix values.';
$string['fieldvalueargument'] = 'Field value arguments';
$string['fieldvalueargument_help'] = 'This argument should be completed by a field value, there are many field types, simple ones like checkboxes, selects or textareas or complex ones like date selectors. You can check <a href="http://docs.moodle.org/dev/Acceptance_testing#Providing_values_to_steps" target="_blank">Field values</a> to see the expected field value depending on the field type you provide.';
$string['fieldvalueargument_help'] = 'This argument should be completed by a field value. There are many field types, including simple ones like checkboxes, selects or textareas, or complex ones like date selectors. See the dev documentation <a href="https://docs.moodle.org/dev/Acceptance_testing" target="_blank">Acceptance_testing</a> for details of expected field values.';
$string['giveninfo'] = 'Given. Processes to set up the environment';
$string['infoheading'] = 'Info';
$string['installinfo'] = 'Read {$a} for installation and tests execution info';
$string['newstepsinfo'] = 'Read {$a} for info about how to add new steps definitions';
$string['newstepsinfo'] = 'Read {$a} for info about how to add new step definitions';
$string['newtestsinfo'] = 'Read {$a} for info about how to write new tests';
$string['nostepsdefinitions'] = 'There aren\'t steps definitions matching this filters';
$string['nostepsdefinitions'] = 'There aren\'t any step definitions matching this filter';
$string['pluginname'] = 'Acceptance testing';
$string['stepsdefinitionscomponent'] = 'Area';
$string['stepsdefinitionscontains'] = 'Contains';
$string['stepsdefinitionsfilters'] = 'Steps definitions';
$string['stepsdefinitionsfilters'] = 'Step definitions';
$string['stepsdefinitionstype'] = 'Type';
$string['theninfo'] = 'Then. Checkings to ensure the outcomes are the expected ones';
$string['unknownexceptioninfo'] = 'There was a problem with Selenium or your browser. Please ensure you are using the latest version of Selenium. Error:';
$string['viewsteps'] = 'Filter';
$string['wheninfo'] = 'When. Actions that provokes an event';
$string['wheninfo'] = 'When. Action that provokes an event';
$string['wrongbehatsetup'] = 'Something is wrong with the behat setup and so step definitions cannot be listed: <b>{$a->errormsg}</b><br/><br/>Please check:<ul>
<li>$CFG->behat_dataroot, $CFG->behat_prefix and $CFG->behat_wwwroot are set in config.php with different values from $CFG->dataroot, $CFG->prefix and $CFG->wwwroot.</li>
<li>You ran "{$a->behatinit}" from your Moodle root directory.</li>
+3 -3
View File
@@ -162,11 +162,11 @@ class tool_behat_renderer extends plugin_renderer_base {
$html .= $this->output->heading($title);
// Info.
$installurl = behat_command::DOCS_URL . '#Installation';
$installurl = behat_command::DOCS_URL;
$installlink = html_writer::tag('a', $installurl, array('href' => $installurl, 'target' => '_blank'));
$writetestsurl = behat_command::DOCS_URL . '#Writing_features';
$writetestsurl = 'https://docs.moodle.org/dev/Writing acceptance tests';
$writetestslink = html_writer::tag('a', $writetestsurl, array('href' => $writetestsurl, 'target' => '_blank'));
$writestepsurl = behat_command::DOCS_URL . '#Adding_steps_definitions';
$writestepsurl = 'https://docs.moodle.org/dev/Writing_new_acceptance_test_step_definitions';
$writestepslink = html_writer::tag('a', $writestepsurl, array('href' => $writestepsurl, 'target' => '_blank'));
$infos = array(
get_string('installinfo', 'tool_behat', $installlink),
@@ -286,7 +286,7 @@ Feature: Set up contextual data for tests
| student1 | CHSB |
| student1 | CHC |
When I log in as "admin"
And I navigate to "Cohorts" node in "Site administration > Users > Accounts"
And I navigate to "Users > Accounts > Cohorts" in site administration
Then the following should exist in the "cohorts" table:
| Name | Cohort size |
| System cohort A | 1 |
@@ -20,12 +20,12 @@ Feature: Edit capabilities
And I set the following system permissions of "Teacher" role:
| capability | permission |
| block/mnet_hosts:myaddinstance | Allow |
| moodle/community:add | Inherit |
| moodle/site:messageanyuser | Inherit |
| moodle/grade:managesharedforms | Prevent |
| moodle/course:request | Prohibit |
When I follow "Edit Teacher role"
Then "block/mnet_hosts:myaddinstance" capability has "Allow" permission
And "moodle/community:add" capability has "Not set" permission
And "moodle/site:messageanyuser" capability has "Not set" permission
And "moodle/grade:managesharedforms" capability has "Prevent" permission
And "moodle/course:request" capability has "Prohibit" permission
@@ -34,7 +34,7 @@ Feature: Verify that all form fields values can be get and set
| wiki | C1 | wiki1 | Test this one | Test this one | Test this one | collaborative | 0 |
And I log in as "admin"
And I am on "Course 1" course homepage
And I navigate to "Reset" node in "Course administration"
And I navigate to "Reset" in current page administration
# Select (multi-select) - Checking "the select box should contain".
And I expand all fieldsets
And the "Unenrol users" select box should contain "No roles"
@@ -131,12 +131,12 @@ Feature: Verify that all form fields values can be get and set
And the field "two" matches value ""
# Check if field xpath set/match works.
And I am on "Course 1" course homepage
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
And I set the field with xpath "//input[@id='id_idnumber']" to "Course id number"
And the field with xpath "//input[@name='idnumber']" matches value "Course id number"
And the field with xpath "//input[@name='idnumber']" does not match value ""
And I press "Save and display"
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
And the field "Course ID number" matches value "Course id number"
Scenario: with JS disabled all form fields getters and setters works as expected
@@ -0,0 +1,27 @@
@tool_behat
Feature: Behat steps for interacting with form work
In order to test my Moodle code
As a developer
I need the Behat steps for form elements to work reliably
@javascript
Scenario: Test fields in containers
Given the following "courses" exist:
| fullname | shortname |
| Course 1 | C1 |
When I log in as "admin"
And I am on "Course 1" course homepage
# Just get to any form.
And I navigate to "Edit settings" in current page administration
And I set the field "Course full name" in the "General" "fieldset" to "Frog"
And I set the following fields in the "Appearance" "fieldset" to these values:
| Show activity reports | Yes |
| Number of announcements | 1 |
Then the field "Show activity reports" in the "Appearance" "fieldset" matches value "Yes"
And the field "Show activity reports" in the "Appearance" "fieldset" does not match value "No"
And the following fields in the "region-main" "region" match these values:
| Course full name | Frog |
| Number of announcements | 1 |
And the following fields in the "region-main" "region" do not match these values:
| Course full name | Course 1 |
| Number of announcements | 5 |
@@ -7,11 +7,11 @@ Feature: List the system steps definitions
Background:
Given I am on homepage
And I log in as "admin"
And I navigate to "Acceptance testing" node in "Site administration > Development"
And I navigate to "Development > Acceptance testing" in site administration
@javascript
Scenario: Accessing the list
Then I should see "Steps definitions"
Then I should see "Step definitions"
And I should not see "There aren't steps definitions matching this filter"
@javascript
-199
View File
@@ -1,199 +0,0 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Unit tests for behat manager.
*
* @package tool_behat
* @copyright 2012 David Monllaó
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
global $CFG;
require_once($CFG->dirroot . '/' . $CFG->admin .'/tool/behat/locallib.php');
require_once($CFG->libdir . '/behat/classes/util.php');
require_once($CFG->libdir . '/behat/classes/behat_config_manager.php');
/**
* Behat manager tests.
*
* @package tool_behat
* @copyright 2012 David Monllaó
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class tool_behat_manager_testcase extends advanced_testcase {
/**
* behat_config_manager tests.
*/
public function test_merge_configs() {
// Simple default config.
$array1 = array(
'the' => 'same',
'simple' => 'value',
'array' => array(
'one' => 'arrayvalue1',
'two' => 'arrayvalue2'
)
);
// Simple override.
$array2 = array(
'simple' => 'OVERRIDDEN1',
'array' => array(
'one' => 'OVERRIDDEN2'
),
'newprofile' => array(
'anotherlevel' => array(
'andanotherone' => array(
'list1',
'list2'
)
)
)
);
$array = testable_behat_config_manager::merge_config($array1, $array2);
$this->assertDebuggingCalled("Use of merge_config is deprecated, please see behat_config_util");
// Overrides are applied.
$this->assertEquals('OVERRIDDEN1', $array['simple']);
$this->assertEquals('OVERRIDDEN2', $array['array']['one']);
// Other values are respected.
$this->assertNotEmpty($array['array']['two']);
// Completely new nodes are added.
$this->assertNotEmpty($array['newprofile']);
$this->assertNotEmpty($array['newprofile']['anotherlevel']['andanotherone']);
$this->assertEquals('list1', $array['newprofile']['anotherlevel']['andanotherone'][0]);
$this->assertEquals('list2', $array['newprofile']['anotherlevel']['andanotherone'][1]);
// Complex override changing vectors to scalars and scalars to vectors.
$array2 = array(
'simple' => array(
'simple' => 'should',
'be' => 'overridden',
'by' => 'this-array'
),
'array' => 'one'
);
$array = testable_behat_config_manager::merge_config($array1, $array2);
$this->assertDebuggingCalled("Use of merge_config is deprecated, please see behat_config_util");
// Overrides applied.
$this->assertNotEmpty($array['simple']);
$this->assertNotEmpty($array['array']);
$this->assertTrue(is_array($array['simple']));
$this->assertFalse(is_array($array['array']));
// Other values are maintained.
$this->assertEquals('same', $array['the']);
}
/**
* behat_config_manager tests.
*/
public function test_config_file_contents() {
global $CFG;
$this->resetAfterTest(true);
// Skip tests if behat is not installed.
$vendorpath = $CFG->dirroot . '/vendor';
if (!file_exists($vendorpath . '/autoload.php') || !is_dir($vendorpath . '/behat')) {
$this->markTestSkipped('Behat not installed.');
}
// Add some fake test url.
$CFG->behat_wwwroot = 'http://example.com/behat';
// To avoid user value at config.php level.
unset($CFG->behat_config);
// List.
$features = array(
'feature1',
'feature2',
'feature3'
);
// Associative array.
$stepsdefinitions = array(
'micarro' => '/me/lo/robaron',
'anoche' => '/cuando/yo/dormia'
);
$contents = testable_behat_config_manager::get_config_file_contents($features, $stepsdefinitions);
$this->assertDebuggingCalled("Use of get_config_file_contents is deprecated, please see behat_config_util");
// YAML decides when is is necessary to wrap strings between single quotes, so not controlled
// values like paths should not be asserted including the key name as they would depend on the
// directories values.
$this->assertContains($CFG->dirroot,
$contents['default']['extensions']['Moodle\BehatExtension']['moodledirroot']);
// Not quoted strings.
$this->assertEquals('/me/lo/robaron',
$contents['default']['extensions']['Moodle\BehatExtension']['steps_definitions']['micarro']);
// YAML uses single quotes to wrap URL strings.
$this->assertEquals($CFG->behat_wwwroot, $contents['default']['extensions']['Behat\MinkExtension']['base_url']);
// Lists.
$this->assertEquals('feature1', $contents['default']['suites']['default']['paths'][0]);
$this->assertEquals('feature3', $contents['default']['suites']['default']['paths'][2]);
unset($CFG->behat_wwwroot);
}
}
/**
* Allows access to internal methods without exposing them.
*
* @package tool_behat
* @copyright 2012 David Monllaó
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class testable_behat_config_manager extends behat_config_manager {
/**
* Allow access to protected method
* @see parent::merge_config()
* @param mixed $config
* @param mixed $localconfig
* @return mixed
*/
public static function merge_config($config, $localconfig) {
return parent::merge_config($config, $localconfig);
}
/**
* Allow access to protected method
* @see parent::get_config_file_contents()
* @param array $features
* @param array $stepsdefinitions
* @return string
*/
public static function get_config_file_contents($features, $stepsdefinitions) {
return parent::get_config_file_contents($features, $stepsdefinitions);
}
}

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