Issue Bug Closed

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

Chris Müller 11/08/23, 12:38 updated 12/02/25, 14:37

Description

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

clipboard-202311081337-ls5d8.png

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

Reviews 2

Files 1

History 49

  1. Chris Müller commented <span data-processor="relativetime" data-value="2023-11-08T13:04:36+00:00" > 11/08/23, 13:04 </span>

    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.

  2. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2024-12-17T09:10:11+00:00" > 12/17/24, 09:10 </span>

    Applied in changeset commit:6f0fc5f2257b0866092360ecc707ee16d0e7402b.