#77155PHP Warning: Invalid argument supplied for foreach() in backend/Classes/Form/Element/SelectMultipleSideBySideElement.php line 66
Description
'one2many' => [
'label' => 'LLL:EXT:test/Resources/Private/Language/locallang_db.xlf:tx_test.one2many',
'exclude' => TRUE,
'l10n_mode' => 'exclude',
'l10n_display' => 'defaultAsReadonly',
'config' => [
'type' => 'select',
'items' => [
['LLL:EXT:test/Resources/Private/Language/locallang_db.xlf:tx_test.one2many.I.0', 0],
['LLL:EXT:test/Resources/Private/Language/locallang_db.xlf:tx_test.one2many.I.1', 1],
['LLL:EXT:test/Resources/Private/Language/locallang_db.xlf:tx_test.one2many.I.2', 1],
['LLL:EXT:test/Resources/Private/Language/locallang_db.xlf:tx_test.one2many.I.3', 3],
],
'size' => 7,
'renderType' => 'selectMultipleSideBySide',
'maxitems' => 99,
],
]
With this TCA, it works for default language, but when I try to create localization, it failed.
According to my debug, I think the problem is, $parameterArray[‘itemFormElValue’] is array for the default language, but a string (comma connected) for other languages.