Details
-
Bug
-
Resolution: Fixed
-
Medium
-
None
-
4.2.0, 4.3.0, 4.4.0
-
None
Description
The culprit seems to be $node->subTreeCount() called without parameter 'IgnoreVisibility'=>true.
Steps to reproduce
1). Create an object with subobjects below
2). Hide the object so the subobjects will be hidden by superior
3). Execute php bin/php/ezsubtreeremove.php --nodes-id=PARENT_NODE_ID --ignore-trash
4). Notice that only the parent node is removed while the subobjects loose location only and remains in database.