[BUGFIX] Don't show storages multiple times in filelist 29/36729/3
authorMichael Oehlhof <typo3@oehlhof.de>
Sat, 7 Feb 2015 15:37:25 +0000 (16:37 +0100)
committerFrans Saris <franssaris@gmail.com>
Sun, 8 Feb 2015 14:43:50 +0000 (15:43 +0100)
When expanding tree nodes in Filelist module the storages
are now correctly shown once at the top-most level and not
multiple times within subtrees.

Resolves: #64894
Releases: master
Change-Id: I50d1085b6fc5e9ed36ac1effe11206618d4a853e
Reviewed-on: http://review.typo3.org/36729
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Tested-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
typo3/sysext/backend/Classes/Tree/View/FolderTreeView.php

index e1227d1..3c7881e 100644 (file)
@@ -478,7 +478,7 @@ class FolderTreeView extends \TYPO3\CMS\Backend\Tree\View\AbstractTreeView {
                                $ajaxOutput .= $itemHTML;
                                $invertedDepthOfAjaxRequestedItem = $treeItem['invertedDepth'];
                        } elseif ($invertedDepthOfAjaxRequestedItem) {
-                               if ($treeItem['invertedDepth'] < $invertedDepthOfAjaxRequestedItem) {
+                               if ($treeItem['invertedDepth'] && ($treeItem['invertedDepth'] < $invertedDepthOfAjaxRequestedItem)) {
                                        $ajaxOutput .= $itemHTML;
                                } else {
                                        $this->ajaxStatus = TRUE;