[BUGFIX] Allow Error\Error to be translated in form extension 22/57622/2
authorDaniel Siepmann <daniel.siepmann@typo3.org>
Wed, 18 Jul 2018 11:18:28 +0000 (13:18 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 31 Jul 2018 11:19:52 +0000 (13:19 +0200)
commit8c4abd657c50006dbb64b15ce18944c30e85e882
treed591abad0a50defbab4fd74674897e6031b43d12
parent6f27cbf43ed867924fe9a19c9a4cdc94e587e04e
[BUGFIX] Allow Error\Error to be translated in form extension

Some errors added while processing forms are of Type
TYPO3\CMS\Extbase\Error\Error instead of
TYPO3\CMS\Extbase\Validation\Error as they occur in different places.
E.g. the mime type check is handled inside the TypeConverter and file
uploads can be canceled due to file size.

These errors should not lead to errors when rendered in Fluid.

Resolves: #85586
Releases: master, 8.7
Change-Id: I02eafff4b7d56a661eb956ff107c0eb0476fd6a7
Reviewed-on: https://review.typo3.org/57622
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Ralf Zimmermann <ralf.zimmermann@tritum.de>
Tested-by: Ralf Zimmermann <ralf.zimmermann@tritum.de>
Reviewed-by: Jörg Bösche <typo3@joergboesche.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/form/Classes/ViewHelpers/TranslateElementErrorViewHelper.php