Commit graph

99879 commits

Author SHA1 Message Date
Sara Arjona
f1fed72bda MDL-69704 course: catch exception when calling get_course_content_items
When plugins are removed from disk, an exception is thrown when
calling component_callback_exists.
This exception should be catched here in order to load properly
the activity chooser (otherwise, the exception will be displayed
and no activity will appear).
2020-10-01 19:56:41 +02:00
Tim Hunt
07674eb12f MDL-69798 XML question export: excape special chars in idnumbers 2020-10-01 17:10:58 +01:00
Amaia Anabitarte
2308a02324 MDL-69672 core_contentbank: is_context_allowed unit tests 2020-10-01 17:56:38 +02:00
Eloy Lafuente (stronk7)
1da6703d6d Merge branch 'MDL-69672-39' of git://github.com/aanabit/moodle into MOODLE_39_STABLE 2020-10-01 17:49:23 +02:00
Eloy Lafuente (stronk7)
27a62292ad Merge branch 'MDL-69586-39' of https://github.com/paulholden/moodle into MOODLE_39_STABLE 2020-10-01 17:12:53 +02:00
David Mudrák
271b94ff4f MDL-69772 admin: Better validation for the allcountrycodes setting
The patch introduces a new admin_setting fiela type that can be used for
specifying comma separated list of countries. The field has inbuilt
validation so that only valid country codes can be inserted.
2020-10-01 13:37:51 +02:00
Jason Platts
315ec3bad6 MDL-68808 forms: autocomplete throwing error in IE11 2020-10-01 12:11:11 +01:00
Sara Arjona
4cb342ef34 Merge branch 'MDL-68098-39' of git://github.com/dpalou/moodle into MOODLE_39_STABLE 2020-10-01 12:56:31 +02:00
Dani Palou
e7bb7aa9a2 MDL-68098 tests: Reset FILTERLIB_PRIVATE after tests 2020-10-01 12:50:00 +02:00
Dani Palou
7aca3ebb3c MDL-68098 ws: Add unit tests to test mathjax in WS 2020-10-01 12:50:00 +02:00
David Matamoros
61bb2c70c2 MDL-69805 mod_data: Freeze comment field if comments disabled 2020-09-30 15:53:29 +02:00
Matteo Scaramuccia
d84da184c5 MDL-68536 core: Fix notice about undefined prop 'branch' in $CFG 2020-09-30 14:47:20 +02:00
Adrian Greeve
f612465b53 Merge branch 'MDL-37802-39' of https://github.com/paulholden/moodle into MOODLE_39_STABLE 2020-09-30 13:50:03 +08:00
Dan Marsden
4727970abd MDL-69641 grade: fix slow query.
This is a backport of MDL-69190
2020-09-30 15:00:35 +10:00
Adrian Greeve
88c700bd2c Merge branch 'MDL-69359_39' of https://github.com/adpe/moodle into MOODLE_39_STABLE 2020-09-30 11:43:16 +08:00
Sara Arjona
b354694012 Merge branch 'MDL-69342-39_profile_picture_deletion' of https://github.com/vtos/moodle into MOODLE_39_STABLE 2020-09-29 19:01:19 +02:00
Amaia Anabitarte
a9bccc9dbc MDL-69672 core_contentbank: Check used context level 2020-09-29 12:44:48 +02:00
Eloy Lafuente (stronk7)
7c52a27375 weekly release 3.9.2+ 2020-09-29 10:48:33 +02:00
Eloy Lafuente (stronk7)
300d9ca23d Merge branch 'install_39_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_39_STABLE 2020-09-29 10:48:29 +02:00
Claude Vervoort
00b2219fd4 MDL-68384 mod_lti: fix spec violations bo claim name and dl value type 2020-09-28 17:04:07 -04:00
Víctor Déniz
8b9d73dad8 Merge branch 'MDL-69644-39' of https://github.com/paulholden/moodle into MOODLE_39_STABLE 2020-09-28 20:34:26 +01:00
Shamim Rezaie
9029eb0e71 MDL-69649 form: Fix labels for defaultcustom form elements 2020-09-28 23:21:50 +10:00
Shamim Rezaie
d54b3447e6 MDL-69649 backup: Fix missing labels
- The backup details page uses a table to show a sumary of the backup
  content. Used role attribute to denote the tabular format of the
  summary.
- The backup details page displays activity name next to each activity
  icon. Therefore the icons are only decorative and do not need to have
  any title or even alt text.
- Form labels should be associated with form controls.  A div element is
  not a form control.
- The from attribute of the form labels should be equal to the id
  attribute of an element. Therefore, we first create a label and an
  input elements and associate them to each other, and then pass them to
  backup_detail_pair() when a label is needed.
2020-09-28 23:21:50 +10:00
sam marshall
39d542eeb4 MDL-69759 Web services: app checks to token.php cause log errors 2020-09-28 11:55:56 +01:00
AMOS bot
2cf6b7cc41 Automatically generated installer lang files 2020-09-26 00:07:59 +00:00
adpe
5651e88dc9 MDL-69359 admin_cli: show only contributed plugins in uninstall plugins 2020-09-25 17:03:31 +02:00
Hittesh Ahuja
5a90580646 MDL-65074 mod_quiz: Quiz navigation buttons shouldnt use btn-secondary
Removing .btn-secondary as plain.scss and default.scss in bootstrap hide the button from view.
2020-09-25 15:17:10 +01:00
Paul Holden
c98428aab3 MDL-37802 repository: return error if unzipping files fails.
For instance, when a user tried to unzip a password protected zip
archive using the file manager.
2020-09-25 09:34:01 +01:00
Paul Holden
dc780e3eb1 MDL-69586 tool_usertours: use specified user in privacy prefs export. 2020-09-25 09:13:39 +01:00
David Mudrák
d75844ea12 MDL-69772 admin: Fix legacy coding style on Location settings admin page
No actual change here. Just polishing the coding style and adding
fulltree check.
2020-09-24 18:14:12 +02:00
David Mudrák
11e5003bd6 MDL-69772 lang: Ignore misconfigured allcountrycodes filter
If the allcountrycodes filter contains only invalid values, ignore the
whole filter setting and make get_list_of_countries() return the full
list of all known countries, rather than empty list.
2020-09-24 18:14:12 +02:00
Víctor Déniz
a348c5f420 weekly release 3.9.2+ 2020-09-24 16:27:32 +01:00
Víctor Déniz
4b651226d5 Merge branch 'install_39_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_39_STABLE 2020-09-24 16:27:27 +01:00
Eloy Lafuente (stronk7)
e33c554aaa Merge branch 'MDL-69698-39-licensecache' of git://github.com/mudrd8mz/moodle into MOODLE_39_STABLE 2020-09-24 16:50:47 +02:00
Paul Holden
31937c4b0e MDL-69644 tool_dataprivacy: fix focus outline of contact DPO link.
The link class attribute is a leftover from 7258bf0b, which was mostly
removed in 3b2f691f. It no longer serves a purpose and interferes with
the element focus outline.
2020-09-24 11:51:15 +01:00
Vitaly
141216f94c MDL-69342 core_user: fixed user picture updating
When editing a user and checking the 'Delete picture' checkbox to delete
the old picture and uploading a new one at a time, the new one didn't appear
in the user profile. This happened due to the 'if/else' statement
in the 'core_user::update_picture()' method which allowed either to delete
the old picture or to upload a new one.
The fix removes the 'else' part of the 'if/else' statement to force
checking for a new uploaded picture no matter if a user checked
the 'Delete picture' checkbox or not.
2020-09-24 10:55:29 +03:00
Dani Palou
fba96f096b MDL-68098 ws: Fix WebServices broken by filters HTML 2020-09-23 16:23:19 +02:00
Eloy Lafuente (stronk7)
7148c9d35e Merge branch 'MDL-68229-39' of git://github.com/jleyva/moodle into MOODLE_39_STABLE 2020-09-23 11:51:30 +02:00
Eloy Lafuente (stronk7)
8193ba9da9 Merge branch 'MDL-69014-39' of https://github.com/paulholden/moodle into MOODLE_39_STABLE 2020-09-22 23:10:53 +02:00
Juan Leyva
6bf314500a MDL-64657 course: Return hidden section names when configured 2020-09-22 12:25:58 +02:00
AMOS bot
ee034c39e5 Automatically generated installer lang files 2020-09-22 00:07:13 +00:00
Eloy Lafuente (stronk7)
46aea33b69 Merge branch 'MDL-66648-39' of https://github.com/paulholden/moodle into MOODLE_39_STABLE 2020-09-21 23:36:30 +02:00
Eloy Lafuente (stronk7)
e0f9ca6787 Merge branch 'MDL-69667-MOODLE_39_STABLE' of https://github.com/comete-upn/moodle into MOODLE_39_STABLE 2020-09-21 23:20:35 +02:00
David Mudrák
976f8f0c52 MDL-67275 forum: Fix language and accessibility issues with buttons
There were inconsistencies with the text shown on the submit button,
depending on the where the button was shown.

* Inline reply forum displayed general "Submit".
* Experimental nested discussion view reply form displayed "Post"
  (post/core string) which acts as a noun in other contexts and cannot
  be used as such in many non-English languages.
* Advanced reply form displayed "Post to forum".

The patch fixes this and starts to show "Post to forum" in all three
places consistently.

While working on this, two more issues were noticed and fixed:

* Inline reply textarea's title was hard-coded English "post" text.
  Changed to "Message" to provide advisory information related to the
  element.
* Buttons contained title attribute with the same value as the explicit
  button text. This goes against accessibility guidelines.
2020-09-21 22:48:20 +02:00
sam marshall
767be5d8c1 MDL-69758 Web services: core_get_course_contents PHP warnings
Calls to core_get_course_contents can cause PHP warnings in the server
log if there are any URL instances in the course with sketchy URLs.
This is because url_export_contents incorrectly returns null instead
of an empty array if there is an error.
2020-09-21 15:28:47 +01:00
Juan Leyva
94140b11e8 MDL-68229 tool_mobile: Add missing option to disable tags in the app 2020-09-18 15:30:55 +02:00
Eloy Lafuente (stronk7)
a45e6838ef weekly release 3.9.2+ 2020-09-17 19:04:23 +02:00
Eloy Lafuente (stronk7)
ae17678a1c Merge branch 'install_39_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_39_STABLE 2020-09-17 19:04:20 +02:00
Eloy Lafuente (stronk7)
3ae39301b9 Merge branch 'MDL-69395_39' of github.com:stronk7/moodle into MOODLE_39_STABLE 2020-09-17 17:03:10 +02:00
Eloy Lafuente (stronk7)
422fcb70ca MDL-69395 theme_classic: remove superfluous selector already in boost 2020-09-17 13:06:06 +02:00