Skip to content

Commit

Permalink
Populate a wizard page in case the user moves backwards
Browse files Browse the repository at this point in the history
refs #7163
  • Loading branch information
Johannes Meyer committed Sep 29, 2014
1 parent 73b4176 commit 5c13a19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/Icinga/Web/Wizard.php
Expand Up @@ -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());
}
Expand Down

0 comments on commit 5c13a19

Please sign in to comment.