Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-12477

gradebook restore breaks category grades

    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

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                4 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: