Bug #102348
openUsing CountrySelect the value is displayed on summary page instead of the label
0%
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
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.
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
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
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