Populate a wizard page in case the user moves backwards

refs #7163
This commit is contained in:
Johannes Meyer 2014-09-29 11:31:13 +02:00
parent 73b41769e7
commit 5c13a19b1a
1 changed files with 2 additions and 1 deletions

View File

@ -217,12 +217,13 @@ class Wizard
$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());
}