Populate LdapBackendForm with suggestions only on the first access

refs #2990
This commit is contained in:
Alexander A. Klimov 2017-10-05 14:53:14 +02:00
parent d11775a6b8
commit a0ffdb0f7c
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ class WebWizard extends Wizard implements SetupWizard
} elseif ($authData['type'] === 'ldap') {
$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');
if (isset($suggestions['backend'])) {
$page->populate($suggestions['backend']);