-
Bug
-
Resolution: Fixed
-
Minor
-
4.1.5, 4.2.2
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
- 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.
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>'.