Commit b5efa960 authored by Georg Ringer's avatar Georg Ringer Committed by Christian Kuhn
Browse files

[BUGFIX] Hide duplicate button if sys_file_meta is edited

Hide the button "duplicate" in the toolbar if meta data of
files is edited.

Resolves: #84270
Releases: master
Change-Id: I72242ddcca6b91627fb061669861afa390dfa818
Reviewed-on: https://review.typo3.org/56430


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarGuido Schmechel <littlegee@web.de>
Tested-by: default avatarGuido Schmechel <littlegee@web.de>
Tested-by: Riccardo De Contardi's avatarRiccardo De Contardi <erredeco@gmail.com>
Reviewed-by: default avatarJoerg Boesche <typo3@joergboesche.de>
Tested-by: default avatarJoerg Boesche <typo3@joergboesche.de>
Reviewed-by: default avatarTobi Kretschmann <tobi@tobishome.de>
Tested-by: default avatarTobi Kretschmann <tobi@tobishome.de>
Reviewed-by: Frank Nägler's avatarFrank Naegler <frank.naegler@typo3.org>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 843b8135
......@@ -1479,7 +1479,7 @@ class EditDocumentController
? (int)$record[$TCActrl['languageField']]
: 0;
$showDuplicateButton = false;
if ($this->firstEl['cmd'] !== 'new' && MathUtility::canBeInterpretedAsInteger($this->firstEl['uid'])) {
if ($this->firstEl['cmd'] !== 'new' && $this->firstEl['table'] !== 'sys_file_metadata' && MathUtility::canBeInterpretedAsInteger($this->firstEl['uid'])) {
if ($sysLanguageUid === 0) {
// show button, if record is in default language
$showDuplicateButton = true;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment