25055 Commits

Author SHA1 Message Date
Jun Pataleta
c9c65a1b95
Merge branch 'MDL-80402-main' of https://github.com/andelacruz/moodle 2024-02-13 15:52:16 +08:00
Huong Nguyen
043c829ff1 Merge branch 'MDL-80630_main' of https://github.com/PhilippImhof/moodle 2024-02-13 09:54:53 +07:00
Huong Nguyen
22b0e01c27 Merge branch 'MDL-80869' of https://github.com/paulholden/moodle 2024-02-13 09:54:52 +07:00
Angelia Dela Cruz
a79c061821 MDL-80402 mod_quiz: Behat for interactive quiz question dependency 2024-02-13 10:33:28 +08:00
Jun Pataleta
a8a31f648d
Merge branch 'MDL-80072-main' of https://github.com/andrewnicols/moodle 2024-02-12 13:58:05 +08:00
Andrew Nicols
d56303aa54
MDL-80072 core: Promote all formatting options to parameters
Now that PHP has support for named parameters, and we can use them in
Moodle, we should ditch `$options` arrays and use first-class,
documented, parameters.

Whilst this may seem scary, dumb, overwhelming, please note that you do
not need to supply all args, for example, to change the last parameter
of `format_text` you no longer need to do this:

    return \core\container::get(\core\formatting::class)->format_text(
       $text,
       FORMAT_MOODLE,
       $context,
       false,
       null,
       true,
       true,
       true,
       false,
       false,
       true,
    );

Instead you can do:

    return \core\container::get(\core\formatting::class)->format_text(
       $text,
       FORMAT_MOODLE,
       $context,
       allowid: true,
    );

Or better still:

    return \core\container::get(\core\formatting::class)->format_text(
       text: $text,
       format: FORMAT_MOODLE,
       context: $context,
       allowid: true,
    );

This means that we can get defaults in the function signature, improves
our typing, and allows for deprecation and changes to options. It also
sets us up for success in the future.
2024-02-12 11:11:18 +08:00
Andrew Nicols
d6dc3847f4
MDL-80072 core: Update uses of courseid to format_text 2024-02-12 11:11:17 +08:00
Jun Pataleta
f96df76bfc
Merge branch 'MDL-79788' of https://github.com/paulholden/moodle 2024-02-09 16:46:54 +08:00
Paul Holden
27ca0daf87
MDL-79788 tag: convert module creation of tags to generators.
We don't need to use the tags UI directly for creating tags in module
scenarios, because it's slow and prone to error in case of interface
changes.
2024-02-08 16:31:02 +00:00
Paul Holden
d519d7b8b7
MDL-80869 mod_bigbluebuttonbn: ensure test retrieves expected record. 2024-02-08 13:21:44 +00:00
Philipp Imhof
5ec21f8d82
MDL-80630 mod_quiz: keep timer hidden across pages
If a student hides the timer, store that setting in their user
preferences in order to keep it hidden even if they go from one page
to another in a quiz.
2024-02-08 09:43:01 +01:00
Ilya Tregubov
1c059cb3fe
MDL-80504 forum: Fix seperate group mode 2024-02-08 15:32:31 +08:00
Andrew Nicols
8c627ce745
Merge branch 'MDL-80738' of https://github.com/paulholden/moodle 2024-02-08 15:32:30 +08:00
Leon Stringer
662192fcec
MDL-80501 mod_h5pactivity: activity group mode
Respect activity's group mode when checking access to the report.
Previously only the course's group mode was checked.
2024-02-08 15:32:30 +08:00
Sara Arjona
eb0fa7027c
Merge branch 'MDL-80808' of https://github.com/timhunt/moodle 2024-02-08 15:32:23 +08:00
Sara Arjona
5c69b393df
Merge branch 'MDL-79514' of https://github.com/paulholden/moodle 2024-02-08 15:32:00 +08:00
Ilya Tregubov
6eaeeda6cf
MDL-69774 mod_forum: Restrict URL to accpet only expected params 2024-02-08 15:31:59 +08:00
Ilya Tregubov
8d845a639f Merge branch 'MDL-78621' of https://github.com/paulholden/moodle 2024-02-07 08:56:41 +08:00
Jun Pataleta
83532409cc
Merge branch 'MDL-80725-main-enfix' of https://github.com/mudrd8mz/moodle 2024-02-06 15:59:07 +08:00
Ilya Tregubov
b87c53b2bb Merge branch 'MDL-79295-master' of https://github.com/jleyva/moodle 2024-02-06 11:15:48 +08:00
Huong Nguyen
54217383c3 Merge branch 'MDL-80811' of https://github.com/paulholden/moodle 2024-02-05 13:41:56 +07:00
Huong Nguyen
7f7280f5d7 Merge branch 'MDL-80718-master' of https://github.com/dpalou/moodle 2024-02-05 13:36:54 +07:00
Huong Nguyen
d884fbe2b1 Merge branch 'MDL-67772-email-thread-headers' of https://github.com/brendanheywood/moodle 2024-02-05 13:33:06 +07:00
Tim Hunt
435ee33af1 MDL-80808 quiz: improve message when the student can't review 2024-02-02 17:30:47 +00:00
Paul Holden
fb7838586e
MDL-80811 mod_quiz: fix question preview popup event handling.
* Fix the selector used to identify the preview icon element;
* Remove redundant code for handling it's click event, because it
  already registers itself with a popup action which handles that.
2024-02-01 20:29:00 +00:00
David Mudrák
e32bd37113 MDL-80725 lang: Fix Behat regressions related to the question rename 2024-02-01 20:02:22 +01:00
Brendan Heywood
cc0d2d4630 MDL-67772 mod_forum: Fix email threading for first message 2024-02-01 16:11:44 +11:00
Jun Pataleta
13c8b7e4fe
Merge branch 'MDL-70483-main' of https://github.com/kevpercy/moodle 2024-02-01 12:04:49 +08:00
Huong Nguyen
08a4c5f9ea Merge branch 'MDL-80450' of https://github.com/paulholden/moodle 2024-02-01 11:00:46 +07:00
Huong Nguyen
a9e293cac9 Merge branch 'MDL-80289-main' of https://github.com/call-learning/moodle 2024-02-01 08:55:09 +07:00
Helen Foster
ddbfeecb83 MDL-80725 lang: Import fixed English strings (en_fix) 2024-01-31 18:45:03 +01:00
Ilya Tregubov
d93271063a Merge branch 'MDL-80575' of https://github.com/paulholden/moodle 2024-01-31 09:24:03 +08:00
Paul Holden
7db305c8f4
MDL-80738 quiz_statistics: ensure tests uses a DB-backed lock class.
Fix the test file/class name too.

Co-authored-by: Andrew Nicols <andrew@nicols.co.uk>
2024-01-30 15:38:35 +00:00
Huong Nguyen
980040748c Merge branch 'MDL-80523' of https://github.com/paulholden/moodle 2024-01-30 09:41:35 +07:00
Huong Nguyen
917aba079b Merge branch 'MDL-73545' of https://github.com/paulholden/moodle 2024-01-30 09:38:38 +07:00
Jun Pataleta
659b219869
Merge branch 'MDL-69225-main' of https://github.com/sarjona/moodle 2024-01-29 10:20:22 +08:00
Marcus Boon
5b6ca13bd7 MDL-79930 mod_forum: Use MUC for forum count discussions 2024-01-29 08:33:18 +10:00
Juan Leyva
9c38e28826 MDL-79295 quiz: Return total unasnwered questions via summary WS 2024-01-26 10:31:07 +01:00
Juan Leyva
d54086f838 MDL-79295 quiz: Return state class for questions via WS 2024-01-26 10:31:07 +01:00
Juan Leyva
30598cf2a0 MDL-79295 quiz: Add proper WS support for sequential nav. 2024-01-26 10:24:16 +01:00
Sara Arjona
6fb09beb86
MDL-69225 h5pactivity: Review when and which banners display
The UX team proposal is to display two different notifications, to avoid confusion:

1. When the user is in preview mode:
Message: 'You are in preview mode.'
Notification Type: Information (blue), with the information permanently visible and not dismissible,
ensuring continuous awareness.

2. When activity tracking is disabled:
Message: 'Attempt tracking is not enabled for this activity. You can enable it in Settings.'
Notification Type: Warning (yellow) with a close icon for dismissal if tracking is intentionally disabled.

These notifications should only be visible to teachers and content creators, not students.
If a teacher also has a student role, this information should not appear when logged in as a student.

That's why the pre-existing is_tracking_enabled() function has been updated to only check if tracking
is on for an activity, without considering user capabilities (that's why the $user parameter has been
removed from this function too). Besides, a new function called can_submit() has been created to find
out if users are allowed to submit an activity.
2024-01-25 17:46:36 +01:00
Dani Palou
d638bb10cb MDL-80718 quiz: Apply overrides in mod_quiz_get_combined_review_options 2024-01-25 10:03:45 +01:00
Jun Pataleta
8795b5745b
Merge branch 'MDL-80656-main' of https://github.com/lameze/moodle 2024-01-25 12:14:05 +08:00
Jun Pataleta
22cccb52d6
Merge branch 'MDL-80673-main' of https://github.com/snake/moodle 2024-01-25 12:06:14 +08:00
Jake Dallimore
9921d5f5ef
MDL-80673 mod_forum: fix modal creation when viewing student grades
Fixes a regression caused by MDL-78324.
2024-01-25 12:01:22 +08:00
Huong Nguyen
aa545904da Merge branch 'MDL-80650' of https://github.com/timhunt/moodle 2024-01-25 09:23:27 +07:00
Ilya Tregubov
404b7078c0 Merge branch 'MDL-79159-master' of https://github.com/andelacruz/moodle 2024-01-25 09:35:28 +08:00
Sara Arjona
634e3594fe
Merge branch 'MDL-76723-main' of https://github.com/junpataleta/moodle 2024-01-24 13:12:15 +01:00
Sara Arjona
31d701b436
Merge branch 'MDL-79940-master' of https://github.com/andelacruz/moodle 2024-01-24 09:22:31 +01:00
Sara Arjona
8b36abdb9d
Merge branch 'MDL-80259-main' of https://github.com/roland04/moodle 2024-01-24 09:16:12 +01:00