Commit graph

112744 commits

Author SHA1 Message Date
Huong Nguyen
1b106e1c69 Merge branch 'MDL-78940-main' of https://github.com/lameze/moodle 2023-12-21 08:46:50 +07:00
Shamim Rezaie
494064288c Merge branch 'MDL-80318-master' of https://github.com/jleyva/moodle 2023-12-21 01:13:20 +11:00
Ferran Recio
837dc7e852 MDL-80186 course: adding new fields to delegate sections logic 2023-12-20 12:02:51 +01:00
Huong Nguyen
7a9f3ae18b Merge branch 'MDL-80151-main' of https://github.com/lameze/moodle 2023-12-20 15:39:37 +07:00
Huong Nguyen
a529ee94b3 MDL-80151 behat: Improve viewing site calendar step 2023-12-20 16:31:00 +08:00
Ilya Tregubov
e80f5e1f6e Merge branch 'MDL-79128-main' of https://github.com/HuongNV13/moodle 2023-12-20 16:12:35 +08:00
Jun Pataleta
1165da6349
Merge branch 'MDL-68124-main' of https://github.com/sarjona/moodle 2023-12-20 15:00:51 +08:00
Huong Nguyen
bd3af64741 MDL-79128 adhoc_task: Added 'Never' status for ad-hoc task Next run
Co-authored-by: Stevani Andolo <stevani.andolo@moodle.com>
2023-12-20 13:55:13 +07:00
Huong Nguyen
f13392d230 MDL-79128 adhoc_task: Implement failed ad-hoc task cleanup
Co-authored-by: Stevani Andolo <stevani.andolo@moodle.com>
2023-12-20 13:55:13 +07:00
Huong Nguyen
6c047c40b7 MDL-79128 adhoc_task: Only rerun the allowed task
Co-authored-by: Stevani Andolo <stevani.andolo@moodle.com>
2023-12-20 13:55:13 +07:00
Huong Nguyen
a44f14c79e MDL-79128 adhoc_task: Implement no-retry task
Co-authored-by: Stevani Andolo <stevani.andolo@moodle.com>

Including in this commit:
 - Added a new counter called attemptsavailable for ad-hoc task
 - PHPUnit test for the new feature
2023-12-20 13:55:13 +07:00
Ilya Tregubov
1e83b9eba7 Merge branch 'MDL-79985-master' of https://github.com/ferranrecio/moodle 2023-12-20 09:06:08 +08:00
Simon Adams
8c76c55e67 MDL-80357 theme_boost: Correctly interpolate SCSS
Fixes interpolation between SCSS setting and background images SCSS when SCSS setting is a single line comment
2023-12-19 15:13:54 +00:00
Paul Holden
012dd24a43
MDL-80260 tool_mfa: fix all factor report table alignment per auth. 2023-12-19 12:20:34 +00:00
Sara Arjona
d4227cd67d
Merge branch 'MDL-80052' of https://github.com/dravek/moodle 2023-12-19 11:54:14 +01:00
Jun Pataleta
46815352ec
Merge branch 'MDL-80393' of https://github.com/paulholden/moodle 2023-12-19 17:25:15 +08:00
David Carrillo
76bed1480a
MDL-80052 badges: Convert Course badges report to use Report builder 2023-12-19 10:23:27 +01:00
David Carrillo
982581d5eb
MDL-80052 badges: Convert Badge recipients report to use Report builder 2023-12-19 10:23:26 +01:00
Ferran Recio
3344354641 MDL-79985 forms: add choicedropdown form element
The new quick form field uses a choice list to display a dropdown
component inside a form. Apart from que quick form code, the patch also
include a small improvement to the choicelist class to disable empty
values. This small patch is needed because the quickform field won't
allow empty values.
2023-12-19 09:43:35 +01:00
Ferran Recio
02de5b79fd MDL-79985 output: prepare dropdown components for forms
Add new features to the dropdown components (dialog and status) needed
for using them in quick forms. Now the dialog dropdown have methods to
disable the dropdown button (to disable the field). The status dropdown
has one minor style bugfix and the selected item styles are now stored
as a data attribute.
2023-12-19 09:33:45 +01:00
Paul Holden
114605accc
MDL-80446 mod_feedback: stricter selector for getting draggable items.
Ensure we don't also match inner nodes of the label question.
2023-12-19 08:26:47 +00:00
Jun Pataleta
f0c5500f83
Merge branch 'MDL-79709-master' of https://github.com/davewoloszyn/moodle 2023-12-19 16:07:24 +08:00
Jun Pataleta
99596c7bc7
MDL-76723 core_tag: Use external_format_value constructor properly
* First parameter should be the field name that the format property
points to.
* No need for VALUE_REQUIRED since it's the default for the $required
parameter.
* Third parameter is the default value and not a description string.
2023-12-19 15:48:08 +08:00
Jun Pataleta
80839957ef
MDL-76723 mod_page: Use external_format_value constructor properly
* 'Content format' is passed to the $default parameter which is
incorrect.
* Also removed passing of VALUE_REQUIRED because it's already the
default value for the $required parameter.
2023-12-19 15:48:07 +08:00
Jun Pataleta
9dcffb4a93
MDL-76723 core_external: Handle format properties properly
- If a text format property defines the 'optional' attribute as true,
then the $required parameter that
is passed to \core\external\exporter::get_format_structure() should be
VALUE_OPTIONAL.
- If a default value is provided for a format property,
\core\external\exporter::get_format_structure() should pass the default
value to the external_format_value constructor.
- Added validation for external_format_value for the default parameter.
  Debugging will be shown in case an invalid default value is passed.
- Amended unit tests for better coverage.
2023-12-19 15:48:07 +08:00
Frédéric Massart
e0829fe58b
MDL-76723 core_external: Test invalid required value for format fields 2023-12-19 15:48:07 +08:00
Paul Holden
3019f4e57c
MDL-80393 lang: expose current page language to JS modules.
Since 4be39296 the root HTML element contains the iso6391 language
code of the current language pack. However various JS modules need
access to the original Moodle language pack code, so expose that
in the `M.cfg` structure.
2023-12-19 07:47:15 +00:00
Jun Pataleta
6f28538750
MDL-80201 core: Check for default format value for exporter::export() 2023-12-19 15:42:08 +08:00
Ilya Tregubov
c28cdf9ca9 Merge branch 'MDL-69541-master_improve_accessibility_of_post_a_copy_to_all_groups_option' of https://github.com/vtos/moodle 2023-12-19 11:37:24 +08:00
Huong Nguyen
b791f70d06 Merge branch 'MDL-78689-master' of https://github.com/safatshahin/moodle 2023-12-19 09:59:10 +07:00
David Woloszyn
edffece53c MDL-80403 communication_matrix: Fixed convert power levels to array
The curent patch revealed a bug inside set_matrix_power_levels
where returned user power levels contained an array of objects.
Other methods were failing and giving incorrect responses
as they were expecting arrays.
2023-12-19 12:57:20 +11:00
Andrew Nicols
0a7c58fd8f
MDL-59467 core: Use hasHelper instead of catching exception
When xdebug is set to break on exceptions it stops on all exceptions,
including _caught_ exceptions.

As a result we regularly hit this uniqid helper issue if debugging with
xdebug.

The solution is to check if the helper exists using the hasHelper method
instead of catching an exception when it does not exist.
2023-12-19 09:13:53 +08:00
Safat
27a3f34993 MDL-78689 core: Version bump 2023-12-19 11:18:27 +11:00
Safat
e7586331a2 MDL-78689 communication_matrix: Add support for sync provider feature 2023-12-19 11:18:27 +11:00
Safat
a946b09410 MDL-78689 core_communication: Add sync provider feature 2023-12-19 11:18:27 +11:00
Paul Holden
f0efcf9494
MDL-79663 libraries: upgrade to version 1.3.71 of Minify. 2023-12-18 20:10:47 +00:00
Paul Holden
827a00af52
MDL-79662 libraries: upgrade to version 5.22.7 of ADOdb. 2023-12-18 20:05:14 +00:00
Jun Pataleta
8a187ceb53
Merge branch 'MDL-73926-master-v7' of https://github.com/TomoTsuyuki/moodle 2023-12-18 18:00:42 +08:00
Angelia Dela Cruz
dcfd8490b5 MDL-80151 mod_chat: Behat for chat repeat times and past session view 2023-12-18 16:10:15 +08:00
Simey Lameze
2321dc3396 MDL-80151 behat: add calendar step to navigate to specific view 2023-12-18 16:10:11 +08:00
Sara Arjona
9d19157b08
MDL-68124 lesson: Fix random behat error with Oracle
This random error was caused because when reviewing an attempt,
the first pageid to display is calculated based on the timeseen
field in the lesson_attempst table.
In Oracle, sometimes it returned the second pageid (because both
had the same timeseen), so which led to these random failures.

Apart from adding 1-second wait when the attempt is created (to
guarantee the first page is returned properly), a few more
improvements have been also made, like removing manual steps for
setting the lesson activity or adding some extra checks to
confirm the information displayed is expected.
2023-12-18 08:21:18 +01:00
Huong Nguyen
e6b01af686 Merge branch 'MDL-80329' of https://github.com/paulholden/moodle 2023-12-18 14:02:55 +07:00
Jun Pataleta
92512426a5
Merge branch 'MDL-79786-main' of https://github.com/rmady/moodle 2023-12-18 13:08:54 +08:00
Simey Lameze
8e1fcc268a MDL-80243 behat: make completion step more specific
Credit goes to Matthias Opitz
2023-12-18 09:25:09 +08:00
Simey Lameze
af453412e2 MDL-78940 course: create social forum using event observers
This commit also convert manual steps to create discussions on the
Social forum to use data generators.
2023-12-18 09:16:24 +08:00
Paul Holden
58237bb91a
MDL-73545 mod_lesson: final removal of reprecated header button method. 2023-12-15 14:31:37 +00:00
Paul Holden
975439b234
MDL-80412 reportbuilder: Behat scenario to view/sort additional names.
Related to fixes from 8f32e623.
2023-12-15 10:50:33 +00:00
Paul Holden
4fb106506d
MDL-79552 cohort: add cohort data to user-focused custom reports. 2023-12-15 09:58:19 +00:00
Paul Holden
bdbc9e0128
MDL-79552 reportbuilder: improve datasource methods to add elements.
Allow specifying which entity elements to add to a report more easily,
and support wildcard matching of the same.
2023-12-15 09:58:19 +00:00
Huong Nguyen
513f3b02c7 weekly release 4.4dev 2023-12-15 08:44:11 +07:00