108930 Commits

Author SHA1 Message Date
Sara Arjona
6f0e80bd21
Merge branch 'MDL-65363-starred-courses-only-include-enroled-courses-MOODLE_4.1' of https://github.com/stopfstedt/moodle into MOODLE_401_STABLE 2023-08-23 15:27:48 +02:00
Paul Holden
c5967dd7d0
MDL-79139 check: clarify default user role action text. 2023-08-23 13:35:44 +01:00
Daniel Poggenpohl
a06d7f47be
MDL-72359 core: Changed MAX_TIME from 9999999999 to PHP_INT_MAX
This prevents automatic casting from int to double on 32 bit systems
(which have a maximum for integers of 2147483647)

Whilst Moodle does not support 32-bit systems any longer, this is still
worth doing to prevent future issues.
2023-08-23 14:34:32 +08:00
Andrew Nicols
19a25450d2
MDL-76092 core_backup: Unit tests for convert_params_to_values 2023-08-23 14:19:05 +08:00
Paola Maneggia
64fe594e85
MDL-76092 core_backup: Fix PHP8.0 vulnerability convert_params_to_values 2023-08-23 13:26:44 +08:00
Paul Holden
ae51bda773
MDL-78787 dml: native casting to char in SQL Server driver.
Ensure the same is used during concatentation to prevent truncation
of data, which was previously set at 255 characters per field.
2023-08-23 00:55:18 +01:00
Paul Holden
367f2bf707
MDL-78961 admin: correct smtppass preset configuration name. 2023-08-22 18:27:36 +01:00
Paul Holden
f7b3caac2c
MDL-78656 output: display menu item titles in primary navigation.
Since custom menu items were merged into the primary navigation/more
menu as part of 56c34d71 and related work, the "title" attribute of
each custom menu item was lost.
2023-08-22 17:30:04 +01:00
Andrew Nicols
6dcb455973
MDL-69187 core_file: Unit test for file_get_typegroup string types 2023-08-22 17:10:36 +01:00
Paul Holden
ec92edec88
MDL-78688 admin: define accepted filetype for uploaded preset file. 2023-08-22 15:32:14 +01:00
Sara Arjona
4adae8e489
weekly release 4.1.5+ 2023-08-22 15:51:02 +02:00
Paul Holden
8034ad8be2
MDL-69187 files: normalize retrieval of mimetypes from groups array.
Ensure that the following both return consistently, so that filepicker
form elements behave the same for each when defining "accepted_types":

    '.html, .txt'
    ['.html', '.txt']
2023-08-22 09:56:17 +01:00
Paul Holden
08344a8c4b
MDL-79073 question: detect missing context when deleting question. 2023-08-22 09:45:25 +01:00
Paul Holden
434e5af241
MDL-78386 search: specify correct parameter type for search area. 2023-08-22 08:12:07 +01:00
Paul Holden
f9aa8a5d75
MDL-79017 core: re-factor method to unserialize array.
We can use the existing helper for object unserialization as the
base for this method, rather than manual string parsing.
2023-08-21 21:02:45 +01:00
Leon Stringer
fe3054d05b MDL-79075 quiz: Fix transposed user IDs
In the description of "Quiz attempt reviewed" events the user IDs of
the reviewer (typically the teacher) and the reviewee (typically the
student) were the wrong way round.
2023-08-21 15:50:28 +01:00
Paul Holden
5af5c5d0a6
Merge branch 'MDL-79071-401' of https://github.com/junpataleta/moodle into MOODLE_401_STABLE 2023-08-21 15:32:44 +01:00
Paul Holden
194458b229
MDL-78707 forms: improve form container collapsing mechanism.
By using a more explicit selector for matching containers we avoid
previous problems such as incorrect count, and collapsing of elements
that had the same class name.
2023-08-21 12:38:57 +01:00
Paul Holden
4538b46a96
MDL-78397 course: update module name using API after duplicating.
This ensures that various ancillary tasks are also performed (such
as ensuring the gradebook item name matches).
2023-08-21 10:56:45 +01:00
Paul Holden
e4ba5d276d
MDL-78533 grade: relax param type of itemname in external structures.
Ensure it conforms to the same format as allowed for course modules.
2023-08-21 10:54:24 +01:00
Paul Holden
79e12570d9
MDL-78502 grade: consider only those export formats user can access. 2023-08-21 10:47:06 +01:00
Paul Holden
b971d76406
MDL-78615 cache: display failure notifications deleting lock/store. 2023-08-21 10:45:23 +01:00
Huong Nguyen
4a3603d49c
Merge branch 'MDL-65887-401' of https://github.com/lucaboesch/moodle into MOODLE_401_STABLE 2023-08-21 10:57:48 +07:00
Stefan Topfstedt
e4b3b1c79b MDL-65363 block_starredcourses: only list enroled courses
Filter out any starred courses that the logged-in user is not enroled in.
2023-08-18 11:06:46 -07:00
Daniel Poggenpohl
bcf9d4bf68 MDL-77657 theme: Corrected return type 2023-08-18 16:21:02 +02:00
Daniel Poggenpohl
92ee1c561e MDL-77657 theme: Fix get_pre_scss_code load order
This led to problems with grandchild themes,
depending on their direct parent's prescsscallback.
2023-08-18 16:21:02 +02:00
Daniel Poggenpohl
862e1e10c2 MDL-77657 theme: Fix get_extra_scss_code load order
This led to problems with grandchild themes,
depending on their direct parent's extrascsscallback.
2023-08-18 16:21:02 +02:00
Jun Pataleta
96e0a8b04d
MDL-79071 course: An empty alt text is needed for decorative images 2023-08-18 17:03:54 +08:00
Jun Pataleta
8fe9f8579d
MDL-79063 course: Use .text-body for 'disabled' elements in move modal
Using the .disabled class for the course module or section that is
being moved does not have sufficient colour contrast against the
background, especially when it is being highlighted.
So instead of using .disabled, just use Bootstrap classes .text-body
and .font-italic which renders the cm/section to be moved in normal
font colour while preserving its italicised look.
2023-08-18 16:35:48 +08:00
Jun Pataleta
23d6705ad6
MDL-79063 theme_boost: Match .disabled font colour with .text-muted
* For consistency
* The font colour for .text-muted meets a contrast ratio of 4.69:1
which meets WCAG 2.1 Level AA success criterion for minimum contrast.
2023-08-18 16:29:56 +08:00
Luca Bösch
2baa3bb4a5 MDL-65887 workshop: Recalculate + fill the 'Grade for assessment' column 2023-08-18 08:58:43 +02:00
Ilya Tregubov
f12e1b82a0
weekly release 4.1.5+ 2023-08-18 11:23:59 +08:00
Dan Marsden
e3fb15de88 MDL-63539 mod_scorm: AICC multi-row content not saving correctly. 2023-08-18 14:45:08 +12:00
Eloy Lafuente (stronk7)
4f6df8a5b9
Merge branch 'MDL-78684-401-fix-2' of https://github.com/lameze/moodle into MOODLE_401_STABLE 2023-08-17 19:56:46 +02:00
Simey Lameze
fd046bf6d6 MDL-78684 behat: fix behat failures 2023-08-17 21:01:05 +08:00
Jun Pataleta
527a11e48c
Merge branch 'MDL-78938-401' of https://github.com/andrewnicols/moodle into MOODLE_401_STABLE 2023-08-17 09:58:31 +08:00
Andrew Nicols
c0b521386c
Merge branch 'MDL-77695-401' of https://github.com/lameze/moodle into MOODLE_401_STABLE 2023-08-16 23:23:26 +08:00
Andrew Nicols
b2780aa6f6
MDL-76557 enrol_lti: Fix unit test docs and convert to provider 2023-08-16 23:04:14 +08:00
ishatalkin
0608452503
MDL-76557 enrol_lti: sync_grades accepts status codes 200,201,202,204 2023-08-16 23:04:11 +08:00
Andrew Nicols
d6a9f01cc9
Merge branch 'MDL-78684-401' of https://github.com/andelacruz/moodle into MOODLE_401_STABLE 2023-08-16 22:44:35 +08:00
Andrew Nicols
558d836861
MDL-77381 qengine: Correct coverage for new test 2023-08-16 22:40:16 +08:00
Andrew Nicols
0d82ce2629
Merge branch 'MDL-77381-MOODLE_401_STABLE' of https://github.com/ScottVerbeek/moodle into MOODLE_401_STABLE 2023-08-16 22:40:12 +08:00
Simey Lameze
896763076e MDL-77695 behat: use automatic completion to award badges 2023-08-16 21:16:02 +08:00
Andrew Nicols
7e77e66350
MDL-78938 course: Wrap manual completion toggle in pending
This commit makes two changes to reduce random failures in behat:
- wrap the toggling of manually configured completion in pendingjs
- set the loading spinner content without forcing the completion toggle
  ws to wait for the loading spinner to update.
2023-08-16 20:05:24 +08:00
Andrew Nicols
c2af464083
MDL-78938 report_progres: Wrap completion status update in pending 2023-08-16 20:05:24 +08:00
Mikel Martín
09500beae2 MDL-74429 core_form: Fix element url input overflow 2023-08-16 12:41:24 +02:00
Jun Pataleta
152acdd72f
Merge branch 'MDL-78505/401' of https://github.com/skodak/moodle into MOODLE_401_STABLE 2023-08-15 22:21:05 +08:00
Petr Skoda
3847e0ba04 MDL-78505 core: stop mangling existing Mardown in text editors
The problem is that HTML Purifier is not compatible with Markdown,
that means we cannot sanitise Markdown texts before editing.

Luckily Markdown has to use plain text editor which does not have
XSS problems.

The only tiny downside is that Markdown cannot be allowed
in "trust text" areas any more.
2023-08-15 14:27:07 +02:00
Petr Skoda
05ffcf0579 MDL-78505 Revert "MDL-32114 form: markdown must be preserved on saving post"
This partially reverts commit 4a31dd69d6d89818f676ece916e573aa894d49d6.
2023-08-15 14:27:07 +02:00
Huong Nguyen
baed2a1aa1
Merge branch 'MDL-71909-m401' of https://github.com/NeillM/moodle into MOODLE_401_STABLE 2023-08-15 16:33:32 +07:00