Skip to content

Commit

Permalink
[BUGFIX] Fix check for skipping translation of the metadata file field
Browse files Browse the repository at this point in the history
Resolves: #91130
Related: #82990
Releases: master, 9.5
Change-Id: I8337f8d24fff67ac2c8f05f16de642f46e86cfd5
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64148
Tested-by: Xavier Perseguers <xavier@typo3.org>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Susanne Moog <look@susi.dev>
Reviewed-by: Xavier Perseguers <xavier@typo3.org>
Reviewed-by: Susanne Moog <look@susi.dev>
  • Loading branch information
xperseguers authored and susannemoog committed Apr 20, 2020
1 parent 57bcedc commit 2e17997
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -107,7 +107,7 @@ public function addData(array $result)

// Translate labels
// skip file of sys_file_metadata which is not rendered anyway but can use all memory
if ($table !== 'sys_file_metadata' && $fieldName !== 'file') {
if (!($table === 'sys_file_metadata' && $fieldName === 'file')) {
$fieldConfig['config']['items'] = $this->translateLabels($result, $fieldConfig['config']['items'], $table, $fieldName);
}

Expand Down

0 comments on commit 2e17997

Please sign in to comment.