Skip to content
Snippets Groups Projects
Commit 006cd660 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by André Noack
Browse files

fixes #629

parent 6b0ce031
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,6 @@ class ConsultationModule extends CorePlugin implements StudipModule, SystemPlugi
NotificationCenter::on('UserDidDelete', function ($event, $user) {
// Delete consultation bookings and slots
ConsultationBooking::deleteByUser_id($user->id);
ConsultationBlock::deleteByTeacher_id($user->id);
ConsultationBlock::deleteBySQL("range_id = ? AND range_type = 'user'", [$user->id]);
});
NotificationCenter::on('CourseDidDelete', function ($event, $course) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment