mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 05:44:36 +02:00
Populate LdapBackendForm with suggestions only on the first access
refs #2990
This commit is contained in:
parent
d11775a6b8
commit
a0ffdb0f7c
@ -138,7 +138,7 @@ class WebWizard extends Wizard implements SetupWizard
|
|||||||
} elseif ($authData['type'] === 'ldap') {
|
} elseif ($authData['type'] === 'ldap') {
|
||||||
$page->setResourceConfig($this->getPageData('setup_ldap_resource'));
|
$page->setResourceConfig($this->getPageData('setup_ldap_resource'));
|
||||||
|
|
||||||
if (! $this->hasPageData('setup_authentication_backend')) {
|
if (! $this->hasPageData('setup_authentication_backend') && ! $request->isPost()) {
|
||||||
$suggestions = $this->getPageData('setup_ldap_discovery');
|
$suggestions = $this->getPageData('setup_ldap_discovery');
|
||||||
if (isset($suggestions['backend'])) {
|
if (isset($suggestions['backend'])) {
|
||||||
$page->populate($suggestions['backend']);
|
$page->populate($suggestions['backend']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user