diff --git a/lib/enrollib.php b/lib/enrollib.php index 3ee4606d3763d..dc7aa9224c9e2 100644 --- a/lib/enrollib.php +++ b/lib/enrollib.php @@ -1462,6 +1462,7 @@ public function unenrol_user(stdClass $instance, $userid) { 'courseid' => $courseid, 'context' => $context, 'relateduserid' => $ue->userid, + 'objectid' => $ue->id, 'other' => array( 'userenrolment' => (array)$ue, 'enrol' => $name