diff options
Diffstat (limited to 'lib/models/resources/ResourceBooking.class.php')
| -rw-r--r-- | lib/models/resources/ResourceBooking.class.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/models/resources/ResourceBooking.class.php b/lib/models/resources/ResourceBooking.class.php index f93f38c..16b0af4 100644 --- a/lib/models/resources/ResourceBooking.class.php +++ b/lib/models/resources/ResourceBooking.class.php @@ -1896,11 +1896,6 @@ class ResourceBooking extends SimpleORMap implements PrivacyObject, Studip\Calen */ public function sendDeleteNotification() { - if ($this->booking_type != '0') { - //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. @@ -1931,6 +1926,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()); |
