Fixed bug #10939: Wrong nesting of <ul> <li> tags in expanded mount root in module...
authorPatrick Broens <patrick@netcreators.com>
Tue, 21 Apr 2009 10:36:47 +0000 (10:36 +0000)
committerPatrick Broens <patrick@netcreators.com>
Tue, 21 Apr 2009 10:36:47 +0000 (10:36 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-2@5340 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/class.filelistfoldertree.php

index 469a602..f291083 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-04-21  Patrick Broens  <patrick@patrickbroens.nl>
+
+       * Fixed bug #10939: Wrong nesting of <ul> <li> tags in expanded mount root in module file > filelist
+
 2009-04-21  Ingo Renner  <ingo@typo3.org>
 
        * Fixed icon in t3skin for refresh
index cb66501..a5a6d28 100755 (executable)
@@ -298,6 +298,7 @@ class filelistFolderTree extends t3lib_folderTree {
 
                        // Traverse mounts:
                foreach($this->MOUNTS as $key => $val)  {
+                       $hasSub = false;
                        $specUID = t3lib_div::md5int($val['path']);
                        $this->specUIDmap[$specUID] = $val['path'];
 
@@ -325,8 +326,13 @@ class filelistFolderTree extends t3lib_folderTree {
                        $row['path']  = $val['path'];
                        $row['title'] = $val['name'];
 
+                               // hasSub is true when the root of the mount is expanded
+                       if ($isOpen) {
+                               $hasSub = true;
+                       }
+
                                // Add the root of the mount to ->tree
-                       $this->tree[] = array('HTML' => $firstHtml, 'row' => $row, 'bank' => $this->bank);
+                       $this->tree[] = array('HTML' => $firstHtml, 'row' => $row, 'bank' => $this->bank, 'hasSub' => $hasSub);
 
                                // If the mount is expanded, go down:
                        if ($isOpen)