moodle.git
4 years agoMerge branch 'MDL-58000-master' of https://github.com/mackensen/moodle
Eloy Lafuente (stronk7) [Tue, 2 Oct 2018 21:39:27 +0000 (23:39 +0200)]
Merge branch 'MDL-58000-master' of https://github.com/mackensen/moodle

4 years agoMerge branch 'MDL-63493-master' of git://github.com/junpataleta/moodle
Andrew Nicols [Tue, 2 Oct 2018 03:40:20 +0000 (11:40 +0800)]
Merge branch 'MDL-63493-master' of git://github.com/junpataleta/moodle

4 years agoMDL-63493 core_question: Fix field parameters for the index definitions
Jun Pataleta [Tue, 2 Oct 2018 01:33:35 +0000 (09:33 +0800)]
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.

4 years agoMDL-63493 core_message: Fix field parameters for the index definitions
Jun Pataleta [Tue, 2 Oct 2018 03:31:02 +0000 (11:31 +0800)]
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.

4 years agoMerge branch 'MDL-63477-master' of https://github.com/ryanwyllie/moodle
Andrew Nicols [Fri, 28 Sep 2018 01:47:49 +0000 (09:47 +0800)]
Merge branch 'MDL-63477-master' of https://github.com/ryanwyllie/moodle

4 years agoMDL-63477 blocks_timeline: fix behat test in clean theme
Ryan Wyllie [Fri, 28 Sep 2018 01:40:57 +0000 (09:40 +0800)]
MDL-63477 blocks_timeline: fix behat test in clean theme

4 years agoweekly release 3.6dev
Eloy Lafuente (stronk7) [Thu, 27 Sep 2018 13:17:37 +0000 (15:17 +0200)]
weekly release 3.6dev

4 years agoMDL-63044 blocks_timeline: Remove old minified JS
Andrew Nicols [Thu, 27 Sep 2018 06:25:25 +0000 (14:25 +0800)]
MDL-63044 blocks_timeline: Remove old minified JS

4 years agoMDL-63044 blocks_timeline: Fixes in integration
Andrew Nicols [Thu, 27 Sep 2018 06:16:49 +0000 (14:16 +0800)]
MDL-63044 blocks_timeline: Fixes in integration

4 years agoMerge branch 'dashboard-split-overview-block' of https://github.com/ryanwyllie/moodle
Andrew Nicols [Thu, 27 Sep 2018 06:08:55 +0000 (14:08 +0800)]
Merge branch 'dashboard-split-overview-block' of https://github.com/ryanwyllie/moodle

4 years agoMDL-63044 block_timeline: add timeline block
Ryan Wyllie [Mon, 27 Aug 2018 08:53:44 +0000 (16:53 +0800)]
MDL-63044 block_timeline: add timeline block

4 years agoMDL-63044 block_myoverview: remove timeline view
Ryan Wyllie [Mon, 27 Aug 2018 08:41:27 +0000 (16:41 +0800)]
MDL-63044 block_myoverview: remove timeline view

4 years agoMDL-63044 block_myoverview: remove tab preference
Ryan Wyllie [Mon, 27 Aug 2018 08:39:24 +0000 (16:39 +0800)]
MDL-63044 block_myoverview: remove tab preference

4 years agoMDL-63044 javascript: improve paged content widget
Ryan Wyllie [Tue, 17 Jul 2018 07:04:37 +0000 (15:04 +0800)]
MDL-63044 javascript: improve paged content widget

4 years agoMDL-63044 course: add get_enrolled_courses_by_timeline_classification
Ryan Wyllie [Mon, 27 Aug 2018 08:43:56 +0000 (16:43 +0800)]
MDL-63044 course: add get_enrolled_courses_by_timeline_classification

4 years agoMDL-63044 theme_boost: add dir-ltr-hide and dir-rtl-hide classes
Ryan Wyllie [Tue, 4 Sep 2018 05:05:01 +0000 (13:05 +0800)]
MDL-63044 theme_boost: add dir-ltr-hide and dir-rtl-hide classes

4 years agoMDL-63044 theme_boost: fix secondary outline button styling
Ryan Wyllie [Mon, 27 Aug 2018 09:01:56 +0000 (17:01 +0800)]
MDL-63044 theme_boost: fix secondary outline button styling

4 years agoMDL-63044 theme_boost: add line-height classes
Ryan Wyllie [Mon, 27 Aug 2018 08:51:59 +0000 (16:51 +0800)]
MDL-63044 theme_boost: add line-height classes

4 years agoMDL-63044 theme: add background pulse grey class
Ryan Wyllie [Mon, 27 Aug 2018 09:01:31 +0000 (17:01 +0800)]
MDL-63044 theme: add background pulse grey class

4 years agoMDL-63044 theme_boost: add icon class
Ryan Wyllie [Mon, 27 Aug 2018 09:00:49 +0000 (17:00 +0800)]
MDL-63044 theme_boost: add icon class

4 years agoMDL-63044 icon: add next and previous icons
Ryan Wyllie [Tue, 17 Jul 2018 07:02:21 +0000 (15:02 +0800)]
MDL-63044 icon: add next and previous icons

4 years agoMDL-63044 javascript: add getUserMidnightForTimestamp to user_date
Ryan Wyllie [Thu, 27 Sep 2018 02:13:55 +0000 (10:13 +0800)]
MDL-63044 javascript: add getUserMidnightForTimestamp to user_date

4 years agoMDL-63044 javascript: add global helper for dropdowns
Ryan Wyllie [Tue, 17 Jul 2018 07:00:30 +0000 (15:00 +0800)]
MDL-63044 javascript: add global helper for dropdowns

4 years agoMDL-63044 javascript: add simple pubsub implementation
Ryan Wyllie [Tue, 17 Jul 2018 06:50:00 +0000 (14:50 +0800)]
MDL-63044 javascript: add simple pubsub implementation

4 years agoMerge branch 'MDL-54035_master-fix' of git://github.com/dmonllao/moodle
Eloy Lafuente (stronk7) [Wed, 26 Sep 2018 21:28:34 +0000 (23:28 +0200)]
Merge branch 'MDL-54035_master-fix' of git://github.com/dmonllao/moodle

4 years agoMerge branch 'MDL-63013-master-prioritypolicy' of git://github.com/mudrd8mz/moodle
Eloy Lafuente (stronk7) [Wed, 26 Sep 2018 21:21:09 +0000 (23:21 +0200)]
Merge branch 'MDL-63013-master-prioritypolicy' of git://github.com/mudrd8mz/moodle

4 years agoMDL-54035 accesslib: Check if the user can switch role before switching
David Monllao [Wed, 26 Sep 2018 11:03:08 +0000 (13:03 +0200)]
MDL-54035 accesslib: Check if the user can switch role before switching

4 years agoMerge branch 'MDL-63113-master' of git://github.com/bmbrands/moodle
Eloy Lafuente (stronk7) [Wed, 26 Sep 2018 08:57:20 +0000 (10:57 +0200)]
Merge branch 'MDL-63113-master' of git://github.com/bmbrands/moodle

4 years agoMerge branch 'MDL-61161-master' of https://github.com/mackensen/moodle
David Monllao [Wed, 26 Sep 2018 08:23:39 +0000 (10:23 +0200)]
Merge branch 'MDL-61161-master' of https://github.com/mackensen/moodle

4 years agoMDL-63113 theme boost: initialsbar wrapping
Bas Brands [Wed, 26 Sep 2018 08:18:11 +0000 (10:18 +0200)]
MDL-63113 theme boost: initialsbar wrapping

4 years agoMerge branch 'MDL-61981-master_nestedmath' of git://github.com/Mankro/moodle
Eloy Lafuente (stronk7) [Tue, 25 Sep 2018 21:36:17 +0000 (23:36 +0200)]
Merge branch 'MDL-61981-master_nestedmath' of git://github.com/Mankro/moodle

4 years agoMerge branch 'MDL-62279-master' of git://github.com/damyon/moodle
Eloy Lafuente (stronk7) [Tue, 25 Sep 2018 21:25:10 +0000 (23:25 +0200)]
Merge branch 'MDL-62279-master' of git://github.com/damyon/moodle

4 years agoMerge branch 'MDL-62714-boost_course_visibility_in_navbar' of https://github.com...
Eloy Lafuente (stronk7) [Tue, 25 Sep 2018 21:17:52 +0000 (23:17 +0200)]
Merge branch 'MDL-62714-boost_course_visibility_in_navbar' of https://github.com/fskandalis/moodle

4 years agoMerge branch 'MDL-63253-master-adminsearchresults' of git://github.com/mudrd8mz/moodle
Eloy Lafuente (stronk7) [Tue, 25 Sep 2018 20:56:11 +0000 (22:56 +0200)]
Merge branch 'MDL-63253-master-adminsearchresults' of git://github.com/mudrd8mz/moodle

4 years agoMerge branch 'MDL-62334-master' of https://github.com/danielneis/moodle
Eloy Lafuente (stronk7) [Tue, 25 Sep 2018 20:50:41 +0000 (22:50 +0200)]
Merge branch 'MDL-62334-master' of https://github.com/danielneis/moodle

4 years agoMDL-61161 course: grace period for classifying in progress courses
Charles Fulton [Thu, 11 Jan 2018 00:35:02 +0000 (16:35 -0800)]
MDL-61161 course: grace period for classifying in progress courses

4 years agoMDL-62334 admin: add a new course link on admin/search
Daniel Neis Araujo [Tue, 25 Sep 2018 17:31:50 +0000 (14:31 -0300)]
MDL-62334 admin: add a new course link on admin/search

4 years agoMerge branch 'MDL-60028' of https://github.com/paulholden/moodle
Eloy Lafuente (stronk7) [Tue, 25 Sep 2018 14:57:58 +0000 (16:57 +0200)]
Merge branch 'MDL-60028' of https://github.com/paulholden/moodle

4 years agoMerge branch 'wip-MDL-62708-master' of https://github.com/Beedell/moodle
Eloy Lafuente (stronk7) [Tue, 25 Sep 2018 14:52:50 +0000 (16:52 +0200)]
Merge branch 'wip-MDL-62708-master' of https://github.com/Beedell/moodle

4 years agoMDL-58000 badges: use large image when baking
Charles Fulton [Tue, 25 Sep 2018 14:46:05 +0000 (10:46 -0400)]
MDL-58000 badges: use large image when baking

4 years agoMDL-57610 assignfeedback_editpdf: add missing UK to install.xml
Eloy Lafuente (stronk7) [Tue, 25 Sep 2018 13:21:42 +0000 (15:21 +0200)]
MDL-57610 assignfeedback_editpdf: add missing UK to install.xml

4 years agoMerge branch 'MDL-57610' of git://github.com/aolley/moodle
Eloy Lafuente (stronk7) [Tue, 25 Sep 2018 10:28:47 +0000 (12:28 +0200)]
Merge branch 'MDL-57610' of git://github.com/aolley/moodle

4 years agoMerge branch 'MDL-63119-master' of git://github.com/lameze/moodle
David Monllao [Tue, 25 Sep 2018 10:36:08 +0000 (12:36 +0200)]
Merge branch 'MDL-63119-master' of git://github.com/lameze/moodle

4 years agoMerge branch 'MDL-62930-master' of git://github.com/damyon/moodle
David Monllao [Tue, 25 Sep 2018 10:28:10 +0000 (12:28 +0200)]
Merge branch 'MDL-62930-master' of git://github.com/damyon/moodle

4 years agoMerge branch 'MDL-62717-master' of https://github.com/lucaboesch/moodle
David Monllao [Tue, 25 Sep 2018 10:18:36 +0000 (12:18 +0200)]
Merge branch 'MDL-62717-master' of https://github.com/lucaboesch/moodle

4 years agoMerge branch 'MDL-61967-master' of git://github.com/sarjona/moodle
David Monllao [Tue, 25 Sep 2018 09:08:53 +0000 (11:08 +0200)]
Merge branch 'MDL-61967-master' of git://github.com/sarjona/moodle

4 years agoMerge branch 'MDL-63346' of https://github.com/stronk7/moodle
Andrew Nicols [Tue, 25 Sep 2018 00:35:08 +0000 (08:35 +0800)]
Merge branch 'MDL-63346' of https://github.com/stronk7/moodle

4 years agoMDL-57610 assignfeedback_editpdf: integration cleanup
Adam Olley [Tue, 25 Sep 2018 00:22:17 +0000 (09:52 +0930)]
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.

4 years agoMDL-61967 core_user: Allow filtering by No groups on participants page
Sara Arjona [Fri, 13 Jul 2018 09:28:59 +0000 (11:28 +0200)]
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.

4 years agoMDL-63020 tests: ensure that searching for is null values also works ok
Eloy Lafuente (stronk7) [Mon, 24 Sep 2018 15:38:10 +0000 (17:38 +0200)]
MDL-63020 tests: ensure that searching for is null values also works ok

4 years agoMerge branch 'MDL-63020' of git://github.com/timhunt/moodle
Eloy Lafuente (stronk7) [Mon, 24 Sep 2018 14:01:21 +0000 (16:01 +0200)]
Merge branch 'MDL-63020' of git://github.com/timhunt/moodle

4 years agoMDL-63020 dml: improve the unit tests
Tim Hunt [Mon, 24 Sep 2018 10:41:25 +0000 (11:41 +0100)]
MDL-63020 dml: improve the unit tests

4 years agoMerge branch 'MDL-61573-master' of https://github.com/Kathrin84/moodle
David Monllao [Mon, 24 Sep 2018 09:24:49 +0000 (11:24 +0200)]
Merge branch 'MDL-61573-master' of https://github.com/Kathrin84/moodle

4 years agoMDL-62708 qformat_xml: phpunit test correction.
John Beedell [Mon, 24 Sep 2018 08:37:12 +0000 (09:37 +0100)]
MDL-62708 qformat_xml: phpunit test correction.

4 years agoMDL-47962 upgrade.txt: Update commit reference
David Monllao [Mon, 24 Sep 2018 07:50:05 +0000 (09:50 +0200)]
MDL-47962 upgrade.txt: Update commit reference

4 years agoMerge branch 'MDL-47962' of git://github.com/timhunt/moodle
David Monllao [Mon, 24 Sep 2018 07:45:47 +0000 (09:45 +0200)]
Merge branch 'MDL-47962' of git://github.com/timhunt/moodle

4 years agoMDL-54035 upgrade.txt: Limit comments to relevant info for upgrades
David Monllao [Mon, 24 Sep 2018 07:41:18 +0000 (09:41 +0200)]
MDL-54035 upgrade.txt: Limit comments to relevant info for upgrades

4 years agoMDL-54035 course: Test reset roles in reset_course_userdata()
Jonathan Champ [Wed, 20 Jun 2018 14:31:25 +0000 (10:31 -0400)]
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.

4 years agoMDL-54035 accesslib: Add context->get_parent_context_paths()
Jonathan Champ [Thu, 21 Jun 2018 17:23:03 +0000 (13:23 -0400)]
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.

4 years agoMDL-54035 accesslib: add mark_user_dirty helper
Jonathan Champ [Tue, 5 Jun 2018 20:37:25 +0000 (16:37 -0400)]
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.

4 years agoMDL-54035 accesslib: only modify role_capabilities in accesslib
Jonathan Champ [Fri, 22 Jun 2018 21:16:14 +0000 (17:16 -0400)]
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.

4 years agoMDL-54035 accesslib: separate role definition cache clear
Jonathan Champ [Tue, 5 Jun 2018 19:13:02 +0000 (15:13 -0400)]
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()

4 years agoMDL-62708 question: Add idnumbers to question and question category
John Beedell [Wed, 4 Jul 2018 11:21:44 +0000 (12:21 +0100)]
MDL-62708 question: Add idnumbers to question and question category

4 years agoMDL-60028 enrol: fix counting of enrolled users in a given context.
Paul Holden [Fri, 7 Sep 2018 13:18:45 +0000 (14:18 +0100)]
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.

4 years agoMDL-61981 filter_mathjaxloader: add unit tests
Markku Riekkinen [Thu, 20 Sep 2018 12:00:52 +0000 (15:00 +0300)]
MDL-61981 filter_mathjaxloader: add unit tests

4 years agoMDL-61981 filter_mathjaxloader: nested math environments
Markku Riekkinen [Wed, 19 Sep 2018 09:04:23 +0000 (12:04 +0300)]
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.

4 years agoMDL-47962 filter_glossary: changes made during integration review
Tim Hunt [Wed, 19 Sep 2018 13:54:52 +0000 (14:54 +0100)]
MDL-47962 filter_glossary: changes made during integration review

4 years agoMDL-47962 filter_glossary: only create replacement HTML if needed
Tim Hunt [Thu, 13 Sep 2018 17:42:14 +0000 (18:42 +0100)]
MDL-47962 filter_glossary: only create replacement HTML if needed

4 years agoMDL-47962 filter_glossary: only prepare the replacement if used
Tim Hunt [Thu, 13 Sep 2018 17:03:35 +0000 (18:03 +0100)]
MDL-47962 filter_glossary: only prepare the replacement if used

4 years agoMDL-47962 filter_glossary: clean up filterobject class
Tim Hunt [Thu, 13 Sep 2018 16:53:10 +0000 (17:53 +0100)]
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.

4 years agoMDL-47962 filter_glossary: only prepare_phrases_for_filtering once
Tim Hunt [Thu, 13 Sep 2018 16:21:02 +0000 (17:21 +0100)]
MDL-47962 filter_glossary: only prepare_phrases_for_filtering once

4 years agoMDL-47962 filter_glossary: use preg features for fullmatch
Tim Hunt [Thu, 13 Sep 2018 16:08:28 +0000 (17:08 +0100)]
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.

4 years agoMDL-47962 filter_glossary: cache concept list in a MUC static cache
Tim Hunt [Tue, 11 Sep 2018 16:36:29 +0000 (17:36 +0100)]
MDL-47962 filter_glossary: cache concept list in a MUC static cache

This is a slight improvement on a suggestion by David Monllaó

4 years agoMDL-47962 filter_glossary: Fix lang string concatenation
Tim Hunt [Tue, 11 Sep 2018 15:49:10 +0000 (16:49 +0100)]
MDL-47962 filter_glossary: Fix lang string concatenation

4 years agoMDL-47962 filter_glossary: $GLOSSARY_EXCLUDEENTRY shouldn't stop caching
Tim Hunt [Tue, 20 Jan 2015 18:14:29 +0000 (18:14 +0000)]
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.

4 years agoMDL-47962 filterlib: Fix lots of coding style
Tim Hunt [Tue, 20 Jan 2015 18:05:23 +0000 (18:05 +0000)]
MDL-47962 filterlib: Fix lots of coding style

4 years agoMDL-63020 ddl: fix nullable unique indexes in OCI and MS SQL
Tim Hunt [Fri, 7 Sep 2018 14:32:33 +0000 (15:32 +0100)]
MDL-63020 ddl: fix nullable unique indexes in OCI and MS SQL

This works-around the default non-standard behaviour of these DB engines.

4 years agoMDL-63020 xmldb: Improve PHPdoc comments for better IDE autocomplete
Tim Hunt [Fri, 7 Sep 2018 14:30:50 +0000 (15:30 +0100)]
MDL-63020 xmldb: Improve PHPdoc comments for better IDE autocomplete

4 years agoMDL-62717 forum: Create announcements forum with HTML format intro.
Luca Bösch [Thu, 30 Aug 2018 08:22:43 +0000 (10:22 +0200)]
MDL-62717 forum: Create announcements forum with HTML format intro.

4 years agoweekly release 3.6dev
Eloy Lafuente (stronk7) [Thu, 20 Sep 2018 10:11:53 +0000 (12:11 +0200)]
weekly release 3.6dev

4 years agoMDL-63346 nodejs: Bump to created from scratch shrinkwrap file
Eloy Lafuente (stronk7) [Fri, 14 Sep 2018 10:34:02 +0000 (12:34 +0200)]
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

4 years agoMDL-23545 question: fix remaining sizes leading to failures
Eloy Lafuente (stronk7) [Wed, 19 Sep 2018 21:07:20 +0000 (23:07 +0200)]
MDL-23545 question: fix remaining sizes leading to failures

4 years agoMerge branch 'MDL-23545-phpunit-fixes' of https://github.com/timhunt/moodle
Eloy Lafuente (stronk7) [Wed, 19 Sep 2018 16:10:37 +0000 (18:10 +0200)]
Merge branch 'MDL-23545-phpunit-fixes' of https://github.com/timhunt/moodle

4 years agoMDL-59227 course: Use low level early renaming to avoid dupes
Eloy Lafuente (stronk7) [Wed, 19 Sep 2018 14:55:20 +0000 (16:55 +0200)]
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.

4 years agoMerge branch 'MDL-63140-master' of git://github.com/rezaies/moodle
David Monllao [Wed, 19 Sep 2018 11:30:43 +0000 (13:30 +0200)]
Merge branch 'MDL-63140-master' of git://github.com/rezaies/moodle

4 years agoMDL-23545 qformat_xml: fix another Behat test
Tim Hunt [Tue, 18 Sep 2018 12:52:51 +0000 (13:52 +0100)]
MDL-23545 qformat_xml: fix another Behat test

4 years agoMerge branch 'MDL-63135-master' of git://github.com/rezaies/moodle
David Monllao [Wed, 19 Sep 2018 11:12:40 +0000 (13:12 +0200)]
Merge branch 'MDL-63135-master' of git://github.com/rezaies/moodle

4 years agoMDL-63013 tool_policy: Add Behat tests for the new style of agreements
David Mudrák [Thu, 30 Aug 2018 16:39:09 +0000 (18:39 +0200)]
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.

4 years agoMDL-63013 tool_policy: Change acceptance flow for policies with own page
David Mudrák [Wed, 29 Aug 2018 21:43:57 +0000 (23:43 +0200)]
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.

4 years agoMDL-63013 tool_policy: Policy agreement style can be defined now
David Mudrák [Wed, 29 Aug 2018 16:00:00 +0000 (18:00 +0200)]
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).

4 years agoMerge branch 'MDL-23545-phpunit-fixes' of https://github.com/timhunt/moodle
Eloy Lafuente (stronk7) [Tue, 18 Sep 2018 22:26:25 +0000 (00:26 +0200)]
Merge branch 'MDL-23545-phpunit-fixes' of https://github.com/timhunt/moodle

4 years agoMerge branch 'MDL-63116-master-1' of git://github.com/mihailges/moodle
Eloy Lafuente (stronk7) [Tue, 18 Sep 2018 21:26:51 +0000 (23:26 +0200)]
Merge branch 'MDL-63116-master-1' of git://github.com/mihailges/moodle

4 years agoMerge branch 'MDL-59227' of https://github.com/rlorenzo/moodle
Eloy Lafuente (stronk7) [Tue, 18 Sep 2018 21:11:34 +0000 (23:11 +0200)]
Merge branch 'MDL-59227' of https://github.com/rlorenzo/moodle

4 years agoMDL-61908 privacy: Fix heading in data privacy pages
Mihail Geshoski [Thu, 13 Sep 2018 06:44:26 +0000 (14:44 +0800)]
MDL-61908 privacy: Fix heading in data privacy pages

4 years agoMerge branch 'MDL-63109-master' of git://github.com/mihailges/moodle
Eloy Lafuente (stronk7) [Tue, 18 Sep 2018 15:50:13 +0000 (17:50 +0200)]
Merge branch 'MDL-63109-master' of git://github.com/mihailges/moodle

4 years agoMerge branch 'MDL-63138-master' of git://github.com/rezaies/moodle
David Monllao [Tue, 18 Sep 2018 14:39:58 +0000 (16:39 +0200)]
Merge branch 'MDL-63138-master' of git://github.com/rezaies/moodle

4 years agoMerge branch 'MDL-63139-master' of git://github.com/rezaies/moodle
David Monllao [Tue, 18 Sep 2018 14:36:55 +0000 (16:36 +0200)]
Merge branch 'MDL-63139-master' of git://github.com/rezaies/moodle

4 years agoMerge branch 'MDL-63117-master' of git://github.com/rezaies/moodle
David Monllao [Tue, 18 Sep 2018 14:32:58 +0000 (16:32 +0200)]
Merge branch 'MDL-63117-master' of git://github.com/rezaies/moodle

4 years agoMDL-23545 qformat_xml: don't allow irrelevant DB differences to break tests
Tim Hunt [Tue, 18 Sep 2018 12:52:51 +0000 (13:52 +0100)]
MDL-23545 qformat_xml: don't allow irrelevant DB differences to break tests

Also slightly improve formatting of the exported file.

4 years agoMerge branch 'MDL-63333_master' of git://github.com/markn86/moodle
David Monllao [Tue, 18 Sep 2018 10:17:46 +0000 (12:17 +0200)]
Merge branch 'MDL-63333_master' of git://github.com/markn86/moodle