From 5c13a19b1ae65769b03903690f829c8cd7b0c9db Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 29 Sep 2014 11:31:13 +0200 Subject: [PATCH] Populate a wizard page in case the user moves backwards refs #7163 --- library/Icinga/Web/Wizard.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/Icinga/Web/Wizard.php b/library/Icinga/Web/Wizard.php index 916dc1112f..1e0c8c49dc 100644 --- a/library/Icinga/Web/Wizard.php +++ b/library/Icinga/Web/Wizard.php @@ -217,12 +217,13 @@ public function handleRequest(Request $request = null) $this->setIsFinished(); } } elseif ($direction === static::BACKWARD) { + $page->populate($requestData); $isValid = true; } if ($isValid) { $pageData = & $this->getPageData(); - $pageData[$page->getName()] = $requestData; + $pageData[$page->getName()] = $page->getValues(); $this->setCurrentPage($this->getNewPage($requestedPage)); $page->getResponse()->redirectAndExit($page->getRedirectUrl()); }