From 3dcca2e59be43483b44dc86b8bb5473220f7592d Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms Date: Thu, 3 Apr 2025 11:44:10 +0000 Subject: actually delete event for consultation booking when the booking is deleted, fixes #5462 Closes #5462 Merge request studip/studip!4096 --- lib/models/ConsultationBooking.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/models/ConsultationBooking.php b/lib/models/ConsultationBooking.php index 30ec21f..026e727 100644 --- a/lib/models/ConsultationBooking.php +++ b/lib/models/ConsultationBooking.php @@ -53,6 +53,8 @@ class ConsultationBooking extends SimpleORMap implements PrivacyObject || !$assignment->user; $assignment->delete(); }); + + $booking->event->delete(); }, ]; -- cgit v1.0