-
Bug
-
Resolution: Fixed
-
Critical
-
2.6
-
MOODLE_26_STABLE
-
Easy
Currently when this event is fired, it sets the 'relateduserid' as part of the 'other' array. This should probably set it to the event property of relateduserid.
EG: update it like so:
$event = \core\event\course_module_completion_updated::create(
|
array('objectid' => $data->id,
|
'userid' => $USER->id,
|
'relateduserid' => $data->userid,
|
'context' => $cmcontext,
|
'courseid' => $coursecontext->instanceid,
|
'other' => array('relateduserid' => $data->userid)
|
)
|
);
|
|
Probably have to leave the related user ID in the other part for backwards compatibility.
- is a regression caused by
-
MDL-40042 Replace add_to_log with an event trigger - completion
-
- Closed
-