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.
This commit is contained in:
Leon Stringer
2023-08-21 15:50:28 +01:00
parent f12e1b82a0
commit fe3054d05b
+1 -1
View File
@@ -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'.";
}