IcingaServiceForm: push forgotten assignments
This commit is contained in:
parent
5a725a45eb
commit
360812b719
|
@ -36,12 +36,29 @@ class IcingaServiceForm extends DirectorObjectForm
|
|||
->addGroupsElement()
|
||||
->addDisabledElement()
|
||||
->groupMainProperties()
|
||||
->addAssignmentElements()
|
||||
->addCheckCommandElements()
|
||||
->addCheckExecutionElements()
|
||||
->addAgentAndZoneElements()
|
||||
->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()
|
||||
{
|
||||
$this->addHidden('host_id', $this->host->id);
|
||||
|
|
Loading…
Reference in New Issue