Project

General

Profile

Actions

Bug #77155

closed

PHP Warning: Invalid argument supplied for foreach() in backend/Classes/Form/Element/SelectMultipleSideBySideElement.php line 66

Added by Bill Dagou almost 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Category:
Localization
Target version:
-
Start date:
2016-07-19
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #77257: The selection of a selectbox with the l10n_display type of defaultAsReadonly in TCA is wrong for a localized recordClosed2016-07-26

Actions
Actions

Also available in: Atom PDF