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

Teacher/student IDs transposed in quiz attempt reviewed event

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.1.6, 4.2.3
    • 4.1.5, 4.2.2
    • Quiz
    • MOODLE_401_STABLE, MOODLE_402_STABLE
    • MOODLE_401_STABLE, MOODLE_402_STABLE
    • MDL-79075-attempt_reviewed-401
    • MDL-79075-attempt_reviewed
    • Hide
      1. Create a course.
      2. Add a quiz.
      3. Add a question to the quiz.
      4. Enrol a student.
      5. As the student log into the site, attempt the quiz and click Finish attempt ... then Submit all and finish then Submit all and finish.
      6. As the site admin go to the course page and click on the quiz.
      7. Click Attempts: 1.
      8. Click Review attempt for the student's attempt.
      9. View the site logs (Site administration > Reports > Logs, select current date and click Get these logs).
      10. Note the database IDs of the site admin and the above student, and check these against the ADMIN_ID and STUDENT_ID in expected results below.

      Expected results:
      A Quiz attempt reviewed event with description:

      The user with id '<ADMIN_ID>' has reviewed quiz attempt with id '<attemptid>' by user with id '<STUDENT_ID>' for the quiz with course module id '<cmid>'.

      Where ADMIN_ID and STUDENT_ID match the values from step 10. (Values attemptid and cmid should be ignored).

      Show
      Create a course. Add a quiz. Add a question to the quiz. Enrol a student. As the student log into the site, attempt the quiz and click Finish attempt ... then Submit all and finish then Submit all and finish . As the site admin go to the course page and click on the quiz. Click Attempts: 1 . Click Review attempt for the student's attempt. View the site logs ( Site administration > Reports > Logs , select current date and click Get these logs ). Note the database IDs of the site admin and the above student, and check these against the ADMIN_ID and STUDENT_ID in expected results below. Expected results: A Quiz attempt reviewed event with description: The user with id '<ADMIN_ID>' has reviewed quiz attempt with id '<attemptid>' by user with id '<STUDENT_ID>' for the quiz with course module id '<cmid>'. Where ADMIN_ID and STUDENT_ID match the values from step 10. (Values attemptid and cmid should be ignored).

      In Quiz attempt reviewed events (mod_quiz\event\attempt_reviewed) the user IDs of the reviewer (typically the teacher) and the reviewee (typically the student) are the wrong way round.

      Steps to reproduce issue

      1. Create a course.
      2. Add a quiz.
      3. Add a question to the quiz.
      4. Enrol a student.
      5. As the student log into the site, attempt the quiz and click Finish attempt ... then Submit all and finish then Submit all and finish.
      6. As the site admin go to the course page and click on the quiz.
      7. Click Attempts: 1.
      8. Click Review attempt for the student's attempt.
      9. View the site logs (Site administration > Reports > Logs, select current date and click Get these logs).
      10. Note the database IDs of the site admin and the above student.

      Expected results

      Assuming site admin has ID 2 and student has ID 3, a Quiz attempt reviewed event with description:
      The user with id '3' has had their attempt with id '<ABC>' reviewed by the user with id '2' for the quiz with course module id '<XYZ>'.

      Actual results

      Assuming site admin has ID 2 and student has ID 3, a Quiz attempt reviewed event with description:
      The user with id '2' has had their attempt with id '<ABC>' reviewed by the user with id '3' for the quiz with course module id '<XYZ>'.

            leonstr Leon Stringer
            leonstr Leon Stringer
            Tim Hunt Tim Hunt
            Andrew Lyons Andrew Lyons
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 54 minutes
                54m

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