#18022: Fixing duplicate notifications

Work Item: 18022

--HG--
branch : 1.x
This commit is contained in:
kobowi
2012-09-20 16:51:32 -07:00
parent 164040f442
commit c374528774

View File

@@ -25,6 +25,12 @@ namespace Orchard.UI.Admin.Notification {
// if it's not a view result, a redirect for example
if (!(filterContext.Result is ViewResultBase))
return;
// if it's a child action, a partial view for example
if (filterContext.IsChildAction)
return;
var messageEntries = _notificationManager.GetNotifications().ToList();
if (!messageEntries.Any())