Moodle
  1. Moodle
  2. MDL-30873

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor 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.

        Gliffy Diagrams

          Activity

          Hide
          Eloy Lafuente (stronk7) added a comment -

          The main moodle.git repository has just been updated with latest weekly modifications. You may wish to rebase your PULL branches to simplify history and avoid any possible merge conflicts. This would also make integrator's life easier next week.

          TIA and ciao

          Show
          Eloy Lafuente (stronk7) added a comment - The main moodle.git repository has just been updated with latest weekly modifications. You may wish to rebase your PULL branches to simplify history and avoid any possible merge conflicts. This would also make integrator's life easier next week. TIA and ciao
          Hide
          Eloy Lafuente (stronk7) added a comment -

          Integrated, thanks!

          Show
          Eloy Lafuente (stronk7) added a comment - Integrated, thanks!
          Hide
          Rossiani Wijaya added a comment -

          This is working great.

          Thanks for fixing this.

          Test passed.

          Show
          Rossiani Wijaya added a comment - This is working great. Thanks for fixing this. Test passed.
          Hide
          Eloy Lafuente (stronk7) added a comment -

          The git and cvs repositories are happy receiving your very first contribution to Moodle for 2012. Happy new year!

          Closing, ciao

          Show
          Eloy Lafuente (stronk7) added a comment - The git and cvs repositories are happy receiving your very first contribution to Moodle for 2012. Happy new year! Closing, ciao

            People

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

              Dates

              • Created:
                Updated:
                Resolved: