mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
ServiceController: make sure to set branch and...
...host on Service Form
This commit is contained in:
parent
4f959572f2
commit
cb16733420
@ -141,6 +141,9 @@ class ServiceController extends ObjectController
|
||||
$object = $this->object;
|
||||
$this->addTitle($object->getObjectName());
|
||||
|
||||
$form = IcingaServiceForm::load()->setDb($this->db());
|
||||
$form->setBranch($this->getBranch());
|
||||
|
||||
if ($this->host) {
|
||||
$this->actions()->add(Link::create(
|
||||
$this->translate('back'),
|
||||
@ -148,10 +151,9 @@ class ServiceController extends ObjectController
|
||||
['uuid' => $this->host->getUniqueId()->toString()],
|
||||
['class' => 'icon-left-big']
|
||||
));
|
||||
$form->setHost($this->host);
|
||||
}
|
||||
|
||||
$form = IcingaServiceForm::load()->setDb($this->db());
|
||||
|
||||
if ($this->set) {
|
||||
$form->setServiceSet($this->set);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user