mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #1177 from mateusz/session-set-form-message
BUG Adjust Session::setFormMessage to fit with underlying API.
This commit is contained in:
commit
02d58b1015
@ -440,8 +440,8 @@ class Session {
|
|||||||
* @param type the type of message
|
* @param type the type of message
|
||||||
*/
|
*/
|
||||||
public static function setFormMessage($formname,$message,$type){
|
public static function setFormMessage($formname,$message,$type){
|
||||||
Session::set("FormInfo.$formname.message", $message);
|
Session::set("FormInfo.$formname.formError.message", $message);
|
||||||
Session::set("FormInfo.$formname.type", $type);
|
Session::set("FormInfo.$formname.formError.type", $type);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user