[BUGFIX] Folder Tree does not respect _temp_ and _recycler_ 38/19238/2
authorBenjamin Mack <benni@typo3.org>
Sat, 23 Mar 2013 15:06:11 +0000 (16:06 +0100)
committerAndreas Wolf <andreas.wolf@typo3.org>
Sun, 24 Mar 2013 09:30:00 +0000 (10:30 +0100)
The Folder Tree View does not respect temp and
recycler settings, which are identified by the folder
names.

The file list itself does that, because there is a wrong
use of "getIdentifier".

You can see that the foldertree does not show
"Temporary" but "_temp_"  because the comparison
fails every time. The file list works however.

Resolves: #46603
Releases: 6.1, 6.0
Change-Id: I08de29b737ef3464addceda9f610e9dd0a7b1034
Reviewed-on: https://review.typo3.org/19238
Reviewed-by: Andreas Wolf
Tested-by: Andreas Wolf
typo3/sysext/backend/Classes/Tree/View/FolderTreeView.php

index 5636380..3d77fa9 100644 (file)
@@ -361,12 +361,12 @@ class FolderTreeView extends \TYPO3\CMS\Backend\Tree\View\AbstractTreeView {
                                } else {
                                        $icon = 'apps-filetree-folder-default';
                                }
-                               if ($subFolder->getIdentifier() == '_temp_') {
+                               if ($subFolder->getName() == '_temp_') {
                                        $icon = 'apps-filetree-folder-temp';
                                        $row['title'] = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_file_list.xml:temp', TRUE);
                                        $row['_title'] = '<strong>' . $row['title'] . '</strong>';
                                }
-                               if ($subFolder->getIdentifier() == '_recycler_') {
+                               if ($subFolder->getName() == '_recycler_') {
                                        $icon = 'apps-filetree-folder-recycler';
                                        $row['title'] = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_file_list.xml:recycler', TRUE);
                                        $row['_title'] = '<strong>' . $row['title'] . '</strong>';