IcingaServiceForm: same buttons for any use case

fixes #1393
This commit is contained in:
Thomas Gelf 2018-02-20 14:10:21 +01:00
parent a515e02953
commit 344e6a8e59

View File

@ -296,6 +296,7 @@ class IcingaServiceForm extends DirectorObjectForm
$this->addHidden('service_set_id', $this->set->id);
$this->addHidden('object_type', 'apply');
$this->addImportsElement();
$this->setButtons();
$imports = $this->getSentOrObjectValue('imports');
if ($this->hasBeenSent()) {
@ -314,8 +315,7 @@ class IcingaServiceForm extends DirectorObjectForm
if ($this->hasPermission('director/admin')) {
$this->addCheckCommandElements(true)
->addCheckExecutionElements(true)
->addExtraInfoElements()
->setButtons();
->addExtraInfoElements();
}
if ($this->hasBeenSent()) {