From 88582e7483a980cc294b1ef2e7e0c96ae806b60b Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 15 Jun 2012 11:53:33 +0200 Subject: [PATCH] Revert "BUGFIX Aborting marking in Hierarchy->markPartialTree() before loading nodes, if the expected node count would exceed the totals (regardless of the in-memory marking state)" This reverts commit f1bf0d0fc4690e4598d9e761a3818a5a58984a71. Fixes #7481 --- model/Hierarchy.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/model/Hierarchy.php b/model/Hierarchy.php index c4e1a2045..d6100fa29 100644 --- a/model/Hierarchy.php +++ b/model/Hierarchy.php @@ -127,10 +127,6 @@ class Hierarchy extends DataExtension { // foreach can't handle an ever-growing $nodes list while(list($id, $node) = each($this->markedNodes)) { - // Inspect the number of potential nodes to mark - if its more than the minimum count, - // don't query them in the first place to inspect further marking state in-memory - if((sizeof($this->markedNodes) + $node->$numChildrenMethod()) >= $minNodeCount) break; - $this->markChildren($node, $context, $childrenMethod, $numChildrenMethod); if($minNodeCount && sizeof($this->markedNodes) >= $minNodeCount) { break;