Actions
Bug #102348
openUsing CountrySelect the value is displayed on summary page instead of the label
Status:
New
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
Updated by Chris Müller 6 months 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