Project

General

Profile

Actions

Bug #102616

closed

TCA type selectSingle with itemsProcFunc doesn't show information in list view nor in export CSV

Added by Florian Rival 5 months ago. Updated 5 months ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
Start date:
2023-12-06
Due date:
% Done:

100%

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

Description

If you define a TCA field like this :

'my_col' => [
    'exclude' => false,
    'label' => 'My col label',
    'config' => [
        'type' => 'select',
        'renderType' => 'selectSingle',
        'default' => 'value-1',
        'itemsProcFunc' => \Vendor\MyExtUserFunc\TcaUserFunc::class ::class . '->getMyCol'
    ]
]

with itemsProcFunc like this :

public function getMyCol(&$parameters): void
{
    $parameters['items'][] = ['Label value 1', 'value-1'];
    $parameters['items'][] = ['Label value 2', 'value-2'];
}

In BE list view, if you want to display the 'my_col' value - or export it into CSV - by setting 'show columns' 'my_col' to true, the field show the value instead of the translation. I.e. 'value-1' or 'value-2' instead of 'Label value 1' or 'Label value 2'.

While it works well with TCA like this :

'getMyCol' => [
    'exclude' => false,
    'label' => 'My col label',
    'config' => [
        'type' => 'select',
        'renderType' => 'selectSingle',
        'default' => 'value-1',
        'items' => [
          ['Label value 1', 'value-1'],
          ['Label value 2', 'value-2'],
        ]
    ]
]

Same problem as this one https://forge.typo3.org/issues/100855


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #100855: TCA type radio with itemsProcFunc doesn't show information in list view nor in export CSVResolved2023-05-10

Actions
Related to TYPO3 Core - Bug #102698: High load & response time after change itemsProcFunc in BackendUtility label functionsResolved2023-12-19

Actions
Related to TYPO3 Core - Feature #25113: itemsProcFunc is not taken into account while generating labels for select items in the list moduleClosed2011-02-20

Actions
Actions #1

Updated by Gerrit Code Review 5 months ago

  • Status changed from New 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/+/82148

Actions #2

Updated by Gerrit Code Review 5 months 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/+/82148

Actions #3

Updated by Gerrit Code Review 5 months ago

Patch set 3 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/+/82148

Actions #4

Updated by Gerrit Code Review 5 months ago

Patch set 4 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/+/82148

Actions #5

Updated by Gerrit Code Review 5 months ago

Patch set 5 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/+/82148

Actions #6

Updated by Gerrit Code Review 5 months ago

Patch set 6 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/+/82148

Actions #7

Updated by Christian Kuhn 5 months ago

  • Related to Bug #100855: TCA type radio with itemsProcFunc doesn't show information in list view nor in export CSV added
Actions #8

Updated by Gerrit Code Review 5 months ago

Patch set 7 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/+/82148

Actions #9

Updated by Gerrit Code Review 5 months ago

Patch set 8 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/+/82148

Actions #10

Updated by Gerrit Code Review 5 months ago

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

Actions #11

Updated by Gerrit Code Review 5 months ago

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

Actions #12

Updated by Oliver Bartsch 5 months ago

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

Updated by Christian Kuhn 4 months ago

  • Related to Bug #102698: High load & response time after change itemsProcFunc in BackendUtility label functions added
Actions #14

Updated by Benni Mack 3 months ago

  • Related to Feature #25113: itemsProcFunc is not taken into account while generating labels for select items in the list module added
Actions

Also available in: Atom PDF