ServiceController: set ServiceSet for new service
...added to a Set fixes #1097
This commit is contained in:
parent
15c26b97db
commit
71ab8b4663
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue