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

Course reset does not fully remove quiz attempts

    XMLWordPrintable

    Details

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

      1. Create a quiz in a course.
      2. Attempt it as some students.
      3. Use course reset to delete all attempts.
      4. Go to the quiz reports, and verify not graph is shown.
      5. If possible, also verify that the correct records were deleted from the quiz_grades table.

      Show
      1. Create a quiz in a course. 2. Attempt it as some students. 3. Use course reset to delete all attempts. 4. Go to the quiz reports, and verify not graph is shown. 5. If possible, also verify that the correct records were deleted from the quiz_grades table.
    • Affected Branches:
      MOODLE_21_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      The course reset does not fully remove quiz attempts. They are still visible in the Quiz Results block and they are included in the bar chart on the Results page.

      To reproduce
      ===========

      • As Admin, create a new course
      • Enrol an editor and a student onto it
      • Log in as teacher, create a quiz and add a question to it
      • Log in as student and attempt the quiz
      • Log in as editor and check the student's response is shown. Grade it if not auto-graded.
      • Reset the course (Course administration > Reset), ticking "Delete all quiz attempts"
      • Go to the quiz, then Results > Grades. Bar chart shows the attempt which should have been removed.
      • On the course home page, add the Quiz Results block and configure it with default settings. It now shows the attempt which should have been removed.

      Expected result
      ============

      • Results bar chart should show no attempts
      • Quiz Results block should show no attempts

      Actual result
      ==========

      • Results bar chart shows the pre-reset attempt
      • Quiz Results block shows the name and grade of the pre-reset attempt

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              timhunt Tim Hunt
              Reporter:
              daveyboond Steve Bond
              Integrator:
              Sam Hemelryk
              Tester:
              Jason Fowler
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                28/Nov/11