Commit graph

7213 commits

Author SHA1 Message Date
Sara Arjona
68156941ff
Merge branch 'MDL-84243-main' of https://github.com/ferranrecio/moodle 2025-01-29 16:47:35 +01:00
Huong Nguyen
d8cbf21f59
Merge branch 'MDL-84333-main' of https://github.com/ferranrecio/moodle 2025-01-28 16:28:09 +07:00
ferran
f6810e5427 MDL-84243 core_courseformat: fix course index completion icon 2025-01-27 17:20:20 +01:00
ferran
daa3fff377 MDL-84333 core_courseformat: fix page selector init 2025-01-27 12:10:32 +01:00
Marty
fca896d4df
MDL-81195 core_course: allow for daylight savings
In timezones where daylight savings time is used, courses that start
on a Monday at 00:00 would display the week headings incorrectly
during the change forward.

When the time changes backwards, courses that have a start time of
Sunday at 23:00 also have a mislabeled week.

This attempts to use the DateTime() library, along with the user's
local timezone setting to display the correct day, rather than just
subtracting 86400.
2025-01-23 14:49:05 -05:00
Sara Arjona
80e559acbf
NOBUG: Add upgrade notes 2025-01-23 17:34:50 +01:00
Huong Nguyen
bb72db2074
Merge branch 'MDL-82767-main-v03' of https://github.com/ferranrecio/moodle 2025-01-23 11:18:50 +07:00
ferran
d91b897549 MDL-82767 mod_qbank: fix delete action url 2025-01-22 10:35:23 +01:00
ferran
a438da66ca MDL-82767 core_courseformat: deprecate edits in mod.php and view.php
Most edit logic embed directly into course/view.php and course/mod.php
is now redirected to course/format/update.php. This commit add
deprecations messages to the old get params so it can be removed in
Moodle 6.0 for good.
2025-01-22 10:35:23 +01:00
ferran
fec5bf61f4 MDL-82767 core_courseformat: replace old urls by update urls
Now there is course/format/update.php all course actions menus must
point to the new one instead of keep pointing at the course/view.php and
course/mod.php.
2025-01-22 10:35:23 +01:00
ferran
03c530cc9b MDL-82767 core_courseformat: new update.php to execute actions in course
Since Moodle 4.0, most course edit actions can be executed using the
core_courseformat_course_edit webservice using only four parameters
(courseid, ids, targetsectionid and targetcmid). However, some actions
logic is still replicated and embed in course/view.php and
course/mod.php files since the beginning of time. Now the
course/update.php offers a non-ajax way of executing the same actions
and replace the old replicated ways of doing the same.
2025-01-22 10:35:23 +01:00
Huong Nguyen
13f10c22c4
Merge branch 'MDL-83339-main' of https://github.com/laurentdavid/moodle 2025-01-22 15:22:55 +07:00
Huong Nguyen
80684906c0
Merge branch 'MDL-81070-main' of https://github.com/StudiUM/moodle 2025-01-22 15:18:37 +07:00
Laurent David
95c780ac2f MDL-83339 course_format: Unify init params for course editor
* Replace all selectors based on ID (getElementById) by querySelector
* Replaces element-id by '#element-id' in the init method
2025-01-21 07:12:04 +01:00
Salem Saidi
f2384c458f MDL-81070 course: Display contact names in the search result by admin 2025-01-20 12:01:34 -05:00
Sara Arjona
2f3cffd815
Merge branch 'MDL-83468-main' of https://github.com/andrewnicols/moodle 2025-01-20 16:47:56 +01:00
Andrew Nicols
41249b16f3
MDL-83468 phpunit: Test names are not optional 2025-01-20 16:47:56 +01:00
Andrew Nicols
bc75ef8bbc
MDL-83468 phpunit: Fix various tests after phpunit 10 2025-01-20 16:47:55 +01:00
Andrew Nicols
b95a8c6ecc
MDL-83468 phpunit: Fix data provider param names 2025-01-20 16:47:55 +01:00
Huong Nguyen
1b5e5d0870
NOBUG: Add upgrade notes 2025-01-16 23:46:14 +07:00
Huong Nguyen
7dbf73a4df
Merge branch 'MDL-83673-main' of https://github.com/ferranrecio/moodle 2025-01-15 09:28:36 +07:00
Sara Arjona
1627aa8e71
Merge branch 'MDL-83527-main-v02' of https://github.com/ferranrecio/moodle 2025-01-14 09:38:54 +01:00
Sara Arjona
ec68d42f82
Merge branch 'MDL-83561-main' of https://github.com/laurentdavid/moodle 2025-01-14 08:42:42 +01:00
Sara Arjona
7f114bb370
Merge branch 'MDL-83214-main' of https://github.com/aanabit/moodle 2025-01-14 08:26:57 +01:00
ferran
3a8172a26a MDL-83527 core_courseformat: refactor course editor action menus
As part of the course format cleanup epic, all course editor action menu
output classes needs to be refactored to be more mantainable and
reusable. Also, it added notes for the final deprecation of many lines
of code in Moodle 6.0.
2025-01-13 14:49:46 +01:00
Laurent David
c7fec301bc MDL-83561 format_social: Limit visible sections in social
* Only the first section is visible in social format, so we
limit the visibility of the section to the first section.
This impacts the move dialog.
* Fix PHP unit tests
2025-01-06 06:57:43 +01:00
Huong Nguyen
0fc12f295f
NOBUG: Add upgrade notes 2025-01-03 13:53:41 +07:00
Huong Nguyen
d5505e0ae2
Merge branch 'MDL-83639-main' of https://github.com/sarjona/moodle 2025-01-02 10:00:11 +07:00
Huong Nguyen
cec2c6f872
Merge branch 'MDL-66129-main' of https://github.com/rhell4/moodle 2025-01-02 09:59:44 +07:00
ferran
22935259c1
MDL-82342 core_course: deprecate old course edit webservices
Both core_course_edit_section and core_course_edit_module are not needed
anymore. All course edit actions are now executed as state actions from
core_courseformat_update_course. Also, the core_course_get_module is
fully replaced by the core_courseformat cmitem fragment (including also
any possible JS module).
2024-12-23 11:28:17 +01:00
Sara Arjona
84f561189a
Merge branch 'MDL-82341-main' of https://github.com/ferranrecio/moodle 2024-12-23 11:19:57 +01:00
ferran
f6cfb1ebc3 MDL-83673 core_courseformat: optimize pageitem update
The course page employs a scroll spy to highlight the
relevant element in the course index. However, the
frequency of updates is excessively high. This commit add
throttling of the scroll spy and prevents the page item
state from updating if the value hasn’t changed.
2024-12-20 12:29:58 +01:00
ferran
f081373156 MDL-82341 core_courseformat: migrate events for inplace editable 2024-12-20 12:22:45 +01:00
ferran
074645571b MDL-82341 core_courseformat: migrate permalink to action request 2024-12-20 12:22:45 +01:00
ferran
751dcbb4b9 MDL-82341 core_course: deprecate yui modules 2024-12-20 12:22:45 +01:00
Amaia Anabitarte
f87d36d750 MDL-82034 core_course: Fix Activity chooser opening issues on behat 2024-12-20 10:31:24 +01:00
Amaia Anabitarte
c406bcecc3 MDL-82034 mod_subsection: Enable by default 2024-12-20 10:29:48 +01:00
Sara Arjona
314d41f427
MDL-83639 pix: Update custom icons
Sabina Abellán from the UX team has created the following custom icons:

- ai*:sparkles
- core:e/insert_col_after
- core:e/insert_col_before
- core:e/split_cells
- core:e/text_color
- core:i/bulk_edit
- core:i/export
- core:i/grade_partiallycorrect
- core:i/item
- core:t/completion_incomplete
- core:t/locktime
- mod_scorm:browsed
- tool_policy:level

In addition to updating these SVG files, the entries in the icon_map() have
been removed to ensure that the customized version is always used.
2024-12-20 07:40:23 +01:00
Huong Nguyen
7a5fb9bd78
Merge branch 'MDL-82697' of https://github.com/paulholden/moodle 2024-12-19 10:21:08 +07:00
Huong Nguyen
c66bbed355
Merge branch 'MDL-83956' of https://github.com/paulholden/moodle 2024-12-19 10:07:02 +07:00
Huong Nguyen
7befed22d0
Merge branch 'versionbump' of https://github.com/junpataleta/moodle 2024-12-19 10:03:51 +07:00
Jun Pataleta
1ff50ac088
NOBUG: Bump versions for main to the current date 2024-12-18 23:53:12 +08:00
Paul Holden
0fe0fc675c
MDL-84000 reportbuilder: move testcase helper to autoloaded namespace.
Clean up some class imports while we're at it.
2024-12-17 08:19:38 +00:00
Amaia Anabitarte
e1e282a4b1 MDL-83214 core_course: Make is_delegated consistent 2024-12-16 11:07:32 +01:00
Paul Holden
83dc1912dd
MDL-82697 courseformat: fix exception arguments for section limit.
Co-authored-by: James C <5689414+james-cnz@users.noreply.github.com>
2024-12-11 17:46:50 +00:00
Sara Arjona
1420e2fb5d
Merge branch 'MDL-82457-main' of https://github.com/laurentdavid/moodle 2024-12-11 08:57:09 +01:00
Jun Pataleta
4929d6c3d1
Merge branch 'MDL-81520-main' of https://github.com/andrewnicols/moodle 2024-12-11 13:41:15 +08:00
Andrew Nicols
c2414e5a45
MDL-81520 core: Fix test finality 2024-12-11 12:30:23 +08:00
Huong Nguyen
7e497dedc4
Merge branch 'MDL-81825-main' of https://github.com/roland04/moodle 2024-12-11 09:52:51 +07:00
Mikel Martín
a973ea46d7 MDL-81825 core: Replace sr_text() with visually_hidden_text()
In core renderer, replace 'sr_text' method with 'visually_hidden_text' to be
consistent with Bootstrap 5 upgrade.
2024-12-10 14:02:34 +01:00