Do a recursive unpublish (fixes U4-462, U4-594, U4-1061)

This commit is contained in:
David@David-PC
2012-11-17 14:25:04 -01:00
parent 72ef5b01d2
commit 153fb4a248

View File

@@ -1186,6 +1186,12 @@ 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);