diff --git a/modules/setup/application/forms/AuthBackendPage.php b/modules/setup/application/forms/AuthBackendPage.php index 2ce1f5015..e0d2d813b 100644 --- a/modules/setup/application/forms/AuthBackendPage.php +++ b/modules/setup/application/forms/AuthBackendPage.php @@ -110,6 +110,13 @@ class AuthBackendPage extends Form 'value' => $type ) ); + + foreach ($this->suggestions as $key => $suggestion) { + $element = $backendForm->getElement($key); + if ($element !== null) { + $element->setValue($suggestion); + } + } } else { // $this->config['type'] === 'external' $backendForm = new ExternalBackendForm(); $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'); $this->addSubForm($backendForm, 'backend_form'); }