diff options
Diffstat (limited to 'core/Notification/Manager.php')
-rw-r--r-- | core/Notification/Manager.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Notification/Manager.php b/core/Notification/Manager.php index 4ae3acde42..49495caba1 100644 --- a/core/Notification/Manager.php +++ b/core/Notification/Manager.php @@ -119,9 +119,9 @@ class Manager private static function saveNotificationAcrossUiRequestsIfNeeded($id, Notification $notification) { - $isPersistent = $notification->type === Notification::TYPE_PERSISTENT; - - if ($isPersistent && self::isSessionEnabled()) { + if (self::isSessionEnabled()) { + // we need to save even non persistent notifications if possible. Otherwise if there's a redirect + // a notification is not shown on the next page view $session = static::getSession(); $session->notifications[$id] = $notification; } |