mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
Fix persisting notification messages in the session
This commit is contained in:
parent
635b802a2b
commit
028a6c442b
@ -75,13 +75,11 @@ class Notification
|
||||
return;
|
||||
}
|
||||
|
||||
$mo = (object) array(
|
||||
$messages = Session::getSession()->getByRef('messages');
|
||||
$messages[] = (object) array(
|
||||
'type' => $type,
|
||||
'message' => $message,
|
||||
);
|
||||
|
||||
$session = Session::getSession();
|
||||
$session->messages[] = $mo;
|
||||
}
|
||||
|
||||
public function hasMessages()
|
||||
|
Loading…
x
Reference in New Issue
Block a user