aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMoritz Strohm <strohm@data-quest.de>2025-07-23 10:15:42 +0000
committerMoritz Strohm <strohm@data-quest.de>2025-07-23 12:20:40 +0200
commit4740e3b0314a9efdb057bee9a0c907d108b0abba (patch)
tree2373b84c423b95f57e09ef49e2a9beff97666ade /lib
parent40331246700acc006525b9f34e4027d68f04aa34 (diff)
send delete notification for reservations and lock bookings, too, fixes #4749
Closes #4749 Merge request studip/studip!4376 (cherry picked from commit 8676ca591aae20e87053e22fd40be680c8a3cc36) 65a84077 send delete notification for reservations and lock bookings, too Co-authored-by: Moritz Strohm <strohm@data-quest.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/models/resources/ResourceBooking.class.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/models/resources/ResourceBooking.class.php b/lib/models/resources/ResourceBooking.class.php
index 88a55d1..0b4facf 100644
--- a/lib/models/resources/ResourceBooking.class.php
+++ b/lib/models/resources/ResourceBooking.class.php
@@ -1892,11 +1892,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.
@@ -1927,6 +1922,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());