ServiceController: set ServiceSet for new service

...added to a Set

fixes #1097
This commit is contained in:
Thomas Gelf 2017-08-23 08:41:41 +02:00
parent 15c26b97db
commit 71ab8b4663
1 changed files with 4 additions and 0 deletions

View File

@ -113,6 +113,10 @@ class ServiceController extends ObjectController
protected function onObjectFormLoaded(DirectorObjectForm $form)
{
if ($this->set) {
/** @var IcingaServiceForm$form */
$form->setServiceSet($this->set);
}
if ($this->object === null && $this->apply) {
$form->createApplyRuleFor($this->apply);
}