Commit graph

27951 commits

Author SHA1 Message Date
Sara Arjona
a7d39bc3bd Merge branch 'MDL-70397-master' of git://github.com/andrewnicols/moodle 2020-12-14 17:11:46 +01:00
Brendan Heywood
1dadeaeb39 MDL-68608 session: Improved the readonly session debugging 2020-12-14 14:09:55 +11:00
Tom Dickman
c00fc9707f MDL-67623 block overview: fix pagination regression
Fixed a regression caused by MDL-64194 resulting in Dashboard - Course
overview pagination not working from second page of courses onwards.

Course overview block should now do the following:
- Display no pagination controls when user has no courses
- Display no pagination controls when less than 12 courses to display
- Only display pagination controls up to the number of courses user is
enrolled in
- Work correctly when on a page greater than the second page.
2020-12-14 13:15:26 +11:00
Tim Hunt
5a96b5427f MDL-69735 core renderer notifications: make closebutton option usable 2020-12-11 19:54:39 +00:00
Mikel Martín
c31561e4a2 MDL-70322 core_search: consistent search icon 2020-12-11 15:42:47 +01:00
Tomo Tsuyuki
745d4c2a4f MDL-70245 core_grade: Fix grade_get_setting unit test failures
To fix the phpunit issue, change from static variable to use cache
2020-12-10 16:46:09 +11:00
Andrew Nicols
9d8a0d3574 Merge branch 'MDL-70295' of git://github.com/paulholden/moodle 2020-12-09 12:09:37 +08:00
Andrew Nicols
cd3809653c Merge branch 'MDL-70320' of https://github.com/timhunt/moodle 2020-12-09 11:56:05 +08:00
Andrew Nicols
eec9da5b68 Merge branch 'MDL-70293' of git://github.com/paulholden/moodle 2020-12-09 11:28:41 +08:00
Jake Dallimore
e26cfc19c7 Merge branch 'MDL-69145-master-3' of git://github.com/junpataleta/moodle 2020-12-09 11:00:22 +08:00
Jun Pataleta
a489f20f17 MDL-69145 core: Set the default filterset join type to ALL
* Plus minor PHPDoc type fix for the JOINTYPE_DEFAULT constants
2020-12-09 10:51:06 +08:00
David Mudrák
16d8706e2e MDL-70430 oauth2: Fix storing of the new refresh token
There was a typo - missing underscore. As a result, the new refresh
token was never updated in the database. Depending on the issuer and
whether or when theyu invalidate issued refresh tokens, this might or
might not make the token refresh stop working.
2020-12-08 11:26:23 +01:00
Jake Dallimore
7430e7c074 Merge branch 'MDL-70285' of https://github.com/timhunt/moodle 2020-12-08 16:31:54 +08:00
Kristian Ringer
3a9e3f1db4 MDL-64865 auth: Log changing auth config in get_enabled_auth_plugins 2020-12-08 09:10:14 +11:00
Jamie Stamp
2fee98919d MDL-70341 tasks: Allow disabled tasks to be overridden 2020-12-07 16:53:19 +00:00
Jake Dallimore
972e098275 Merge branch 'MDL-64982-master' of git://github.com/rezaies/moodle 2020-12-07 12:03:20 +08:00
Jake Dallimore
de5780279b Merge branch 'MDL-65818-master' of https://github.com/sammarshallou/moodle 2020-12-07 11:26:32 +08:00
Adrian Greeve
b4e6552776 Merge branch 'MDL-69301-master' of git://github.com/rezaies/moodle 2020-12-07 10:05:55 +08:00
Paul Holden
1cef02d293 MDL-70279 tool_templatelibrary: preserve component search field value. 2020-12-04 14:55:38 +00:00
sam marshall
ddbafce0e0 MDL-65818 Security: Encryption API and admin setting for secure data 2020-12-04 14:41:21 +00:00
Shamim Rezaie
77baa12643 MDL-64982 behat: Remove deprecated behat timeout constants
Behat timeout constants behat_base::TIMEOUT, EXTENDED_TIMEOUT, and
REDUCED_TIMEOUT, which were deprecated in 3.7, have been removed.
2020-12-04 17:07:06 +11:00
Andrew Nicols
aba763fdc0 MDL-70397 behat: Prevent browser restarting after initial start 2020-12-04 12:05:39 +08:00
Jake Dallimore
0dcc55e25a Merge branch 'MDL-70326' of https://github.com/durzo/moodle 2020-12-03 11:53:53 +08:00
Jake Dallimore
f403766f1e Merge branch 'MDL-67460-master_profile_secure' of https://github.com/beenet-dev/moodle 2020-12-03 11:15:30 +08:00
Jake Dallimore
cad122fee7 Merge branch 'MDL-65319-master' of git://github.com/peterRd/moodle 2020-12-03 10:28:29 +08:00
Adrian Greeve
ef4a0fc128 Merge branch 'MDL-70167-master' of git://github.com/andrewnicols/moodle 2020-12-03 10:09:47 +08:00
Shamim Rezaie
c8ea0c12d7 MDL-69301 core: Enhanced WAI-ARIA support for tab elements 2020-12-02 22:57:42 +11:00
Mihail Geshoski
16b72504b3 MDL-57614 core: Fetch blocks through a webservice in add block modal 2020-12-02 13:43:15 +08:00
Mihail Geshoski
d16faf211d MDL-57614 core_block: Create webservice that returns the addable blocks
Creates a webservice that returns the addable blocks in a given page.
The webservice expects the page context id, page type and page layout as
parameters and returns the block name and block title for each available
block.
2020-12-02 13:40:41 +08:00
David Mudrák
e6f4190203 MDL-70357 cron: Catch Throwables not just Exceptions when running tasks
Starting from PHP 7, most language errors throw Error exceptions. We
want to deal with those equally as with any other exception so we need
to catch all Throwables here.
2020-11-30 17:25:19 +01:00
Jun Pataleta
1d685419d4 MDL-69422 core: Convert required and help button container to div
* A span element cannot have a div as a child.
2020-11-27 23:16:03 +08:00
Tim Hunt
dc72bc6ac5 MDL-54907 dml: Correct incorrect PHPdoc 2020-11-27 14:57:36 +00:00
Andrew Nicols
0671a2e92d Merge branch 'MDL-65215-master' of git://github.com/peterRd/moodle 2020-11-26 12:46:11 +01:00
Paul Holden
1e3449ca28 MDL-70295 libraries: upgrade to version 4.3.1 of Html2Text. 2020-11-25 21:35:14 +00:00
Tim Hunt
374d3e7700 MDL-70320 permission overrides: role names were double-escaped 2020-11-25 21:19:57 +00:00
Paul Holden
e1153faace MDL-70293 libraries: upgrade to version 1.5.6 of SimplePie. 2020-11-25 20:44:03 +00:00
Jordan Tomkinson
d0e185ae79 MDL-70326 antivirus: fixing regression in MDL-66222 2020-11-25 11:31:36 +01:00
Eloy Lafuente (stronk7)
93f49909d5 Merge branch 'MDL-69121-redis-session-store-compression' of git://github.com/jamie-catalyst/moodle into master 2020-11-24 22:58:48 +01:00
Simon Mok
10768bbd9e MDL-67460 profile: User profile link to use HTTPS 2020-11-24 20:37:26 +08:00
Peter Dias
3f934e4abd MDL-65215 core: Deprecate i_dock_block 2020-11-24 10:02:00 +08:00
Peter Dias
86269654f9 MDL-65319 core: Final deprecation get_courses_page 2020-11-24 09:59:47 +08:00
Tim Hunt
a6edd14d27 MDL-70285 completion upgrade: fix performance of the MDL-69687 code 2020-11-23 20:46:48 +00:00
Adrian Greeve
41b9a81caa Merge branch 'MDL-67668-master-2' of git://github.com/andrewnicols/moodle 2020-11-23 15:40:04 +08:00
Jake Dallimore
766f68cbd2 Merge branch 'MDL-70160-function-cache-m' of https://github.com/Peterburnett/moodle 2020-11-23 15:21:31 +08:00
Andrew Nicols
9d6413d16d MDL-70167 behat: Rewrite attribute check steps
This commit updates the following steps to use the
`the_attribute_of_should_be_set` step under the hood:
- the [element] [type] should be disabled
- the [element] [type] should be enabled
- the [element] [type] should be readonly
- the [element] [type] should not be readonly

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

By moving the core functionality of behat_base to a new trait, and the
constants to a new interface, the functionality can also be used in
behat form fields in the same way as elsewhere.
2020-11-23 09:01:19 +08:00
Andrew Nicols
59daa3b548 MDL-67668 behat: Correct js pending check
Pending checks should only run when JS is running, but some uses were
not apply this check.
2020-11-23 09:01:19 +08:00
Andrew Nicols
1144969755 MDL-67668 behat: Support NodeElement when fetching node in container
This is similar to change made in MDL-69136 to allow an already-fetched
NodeElement to be provided to the get_node_in_container() function and
makes it easier to be deterministic when writing steps.
2020-11-23 09:01:19 +08:00