Skip to content

Commit

Permalink
[BUGFIX] Filelist: fix file/folder pasteFileInto in file tree context…
Browse files Browse the repository at this point in the history
… 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: TYPO3com <no-reply@typo3.com>
Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de>
Tested-by: Daniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: Tomas Norre Mikkelsen <tomasnorre@gmail.com>
Tested-by: Tomas Norre Mikkelsen <tomasnorre@gmail.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
  • Loading branch information
josefglatz authored and neufeind committed Oct 11, 2018
1 parent 60c68d2 commit 0a4aadd
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -364,11 +364,17 @@ protected function getAdditionalAttributes(string $itemName): array
$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;
}

Expand Down

0 comments on commit 0a4aadd

Please sign in to comment.