IcingaServiceForm: push forgotten assignments

This commit is contained in:
Thomas Gelf 2016-03-26 16:18:50 +01:00
parent 5a725a45eb
commit 360812b719
1 changed files with 17 additions and 0 deletions

View File

@ -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);