mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
Merge branch 'bugfix/can-t-progress-in-wizard-due-to-error-2842'
fixes #2842
This commit is contained in:
commit
6848ed6c1e
@ -270,9 +270,6 @@ class TransportConfigForm extends ConfigForm
|
|||||||
parent::addSubmitButton();
|
parent::addSubmitButton();
|
||||||
|
|
||||||
if ($this->getSubForm('transport_form') instanceof ApiTransportForm) {
|
if ($this->getSubForm('transport_form') instanceof ApiTransportForm) {
|
||||||
$this->getElement('btn_submit')
|
|
||||||
->setDecorators(array('ViewHelper'));
|
|
||||||
|
|
||||||
$this->addElement(
|
$this->addElement(
|
||||||
'submit',
|
'submit',
|
||||||
'transport_validation',
|
'transport_validation',
|
||||||
@ -296,8 +293,15 @@ class TransportConfigForm extends ConfigForm
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$btnSubmit = $this->getElement('btn_submit');
|
||||||
|
$elements = array('transport_validation', 'transport-progress');
|
||||||
|
if ($btnSubmit !== null) {
|
||||||
|
// In the setup wizard $this is being used as a subform which doesn't have a submit button.
|
||||||
|
$btnSubmit->setDecorators(array('ViewHelper'));
|
||||||
|
array_unshift($elements, 'btn_submit');
|
||||||
|
}
|
||||||
$this->addDisplayGroup(
|
$this->addDisplayGroup(
|
||||||
array('btn_submit', 'transport_validation', 'transport-progress'),
|
$elements,
|
||||||
'submit_validation',
|
'submit_validation',
|
||||||
array(
|
array(
|
||||||
'decorators' => array(
|
'decorators' => array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user