mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
When unenrolling a student from ALL courses, delete group memberships
This commit is contained in:
parent
17050991cd
commit
84bbca5355
1 changed files with 1 additions and 0 deletions
|
@ -816,6 +816,7 @@ function unenrol_student($userid, $courseid=0) {
|
|||
|
||||
} else {
|
||||
delete_records("forum_subscriptions", "userid", $userid);
|
||||
delete_records("groups_members", "userid", $userid);
|
||||
return delete_records("user_students", "userid", $userid);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue