Fixed bug #11482: Pagetree: Expand/collaps DB-Mounts buggy (thanks to Andreas Wolf)
authorSteffen Kamper <info@sk-typo3.de>
Fri, 4 Sep 2009 17:23:59 +0000 (17:23 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Fri, 4 Sep 2009 17:23:59 +0000 (17:23 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5895 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/class.webpagetree.php

index f73060e..bc89eeb 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@
 
 2009-09-04  Steffen Kamper  <info@sk-typo3.de>
 
+       * Fixed bug #11482: Pagetree: Expand/collaps DB-Mounts buggy (thanks to Andreas Wolf)
        * Added feature #10017: [felogin] New Method for "forgotPassword"
 
 2009-09-03  Martin Kutschker  <masi@typo3.org>
index 92d9141..f37f0b4 100644 (file)
@@ -222,7 +222,7 @@ class webPageTree extends t3lib_browseTree {
                        // if this item is the start of a new level,
                        // then a new level <ul> is needed, but not in ajax mode
                        if($v['isFirst'] && !($doCollapse) && !($doExpand && $expandedPageUid == $uid)) {
-                               $itemHTML = '</div><ul>';
+                               $itemHTML = '<ul>';
                        }
 
                        // add CSS classes to the list item
@@ -232,10 +232,10 @@ class webPageTree extends t3lib_browseTree {
                        $itemHTML .='
                                <li id="'.$idAttr.'"'.($classAttr ? ' class="'.$classAttr.'"' : '').'><div class="treeLinkItem">'.
                                        $v['HTML'].
-                                       $this->wrapTitle($this->getTitleStr($v['row'],$titleLen),$v['row'],$v['bank'])."\n";
+                                       $this->wrapTitle($this->getTitleStr($v['row'],$titleLen),$v['row'],$v['bank'])."</div>\n";
 
 
-                       if(!$v['hasSub']) { $itemHTML .= '</div></li>'; }
+                       if(!$v['hasSub']) { $itemHTML .= '</li>'; }
 
                        // we have to remember if this is the last one
                        // on level X so the last child on level X+1 closes the <ul>-tag