From fe3054d05b7e7e16df52ab1fefe4a77e3ae4a2f6 Mon Sep 17 00:00:00 2001 From: Leon Stringer Date: Mon, 21 Aug 2023 15:50:28 +0100 Subject: [PATCH] MDL-79075 quiz: Fix transposed user IDs In the description of "Quiz attempt reviewed" events the user IDs of the reviewer (typically the teacher) and the reviewee (typically the student) were the wrong way round. --- mod/quiz/classes/event/attempt_reviewed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/quiz/classes/event/attempt_reviewed.php b/mod/quiz/classes/event/attempt_reviewed.php index ba1cd541623..098dda15b3f 100644 --- a/mod/quiz/classes/event/attempt_reviewed.php +++ b/mod/quiz/classes/event/attempt_reviewed.php @@ -65,7 +65,7 @@ class attempt_reviewed extends \core\event\base { * @return string */ public function get_description() { - return "The user with id '$this->userid' has had their attempt with id '$this->objectid' reviewed by the user " . + return "The user with id '$this->userid' has reviewed quiz attempt with id '$this->objectid' by user ". "with id '$this->relateduserid' for the quiz with course module id '$this->contextinstanceid'."; }