IcingaServiceForm: push forgotten assignments
This commit is contained in:
parent
5a725a45eb
commit
360812b719
|
@ -36,12 +36,29 @@ class IcingaServiceForm extends DirectorObjectForm
|
||||||
->addGroupsElement()
|
->addGroupsElement()
|
||||||
->addDisabledElement()
|
->addDisabledElement()
|
||||||
->groupMainProperties()
|
->groupMainProperties()
|
||||||
|
->addAssignmentElements()
|
||||||
->addCheckCommandElements()
|
->addCheckCommandElements()
|
||||||
->addCheckExecutionElements()
|
->addCheckExecutionElements()
|
||||||
->addAgentAndZoneElements()
|
->addAgentAndZoneElements()
|
||||||
->setButtons();
|
->setButtons();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function addAssignmentElements()
|
||||||
|
{
|
||||||
|
if (!$this->object || !$this->object->isApplyRule()) {
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
$sub = new AssignListSubForm();
|
||||||
|
$sub->setObject($this->getObject());
|
||||||
|
$sub->setup();
|
||||||
|
$sub->setOrder(30);
|
||||||
|
|
||||||
|
$this->addSubForm($sub, 'assignlist');
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
protected function setupHostRelatedElements()
|
protected function setupHostRelatedElements()
|
||||||
{
|
{
|
||||||
$this->addHidden('host_id', $this->host->id);
|
$this->addHidden('host_id', $this->host->id);
|
||||||
|
|
Loading…
Reference in New Issue