[BUGFIX] Only select current file when editing metadata 25/55125/3
authorStephan Großberndt <stephan@grossberndt.de>
Sat, 16 Dec 2017 17:08:46 +0000 (18:08 +0100)
committerJigal van Hemert <jigal.van.hemert@typo3.org>
Tue, 19 Dec 2017 19:16:07 +0000 (20:16 +0100)
Only select the current file connected to the metadata when editing the
metadata of a file.

Resolves: #78845
Releases: master, 8.7, 7.6
Change-Id: Ib65b1e1aaae1fa2c93b03e4865582841a28990a6
Reviewed-on: https://review.typo3.org/55125
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Sascha Nowak <sascha.nowak@netlogix.de>
Tested-by: Sascha Nowak <sascha.nowak@netlogix.de>
Reviewed-by: Torben Hansen <derhansen@gmail.com>
Tested-by: Torben Hansen <derhansen@gmail.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
typo3/sysext/core/Configuration/TCA/sys_file_metadata.php

index a0ea62c..78e06a9 100644 (file)
@@ -89,6 +89,7 @@ return [
                 'type' => 'select',
                 'renderType' => 'selectSingle',
                 'foreign_table' => 'sys_file',
+                'foreign_table_where' => 'AND sys_file.uid = ###REC_FIELD_file###',
                 'minitems' => 1,
                 'maxitems' => 1,
                 'size' => 1,