Bug #96455

Selected options in e.g. dropdown fields aren't translated in the mail finisher

Added by Jan Helke 6 months ago. Updated 6 months ago.

Status:
Resolved
Priority:
Must have
Assignee:
Category:
Form Framework
Target version:
Start date:
2022-01-04
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
easy
Is Regression:
Yes
Sprint Focus:

Description

Currently we have the situation, that translated fields with options are not translated in the mail finisher.

Given a typical salutation dropdown field with Mrs, Mr and Mx and a German translation Frau, Herr and divers.

In the English mail IS (correctly) written:

Salutation: Mx

In the German mail IS incorrectly written:

Anrede: Mx

In the German mail SHOULD be written:

Anrede: divers

This regression was introduced in TYPO3 11.3 with Change-Id: I7546fedf79656561369008765b303cfb9af246d0 during a phpstan run.
https://github.com/TYPO3-CMS/form/commit/259385250920f0ff9d1f33125f45f2b50e9a893b

It's clear, that the part ```$properties['options'] =``` is a leftover from this patch an needs to be adjusted too.


Related issues

Related to TYPO3 Core - Task #93979: Update phpstan to 0.12.84Closed2021-04-23

Actions

Also available in: Atom PDF