Project

General

Profile

Actions

Bug #100855

closed

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

Added by Florian Rival 12 months ago. Updated 5 months ago.

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

Sélection_047.png (51.1 KB) Sélection_047.png Florian Rival, 2023-05-10 14:28

Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Bug #102616: TCA type selectSingle with itemsProcFunc doesn't show information in list view nor in export CSVResolved2023-12-06

Actions
Related to TYPO3 Core - Bug #102634: Undefined array key warning in page moduleResolvedOliver Bartsch2023-12-08

Actions
Related to TYPO3 Core - Bug #102698: High load & response time after change itemsProcFunc in BackendUtility label functionsResolved2023-12-19

Actions
Related to TYPO3 Core - Feature #25113: itemsProcFunc is not taken into account while generating labels for select items in the list moduleClosed2011-02-20

Actions
Actions #1

Updated by Benni Mack 11 months ago

  • Sprint Focus set to Stabilization Sprint
Actions #2

Updated by Marcin Sągol 6 months ago

Can reproduce on branch main. Will take a look at this now.

Actions #3

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

Actions #4

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

Actions #5

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

Actions #6

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

Actions #7

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

Actions #8

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

Actions #9

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

Actions #10

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

Actions #11

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?

Actions #12

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

Actions #13

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

Actions #14

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
Actions #15

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

Actions #16

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

Actions #17

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

Actions #18

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

Actions #19

Updated by Oliver Bartsch 5 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #20

Updated by Simon Schaufelberger 5 months ago

  • Related to Bug #102634: Undefined array key warning in page module added
Actions #21

Updated by Christian Kuhn 4 months ago

  • Related to Bug #102698: High load & response time after change itemsProcFunc in BackendUtility label functions added
Actions #22

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
Actions

Also available in: Atom PDF