Adds in the email notification service taken from the old sorter WebService to use in the ContentEditor Controller

This commit is contained in:
Warren
2018-08-03 08:35:01 +01:00
parent 01a2988737
commit 7f5d22b587

View File

@@ -986,6 +986,12 @@ namespace Umbraco.Web.Editors
Logger.Warn<ContentController>("Content sorting failed, this was probably caused by an event being cancelled");
return Request.CreateValidationErrorResponse("Content sorting failed, this was probably caused by an event being cancelled");
}
if (sorted.ParentId > 0)
{
Services.NotificationService.SendNotification(contentService.GetById(sorted.ParentId), ActionSort.Instance, UmbracoContext, Services.TextService, GlobalSettings);
}
return Request.CreateResponse(HttpStatusCode.OK);
}
catch (Exception ex)