[BUGFIX] Allow Error\Error to be translated in form extension 42/57742/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:46:15 +0000 (13:46 +0200)
commit940d61539f95708963660cf104f8bad88b16183c
tree3f2068eba33a035c16a40e4be074365e7ee7fdde
parenteee994e4a4ec182149e958a603f018b16eb41812
[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/57742
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/form/Classes/ViewHelpers/TranslateElementErrorViewHelper.php