|
@@ 435-439 (lines=5) @@
|
| 432 |
|
return false; |
| 433 |
|
} |
| 434 |
|
|
| 435 |
|
if(!$this->getCurrentStep()->validateStep($data, $form)) { |
| 436 |
|
Session::set("FormInfo.{$form->FormName()}.data", $form->getData()); |
| 437 |
|
$this->controller->redirectBack(); |
| 438 |
|
return false; |
| 439 |
|
} |
| 440 |
|
} |
| 441 |
|
|
| 442 |
|
/** |
|
@@ 468-472 (lines=5) @@
|
| 465 |
|
// Perform custom step validation (use MultiFormStep->getValidator() for |
| 466 |
|
// built-in functionality). The data needs to be manually saved on error |
| 467 |
|
// so the form is re-populated. |
| 468 |
|
if(!$this->getCurrentStep()->validateStep($data, $form)) { |
| 469 |
|
Session::set("FormInfo.{$form->FormName()}.data", $form->getData()); |
| 470 |
|
$this->controller->redirectBack(); |
| 471 |
|
return false; |
| 472 |
|
} |
| 473 |
|
|
| 474 |
|
// validation succeeded so we reset it to remove errors and messages |
| 475 |
|
$this->resetValidation(); |