101298 Commits

Author SHA1 Message Date
Paul Holden
db98991498 MDL-71888 admin: define clitablesexist string used by CLI installer. 2021-06-09 22:04:30 +01:00
Andrew Nicols
657cbe587e MDL-71736 javascript: Run the ignorefiles command more liberally 2021-06-09 18:54:24 +08:00
abgreeve
d969465d41 Merge branch 'MDL-67975-master' of https://github.com/sharidas/moodle 2021-06-09 16:14:52 +08:00
Sujith Haridasan
0845f53d14 MDL-67975 nextcloud: Add support for Link to file
This change set would bring the following new additions
to the nextcloud repo:
1. Create a new radio button in filepicker: "Link to file"
2. When user clicks this radio button a warning message
   would be created, saying this file would become public.
   Meaning a public link is created in the nextcloud server.
3. Created a sync_reference method to sync the files downloaded
   from nextcloud server. The sync/refresh time given is 1 day/24 hours.
4. Made sure that when the file is downloaded, we use the file
   from moodledata file pool.

Signed-off-by: Sujith Haridasan <sujith@moodle.com>
2021-06-09 13:34:31 +05:30
Andrew Nicols
7782eeb55e Merge branch 'MDL-65637-master' of git://github.com/peterRd/moodle 2021-06-09 13:22:49 +08:00
Eloy Lafuente (stronk7)
9f960ef744 Merge branch 'master_MDL-69194-core_user_update_users' of https://github.com/mattporritt/moodle 2021-06-08 19:26:28 +02:00
abgreeve
1a9e810e06 Merge branch 'MDL-71207_master' of https://github.com/TomoTsuyuki/moodle 2021-06-08 10:44:04 +08:00
Matt Porritt
8281261b5a MDL-69194 user: make core_user_update_users return warnings
Add unit test coverage for the new warning scenarios.
2021-06-08 01:24:48 +00:00
Tomo Tsuyuki
14d11b8f0e MDL-71207 course: Add info for task error 2021-06-08 09:44:59 +10:00
Eloy Lafuente (stronk7)
ee7c31458a Merge branch 'master-MDL-71471_v2' of https://github.com/golenkovm/moodle 2021-06-07 20:14:46 +02:00
Eloy Lafuente (stronk7)
415a8c1c2c Merge branch 'MDL-71135-master' of git://github.com/sarjona/moodle 2021-06-07 12:56:50 +02:00
Ferran Recio
b85cba317e MDL-71134 core: add new reactive modules
The new course creation for Moodle 4.0 requires to add
some leavel of reactivity to the frontend. Instead of
building a specific solution only for the course editor,
in this commit there's a generic solution that can be
used in other places in Moodle to implement single
state reactive components.
2021-06-07 12:27:06 +02:00
Vitaly Potenko
6e7d77d11c MDL-69194 user: make core_user_update_users return warnings
The external function 'core_user_update_users()' always returned 'null' no matter
if a user or users were successfully updated or there were some failures.
So, there was no way for the caller to know which users were updated and which were not.
After the commit changes the function returns an 'external_warnings' instance. The function uses
a delegated transaction for each user to update within a loop. This enables the function to update
as many users as possible. This differs from the previous behavior of the function when it used
a delegate transaction outside of the loop where the users were updated. This resulted in a rollback
of the whole users updating in case any of the users had some invalid data. For each user within a loop
a 'try-catch' block is used to throw exceptions which are actually returned
as warnings by the function when they are caught.
2021-06-07 05:44:49 +00:00
Sara Arjona
5f91cbb611 MDL-71135 course: core_course_get_state external method 2021-06-04 16:43:28 +02:00
Sara Arjona
f7b0960d18 MDL-71135 course: add legacy_format_renderer support
Until Moodle 4.0, renderer.php file was optional (although highly recommended)
for course formats. From Moodle 4.0 onwards, renderer is required to support
the new course editor implementation.
The legacy_format_renderer class has been created for backward compatibility,
to avoid some errors with course formats (such as social) without the renderer
file. Apart from that, course_format->get_renderer() method has been reviewed
to use this legacy_format_renderer when no renderer.php file is found.
2021-06-04 16:43:06 +02:00
Paul Holden
7f6364971e MDL-71052 course: use filetypes setting for course overview files. 2021-06-04 09:35:15 +01:00
Jordi Pujol Ahulló
9c4510a358 MDL-70230 admin: add setting sched. task status
When defining settings that are used by scheduled tasks,
it is also useful, or even needed, to know the status
of that scheduled task to have the whole big picture of
that part of the system.

Based on the admin_setting_description, this new setting
reports its name, its status, a link to the configuration.

When adding a new setting of this type, the user can add
an extra description field to complete the whole meaning.
2021-06-04 08:12:16 +02:00
Mikhail Golenkov
f3cd860698 MDL-71471 assign: Remove submission from queue when converted in web 2021-06-04 15:18:59 +10:00
Eloy Lafuente (stronk7)
411150a424 weekly release 4.0dev 2021-06-03 23:56:05 +02:00
Eloy Lafuente (stronk7)
99f76ae180 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2021-06-03 23:56:01 +02:00
sam marshall
007cde2eab MDL-71559 core_user: Fields support for PROFILE_VISIBLE_TEACHERS 2021-06-03 11:23:06 +01:00
hiendinh
ffb403d9b5 MDL-71813 filepicker: view file not available using keyboard (Enter) 2021-06-03 14:14:21 +07:00
Dongsheng Cai
4357b7ef16 MDL-70846 accessibility: update color to increase contrast 2021-06-03 13:52:05 +10:00
Dongsheng Cai
e3690a392d MDL-70846 accessibility: update tree attributes to pass a11y check
- Move aria-* atrributes from <p> to <li>
- Move "role" attribute from <p> to <li>
- Update behat tests

Based on reference implementation from:
- https://www.w3.org/TR/wai-aria-practices-1.1/examples/treeview/treeview-2/treeview-2a.html
- https://www.w3.org/WAI/GL/wiki/Using_ARIA_trees
2021-06-03 13:52:04 +10:00
Andrew Nicols
95fed58b5e Merge branch 'MDL-71741-master' of git://github.com/HuongNV13/moodle 2021-06-03 11:51:12 +08:00
Huong Nguyen
711d309aa3 MDL-71741 portfolio: Reset header information between requests
The reset process also removes the CURLFile option in the HTTP object,
which will avoid the serialisation issue on PHP7.4 and upward
2021-06-03 10:49:50 +07:00
Andrew Nicols
1edd0acaaf Merge branch 'MDL-71661' of https://github.com/paulholden/moodle 2021-06-03 11:44:57 +08:00
abgreeve
c5a08d897d Merge branch 'MDL-71284-master' of git://github.com/lucaboesch/moodle 2021-06-03 11:42:53 +08:00
Andrew Nicols
ad2d9ec710 Merge branch 'MDL-71668-master' of git://github.com/rezaies/moodle 2021-06-03 11:31:42 +08:00
Andrew Nicols
5bbe63c584 Merge branch 'MDL-71622' of https://github.com/stronk7/moodle 2021-06-03 11:18:25 +08:00
Andrew Nicols
aaba6ccce3 Merge branch 'MDL-71737-master' of git://github.com/HuongNV13/moodle 2021-06-03 11:06:57 +08:00
abgreeve
6176e350fc Merge branch 'MDL-71693' of git://github.com/paulholden/moodle 2021-06-03 10:17:11 +08:00
abgreeve
e634ad8e3d Merge branch 'MDL-68927' of https://github.com/paulholden/moodle 2021-06-03 09:47:06 +08:00
abgreeve
ef1d17c8ba Merge branch 'MDL-71644-master' of https://github.com/NashTechOpenUniversity/moodle 2021-06-03 09:40:43 +08:00
Eloy Lafuente (stronk7)
439dd153fe Merge branch 'MDL-71476-drop_myisam_migrate' of https://github.com/leonstr/moodle 2021-06-03 00:00:07 +02:00
Eloy Lafuente (stronk7)
0f5e9aa759 Merge branch 'master-MDL-71438_v2' of https://github.com/golenkovm/moodle 2021-06-02 23:51:52 +02:00
Paul Holden
e2327b5219 MDL-71682 course: remove deprecated non-AJAX activity chooser call.
The deprecated method to render the dropdown based activity chooser
from 430746d3 was still being called, which produced debugging on
the site when doing so.
2021-06-02 21:00:24 +01:00
Tim Hunt
1287ecaeff MDL-71838 quiz reports: average rows calc can run out of memory
Should not use get_records when you mean record_exists.
2021-06-02 16:06:32 +01:00
sam marshall
171313781d MDL-71836 core_enrol: Cannot search for users by username 2021-06-02 14:52:43 +01:00
Mikhail Golenkov
ee3c6ad3ac MDL-71438 blocks: Add index on mdl_user_preferences.name 2021-06-02 22:10:37 +10:00
sam marshall
92bcadb9a8 MDL-71832 core_admin: Browse users page, sort by custom field fails
The failure was because the sort parameter in URL is like
profile_field_xx, but PARAM_ALPHANUM strips the _ symbols.
2021-06-02 12:03:37 +01:00
Brendan Heywood
fbb36f8977 MDL-67822 report_performance: Add DB schema check 2021-06-02 18:45:12 +10:00
Ilya Tregubov
b071a7b838 MDL-71382 course: Don't allow empty name for section 0. 2021-06-02 08:42:12 +02:00
Andrew Nicols
9d9352e01a Merge branch 'master-MDL-70337' of https://github.com/golenkovm/moodle 2021-06-02 12:20:47 +08:00
Huong Nguyen
36d5b918f0 MDL-58592 group: Remove group description on the groups overview page 2021-06-02 09:29:36 +07:00
Peter Dias
8e71f6b1f1 MDL-65637 core_oauth2: Introduce a new custom linkedin oauth2 client 2021-06-02 08:11:38 +08:00
Peter Dias
169e1812ed MDL-65637 core_oauth2: Create new oauth2 mapping function
Separated userinfo mapping into a function and new unit test
2021-06-02 08:11:38 +08:00
AMOS bot
0c93e0fb28 Automatically generated installer lang files 2021-06-02 00:07:41 +00:00
Brendan Heywood
7d96f74f6f MDL-71806 report_security: Improve public paths check 2021-06-01 18:24:53 +10:00
Andrew Nicols
73d178eb8f Merge branch 'MDL-71731' of https://github.com/stronk7/moodle 2021-06-01 12:46:54 +08:00