mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
parent
de53925c7c
commit
4603f0657d
@ -110,6 +110,13 @@ class AuthBackendPage extends Form
|
|||||||
'value' => $type
|
'value' => $type
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
foreach ($this->suggestions as $key => $suggestion) {
|
||||||
|
$element = $backendForm->getElement($key);
|
||||||
|
if ($element !== null) {
|
||||||
|
$element->setValue($suggestion);
|
||||||
|
}
|
||||||
|
}
|
||||||
} else { // $this->config['type'] === 'external'
|
} else { // $this->config['type'] === 'external'
|
||||||
$backendForm = new ExternalBackendForm();
|
$backendForm = new ExternalBackendForm();
|
||||||
$backendForm->create($formData);
|
$backendForm->create($formData);
|
||||||
@ -119,13 +126,6 @@ class AuthBackendPage extends Form
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($this->suggestions as $key => $suggestion) {
|
|
||||||
$element = $backendForm->getElement($key);
|
|
||||||
if ($element !== null) {
|
|
||||||
$element->setValue($suggestion);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$backendForm->getElement('name')->setValue('icingaweb2');
|
$backendForm->getElement('name')->setValue('icingaweb2');
|
||||||
$this->addSubForm($backendForm, 'backend_form');
|
$this->addSubForm($backendForm, 'backend_form');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user