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

Question's default grade is not correctly restored from 1.9 backups

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1.1, 2.2
    • Fix Version/s: 2.1.2
    • Component/s: Backup, Questions
    • Labels:
    • Environment:
      2.1.1+, Build: 20110831, PHP Version 5.3.6, MySQL 5.1.57.
    • Database:
      Any
    • Testing Instructions:
      Hide

      Note: the patch already tested by Jean-Michel Vedrine

      In Moodle 2.1, restore a 1.9 backup with description questions and also various question types having default grade value different from 1. Verify that in the restored course description questions still have 0 as default mark and that other questions default mark are not changed to 1.

      Show
      Note: the patch already tested by Jean-Michel Vedrine In Moodle 2.1, restore a 1.9 backup with description questions and also various question types having default grade value different from 1. Verify that in the restored course description questions still have 0 as default mark and that other questions default mark are not changed to 1.
    • Workaround:
      Hide

      In the gradebook, I can create a multiplier to fix the grade. In this case, the multiplier is 32/27.

      Show
      In the gradebook, I can create a multiplier to fix the grade. In this case, the multiplier is 32/27.
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-29270-question-grade

      Description

      I designed a quiz that also included some "description" items. The quiz had 27 questions (see Exam1 graphic). Each question was worth one point. Overall, the quiz was worth 100 points.

      In the attachment, you can see that there were 27 questions, and 9 "description" items for a total of 36 quiz items. I am not sure where Moodle is getting the "32". Somehow, it sees that every question was correct, and calculates 27/32 * 100, which is 84.4%

      I saw this problem last week on another quiz, but didn't have time to report it. Now it is an obvious problem in the Moodle grading system.

        Attachments

        1. Exam1.jpg
          Exam1.jpg
          151 kB
        2. Exam2.jpg
          Exam2.jpg
          157 kB
        3. Exam3.jpg
          Exam3.jpg
          94 kB

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Oct/11