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 » HTML » HTML_TreeMenu » Bug #164

bug report with fix: "expanded" option not working on nodes

Details

Submitted2003-10-29 12:33 UTC
Fromadam at admataz dot com
Assignedrichard
StatusClosed
PackageHTML_TreeMenu
PHP Version4.3.1
OSos x
Roadmaps(Not assigned)

Comments

[2003-10-29 12:33 UTC] adam at admataz dot com

Description:
------------
Using tree HTML_TreeMenu via PEAR :: DB_NestedSet

- setting the "expanded" option on a node wasn't working

found that on line 624 of TreeMenu.php (method function _nodeToHTML) currently reads
$isDynamic = $this->isDynamic ? ($nodeObj->isDynamic ? 'true' : 'false') : 'false';

should be

$expanded = $this->expanded ? ($nodeObj->expanded ? 'true' : 'false') : 'true';

which fixed it for me

[2003-10-29 13:12 UTC] adam at admataz dot com

ok - seems to be that DB_NestedSet doesn't pass the "expanded" parameter by default... so the fault lies elsewhere. (or with me)

[2004-07-22 10:51 UTC] adam at admataz dot com

closing