From c35a3fa7021f5f700e89a90209290be3d9e63703 Mon Sep 17 00:00:00 2001 From: Kenn Jacobsen Date: Sun, 21 Apr 2019 13:19:29 +0200 Subject: [PATCH] Send notifications for rollbacks --- src/Umbraco.Web/Strategies/NotificationsHandler.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Umbraco.Web/Strategies/NotificationsHandler.cs b/src/Umbraco.Web/Strategies/NotificationsHandler.cs index a085bd463a..a01fba3c94 100644 --- a/src/Umbraco.Web/Strategies/NotificationsHandler.cs +++ b/src/Umbraco.Web/Strategies/NotificationsHandler.cs @@ -73,6 +73,10 @@ namespace Umbraco.Web.Strategies applicationContext.Services.NotificationService.SendNotification( content, ActionUnPublish.Instance, applicationContext)); + //Send notifications for the rollback action + ContentService.RolledBack += (sender, args) => applicationContext.Services.NotificationService.SendNotification( + args.Entity, ActionRollback.Instance, applicationContext + ); } }