Fix multistep page creation

refs #6136
This commit is contained in:
Johannes Meyer 2014-05-14 11:03:16 +02:00
parent 33d4142664
commit 1f942acd38
1 changed files with 2 additions and 0 deletions

View File

@ -246,6 +246,7 @@ class Wizard extends Page
$newStep = $this->getProgress() + 1;
if (isset($pages[$newStep]) && $pages[$newStep]->getName() === $pageName) {
$this->setProgress($newStep);
$this->reset();
}
}
}
@ -257,6 +258,7 @@ class Wizard extends Page
$newStep = $this->getProgress() - 1;
if ($pages[$newStep]->getName() === $pageName) {
$this->setProgress($newStep);
$this->reset();
}
}
}