Bug #77155
closedPHP Warning: Invalid argument supplied for foreach() in backend/Classes/Form/Element/SelectMultipleSideBySideElement.php line 66
100%
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.
Updated by Markus Klein over 7 years ago
- Subject changed from PHP Warning: Invalid argument supplied for foreach() in /var/www/typo3_src-7.6.9/typo3/sysext/backend/Classes/Form/Element/SelectMultipleSideBySideElement.php line 66 to PHP Warning: Invalid argument supplied for foreach() in backend/Classes/Form/Element/SelectMultipleSideBySideElement.php line 66
- Status changed from New to Accepted
- Assignee set to Christian Kuhn
@Christian: Looks like the data from the parent record is not exploded. We need to make sure that this transformation always happens after all overlays have been done.
Updated by Gerrit Code Review about 6 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55607
Updated by Gerrit Code Review about 6 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55607
Updated by Gerrit Code Review about 6 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55607
Updated by Gerrit Code Review about 6 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55607
Updated by Gerrit Code Review about 6 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55674
Updated by Manuel Selbach about 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset dbd9dd2d0ca40a582abd6bb421e20c58ac96bf93.
Updated by Gerrit Code Review about 6 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55675
Updated by Manuel Selbach about 6 years ago
- Status changed from Under Review to Resolved
Applied in changeset eaf148d9a7fc064bb2bf728263100a6e793fe2d8.