aboutsummaryrefslogtreecommitdiff
path: root/lib/models/resources/ResourceBooking.php
diff options
context:
space:
mode:
authorMoritz Strohm <strohm@data-quest.de>2025-07-23 10:14:52 +0000
committerMoritz Strohm <strohm@data-quest.de>2025-07-23 10:14:52 +0000
commit8676ca591aae20e87053e22fd40be680c8a3cc36 (patch)
tree70557f4e7a6007ae8f62c2654044612eeefb7b8e /lib/models/resources/ResourceBooking.php
parent02dd88ae5e411b6b9e9b62d4ab8695697b7f8b74 (diff)
send delete notification for reservations and lock bookings, too, fixes #4749
Closes #4749 Merge request studip/studip!4376
Diffstat (limited to 'lib/models/resources/ResourceBooking.php')
-rw-r--r--lib/models/resources/ResourceBooking.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/models/resources/ResourceBooking.php b/lib/models/resources/ResourceBooking.php
index ba8e9b4..5e527d0 100644
--- a/lib/models/resources/ResourceBooking.php
+++ b/lib/models/resources/ResourceBooking.php
@@ -1970,11 +1970,6 @@ class ResourceBooking extends SimpleORMap implements PrivacyObject, Studip\Calen
*/
public function sendDeleteNotification()
{
- if ($this->booking_type != self::TYPE_NORMAL) {
- //We only handle real bookings in this method.
- return;
- }
-
if ($this->end < time()) {
//Bookings that lie in the past can be deleted without
//sending notifications.
@@ -2005,6 +2000,7 @@ class ResourceBooking extends SimpleORMap implements PrivacyObject, Studip\Calen
$lang_path . '/LC_MAILS/delete_booking_notification.php'
);
$template->set_attribute('resource', $booking_resource->getDerivedClassInstance());
+ $template->set_attribute('booking_type', $this->booking_type);
$template->set_attribute('begin', $this->begin);
$template->set_attribute('end', $this->end);
$template->set_attribute('deleting_user', User::findCurrent());