From 4b9a30755f9380cce0625908ec69b074bdec7f54 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Mon, 9 Oct 2017 13:00:05 +0200 Subject: [PATCH] Suggest LDAP backend type based on the discovery (if any) refs #3004 --- modules/setup/application/forms/AuthBackendPage.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/setup/application/forms/AuthBackendPage.php b/modules/setup/application/forms/AuthBackendPage.php index 778ab349d..4b11868af 100644 --- a/modules/setup/application/forms/AuthBackendPage.php +++ b/modules/setup/application/forms/AuthBackendPage.php @@ -79,9 +79,12 @@ class AuthBackendPage extends Form )); } elseif ($this->config['type'] === 'ldap') { $type = null; - if (! isset($formData['type']) && isset($formData['backend'])) { - $type = $formData['backend']; - $formData['type'] = $type; + if (! isset($formData['type'])) { + if (isset($formData['backend'])) { + $formData['type'] = $type = $formData['backend']; + } elseif (isset($this->suggestions['backend'])) { + $formData['type'] = $type = $this->suggestions['backend']; + } } $backendForm = new LdapBackendForm();