Basket: allow Notification Apply Rules export

fixes #2335
This commit is contained in:
Thomas Gelf 2021-05-28 15:24:18 +02:00
parent 40544ac935
commit ac652f5966
3 changed files with 7 additions and 1 deletions

View File

@ -52,6 +52,11 @@ class NotificationController extends ObjectController
} }
} }
protected function hasBasketSupport()
{
return $this->object->isTemplate() || $this->object->isApplyRule();
}
protected function loadObject() protected function loadObject()
{ {
if ($this->object === null) { if ($this->object === null) {

View File

@ -16,6 +16,7 @@ next (will be 1.9.0)
* FEATURE: there is now a simple "group by" Property Modifier (#2317) * FEATURE: there is now a simple "group by" Property Modifier (#2317)
### Configuration Baskets ### Configuration Baskets
* FIX: Notification Apply Rules have not been exported (#2335)
* FEATURE: it's now possible to purge objects of specific types (#2201) * FEATURE: it's now possible to purge objects of specific types (#2201)
### Permissions and Restrictions ### Permissions and Restrictions

View File

@ -41,7 +41,7 @@ class BasketSnapshot extends DbObject
'ServiceTemplate' => IcingaService::class, 'ServiceTemplate' => IcingaService::class,
'ServiceSet' => IcingaServiceSet::class, 'ServiceSet' => IcingaServiceSet::class,
'NotificationTemplate' => IcingaNotification::class, 'NotificationTemplate' => IcingaNotification::class,
'Notification' => IcingaNotification::class, 'Notification' => [IcingaNotification::class, ['object_type' => 'apply']],
'DataList' => DirectorDatalist::class, 'DataList' => DirectorDatalist::class,
'Dependency' => IcingaDependency::class, 'Dependency' => IcingaDependency::class,
'ImportSource' => ImportSource::class, 'ImportSource' => ImportSource::class,