Skip to content

Commit

Permalink
Fix that page information gets deleted when navigating back
Browse files Browse the repository at this point in the history
refs #7163
  • Loading branch information
Johannes Meyer committed Oct 17, 2014
1 parent f453fd0 commit e72f2ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Icinga/Application/WebSetup.php
Expand Up @@ -126,7 +126,7 @@ public function setupPage(Form $page, Request $request)
if (isset($suggestion['resource'])) {
$page->populate($suggestion['resource']);
}
} elseif ($page->getName() === 'setup_authentication_type') {
} elseif ($page->getName() === 'setup_authentication_type' && $this->getDirection() === static::FORWARD) {
$authData = $this->getPageData($page->getName());
if ($authData !== null && $request->getPost('type') !== $authData['type']) {
// Drop any existing page data in case the authentication type has changed,
Expand Down

0 comments on commit e72f2ca

Please sign in to comment.