100390 Commits

Author SHA1 Message Date
Travis CI
d23b1488b3 Merge branch 'MDL-69792-master' of git://github.com/sarjona/moodle 2021-03-23 13:53:01 +08:00
Travis CI
e8baa93c44 Merge branch 'MDL-71104-master-2' of git://github.com/mickhawkins/moodle 2021-03-23 13:46:20 +08:00
Michael Hawkins
fd302dc842 MDL-71104 core_completion: Fix fetching of grade completion status
We should be able to fetch the grade completion status for modules
that do not have custom completion configured. This also improves
unit testing coverage.
2021-03-23 12:25:22 +08:00
Jun Pataleta
6770a2949a MDL-71104 completion: Fix completion_info::get_data() unit tests
* Fixed inverted $sameuser test data.
* Fixed caching expectation check. Caching only relies on whether the
user accessing the completion data is the same user or not.
* Fixed checking for the caching of other modules. Should have been
checking cm ID and not instance ID.
* Additional test case when whole course parameter is passed as
true, but the requesting user is different from the target user.
2021-03-23 11:53:26 +08:00
Andrew Nicols
9a9bf7f116 Merge branch 'MDL-71039-master' of git://github.com/marinaglancy/moodle 2021-03-23 11:17:44 +08:00
Andrew Nicols
568b179010 Merge branch 'MDL-70313-master' of git://github.com/peterRd/moodle 2021-03-23 09:58:57 +08:00
Andrew Nicols
4cf1006227 Merge branch 'MDL-69036' of git://github.com/paulholden/moodle 2021-03-23 09:51:39 +08:00
Andrew Nicols
3ba4deedcc Merge branch 'MDL-67870-master' of git://github.com/mihailges/moodle 2021-03-23 09:16:28 +08:00
Mihail Geshoski
5cc31c3691 MDL-67870 backup: Skip value change if setting is locked by hierarchy
The given condition in the if statement did not take into account cases
when the setting is locked by hierarchy. Settings which are locked by
hierarchy should should keep their current values which were inherited
from the parent.
2021-03-22 15:32:49 +08:00
Andrew Nicols
1cc66e0ac6 Merge branch 'MDL-70816-master-4' of git://github.com/rezaies/moodle 2021-03-22 13:29:09 +08:00
Shamim Rezaie
029d6102ea MDL-70816 mod_choice: activity_dates implementation 2021-03-22 16:15:24 +11:00
Shamim Rezaie
dfbf50e18b MDL-70816 core: Activity date details base class
* Base class for fetching an activity module's important date for a user
2021-03-22 16:15:17 +11:00
Andrew Nicols
2014163f57 Merge branch 'MDL-71139-master-trademark' of git://github.com/mudrd8mz/moodle 2021-03-22 11:58:31 +08:00
Andrew Nicols
b171685d6e Merge branch 'MDL-70919-master' of git://github.com/marinaglancy/moodle 2021-03-22 07:44:26 +08:00
Sara Arjona
50e9e5b2bd MDL-69792 core_badges: deprecated backpack.js and BADGE_BACKPACKURL
Final deprecation for constant BADGE_BACKPACKURL (it has been removed)
and badges/backpack.js file (it has been removed too).
Besides, some methods have started the deprecation process too:
 - badges_check_backpack_accessibility
 - badges_setup_backpack_js()
 - badges_local_backpack_js()

Apart from that, string 'addbackpack' has been deprecated here
because it's not used anywhere.
2021-03-19 15:13:03 +01:00
Eloy Lafuente (stronk7)
4c26696e7e weekly release 4.0dev 2021-03-19 14:06:19 +01:00
Eloy Lafuente (stronk7)
6b95768f5f NOBUG: Fixed file access permissions 2021-03-19 14:06:19 +01:00
Eloy Lafuente (stronk7)
49e8125aee Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2021-03-19 14:06:15 +01:00
Marina Glancy
c79e72085b MDL-70919 core_form: non-static method can not be called statically 2021-03-18 12:15:49 +01:00
Chris Brown
599e08db30 MDL-71139 trademark: Improve the trademark messaging 2021-03-18 10:33:04 +01:00
Jun Pataleta
d10edc787c Merge branch 'MDL-70992-master' of https://github.com/NashTechOpenUniversity/moodle 2021-03-18 12:23:48 +08:00
Adrian Greeve
8790de8fcf Merge branch 'MDL-70924' of git://github.com/paulholden/moodle 2021-03-18 11:53:58 +08:00
Jun Pataleta
54cc7804a8 Merge branch 'MDL-70198-master-2' of git://github.com/peterRd/moodle 2021-03-18 11:41:51 +08:00
Adrian Greeve
089afdfceb Merge branch 'MDL-71048' of https://github.com/paulholden/moodle 2021-03-18 11:11:46 +08:00
Adrian Greeve
4496a4e41c Merge branch 'MDL-70977' of git://github.com/paulholden/moodle 2021-03-18 10:49:42 +08:00
Jun Pataleta
8ab5344098 Merge branch 'MDL-70978-master' of git://github.com/aanabit/moodle 2021-03-18 09:55:44 +08:00
Adrian Greeve
0268bd5624 Merge branch 'MDL-71068-protectusername-confirmed' of https://github.com/brendanheywood/moodle 2021-03-18 09:53:44 +08:00
AMOS bot
f0e45a8a9d Automatically generated installer lang files 2021-03-18 00:07:48 +00:00
Eloy Lafuente (stronk7)
e3a46964dc Merge branch 'MDL-70901-master' of git://github.com/marinaglancy/moodle 2021-03-18 00:40:46 +01:00
Eloy Lafuente (stronk7)
ac086dcf23 Merge branch 'MDL-70896-master' of git://github.com/marinaglancy/moodle 2021-03-18 00:34:05 +01:00
Eloy Lafuente (stronk7)
4ee5fb3b5f Merge branch 'MDL-70968-master' of git://github.com/marinaglancy/moodle 2021-03-18 00:29:38 +01:00
Eloy Lafuente (stronk7)
cfba0366db Merge branch 'MDL-70893-master' of git://github.com/marinaglancy/moodle 2021-03-18 00:23:26 +01:00
Eloy Lafuente (stronk7)
3edac87e20 Merge branch 'MDL-70689-master' of git://github.com/sarjona/moodle 2021-03-17 23:20:37 +01:00
Jun Pataleta
ebf078458d Merge branch 'MDL-71036' of https://github.com/stronk7/moodle 2021-03-17 20:05:25 +08:00
Brendan Heywood
7a825b659c MDL-71068 login: Fix edge cases with $CFG->protectusernames 2021-03-17 17:37:29 +11:00
Peter Dias
d589352f4f MDL-70198 core_navigation: Secondary nav unit tests 2021-03-17 13:32:54 +08:00
Peter Dias
683e7b2aaf MDL-70198 core_navigation: Implement secondary nav and curate nodes
Implement the new secondary nav and curate the nodes from flatnav and settingsnav
2021-03-17 13:32:53 +08:00
Peter Dias
23bb8a21c1 MDL-70198 core_navigation: Create new base view class 2021-03-17 12:44:13 +08:00
sangnguyen
edd37a6c07 MDL-70992 Folder: Unnecessary tab stops to the left of files 2021-03-17 09:30:04 +07:00
Eloy Lafuente (stronk7)
c9912e2c0e Merge branch 'MDL-70565' of git://github.com/paulholden/moodle 2021-03-16 22:48:57 +01:00
Eloy Lafuente (stronk7)
44c302a607 Merge branch 'master-MDL-71044_v3' of https://github.com/golenkovm/moodle 2021-03-16 22:38:48 +01:00
Eloy Lafuente (stronk7)
f0733b2f41 Merge branch 'MDL-67748-master-managewebservices' of git://github.com/mudrd8mz/moodle 2021-03-16 19:02:10 +01:00
David Mudrák
4a9f864969 MDL-67748 admin: Add Behat tests for tokens filtering features
Credit goes to Andrew for Behat data generators for webservices.

Co-authored-by: Andrew Nicols <andrew@nicols.co.uk>
2021-03-16 10:51:39 +01:00
Sara Arjona
fe6d780d0d Merge branch 'MDL-44613-integration-master' of git://github.com/mihailges/moodle 2021-03-16 08:26:48 +01:00
Adrian Greeve
ab8b390b78 Merge branch 'MDL-69474' of https://github.com/stronk7/moodle 2021-03-16 12:54:21 +08:00
Adrian Greeve
c862a09c61 Merge branch 'MDL-70780-master' of git://github.com/andrewnicols/moodle 2021-03-16 10:54:46 +08:00
Mihail Geshoski
fcbd1605cb MDL-44613 mod_assign: Fix behat failure in classic
The link to the calendar page is missing in the navigation block in
classic which causes a behat failure in the 'Set availibility dates
for an assignment' feature. The fix includes adding the calendar block
to the Course page which can be used to navigate to the calendar page.
2021-03-16 10:26:09 +08:00
Eloy Lafuente (stronk7)
f35e3f09c2 MDL-69474 accessibility: page->url can be not set, protect against that
Both in unit tests, but also in other areas (say blocks, for example)
it's possible that page->url has not been set yet.

So, let's change current code to always check if we have something
(page->url) to compare.

Note the use of has_set_url() is needed, because page->url is magic
method and it doesn't work as expected. Hate magics!
2021-03-16 00:52:28 +01:00
David Mudrák
b0fd376db3 MDL-67748 admin: Do not show missing capabilities for mobile app service
We used to display capabilities like "Manage any calendar entries",
"Delete evidence", "Manage competency frameworks", "View hidden courses"
and others as "Missing capabilities" for the mobile app service tokens.

This gave dangerous impression that the app will not work for students
without these capabilities granted. There are known cases of admins who
started to grant all these caps to the Authenticated user role because
they were afraid the app would not work for them.

The problem here is that the official mobile app service includes some
functions that have these capabilities declared as required. But they
are not really required to use the app. Either the app makes its own
clever checks of capabilities before calling the functions, or sometimes
the capabilities are not even correctly declared.

It is safer for everybody to display this information for custom
services only where the risk of the falsely missing caps is lower and
the information is more accurate.

Also, the help text has been improved so it does not suggest that these
capabilities must be always added. We do not know why the service has
them declared. In some cases, a service has capabilities declared just
because it makes use of them in the if-then fashion.

Additionally, the patch also displays the service short name because it
is actually needed to know.
2021-03-15 21:24:06 +01:00
David Mudrák
6ea3588d82 MDL-67748 admin: Show user identity fields on the manage tokens page
On sites with many users, the fullname itself may not be unique
identifier of users. Display the user identity fields below the token
owner's name.
2021-03-15 21:24:06 +01:00