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:53:04 +01:00
parent e998f14061
commit b3eed7cc95

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'.";
}