Review 14.3 Merged

96913[BUGFIX] Support enums in Fluid form field ViewHelpers

Oli Bartsch CR +2 V +2 Hard +340 −0 updated 10/20/26, 13:01

Commit message

Form field ViewHelpers bound to a property holding an enum could not
handle the value: radio buttons and checkbox groups never showed the
matching option as checked, and f:form.hidden, f:form.textarea,
f:form.password, f:form.submit and f:form.button failed with
"Object of class ... could not be converted to string".

AbstractFormFieldViewHelper::convertToPlainValue() now converts
backed enums to their value and pure enums to their name, the same
representation the Extbase EnumConverter maps back on submit.

f:form.select keeps the enum untouched when "optionValueField" is
set, so the selected value is resolved through the same field as the
options, e.g. optionValueField="name" on a backed enum.

More tests pinpoint this behaviour now across abstract-based
ViewHelpers.

Review

  • Code review CR +2 Done
    • Oli Bartsch +2
  • Verified V +2 Done
    • Oli Bartsch +2
    • core-ci +1 CI

Issues 1

Files 11

Review log 34

  1. Oli Bartsch uploaded patch set 1 10/20/26, 12:41

  2. core-ci voted on patch set 1 V +1 10/20/26, 12:50 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/111812

  3. Oli Bartsch voted on patch set 1 CR +2 V +2 10/20/26, 13:01

  4. Oli Bartsch merged patch set 2 10/20/26, 13:01