From 94ed1c2622417bee775186d12094298a716b24dc Mon Sep 17 00:00:00 2001 From: Kevin Appelt <kevin.appelt@icloud.com> Date: Wed, 11 Oct 2023 16:55:46 +0200 Subject: [PATCH] [BUGFIX] Change to "move elements" when using cut in file list dot-menu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make sure the clipboard action gets changed to move if the user chooses cut in the dot menu. Only the dot-menu in the list view was affected. Also removes an unused variable. Resolves: #102144 Releases: main, 12.4 Change-Id: Ic5bee9415292d75c531a82a052c0032fb148024d Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81412 Reviewed-by: Garvin Hicking <gh@faktor-e.de> Tested-by: core-ci <typo3@b13.com> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Stefan Bürk <stefan@buerk.tech> Reviewed-by: Jasmina Ließmann <minapokhalo+typo3@gmail.com> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Garvin Hicking <gh@faktor-e.de> Tested-by: Jasmina Ließmann <minapokhalo+typo3@gmail.com> Tested-by: Stefan Bürk <stefan@buerk.tech> --- typo3/sysext/filelist/Classes/FileList.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/typo3/sysext/filelist/Classes/FileList.php b/typo3/sysext/filelist/Classes/FileList.php index 943883545314..199fca1a67aa 100644 --- a/typo3/sysext/filelist/Classes/FileList.php +++ b/typo3/sysext/filelist/Classes/FileList.php @@ -1279,9 +1279,8 @@ class FileList $isSelected = $this->clipObj->isSelected('_FILE', md5($resourceView->getIdentifier())); $button = GeneralUtility::makeInstance(LinkButton::class); $button->setTitle($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.' . ($isSelected === 'cut' ? 'cutrelease' : 'cut'))); - $button->setHref($this->clipObj->selUrlFile($resourceView->getIdentifier(), true, $isSelected === 'cut')); + $button->setHref($this->clipObj->selUrlFile($resourceView->getIdentifier(), false, $isSelected === 'cut')); $button->setIcon($this->iconFactory->getIcon($isSelected === 'cut' ? 'actions-edit-cut-release' : 'actions-edit-cut', IconSize::SMALL)); - $actions['cut'] = $button; return $button; } -- GitLab