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

View File

@ -106,7 +106,10 @@ abstract class MultiForm extends Form {
$this->fields->push(new HiddenField('MultiFormSessionID', false, $this->session->$urlMethod));
// Set up validator for the step
$this->setValidator();
// @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()) {