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 6 months ago. Updated 6 months ago.

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

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 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

Also available in: Atom PDF