From 4603f0657d5af593dc5f078423d7bc1d6e868b70 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Fri, 6 Oct 2017 12:04:30 +0200 Subject: [PATCH] Respect suggestions only for the LDAP backend type refs #2990 --- .../setup/application/forms/AuthBackendPage.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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'); }