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

Quiz attempts for unenrolled users can't be deleted

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.1
    • Fix Version/s: 2.3.3, 2.4
    • Component/s: Quiz
    • Labels:
    • Testing Instructions:
      Hide

      To test patch:

      1. Create a quiz
      2. Ensure there is more than one student enrolled on the course
      3. Log in as a student and make an attempt on the quiz
      4. Unenrol the student from the course
      5. Go into Quiz -> Results -> Responses and select "all users who have attempted the quiz"
      6. Select the attempt and click "delete selected attempts"
      7. Reselect "all users who have attempted the quiz"
      8. The quiz attempt should be deleted
      Show
      To test patch: Create a quiz Ensure there is more than one student enrolled on the course Log in as a student and make an attempt on the quiz Unenrol the student from the course Go into Quiz -> Results -> Responses and select "all users who have attempted the quiz" Select the attempt and click "delete selected attempts" Reselect "all users who have attempted the quiz" The quiz attempt should be deleted
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE
    • Pull Master Branch:
      MDL-35163-master

      Description

      After users have been unenrolled from a course it appears to be impossible to delete their quiz attempts using the attempts report. The exception to this is where there are no longer any users enrolled on the course at all, when the attempts are deleted as expected.

      Alternate path to the same base problem:
      Create a course with a teacher and a student. Create a quiz. As the teacher, 'Switch to role Student'. Attempt the quiz. Now return to the teachers default role. You won't be able to delete that attempt.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  2 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    12/Nov/12