Project

General

Profile

Actions

Bug #99880

closed

Undefined array key 1 in BackendUtility.php line 1380

Added by Thomas Hohn about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Start date:
2023-02-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

A faulty TCA configuration can cause an Undefined array key

[$currentLabel, $currentKey] = $itemConfiguration;

Example:
'column' => [
        'exclude' => true,
        'label' => 'Columnname',
        'config' => [
            'type' => 'select',
            'renderType' => 'selectSingle',
            'items' => [
                [
                    'Faulty  entry',
                ],
                [
                   'Correct entry ',
                    '100',
                ],
            ],
           'default' => 0,
        ],
],


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #99739: Associative array keys for TCA itemsClosed2023-01-28

Actions
Actions #1

Updated by Georg Ringer about 1 year ago

  • Status changed from New to Rejected

thanks for your issue. even if this would be fixed, I am quite sure there are other issues as well which will popup with wrong TCA items.
i am closing this issue in favor of #99739 which should solve that in a far better way.

hope this is ok for you

Actions #2

Updated by Georg Ringer about 1 year ago

  • Related to Feature #99739: Associative array keys for TCA items added
Actions #3

Updated by Gerrit Code Review about 1 year ago

  • Status changed from Rejected to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77787

Actions #4

Updated by Gerrit Code Review about 1 year ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77787

Actions #5

Updated by Thomas Hohn about 1 year ago

  • Status changed from Under Review to Closed

Should will be fixed by another issue

Actions

Also available in: Atom PDF