Details
-
Bug
-
Resolution: Duplicate
-
High
-
4.4.0
-
None
Description
The bug can lead to the situation where all of your content gets hidden if you have
RootNodeList[]=2
The problem is in the line where nodes for hiding are fetched:
$nodeArray = $rootNode->subTree( $hiddenNodesParams );
$hiddenNodesParams looks like this:
$hiddenNodesParams = array( 'LoadDataMap' => false, 'Limit' => $limit, 'Offset' => $offset, 'SortBy' => array( array( 'published', true ) ) );
Basically all nodes are fetched.
Solution is to use $countParams instead.
Steps to reproduce
- create one class with hide_data
- create an object with hide_data in the past somewhere in the content tree
- configure content.ini with RootNodeList[]=2
- execute cronjob
Attachments
Issue Links
- duplicates
-
EZP-17853 Objects erroneously hidden by cronjobs/hide.php script
- Closed