Review 14.3 Merged

94193[BUGFIX] Guard getProperties() call in TranslationService with instanceof check

Christian Kuhn CR +2 V +2 Easy +7 −19 updated 05/28/26, 20:39

Commit message

TranslationService::translateFormElementError() accepts a
RootRenderableInterface as its $element parameter, but unconditionally
called $element->getProperties(), which is only defined in
FormElementInterface (a sub-interface of RootRenderableInterface).

When the method is called with a FormRuntime instance — which implements
RootRenderableInterface but not FormElementInterface — this caused a
fatal error, because FormRuntime does not have getProperties().

The validationErrorMessages feature read from getProperties() is
meaningful only for concrete form elements, not for the form root.
The fix wraps the getProperties() access in an instanceof
FormElementInterface check, consistent with the pattern already
established in translateFormElementValue().

The two functional tests covering this code path had been skipped with
markTestSkipped() referencing this issue (#100477). The skip markers
are now removed.

Review

  • Code review CR +2 Done
    • Christian Kuhn +2
  • Verified V +2 Done
    • Christian Kuhn +2
    • core-ci +1 CI

Issues 1

Files 3

Review log 34

  1. Christian Kuhn uploaded patch set 1 05/28/26, 20:17

  2. core-ci voted on patch set 1 V +1 05/28/26, 20:25 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/102564

  3. Christian Kuhn voted on patch set 1 CR +2 V +2 05/28/26, 20:39

  4. Christian Kuhn merged patch set 2 05/28/26, 20:39