Bug #100855
closedTCA type radio with itemsProcFunc doesn't show information in list view nor in export CSV
100%
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
Updated by Marcin Sągol 6 months ago
Can reproduce on branch main. Will take a look at this now.
Updated by Gerrit Code Review 6 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/+/81646
Updated by Gerrit Code Review 6 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/+/81646
Updated by Gerrit Code Review 6 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/+/81646
Updated by Gerrit Code Review 6 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/+/81646
Updated by Gerrit Code Review 6 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/+/81646
Updated by Gerrit Code Review 6 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/+/81646
Updated by Gerrit Code Review 6 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/+/81646
Updated by Gerrit Code Review 6 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/+/81646
Updated by Marcin Sągol 6 months ago
In this patch i'am executing itemsProcFunc to get all items that should be inside radio or select list.
As a argument i pass the TCA column config to this function. But when we go to Pages module there is itemsProcFunc called from layout (to get colpos) and it expects different params structure - the one generated by one service from Form package.
Now i wonder i this is how it should work that itemsProcFunc might expect different argumnets data structure or it shlud be somehow unified.
Should i think about list module and forms as a places where some common code shluld be used or they play different roles and we should not mix how we handle itemsProcFunc in this places?
Updated by Gerrit Code Review 6 months ago
Patch set 9 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/+/81646
Updated by Gerrit Code Review 6 months ago
Patch set 10 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/+/81646
Updated by Christian Kuhn 5 months ago
- Related to Bug #102616: TCA type selectSingle with itemsProcFunc doesn't show information in list view nor in export CSV added
Updated by Gerrit Code Review 5 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 5 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 5 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 5 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 5 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 1c2b6a80101866451719c99af607192aac82c491.
Updated by Simon Schaufelberger 5 months ago
- Related to Bug #102634: Undefined array key warning in page module added
Updated by Christian Kuhn 4 months ago
- Related to Bug #102698: High load & response time after change itemsProcFunc in BackendUtility label functions added
Updated by Benni Mack 3 months ago
- Related to Feature #25113: itemsProcFunc is not taken into account while generating labels for select items in the list module added