From 227e2489c1e8fb6cf4d45b93041a21600871adf9 Mon Sep 17 00:00:00 2001 From: Claus Date: Thu, 6 Aug 2015 10:32:41 +0200 Subject: [PATCH] Fix: U4-5180 Notifications email highlighting is incorrect. Ensured the versions of content used in comparison is sorted correctly so the highlighting is based on previous version and not the base version of the content. --- src/Umbraco.Core/Services/NotificationService.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Umbraco.Core/Services/NotificationService.cs b/src/Umbraco.Core/Services/NotificationService.cs index 1aae82f52c..856818b38e 100644 --- a/src/Umbraco.Core/Services/NotificationService.cs +++ b/src/Umbraco.Core/Services/NotificationService.cs @@ -204,6 +204,8 @@ namespace Umbraco.Core.Services if (createSubject == null) throw new ArgumentNullException("createSubject"); if (createBody == null) throw new ArgumentNullException("createBody"); + allVersions = allVersions.OrderBy(x => x.UpdateDate).ToArray(); + int versionCount = (allVersions.Length > 1) ? (allVersions.Length - 2) : (allVersions.Length - 1); var oldDoc = _contentService.GetByVersion(allVersions[versionCount].Version);