Issue Bug Closed

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

Florian Rival 05/10/23, 14:28 updated 07/09/24, 12:56

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.

Reviews 7