6312 Commits

Author SHA1 Message Date
Laurent David
711a9c0df5 MDL-76937 core_course: Delete button can be used twice
* Disable the Delete button in the confirmation dialog once
clicked so we avoid running the process twice by mistake.
2023-11-09 09:25:40 +01:00
Huong Nguyen
0562c4d552 Merge branch 'MDL-79617_401_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_401_STABLE 2023-11-02 09:04:02 +07:00
Ferran Recio
7d158f18d9 MDL-79194 core_courseformat: optimize section reload
* When reloading a section, we also forced the reloading of
course modules, resulting in doing the same work twice (once for
the section reload and once for the course module reload)
* Debounce the reloading process so prevent unwanted duplicate
reloads
2023-10-26 12:37:00 +02:00
Laurent David
38708efb50 MDL-79194 core_course: Refresh modules menus with section changes
* Whenever a section is hidden, we need to refresh all contextual (hamburger)
menus of each course modules.
2023-10-24 15:11:17 +02:00
Mark Johnson
fa23ae702c MDL-79617 repository_upload: Close session early in upload process 2023-10-23 15:32:58 +01:00
Huong Nguyen
e2452a4b3c MDL-66730 core_course: Improve permission check for category moving
Co-authored-by: Erica Bithell <egb10@cam.ac.uk>
2023-10-04 02:10:16 +02:00
Huong Nguyen
f0c0dbbb06
Merge branch 'MDL-75329-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-09-28 09:36:49 +07:00
Ilya Tregubov
4f8a492374
Merge branch 'MDL-77708-401' of https://github.com/sarjona/moodle into MOODLE_401_STABLE 2023-09-27 09:11:38 +08:00
Paul Holden
0195ecbf78
MDL-75329 course: defensive counting of course sections.
Avoids errors due to pre-existing integrity issues with course
data, where the absence entirely of section data would result in
PHP errors.
2023-09-26 12:18:39 +01:00
Sara Arjona
54d446ce43
MDL-77708 docs: Update references from docs.moodle.org/dev 2023-09-26 10:57:33 +02:00
Simey Lameze
3b6acb99bd MDL-75928 format_week: improve get_section_dates one week calc 2023-09-22 08:48:37 +08:00
Ilya Tregubov
8a72397e0a
Merge branch 'MDL-79195-401' of https://github.com/andelacruz/moodle into MOODLE_401_STABLE 2023-09-14 09:37:53 +08:00
Ilya Tregubov
f154d35e13
Merge branch 'MDL-78806-401' of https://github.com/junpataleta/moodle into MOODLE_401_STABLE 2023-09-13 10:55:47 +08:00
Angelia Dela Cruz
5d23cfe21f MDL-79195 core_course: Activity and resource description display behat 2023-09-12 12:20:49 +08:00
Jun Pataleta
49393a1608
MDL-78806 core: Remove redundant site name
MDL-78806 core: Remove redundant site name on page titles

* With the site name now being appended to the page titles, there
is no need to manually append the page titles.
2023-09-09 08:56:50 +08:00
Jun Pataleta
6e0210764a
MDL-79048 course: Add editing versions of course view page titles
* Create 'editing' versions of the coursetitle and coursesectiontitle
lang strings used for the page title of the course homepage and use
these when editing mode is turned on to provide immediate information
to users, especially screen reader users, the current state of the
course homepage.
2023-09-08 21:58:45 +08:00
Andrew Nicols
48d0cf6dd9
Merge branch 'MDL-79060-401' of https://github.com/junpataleta/moodle into MOODLE_401_STABLE 2023-09-05 11:23:34 +08:00
Jun Pataleta
68b1a94a2e
MDL-79060 course: Use course name for the course image link 2023-09-05 11:10:59 +08:00
Andrew Nicols
d3bb9121fd
Merge branch 'MDL-79191-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-09-05 10:33:40 +08:00
Paul Holden
7bd76a1230
MDL-79191 grade: correct column type for the grade column (float). 2023-08-31 15:47:24 +01:00
Angelia Dela Cruz
5a61806325 MDL-79207 core_course: Behat coverage for activity and resource deletion 2023-08-31 10:40:05 +08:00
Jun Pataleta
e12ef27c0a
Merge branch 'MDL-78397-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-08-25 11:52:43 +08:00
Andrew Nicols
748acadd05
Merge branch 'MDL-79063-401' of https://github.com/junpataleta/moodle into MOODLE_401_STABLE 2023-08-25 00:13:21 +08: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
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
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
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
Sara Arjona
b8fa7e0a0f
Merge branch 'MDL-78761-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-08-14 10:58:56 +02:00
Paul Holden
75de5704de
MDL-76123 course: multilingual module icon alt text attribute. 2023-08-08 08:29:27 +01:00
Angelia Dela Cruz
73a08e3ccd MDL-78498 Behat: Use data generators for forum posts and replies
This commit does few things:
* Replace manual forum posts and replies to use data generator.
* It also changes the code to handle social forums.
* Other behat clean-ups and optimization.

Co-authored-by: Simey Lameze <simey@moodle.com>
2023-08-01 16:08:10 +08:00
Huong Nguyen
bca23d5477
Merge branch 'MDL-78618_401' of https://github.com/larsbonczek/moodle into MOODLE_401_STABLE 2023-07-26 14:22:42 +07:00
Paul Holden
9437e82a31
MDL-78761 enrol: correct enrolment suspended state report filter. 2023-07-21 17:13:16 +01:00
Andrew Nicols
97c95140c3
Merge branch 'MDL-78716-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-07-20 00:29:09 +08:00
Andrew Nicols
f852e35976
Merge branch 'MDL-77645-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-07-20 00:11:59 +08:00
Andrew Nicols
05c485dc97
Merge branch 'MDL-78704-401' of https://github.com/rjnl/moodle into MOODLE_401_STABLE 2023-07-19 21:57:52 +08:00
Paul Holden
587ea4d3f3
MDL-78716 course: fix category idnumber updating logic.
Where only the case of the idnumber field was being updated, we
triggered an exception because checking for an exising idnumber
was not excluding the current category (i.e. the one being updated).
2023-07-14 15:14:59 +01:00
Rajneel Totaram
962a3f866c MDL-78704 course: Render unescaped HTML for activity dates 2023-07-14 10:17:04 +12:00
Paul Holden
0202597261
MDL-77645 course: ensure active enrolments are considered for drawer.
Otherwise the enrolment index page tries to load the course index
drawer, which doesn't exist at this point and triggers exceptions in
the editor module.

Co-authored-by: Tim Volckmann <tim.volckmann@mastersolution.com>
2023-07-12 14:35:33 +01:00
Paul Holden
73939586b6
MDL-75359 reportbuilder: fixes for custom/user profile field elements.
Ensures cross-DB compatibility for all types of both custom and user
profile fields, specifically when they're filtered and/or aggregated.

Implement stress testing of both via appropriate report sources.
2023-07-07 14:43:29 +01:00
Lars Bonczek
24b8efe27a MDL-78618 core_course: use UNION in get_nearest_editable_subcategory 2023-07-06 18:52:36 +02:00
Andrew Nicols
e5f747ffa4
Merge branch 'MDL-78158-401' of https://github.com/andelacruz/moodle into MOODLE_401_STABLE 2023-07-05 10:24:07 +08:00
Huong Nguyen
25432feda8
Merge branch 'MDL-78596-coursecard-divider-401' of https://github.com/leonstr/moodle into MOODLE_401_STABLE 2023-07-04 15:28:30 +07:00
Simey Lameze
a34591cc0b MDL-75324 behat: use a proper step to verify completion status 2023-07-04 11:20:23 +08:00
Angelia Dela Cruz
0d5b8d1337 MDL-78158 Behat: Use data generators to add blocks 2023-07-03 19:17:35 +08:00
Leon Stringer
fa9705a870 MDL-78596 core_course: Remove divider
With courselistshortnames enabled Moodle 3.11 and earlier showed
"Category | Short name" on the first line of course cards (for example
in block_myoverview).  From Moodle 4.0 the category is moved to the last
line making the first line "Short name |".  This change removes that
stray "|".
2023-06-27 17:40:41 +01:00
Ilya Tregubov
aa44a1643e
Merge branch 'MDL-78443-401' of https://github.com/jleyva/moodle into MOODLE_401_STABLE 2023-06-27 11:01:44 +08:00
Lars Bonczek
44f60f1b8e MDL-76174 core_course: get_nearest_editable_subcategory performance fix 2023-06-20 14:43:16 +02:00
Juan Leyva
bc2fb3b5e8 MDL-78443 course: Missing require for course_request 2023-06-16 10:17:45 +02:00
Andrew Nicols
196ed7530b
Merge branch 'MDL-69231-401' of https://github.com/lameze/moodle into MOODLE_401_STABLE 2023-06-15 10:56:53 +08:00