BUGFIX Form::validate clears whole session incl. 'message' key, instead of overwriting specific keys (fixes #6607, thanks netnoise)

This commit is contained in:
Ingo Schommer 2011-05-17 20:51:38 +12:00
parent 18b9a5519d
commit fbe4b3fbc9

View File

@ -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;
}