Do a recursive unpublish (fixes U4-462, U4-594, U4-1061)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user