diff --git a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj index 551c9e5e79..1416a0161c 100644 --- a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj +++ b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj @@ -147,10 +147,12 @@ False ..\..\lib\SQLCE4\System.Data.SqlServerCe.dll + True False ..\..\lib\SQLCE4\System.Data.SqlServerCe.Entity.dll + True diff --git a/src/umbraco.cms/businesslogic/web/Document.cs b/src/umbraco.cms/businesslogic/web/Document.cs index 87f8cd8878..59064ab1bd 100644 --- a/src/umbraco.cms/businesslogic/web/Document.cs +++ b/src/umbraco.cms/businesslogic/web/Document.cs @@ -1186,12 +1186,6 @@ where '" + Path + ",' like " + SqlHelper.Concat("node.path", "'%'")); { SqlHelper.ExecuteNonQuery(string.Format("update cmsDocument set published = 0 where nodeId = {0}", Id)); - foreach (var d in Children) { - if (d.Published) { - d.UnPublish(); - } - } - _published = false; FireAfterUnPublish(e);