mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
FIX redirect user to form on validation error. (Fixes #62)
This commit is contained in:
parent
1cba24880b
commit
0aa9572f2c
@ -357,6 +357,7 @@ class UserDefinedForm_Controller extends Page_Controller {
|
||||
$this->generateConditionalJavascript();
|
||||
|
||||
$form = new Form($this, "Form", $fields, $actions, $required);
|
||||
$form->setRedirectToFormOnValidationError(true);
|
||||
|
||||
$data = Session::get("FormInfo.{$form->FormName()}.data");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user