-
Bug
-
Resolution: Fixed
-
Major
-
2.7.1, 2.8, 3.0, 3.1, 3.3.3, 3.5.5, 3.6.4, 3.7
-
MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_33_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE
-
MOODLE_36_STABLE, MOODLE_37_STABLE
-
git@github.com:tuanngocnguyen/moodle.git
-
MDL-46978-Master -
If the user change the weight of the grade item on full view page it doesn't change the visibility. However if you click on Edit icon and change any information about the grade item, it also change the visibility of the category total.
Steps to reproduce the problem.
- Go to Course > Grades > Setup > Full View.
- Add a category.
- Create a new grade item and select the recent created grade category as parent category.
- Hide the category total using the eye icon.
- Edit the grade item you've created on this category, change any information and save.
- Notice the category total is not hidden any more.
The expected behaviour would be preserve the visibility of the grade category total.
The code should check if visibility is changing, but it only checks if not hidden (line 597 of lib/grade/grade_item.php and 1692 of lib/grade/grade_category.php).