Actions
Bug #100855
closedTCA type radio with itemsProcFunc doesn't show information in list view nor in export CSV
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
Actions