MDL-27007 fix incorrectly suspended user enrolment when uploading users
This bug surfaced after the recent change in enrol API, credit goes to Chaim Schendowich and Micky Fokken.
This commit is contained in:
@@ -774,7 +774,7 @@ if ($formdata = $mform2->is_cancelled()) {
|
||||
}
|
||||
}
|
||||
|
||||
$manual->enrol_user($manualcache[$courseid], $user->id, $rid, $today, $timeend, true);
|
||||
$manual->enrol_user($manualcache[$courseid], $user->id, $rid, $today, $timeend);
|
||||
|
||||
$a = new stdClass();
|
||||
$a->course = $shortname;
|
||||
|
||||
Reference in New Issue
Block a user