Wizard: Clear user group stage data on a auth backend type switch as well

refs #9609
This commit is contained in:
Johannes Meyer 2015-07-29 16:28:41 +02:00
parent fb7666e6bd
commit 226caac4f9
1 changed files with 8 additions and 0 deletions

View File

@ -150,6 +150,14 @@ class WebWizard extends Wizard implements SetupWizard
}
}
}
if ($this->getDirection() === static::FORWARD) {
$backendConfig = $this->getPageData('setup_authentication_backend');
if ($backendConfig !== null && $request->getPost('backend') !== $backendConfig['backend']) {
$pageData = & $this->getPageData();
unset($pageData['setup_usergroup_backend']);
}
}
/*} elseif ($page->getName() === 'setup_ldap_discovery_confirm') {
$page->setResourceConfig($this->getPageData('setup_ldap_discovery'));*/
} elseif ($page->getName() === 'setup_usergroup_backend') {