Bug #102616
closedTCA type selectSingle with itemsProcFunc doesn't show information in list view nor in export CSV
100%
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
Updated by Gerrit Code Review 12 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
Updated by Gerrit Code Review 12 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
Updated by Gerrit Code Review 12 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
Updated by Gerrit Code Review 12 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
Updated by Gerrit Code Review 12 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
Updated by Gerrit Code Review 12 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
Updated by Christian Kuhn 12 months ago
- Related to Bug #100855: TCA type radio with itemsProcFunc doesn't show information in list view nor in export CSV added
Updated by Gerrit Code Review 12 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
Updated by Gerrit Code Review 12 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
Updated by Gerrit Code Review 12 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
Updated by Gerrit Code Review 12 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
Updated by Oliver Bartsch 12 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 1c2b6a80101866451719c99af607192aac82c491.
Updated by Christian Kuhn 11 months ago
- Related to Bug #102698: High load & response time after change itemsProcFunc in BackendUtility label functions added
Updated by Benni Mack 10 months ago
- Related to Feature #25113: itemsProcFunc is not taken into account while generating labels for select items in the list module added