Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Cannot Reproduce
-
Affects Version/s: 1.9, 2.0
-
Fix Version/s: None
-
Component/s: Gradebook
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE, MOODLE_20_STABLE
Description
I found this bug when restoring a backup from MDL-12436
The grades went into db ok, I checked it immediately after the restore. However grade_regrade_final_grades() seem to have cleaned the grade_grades in category and course gradeitem. Then I got ERROR in all categories and course gradeitem. I did a bit of look up and found a few things
1) When looping the gradeitems, some gradeitem in dependson array is referencing itself
2) Categories with forumla do not include related gradeitems
3) Categories with forumla are getting invalid token '[' from EvalMath
Can you please take a look? If you don't have time I will look at it next week.
Cheers, Yu
I need a sample data to diagnose this