mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
BUGFIX: Run validation on the final step.
This commit is contained in:
parent
65d1681331
commit
4f1510ff5b
@ -377,7 +377,13 @@ abstract class MultiForm extends Form {
|
||||
Director::redirectBack();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if(!$this->getCurrentStep()->validateStep($data, $form)) {
|
||||
Session::set("FormInfo.{$form->FormName()}.data", $form->getData());
|
||||
Director::redirectBack();
|
||||
return false;
|
||||
}
|
||||
|
||||
// Save the form data for the current step
|
||||
$this->save($data);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user