[BUGFIX] mounts of same storage had same subfolder count in Filelist 81/20981/5
authorSimon Schick <simonsimcity@gmail.com>
Wed, 22 May 2013 17:42:14 +0000 (19:42 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Thu, 5 Sep 2013 16:36:22 +0000 (18:36 +0200)
When you opened the filelist module as user who just was allowed to see
a bunch of filemounts, the filemounts had either all or none the expand-
icon, based on the first file-mount of this storage the user has access
to.

Resolves: #48467
Releases: 6.2, 6.1, 6.0
Change-Id: I1e6a29e351a643f52c0f7a42fde38c9d9b2fc5cb
Reviewed-on: https://review.typo3.org/20981
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/backend/Classes/Tree/View/FolderTreeView.php

index 0fc436e..ac1f228 100644 (file)
@@ -265,7 +265,7 @@ class FolderTreeView extends \TYPO3\CMS\Backend\Tree\View\AbstractTreeView {
                        $isOpen = $this->stored[$storageHashNumber][$folderHashSpecUID] || $this->expandFirst;
                        // Set PM icon:
                        $cmd = $this->generateExpandCollapseParameter($this->bank, !$isOpen, $rootLevelFolder);
-                       if (!$storageObject->isBrowsable() || $this->getNumberOfSubfolders($storageObject->getRootLevelFolder()) === 0) {
+                       if (!$storageObject->isBrowsable() || $this->getNumberOfSubfolders($rootLevelFolder) === 0) {
                                $rootIcon = 'blank';
                        } elseif (!$isOpen) {
                                $rootIcon = 'plusonly';