moodle/grade/edit/tree
Shamim Rezaie 6100c0c548 MDL-78082 core_grades: Fix locking inconsistency
Problem:
In Moodle 4.2, an unintended change in behaviour occurred when locking
and unlocking grade items. Previously, in Moodle 4.1, locking a grade
item and then subsequently unlocking the grade item left specific grades
for students still locked if they were being locked individually.
However, in Moodle 4.2, the unintended change caused the individual
grades to be unlocked along with the grade item.

Solution:
To address this issue, I modified the set_locked calls in action.php to
pass the cascade parameter as false. Now, when locking or unlocking a
grade item, only the grade item itself is affected, leaving individual
grades unchanged. I have also modified the locking behaviour in the
grade_category class. So, similarly, when locking or unlocking a grade
category, the change applies only to the grade items and grade
categories within the category, without expanding to individual grades.

Explanation:
By making this change, we ensure that the locking mechanism behaves as
expected, providing a consistent and desirable user experience. Locking
and unlocking a grade item or category will no longer inadvertently
affect individual grades, preserving their locked status and avoiding
loss of data when unlocking a grade item associated with the total mark
of a category.
2023-09-07 05:52:30 +10:00
..
action.php MDL-78082 core_grades: Fix locking inconsistency 2023-09-07 05:52:30 +10:00
calculation.php MDL-71062 core: Step 1 deprecation of print_error function 2022-07-13 08:20:54 +05:30
calculation_form.php MDL-51948 core: Patch core areas for LTR forms 2016-09-23 10:55:14 +01:00
category.php MDL-71062 core: Step 1 deprecation of print_error function 2022-07-13 08:20:54 +05:30
category_form.php MDL-72377 grade: fix category form hidden/until fields. 2022-06-06 15:31:03 +01:00
grade.php MDL-71062 core: Step 1 deprecation of print_error function 2022-07-13 08:20:54 +05:30
grade_form.php MDL-76500 grade: fix grade form when item cannot be overridden. 2022-12-06 09:20:09 +00:00
index.php MDL-77033 core_grades: Add status column to setup page 2023-03-30 20:20:10 +08:00
item.php MDL-77472 grade: correct URL param type for adding tracking params. 2023-03-05 20:06:40 +00:00
item_form.php MDL-73824 gradebook: Add support for localised floats where missing 2022-03-04 10:22:49 +01:00
lib.php MDL-78550 grade: Hide empty filler rows from the accessibility tree 2023-07-28 17:25:22 +08:00
outcomeitem.php MDL-77472 grade: correct URL param type for adding tracking params. 2023-03-05 20:06:40 +00:00
outcomeitem_form.php MDL-72377 grade: fix category form hidden/until fields. 2022-06-06 15:31:03 +01:00