Merge branch 'bugfix/setup-wizard-ldap-backend-wrong-default-type-3004'
fixes #3004
This commit is contained in:
commit
7cdac4eb9f
|
@ -79,9 +79,12 @@ class AuthBackendPage extends Form
|
||||||
));
|
));
|
||||||
} elseif ($this->config['type'] === 'ldap') {
|
} elseif ($this->config['type'] === 'ldap') {
|
||||||
$type = null;
|
$type = null;
|
||||||
if (! isset($formData['type']) && isset($formData['backend'])) {
|
if (! isset($formData['type'])) {
|
||||||
$type = $formData['backend'];
|
if (isset($formData['backend'])) {
|
||||||
$formData['type'] = $type;
|
$formData['type'] = $type = $formData['backend'];
|
||||||
|
} elseif (isset($this->suggestions['backend'])) {
|
||||||
|
$formData['type'] = $type = $this->suggestions['backend'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$backendForm = new LdapBackendForm();
|
$backendForm = new LdapBackendForm();
|
||||||
|
|
Loading…
Reference in New Issue