Project

General

Profile

Actions

Bug #100855

closed

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

Added by Florian Rival about 1 year ago. Updated 5 months ago.

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

100%

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

Description

If you define a TCA field like this :

'gender' => [
    'exclude' => false,
    'label' => 'Gender',
    'config' => [
        'type' => 'radio',
        'items' => [],
        'default' => 0,
        'itemsProcFunc' => \Vendor\MyExtUserFunc\TcaUserFunc::class . '->getGendersValues'
    ],
],

with itemsProcFunc like this :

public function getGendersValues(&$parameters): void
{
    $parameters['items'][] = ['Male', 'male'];
    $parameters['items'][] = ['Feminine', 'female'];
}

In BE list view, if you want to display the gender value - or export it into CSV - by setting 'show columns' gender to true, the field is always empty.


Files

Sélection_047.png (51.1 KB) Sélection_047.png Florian Rival, 2023-05-10 14:28

Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Bug #102616: TCA type selectSingle with itemsProcFunc doesn't show information in list view nor in export CSVResolved2023-12-06

Actions
Related to TYPO3 Core - Bug #102634: Undefined array key warning in page moduleResolvedOliver Bartsch2023-12-08

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

Also available in: Atom PDF