From 80f9ea29b54cec2a1936ef19632b0160ec7dec3f Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 9 Apr 2020 14:59:52 +0200 Subject: [PATCH] BasketForm: allow Notification Templates --- application/forms/BasketForm.php | 1 + library/Director/DirectorObject/Automation/BasketSnapshot.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/application/forms/BasketForm.php b/application/forms/BasketForm.php index e57d84f7e..6085a6838 100644 --- a/application/forms/BasketForm.php +++ b/application/forms/BasketForm.php @@ -24,6 +24,7 @@ protected function getAvailableTypes() 'IcingaTemplateChoiceService' => $this->translate('Service Template Choice'), 'ServiceTemplate' => $this->translate('Service Templates'), 'ServiceSet' => $this->translate('Service Sets'), + 'NotificationTemplate' => $this->translate('Notification Templates'), 'Notification' => $this->translate('Notifications'), 'TimePeriod' => $this->translate('Time Periods'), 'Dependency' => $this->translate('Dependencies'), diff --git a/library/Director/DirectorObject/Automation/BasketSnapshot.php b/library/Director/DirectorObject/Automation/BasketSnapshot.php index 77e8b24bc..f99cf2f07 100644 --- a/library/Director/DirectorObject/Automation/BasketSnapshot.php +++ b/library/Director/DirectorObject/Automation/BasketSnapshot.php @@ -40,6 +40,7 @@ class BasketSnapshot extends DbObject 'IcingaTemplateChoiceService' => IcingaTemplateChoiceService::class, 'ServiceTemplate' => IcingaService::class, 'ServiceSet' => IcingaServiceSet::class, + 'NotificationTemplate' => IcingaNotification::class, 'Notification' => IcingaNotification::class, 'DataList' => DirectorDatalist::class, 'Dependency' => IcingaDependency::class, @@ -72,6 +73,7 @@ class BasketSnapshot extends DbObject 'IcingaTemplateChoiceService', 'ServiceTemplate', 'ServiceSet', + 'NotificationTemplate', 'Notification', 'Dependency', 'ImportSource',