Commit graph

100821 commits

Author SHA1 Message Date
Jun Pataleta
0d0d2db661 MDL-70817 core_course: Convert core_course/repository to ES6 2021-04-02 21:56:22 +08:00
Jun Pataleta
90e30c02cb MDL-70817 core: Allow the manual completion update WS function for AJAX
Allow the core_completion_update_activity_completion_status_manually
web service function to be called from AJAX as well. This is needed
by the new manual completion toggle button in the
core_course/completion_manual template.
2021-04-02 21:56:22 +08:00
Jun Pataleta
430d25d96f MDL-70817 core_completion: Unit tests for cm_completion_details 2021-04-02 21:56:22 +08:00
Jun Pataleta
34a690634d MDL-70817 core_completion: Course module completion details
* Class cm_completion_details builds the custom completion details
for an activity module.
2021-04-02 21:56:22 +08:00
AMOS bot
b048ee4925 Automatically generated installer lang files 2021-04-02 00:07:28 +00:00
Alison Blomenberg
672ba41c1c MDL-62244 Resource: label view redirects to label, not course 2021-04-01 11:55:13 -06:00
Jess Ansell
77688321a6 MDL-71012 setup: Return 500 error code for setup errors. 2021-04-01 13:50:52 +01:00
Leon Stringer
092d278806 MDL-60490 tool_lp: Missing div close
Mustache template had opening <div> with missing </div>.
2021-04-01 12:18:52 +01:00
sam marshall
8d9fe81a12 MDL-70446 search_solr: File indexing can fail due to multipart upload
Due to Solr bug SOLR-15039, uploading files for indexing can fail if
it uses multipart upload. This changes it to use direct binary upload.

Unfortunately, the direct binary version in PHP curl only supports a
string, so we have to load the file into memory. I added extra code to
restrict the size of files indexed to (memory limit - 100MB), which is
usually 284MB unless configured differently because cron runs under
MEMORY_EXTRA.
2021-04-01 11:20:28 +01:00
Mikhail Golenkov
8660e9a168 MDL-71254 oauth2: Redirect to the login page in case of error 2021-04-01 13:37:53 +11:00
AMOS bot
4c9a2e4aa0 Automatically generated installer lang files 2021-04-01 00:07:30 +00:00
Jun Pataleta
74cef5e157 MDL-71178 completion: Rebuild course cache before completion reset
Before resetting completion states during module update, we need to
rebuild the course cache first in order to properly reset the completion
states. Otherwise, calls to methods that fetch course module info
via cache (e.g. cm_info::create()) will fetch outdated information.
2021-04-01 00:47:08 +08:00
Juan Leyva
5cfb30aa97 MDL-70863 mod_forum: Allow NULL in timecreated 2021-03-31 17:55:04 +02:00
Jun Pataleta
8eb16699ed Merge branch 'MDL-70895_311' of https://github.com/mkassaei/moodle into MOODLE_311_STABLE 2021-03-31 21:26:33 +08:00
Mahmoud Kassaei
75614af822 MDL-70895 Questions: Default options when creating a question 2021-03-31 09:23:42 +01:00
Adrian Greeve
68964e7823 Merge branch 'MDL-37655_311' of https://github.com/stronk7/moodle into MOODLE_311_STABLE 2021-03-31 15:46:20 +08:00
Eloy Lafuente (stronk7)
d1c41b4dbb MDL-37655 phpunit: Avoid having multiple testcase classes in 1 file
Note that there wasn't any case of multiple testcase classes in
1 file. All the cases reported in the issue were false positives
caused but other "mock/fixture" files being named _test.

So all this issue does is:

1) rename any _test suffixed class in test files, because we are
   going to start renaming a lot of test classes to _test.

2) ensure that the 2 test case classes modified in this issue,
   are already observing the filename = classname rule that will
   be implemented soon (and verigy it works).
2021-03-30 19:17:59 +02:00
Víctor Déniz
3c5a338cd4 on-demand release 3.11dev+ 2021-03-30 15:39:41 +01:00
Víctor Déniz
2cb1f59249 Merge branch 'install_311_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_311_STABLE 2021-03-30 15:39:34 +01:00
Paul Holden
22d928d0bb MDL-65687 message: increase confirmation dialog zindex.
Make sure that confirmation dialogs (such as block/unblock user,
delete conversation) are shown with prominence in the messaging
drawer.
2021-03-30 10:50:40 +01:00
Tomo Tsuyuki
cf176f2a7f MDL-71136 backup: Fix moodle_exception path. 2021-03-30 10:56:30 +11:00
Mikhail Golenkov
0b4161c14d MDL-71233 backup: Fix Moodle version for MDL-69418 2021-03-30 10:43:53 +11:00
Paul Holden
6dfbe60b9c MDL-68635 tool_cohortroles: observe user initial table filter. 2021-03-29 14:12:29 +01:00
Paul Holden
81900d5e57 MDL-68716 mod_forum: extra column sorting options in privacy export.
Accounts for extra sort options that were added in bc23cbaf.
2021-03-29 14:05:49 +01:00
Eloy Lafuente (stronk7)
d24a83f5e7 Merge branch 'MDL-70963-311' of git://github.com/sarjona/moodle into MOODLE_311_STABLE 2021-03-29 12:39:49 +02:00
Sara Arjona
c2c04214bb MDL-70963 core_badges: Use expected JSON format for OBv2.1
This patch adds some changes to guarantee that OpenBadges 2.1 (OBv2.1)
will return always the same JSON format that OBv2.0 (because the only
difference between both versions it's the BadgeConnect API).
2021-03-29 10:03:15 +02:00
Andrew Nicols
d940eabc2c Merge branch 'MDL-70962-311' of git://github.com/paulholden/moodle into MOODLE_311_STABLE 2021-03-29 11:58:54 +08:00
Andrew Nicols
3815071676 Merge branch 'MDL-71004_311' of https://github.com/stronk7/moodle into MOODLE_311_STABLE 2021-03-29 11:54:13 +08:00
AMOS bot
a557cc3998 Automatically generated installer lang files 2021-03-29 00:07:28 +00:00
Eloy Lafuente (stronk7)
859a5589b2 Merge branch 'MDL-68496-311' of git://github.com/andrewnicols/moodle into MOODLE_311_STABLE 2021-03-28 23:48:26 +02:00
Eloy Lafuente (stronk7)
0bbf27a673 Merge branch 'MDL-71131-m311' of https://github.com/sammarshallou/moodle into MOODLE_311_STABLE 2021-03-28 23:21:45 +02:00
AMOS bot
fdbf5546bb Automatically generated installer lang files 2021-03-28 00:07:26 +00:00
Eloy Lafuente (stronk7)
b56163cbc1 Merge branch 'MDL-71099-m311' of https://github.com/sammarshallou/moodle into MOODLE_311_STABLE 2021-03-27 10:17:51 +01:00
Dan Marsden
ab69e730bd MDL-32226 mod_quiz: Add Plagiarism hooks to quiz and essay question. 2021-03-27 09:15:09 +13:00
Víctor Déniz
baa15131af Merge branch 'MDL-70537-m311' of https://github.com/sammarshallou/moodle into MOODLE_311_STABLE 2021-03-26 20:14:49 +00:00
Paul Holden
8576829c9b MDL-70142 admin: preserve selected cache definitions in the form.
By not redirecting when we are already on the purge caches page we
can preserve the submitted form data, allowing users to easily
repeat the previous action.
2021-03-26 13:09:24 +00:00
Sara Arjona
a2e48a4645 MDL-70722 oauth2: move Nextcloud methods to service class 2021-03-26 09:21:11 +01:00
Sara Arjona
ab810ed1f6 MDL-70722 oauth2: move Microsoft methods to service class 2021-03-26 09:21:11 +01:00
Sara Arjona
a6c03da192 MDL-70722 oauth2: move Facebook methods to service class 2021-03-26 09:21:11 +01:00
Sara Arjona
faef24307f MDL-70722 core_badges: minor fixes from MDL-70689
In MDL-70689, Eloy and Helen suggested some fixes to improve this patch.
As this is a followup issue to move the pending services, this
very first commit will fix pending things raised in the parent issue.
2021-03-26 09:21:11 +01:00
Shintaro Fujiwara
e271fd3a79 MDL-69304 gradeimport_csv: Validate if the user id is numerical. 2021-03-26 10:35:51 +09:00
Paul Holden
35efccacee MDL-70962 forms: catch modal exceptions when getting body content.
They are thrown in the following circumstances:

 * The dynamic form class doesn't exist;
 * It does exist but it's `check_access` method throws exception

Co-Authored-By: Andrew Nicols <andrew@nicols.co.uk>
2021-03-25 17:26:33 +00:00
Víctor Déniz
67943be4af Merge branch 'MDL-71194-311' of git://github.com/NoelDeMartin/moodle into MOODLE_311_STABLE 2021-03-25 15:13:50 +00:00
sam marshall
3c688fd9cb MDL-71131 Admin: Users page incorrectly showing all name fields 2021-03-25 13:50:08 +00:00
sam marshall
3dee5cd74c MDL-71099 Lib: Move new user_fields class from core to core_user
This class would belong more appropriately within the 'user' API
(core_user) instead of within the 'core' API, since it is
directly related to user data.

Since the class has only just been added to Moodle, now is a good
time to move it.
2021-03-25 13:48:04 +00:00
Víctor Déniz
a4a5863645 Merge branch 'MDL-70842_311_v3' of https://github.com/TomoTsuyuki/moodle into MOODLE_311_STABLE 2021-03-25 12:59:09 +00:00
Noel De Martin
c846c46e4e MDL-71194 behat: Fix app tests 2021-03-25 13:52:41 +01:00
Andrew Nicols
7ad0fea3b8 Merge branch 'MDL-70318-311' of https://github.com/ilyatregubov/moodle into MOODLE_311_STABLE 2021-03-25 12:31:44 +08:00
Andrew Nicols
4c9a7df3fb Merge branch 'MDL-65776-311' of git://github.com/sarjona/moodle into MOODLE_311_STABLE 2021-03-25 11:07:24 +08:00
Andrew Nicols
dc6079cd39 Merge branch 'MDL-70871-311' of git://github.com/roland04/moodle into MOODLE_311_STABLE 2021-03-25 08:12:08 +08:00