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

Quiz attempts for deleted students are still displayed on the Moodle Results screens

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 1.9.4, 1.9.5, 1.9.6
    • Quiz
    • None
    • Any
    • MOODLE_19_STABLE

      I have a student who submitted various quiz attempts in Moodle. This student was later deleted from Moodle when he left the organisation (i.e. the deleted column on mdl_user was set to 1 using the delete option on Administration / Users / Accounts / Browse list of users). When I view the quiz submissions for the quiz his quiz attempts are still displayed in the quiz results. In other words, when I open the course, open the quiz and then click the Results tab all the quiz attempts are displayed, including those of the deleted student. The attempts for the "deleted" student should also be "deleted" (hidden).

      In other words, when a user views the quiz submissions Moodle should check the value of the deleted column on mdl_user and only display the results for the undeleted students (i.e. where mdl_user.deleted = 0).

      In the 'Preferences just for this page' section I'm using the default option: Show/download all attempts. That probably explains why I'm seeing the attempts but, considering that the student has been "deleted", should I be seeing his attempts - even when this setting is set to 'Show/download all attempts'?

      If I click on the students name next to the dates of the quiz attempts Moodle tells me that "<Student Name> is not enrolled in this course". Below that message is a Continue button. If I click on that button /mod/quiz/report.php displays a "There is no quiz with id 0" message.

      This could cause a problem if the teacher wants to view the profile for that student but, because that profile is "deleted", the "<Student Name> is not enrolled in this course" message is displayed. There is no way to access the students profile and there doesn't seem be be a way to "undelete" the student in Moodle (apart from changing the deleted column in mdl_users).

      I'm able to reproduce the problem in Moodle versions 1.9.4+ (Build: 20090204) (2007101540) and 1.9.6+ (Build: 20091021) (2007101560)

      A related thread that I started in the Quiz Module forum is: http://moodle.org/mod/forum/discuss.php?d=136436

            timhunt Tim Hunt
            libertymoodle Luis de Vasconcelos
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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