From 8e723b13366ed2ecbc0fd3593422d8a3fd0dc3e5 Mon Sep 17 00:00:00 2001 From: Morten Christensen Date: Thu, 10 Jan 2013 14:58:35 -0100 Subject: [PATCH] Reordering in Document class --- src/umbraco.cms/businesslogic/web/Document.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/umbraco.cms/businesslogic/web/Document.cs b/src/umbraco.cms/businesslogic/web/Document.cs index 8a7731f665..f933247b2d 100644 --- a/src/umbraco.cms/businesslogic/web/Document.cs +++ b/src/umbraco.cms/businesslogic/web/Document.cs @@ -967,6 +967,7 @@ namespace umbraco.cms.businesslogic.web public bool SaveAndPublish(User u) { var e = new SaveEventArgs(); + FireBeforeSave(e); foreach (var property in GenericProperties) { @@ -976,8 +977,6 @@ namespace umbraco.cms.businesslogic.web Content.SetValue(property.PropertyType.Alias, property.Value); } - FireBeforeSave(e); - if (!e.Cancel) { var result = ApplicationContext.Current.Services.ContentService.SaveAndPublish(Content, u.Id, true);