Reordering in Document class

This commit is contained in:
Morten Christensen
2013-01-10 14:58:35 -01:00
parent b562dc787b
commit 8e723b1336

View File

@@ -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);