From d987dfb5a2a34acd9423faca78efb9d44db3ab79 Mon Sep 17 00:00:00 2001 From: Shannon Date: Wed, 28 May 2014 12:40:43 +1000 Subject: [PATCH] Fixes: U4-4141 7.0.2 "Save and send for approval" fails for a writer user on a newly created unsaved content page --- src/Umbraco.Core/Services/ContentService.cs | 4 ++-- src/umbraco.cms/businesslogic/web/Document.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Core/Services/ContentService.cs b/src/Umbraco.Core/Services/ContentService.cs index 49e59550ee..2d2481d385 100644 --- a/src/Umbraco.Core/Services/ContentService.cs +++ b/src/Umbraco.Core/Services/ContentService.cs @@ -1263,8 +1263,8 @@ namespace Umbraco.Core.Services if (SendingToPublish.IsRaisedEventCancelled(new SendToPublishEventArgs(content), this)) return false; - //TODO: Do some stuff here.. ... what is it supposed to do ? - // pretty sure all that legacy stuff did was raise an event? and we no longer have IActionHandlers so no worries there. + //Save before raising event + Save(content, userId); SentToPublish.RaiseEvent(new SendToPublishEventArgs(content, false), this); diff --git a/src/umbraco.cms/businesslogic/web/Document.cs b/src/umbraco.cms/businesslogic/web/Document.cs index 6255a7b2eb..479fb055c6 100644 --- a/src/umbraco.cms/businesslogic/web/Document.cs +++ b/src/umbraco.cms/businesslogic/web/Document.cs @@ -750,7 +750,7 @@ namespace umbraco.cms.businesslogic.web #region Public Methods /// - /// Executes handlers and events for the Send To Publication action. + /// Saves and executes handlers and events for the Send To Publication action. /// /// The User public bool SendToPublication(User u)