Review 9.5 Merged

63977[BUGFIX] Show correct value in translated single select + checkboxes

Benni Mack CR +2 V +2 Easy +14 −3 updated 04/01/20, 09:35

Commit message

If the TCA option "l10n_mode" is set to "exclude", the selected field
in localised elements is wrong when using this option in conjunction
with "l10n_display" => "defaultAsReadonly" in a select single element.

In this case the variable $parameterArray['itemFormElValue'] seems to be
a string, not an array as expected in SelectSingleElement.php.

This patch adds a check for the array / string, as well as the
same behaviour for the checkbox.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 4

Files 2