#62755TCA - showing wrong uids for FAL fields in BE list module
Description
There is a model which contains more than one FAL property. Each FAL property is defined using “getFileFieldTCAConfig” as folows:
‘config’ => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
‘images1’,
array(
‘maxitems’ => 5,
‘foreign_match_fields’ => array(
‘fieldname’ => ‘images1’,
‘tablenames’ => ‘tx_myext_domain_model_xyz’,
‘table_local’ => ‘sys_file’,
),
),
$GLOBALS[‘TYPO3_CONF_VARS’][‘GFX’][‘imagefile_ext’]
),
For example, these two fields are called “images1” and “images2”. Now there are one (or more) files beeing assigned to the first field “images1” in BE. After this, if you view the db table using the list module (expand the table by clicking on the “+” icon, then select “images1” and “images2” to be shown), both columns show the same UIDs. Independant from which field has how many files assigned, the displayed UIDs for “images1” and “images2” are always the same.
I looks like all references from sys_file or sys_file_reference related to this table are shown, not filtered by the concrete local field.