Merge branch 'bugfix/setup-wizard-ldap-backend-wrong-default-type-3004'

fixes #3004
This commit is contained in:
Alexander A. Klimov 2017-10-09 14:41:30 +02:00
commit 7cdac4eb9f
1 changed files with 6 additions and 3 deletions

View File

@ -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();