From e72f2cac24456fb96c8cd9a70b61b34ed0de2221 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 17 Oct 2014 15:42:06 +0200 Subject: [PATCH] Fix that page information gets deleted when navigating back refs #7163 --- library/Icinga/Application/WebSetup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Application/WebSetup.php b/library/Icinga/Application/WebSetup.php index 33d8e25cc..a8b6575da 100644 --- a/library/Icinga/Application/WebSetup.php +++ b/library/Icinga/Application/WebSetup.php @@ -126,7 +126,7 @@ class WebSetup extends Wizard implements SetupWizard 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,