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

Overall quiz grade shown as "Not yet graded" for users with mod/quiz:preview

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.3, 2.2, 2.3
    • Fix Version/s: 2.1.4, 2.2.1
    • Component/s: Quiz
    • Labels:
      None
    • Testing Instructions:
      Hide

      1. Create a quiz.
      2. As teacher, start a preview.
      3. Navigate back to the quiz info page. Verify that no overall grade is shown.
      4. Finish the preview attempt.
      5. Navigate back to the quiz info page. Verify that the grade for the finished preview is also shown as the overview grade.
      6. Log in as student.
      7. Start a quiz attempt.
      8. Navigate back to the quiz info page. Verify that no overall grade is shown yet.
      9. Finish the attempt.
      10. Navigate back to the quiz info page. Verify that the correct overall grade is shown.
      11. Start a second attempt.
      12. Navigate back to the quiz info page. Verify overall grade has not changed yet.
      13. Finish the second attempt. Verify that the correct overall grade is shown.

      Show
      1. Create a quiz. 2. As teacher, start a preview. 3. Navigate back to the quiz info page. Verify that no overall grade is shown. 4. Finish the preview attempt. 5. Navigate back to the quiz info page. Verify that the grade for the finished preview is also shown as the overview grade. 6. Log in as student. 7. Start a quiz attempt. 8. Navigate back to the quiz info page. Verify that no overall grade is shown yet. 9. Finish the attempt. 10. Navigate back to the quiz info page. Verify that the correct overall grade is shown. 11. Start a second attempt. 12. Navigate back to the quiz info page. Verify overall grade has not changed yet. 13. Finish the second attempt. Verify that the correct overall grade is shown.
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      On the quiz view.php page, it lists all your attempts, then summarises your overall grade on a line like

      Highest grade: 9.00 / 10.00.

      This information comes from the quiz_grades table.

      However, for users with mod/quiz:preview capability, there is not data there, and so "Not yet graded" is displayed instead.

        Attachments

          Activity

            People

            Assignee:
            timhunt Tim Hunt
            Reporter:
            timhunt Tim Hunt
            Integrator:
            Eloy Lafuente (stronk7)
            Tester:
            Rossiani Wijaya
            Participants:
            Component watchers:
            Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              9/Jan/12