MDL-44321 events: make sure the full object is passed to add_record_snapshot()

This commit is contained in:
Marina Glancy
2014-02-28 16:37:36 +08:00
parent 5e70ea26bb
commit cd5be9a504
11 changed files with 32 additions and 8 deletions
+1 -2
View File
@@ -1042,9 +1042,8 @@ class completion_info {
// Trigger an event for course module completion changed.
$event = \core\event\course_module_completion_updated::create(
array('objectid' => $data->id,
'userid' => $USER->id,
'context' => $cmcontext,
'courseid' => $coursecontext->instanceid,
'relateduserid' => $data->userid,
'other' => array('relateduserid' => $data->userid)
)
);