Skip to content
Snippets Groups Projects
Commit 0a4aadd6 authored by Josef Glatz's avatar Josef Glatz Committed by Stefan Neufeind
Browse files

[BUGFIX] Filelist: fix file/folder pasteFileInto in file tree context menu

Provide missing data attributes for the context menu paste action.

Resolves: #86613
Releases: master
Change-Id: Ieafa22ca1456ac51cf217d30dbf1b762c9b6c923
Reviewed-on: https://review.typo3.org/58606


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
Tested-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: default avatarTomas Norre Mikkelsen <tomasnorre@gmail.com>
Tested-by: default avatarTomas Norre Mikkelsen <tomasnorre@gmail.com>
Reviewed-by: default avatarStefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: default avatarStefan Neufeind <typo3.neufeind@speedpartner.de>
parent 60c68d29
No related branches found
No related tags found
No related merge requests found
......@@ -364,11 +364,17 @@ class FileProvider extends \TYPO3\CMS\Backend\ContextMenu\ItemProviders\Abstract
$fileOrFolderInClipBoard->getName(),
$this->record->getName()
);
$closeText = $this->languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:button.cancel');
$okLabel = $this->clipboard->currentMode() === 'copy' ? 'copy' : 'pasteinto';
$okText = $this->languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.' . $okLabel);
$attributes += [
'data-title' => htmlspecialchars($title),
'data-message' => htmlspecialchars($confirmMessage)
'data-message' => htmlspecialchars($confirmMessage),
'data-button-close-text' => htmlspecialchars($closeText),
'data-button-ok-text' => htmlspecialchars($okText),
];
}
return $attributes;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment