Moodle
  1. Moodle
  2. MDL-39380

Error in calculated grade causes User report list to be empty and cannot export grades

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 2.4.3
    • Fix Version/s: None
    • Component/s: Gradebook
    • Labels:
    • Affected Branches:
      MOODLE_24_STABLE
    • Rank:
      50016

      Description

      If the formula in a calculated grade is bad/wrong, it breaks other parts of the Gradebook.

      Symptoms:

      • Gradebook > Grader report: Grade item column containing the bad formula contains the word "Error". Student names appear as normal. "Grades for..." Link next to student name work as expected.
      • Gradebook > User report: "Select all or one user" drop-down menu is empty and displays "All users (0)"; should display list of students. Grade item with bad formula contains the word "Error".
      • Gradebook > Export does not work. No content is exported, just headings.

      Steps to reproduce:

      • course homepage: Create two Assignments
      • In Gradebook > Simple view, edit the calculation for the Course total
      • Add id numbers to the two assignments. e.g. 'one' and 'two'
      • Add a formula to the Calculation. e.g. =sum([[one]],[[two]]). Save.
      • Return to the homepage of the course and delete one of the assignments.
      • Go to Gradebook > Simple view again and open the calculation for the Course total. Forumula will look something like this =sum(##gi1767##,[[two]])

      See also forum thread: https://moodle.org/mod/forum/discuss.php?d=157369 Apparently this bug has made the transition from Moodle 1.9 to 2+

        Issue Links

          Activity

          Hide
          Andrew Davis added a comment -

          Verified that the user report and the grade export do not work correctly once the calculated grade item is broken. If anyone is able to contribute a potential fix please attach it here.

          Show
          Andrew Davis added a comment - Verified that the user report and the grade export do not work correctly once the calculated grade item is broken. If anyone is able to contribute a potential fix please attach it here.
          Hide
          Andrew Davis added a comment -

          I'm closing this as it duplicates MDL-32913 (which I have a fix for).

          Show
          Andrew Davis added a comment - I'm closing this as it duplicates MDL-32913 (which I have a fix for).
          Hide
          Donna Hrynkiw added a comment -

          Thanks for the update Andrew.

          Show
          Donna Hrynkiw added a comment - Thanks for the update Andrew.

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: