MDL-44321 events: make sure the full object is passed to add_record_snapshot()
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user