mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Form::validate clears whole session incl. 'message' key, instead of overwriting specific keys (fixes #6607, thanks netnoise)
This commit is contained in:
parent
18b9a5519d
commit
fbe4b3fbc9
@ -902,11 +902,8 @@ class Form extends RequestHandler {
|
||||
$data = $this->getData();
|
||||
|
||||
// Load errors into session and post back
|
||||
Session::set("FormInfo.{$this->FormName()}", array(
|
||||
'errors' => $errors,
|
||||
'data' => $data,
|
||||
));
|
||||
|
||||
Session::set("FormInfo.{$this->FormName()}.errors", $errors);
|
||||
Session::set("FormInfo.{$this->FormName()}.data", $data);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user