PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » DB_NestedSet » Bug #510

NESE_SORT_PREORDER doesn't work with $aliasFields and $addSQL

Details

Submitted2004-01-02 17:47 UTC
Frombeat dot kipfer at balcab dot ch
Assigneddatenpunk
StatusClosed
PackageDB_NestedSet
PHP VersionIrrelevant
OSdoesn't matter
Roadmaps(Not assigned)

Comments

[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.

[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.