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

regrading pre-existing quiz attempts in a moodle upgraded from 1.9 to 2.2 makes the grades become 0.0

    Details

    • Database:
      PostgreSQL
    • Testing Instructions:
      Hide

      Upgrade a Moodle having some quiz attempts from the latest 1.9 to the latest 2.2.

      Regrade a quiz attempt.

      Expected result:
      The attempts are regraded; assuming no changes to the questions, this should result in no change to the grades / question marks.

      Actual result:
      The attempts are regraded, all non-manually graded question marks go to 0, and the quiz grade goes to 0.0 ( 0.0 plus the points for any manually graded questions). However, on the quiz attempt review screen, the answers given by the student are correctly reflected (the answers can be correct, but the mark for the question is 0).

      Show
      Upgrade a Moodle having some quiz attempts from the latest 1.9 to the latest 2.2. Regrade a quiz attempt. Expected result: The attempts are regraded; assuming no changes to the questions, this should result in no change to the grades / question marks. Actual result: The attempts are regraded, all non-manually graded question marks go to 0, and the quiz grade goes to 0.0 ( 0.0 plus the points for any manually graded questions). However, on the quiz attempt review screen, the answers given by the student are correctly reflected (the answers can be correct, but the mark for the question is 0).
    • Affected Branches:
      MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      To test this, I installed a fresh Moodle 1.9, created quizzes, attempted them, and then upgraded to Moodle 2.2. After the upgrade, the quiz and attempt review screens were showing the correct scores and results. I then selected some attempts and regraded them. This caused all question grades for these attempts to become 0.0 (with the exception of a manually-graded essay question). Intestingly, the quiz attempt review screens still show the given answers, but the grades are 0, even if the given answers were correct.

      The question types were:

      • matching
      • shortanswer
      • multichoice
      • truefalse

      This also effects the gradebook. The grades went down for the regraded quizzes.

      This was with freshly installed Moodle, version '1.9.17 (Build: 20120312)', that was upgraded to '2.2.2 (Build: 20120312)'.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                7 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Jul/12