ENHANCEMENT Don't validate if hitting the "prev" action

This commit is contained in:
Sean Harvey 2008-06-05 01:12:08 +00:00
parent 2bb5983f19
commit 4d0e9491cc
1 changed files with 5 additions and 2 deletions

View File

@ -105,8 +105,11 @@ abstract class MultiForm extends Form {
$urlMethod = $this->stat('url_type');
$this->fields->push(new HiddenField('MultiFormSessionID', false, $this->session->$urlMethod));
// Set up validator for the step
$this->setValidator();
// Set up validator for the step
// @TODO Fix this hack to stop validation if hitting the "prev" action
if(empty($_REQUEST['action_prev'])) {
$this->setValidator();
}
// If there is form data, we populate it here (CAUTION: loadData() MUST unserialize first!)
if($currentStep->loadData()) {