Fixed bug #11111 / Follow-up to #10892: Root item cannot be collapsed in pagetree...
authorBenni Mack <benni.mack@typo3.org>
Mon, 18 May 2009 08:04:05 +0000 (08:04 +0000)
committerBenni Mack <benni.mack@typo3.org>
Mon, 18 May 2009 08:04:05 +0000 (08:04 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5431 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/class.webpagetree.php

index ed0ccdf..a80ed93 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2009-05-18  Benjamin Mack  <benni@typo3.org>
 
+       * Fixed bug #11111 / Follow-up to #10892: Root item cannot be collapsed in pagetree (Thanks to Andreas Wolf)
        * Fixed bug #11112 / Follow-up to #10892: Collapsing nodes in pagetree produces multiple items with same id (Thanks to Andreas Wolf)
 
 2009-05-16  Francois Suter  <francois@typo3.org>
index 0414246..b401205 100644 (file)
@@ -352,7 +352,7 @@ class webPageTree extends t3lib_browseTree {
                                // Set PM icon for root of mount:
                        $cmd = $this->bank.'_'.($isOpen? "0_" : "1_").$uid.'_'.$this->treeName;
                        $icon='<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/ol/'.($isOpen?'minus':'plus').'only.gif').' alt="" />';
-                       $firstHtml = $this->PMiconATagWrap($icon,$cmd);
+                       $firstHtml = $this->PMiconATagWrap($icon,$cmd,!$isOpen);
 
                                // Preparing rootRec for the mount
                        if ($uid)   {