Project

General

Profile

Actions

Bug #102348

open

Using CountrySelect the value is displayed on summary page instead of the label

Added by Chris Müller about 1 year ago. Updated about 1 month ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2023-11-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When using the CountrySelect element and displaying a summary page, the value is displayed:

I would expect the label to be displayed, in the example "New Zealand".

For instance, in the SingleSelect element the label is displayed on the summary page.

Using TYPO3 v12.4.7


Files

clipboard-202311081337-ls5d8.png (2.01 KB) clipboard-202311081337-ls5d8.png Chris Müller, 2023-11-08 12:37
Actions #1

Updated by Chris Müller about 1 year ago

Digging into it: The RenderFormValueViewHelper->processElementValue() method is responsible for setting a processedValue variable (which is then used on the summary page). For the CountrySelect element the options variable (which holds an array like ['value' => 'label']) is null, so the value is returned untouched.

Actions #2

Updated by Gerrit Code Review 5 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/+/84855

Actions #3

Updated by Gerrit Code Review 4 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/+/84855

Actions #4

Updated by Gerrit Code Review about 1 month 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/+/84855

Actions

Also available in: Atom PDF