From 1794ce5f9c3dd2f392aeca5d49a07ed2fb3cf1f7 Mon Sep 17 00:00:00 2001 From: Leon Stringer Date: Mon, 21 Aug 2023 15:52:07 +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 99833c98197..63fd88611ac 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'."; }