[BUGFIX] EXT:filelist Removed cut and copy buttons from "Extended view" 69/55369/2
authorMichael Oehlhof <typo3@oehlhof.de>
Mon, 15 Jan 2018 23:06:32 +0000 (00:06 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 24 Jan 2018 12:43:03 +0000 (13:43 +0100)
The cut and copy buttons were shown twice in filelist module.
Once in “Extended view” and once in “Show clipboard”

Resolves: #83575
Releases: master, 8.7
Change-Id: I8cbb9b516aaa1ff42a363d4daf4ffa7e20c9d461
Reviewed-on: https://review.typo3.org/55369
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Reiner Teubner <reiner.teubner@me.com>
Tested-by: Reiner Teubner <reiner.teubner@me.com>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/filelist/Classes/FileList.php

index 1892c9a..0a5ca46 100644 (file)
@@ -1390,30 +1390,6 @@ class FileList
             $cells['info'] = $this->spaceIcon;
         }
 
-        // copy the file
-        if ($fileOrFolderObject->checkActionPermission('copy') && $this->clipObj->current === 'normal') {
-            $copyTitle = htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:cm.copy'));
-            $copyIcon = $this->iconFactory->getIcon('actions-edit-copy', Icon::SIZE_SMALL)->render();
-
-            if ($isSel === 'copy') {
-                $copyIcon = $this->iconFactory->getIcon('actions-edit-copy-release', Icon::SIZE_SMALL)->render();
-            }
-
-            $cells['copy'] = '<a class="btn btn-default" href="' . htmlspecialchars($this->clipObj->selUrlFile($fullIdentifier, 1, ($isSel === 'copy'))) . '" title="' . $copyTitle . '">' . $copyIcon . '</a>';
-        }
-
-        // cut the file
-        if ($fileOrFolderObject->checkActionPermission('move') && $this->clipObj->current === 'normal') {
-            $cutTitle = htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:cm.cut'));
-            $cutIcon = $this->iconFactory->getIcon('actions-edit-cut', Icon::SIZE_SMALL)->render();
-
-            if ($isSel === 'cut') {
-                $cutIcon = $this->iconFactory->getIcon('actions-edit-cut-release', Icon::SIZE_SMALL)->render();
-            }
-
-            $cells['cut'] = '<a class="btn btn-default" href="' . htmlspecialchars($this->clipObj->selUrlFile($fullIdentifier, 0, ($isSel === 'cut'))) . '" title="' . $cutTitle . '">' . $cutIcon . '</a>';
-        }
-
         // delete the file
         if ($fileOrFolderObject->checkActionPermission('delete')) {
             $identifier = $fileOrFolderObject->getIdentifier();