[TYPO3-core] RFC #11111: Bug: Root item cannot be collapsed in pagetree

Andreas Wolf typo3ml at andreaswolf.info
Mon May 18 00:08:09 CEST 2009


This is an SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=11111

Branches:

* trunk

Problem:

r5342 (Fixed bug 0010892: Make it possible to style a hover color for
pagetree/filetree items) introduced a change that makes collapsing the
whole pagetree impossible. The minus icon is changed to a plus icon, but
the subnodes are not removed from the tree. When you try to expand
again, the nodes are inserted again, so you get a double pagetree (see
screenshot).


Solution:

Add the status of the root node (expanded/collapsed) to the call to
PMiconATagWrap, which returns the link for the call made to ajax.php.
The root node has an onClick attribute "Tree.load('0_0_0_browsePages',
1, this);". This has to be "Tree.load('0_0_0_browsePages', 0, this);" to
collapse the tree.

The attached patch incorporates this solution.


Cheers

Andreas


More information about the TYPO3-team-core mailing list