mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 00:34:03 +02:00
Fix form population in case the user navigates backwards to make changes
refs #7163
This commit is contained in:
parent
4f52da95ac
commit
0f302bfc0a
@ -84,6 +84,15 @@ class WebSetup extends Wizard implements SetupWizard
|
|||||||
}
|
}
|
||||||
} elseif ($page->getName() === 'setup_authentication_backend') {
|
} elseif ($page->getName() === 'setup_authentication_backend') {
|
||||||
$authData = $this->getPageData('setup_authentication_type');
|
$authData = $this->getPageData('setup_authentication_type');
|
||||||
|
if (($backendData = $this->getPageData($page->getName())) !== null
|
||||||
|
&& $backendData['backend'] !== $authData['type']
|
||||||
|
) {
|
||||||
|
// Drop any existing page data in case the authentication type has changed,
|
||||||
|
// otherwise it will conflict with other forms that depend on this one
|
||||||
|
$pageData = & $this->getPageData();
|
||||||
|
unset($pageData[$page->getName()]);
|
||||||
|
}
|
||||||
|
|
||||||
if ($authData['type'] === 'db') {
|
if ($authData['type'] === 'db') {
|
||||||
$page->setResourceConfig($this->getPageData('setup_db_resource'));
|
$page->setResourceConfig($this->getPageData('setup_db_resource'));
|
||||||
} elseif ($authData['type'] === 'ldap') {
|
} elseif ($authData['type'] === 'ldap') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user