Home » HTML » HTML_TreeMenu » Bug #164
bug report with fix: "expanded" option not working on nodes
Details
| Submitted | 2003-10-29 12:33 UTC |
|---|---|
| From | adam at admataz dot com |
| Assigned | richard |
| Status | Closed |
| Package | HTML_TreeMenu |
| PHP Version | 4.3.1 |
| OS | os 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