[BUGFIX] sys_file.metadata does not use TCA type inline 20/25320/2
authorOliver Hader <oliver@typo3.org>
Tue, 12 Nov 2013 15:33:24 +0000 (16:33 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Tue, 12 Nov 2013 15:35:48 +0000 (16:35 +0100)
The field sys_file.metadata defines the TCA property
"foreign_field" that is only defined for the TCA type "inline".
Using "foreign_field" with the select type does not make much
sense, since select elements can be seen as m:n reference that
is persisted with each parent record and thus could have
multiple parents.

Fixes: #53567
Releases: 6.2
Change-Id: I2c8e12b6343275d7f38853ba25ac6a0427c13dbd
Reviewed-on: https://review.typo3.org/25320
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/core/Configuration/TCA/sys_file.php

index 8e4a0d7..5f1932a 100644 (file)
@@ -131,7 +131,7 @@ return array(
                        'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.metadata',
                        'config' => array(
                                'readOnly' => 1,
-                               'type' => 'select',
+                               'type' => 'inline',
                                'foreign_table' => 'sys_file_metadata',
                                'foreign_field' => 'file',
                                'size' => 1,