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

Question versioning: regrading does not work for all question types (including multiple choice)

XMLWordPrintable

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • Hide

      Setup:

      1. Create a quiz.
      2. Add the following questions *:
      3. Attempt the quiz as a student.
      4. Note the score you got for each question.
      5. Log back in as teacher, and edit each question to change some of the wording of each question, but without making a structural change (e.g. don't add or remove a new multiple-choice option, just change its text.
      6. Except, in the second multiple choice question, add or remove a choice.
      7. Go to Quiz -> Results.
      8. Click the 'Regrade all' button.
      9. Verify that the regrade completes, but with a notice to tell you that Q7 could not be regraded.
      10. Review the quiz attempt.
      11. Verify that all the questions in the attempt look OK, and none of the scores have changed.

       

      NOTE FOR THE TESTER: In order to save some time, you can also backup and restore in your local site the Demo Quiz with all standard Quiz Questions quiz from the Activity examples in the QA site and then add the missing questions.

      Show
      Setup: Create a quiz. Add the following questions *: Multichoice Select missing words Drag-drop words-to-sentence Matching Multi-answer (see https://docs.moodle.org/400/en/Embedded_Answers_(Cloze)_question_type ). Short-answer. A second multiple-choice question. Attempt the quiz as a student. Note the score you got for each question. Log back in as teacher, and edit each question to change some of the wording of each question, but without making a structural change (e.g. don't add or remove a new multiple-choice option, just change its text. Except, in the second multiple choice question, add or remove a choice. Go to Quiz -> Results. Click the 'Regrade all' button. Verify that the regrade completes, but with a notice to tell you that Q7 could not be regraded. Review the quiz attempt. Verify that all the questions in the attempt look OK, and none of the scores have changed.   NOTE FOR THE TESTER : In order to save some time, you can also backup and restore in your local site the Demo Quiz with all standard Quiz Questions quiz from the Activity examples in the QA site and then add the missing questions.

      To reproduce:

      1. Create a quiz containing a MC question.
      2. Attempt the quiz as a student.
      3. As teacher, edit the MC question (no need to acutally change anything, just click 'Save' to create v2).
      4. Regrade the quiz, to use the new version.
      5. Review the quiz attempt

      Expected result: it has worked.
      Actual result: all choices now says "This choice was deleted after the attempt was started."

      I expect a few other qtypes are also affected (e.g. match and drag-drop ones)

        1. MDL-74752_step 11_retest.png
          MDL-74752_step 11_retest.png
          86 kB
        2. MDL-74752_step 11.png
          MDL-74752_step 11.png
          91 kB
        3. MDL-74752_step 9.png
          MDL-74752_step 9.png
          61 kB
        4. screenshot-1.png
          screenshot-1.png
          35 kB

            timhunt Tim Hunt
            timhunt Tim Hunt
            Safat Shahin Safat Shahin
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            5 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 20 minutes
                4h 20m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.