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
View File
@@ -1744,6 +1744,7 @@ function role_assign($roleid, $userid, $contextid, $component = '', $itemid = 0,
$ra->itemid = $itemid;
$ra->timemodified = $timemodified;
$ra->modifierid = empty($USER->id) ? 0 : $USER->id;
$ra->sortorder = 0;
$ra->id = $DB->insert_record('role_assignments', $ra);