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 over 7 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 #1

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.

Actions #2

Updated by Loon Buster over 6 years ago

..are there any news about this?

.loon

Actions #3

Updated by Riccardo De Contardi over 6 years ago

  • Category set to Localization
Actions #4

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

Actions #5

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

Actions #6

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

Actions #7

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

Actions #8

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

Actions #9

Updated by Manuel Selbach about 6 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #10

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

Actions #11

Updated by Manuel Selbach about 6 years ago

  • Status changed from Under Review to Resolved
Actions #12

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF