#100855TCA type radio with itemsProcFunc doesn't show information in list view nor in export CSV
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
- main 85802[BUGFIX] Add missing itemsProcFunc record context
- 12.4 86217[BUGFIX] Add missing itemsProcFunc record context
- 12.4 82248[BUGFIX] Omit calling `getRecordWSOL` in `BU::getProcessedValue()`
- main 82264[BUGFIX] Omit calling `getRecordWSOL` in `BU::getProcessedValue()`
- main 82148[BUGFIX] Resolve itemsProcFunc in BackendUtility label functions
- main 81646[BUGFIX] Fix rendering labels for radio and select field types
- 12.4 82118[BUGFIX] Resolve itemsProcFunc in BackendUtility label functions
Related issues 5
- Feature #25113itemsProcFunc is not taken into account while generating labels for select items in the list module
- Bug #86985itemsProcFunc for select->selectSingle shows key instead of label in page translation
- Bug #102616TCA type selectSingle with itemsProcFunc doesn't show information in list view nor in export CSV
- Bug #102634Undefined array key warning in page module
- Bug #102698High load & response time after change itemsProcFunc in BackendUtility label functions