Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.4.1

Bug #510 NESE_SORT_PREORDER doesn't work with $aliasFields and $addSQL
Submitted: 2004-01-02 17:47 UTC
From: beat dot kipfer at balcab dot ch Assigned: datenpunk
Status: Closed Package: DB_NestedSet
PHP Version: Irrelevant OS: doesn't matter
Roadmaps: (Not assigned)    
Subscription  


 [2004-01-02 17:47 UTC] beat dot kipfer at balcab dot ch
Description: ------------ I think, that lines: $rootnodes = $this->getRootNodes(true); foreach($rootnodes AS $rid => $rootnode) { $nodeSet = $nodeSet + $this->getBranch($rootnode, true); should be: $rootnodes = $this->getRootNodes(true,$aliasFields,$addSQL); foreach($rootnodes AS $rid => $rootnode) { $nodeSet = $nodeSet + $this->getBranch($rootnode, true,$aliasFields,$addSQL); to use the possibilities of $aliasFields and $addSQL together with NESE_SORT_PREORDER Please look at this. I don't know if this chnge will result in any other problems.

Comments

 [2004-01-06 12:11 UTC] datenpunk at php dot net
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.