Issue Bug Closed

#100477translateFormElementError() calls getProperties() on RootRenderableInterface

Christian Kuhn 04/05/23, 15:48 updated 08/11/26, 08:46

Description

See TranslationServiceTest->translateFormElementErrorTranslateErrorFromFormWithContentElementUidIfFormContainsOriginalIdentifier() and translateFormElementErrorTranslateErrorFromFormWithContentElementUidIfFormContainsNoOriginalIdentifier()

TranslationService->translateFormElementError() calls getProperties() on RootRenderableInterface, but the method is not part of the interface.

Something is wrong here, but I lack deeper understanding currently:
  • Should getProperties() be added to the interface?
  • Should translateFormElementError() sanitize that and check differently, maybe similar to other methods in the class?

Note TranslateElementErrorViewHelper uses the method, too.

Reviews 3