Skip to content

Commit

Permalink
Basket: allow Notification Apply Rules export
Browse files Browse the repository at this point in the history
fixes #2335
  • Loading branch information
Thomas-Gelf committed May 28, 2021
1 parent 40544ac commit ac652f5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions application/controllers/NotificationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ protected function onObjectFormLoaded(DirectorObjectForm $form)
}
}

protected function hasBasketSupport()
{
return $this->object->isTemplate() || $this->object->isApplyRule();
}

protected function loadObject()
{
if ($this->object === null) {
Expand Down
1 change: 1 addition & 0 deletions doc/82-Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ next (will be 1.9.0)
* FEATURE: there is now a simple "group by" Property Modifier (#2317)

### Configuration Baskets
* FIX: Notification Apply Rules have not been exported (#2335)
* FEATURE: it's now possible to purge objects of specific types (#2201)

### Permissions and Restrictions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class BasketSnapshot extends DbObject
'ServiceTemplate' => IcingaService::class,
'ServiceSet' => IcingaServiceSet::class,
'NotificationTemplate' => IcingaNotification::class,
'Notification' => IcingaNotification::class,
'Notification' => [IcingaNotification::class, ['object_type' => 'apply']],
'DataList' => DirectorDatalist::class,
'Dependency' => IcingaDependency::class,
'ImportSource' => ImportSource::class,
Expand Down

0 comments on commit ac652f5

Please sign in to comment.