Merge branch 'patch-1' of https://github.com/aaronpowell/Umbraco-CMS into aaronpowell-patch-1

This commit is contained in:
Shannon
2014-04-28 12:39:20 +10:00

View File

@@ -1198,6 +1198,10 @@ namespace Umbraco.Core.Services
foreach (var macro in macros)
{
var existing = _macroService.GetByAlias(macro.Alias);
if (existing != null)
macro.Id = existing.Id;
_macroService.Save(macro, userId);
}
@@ -1822,4 +1826,4 @@ namespace Umbraco.Core.Services
public static event TypedEventHandler<IPackagingService, ExportEventArgs<ITemplate>> ExportedTemplate;
#endregion
}
}
}