Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/Notification/Manager.php')
-rw-r--r--core/Notification/Manager.php6
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;
}