[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)
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

index 019596c..2dc4c4e 100644 (file)
@@ -15,7 +15,7 @@ namespace TYPO3\CMS\Form\ViewHelpers;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\CMS\Extbase\Validation\Error;
+use TYPO3\CMS\Extbase\Error\Error;
 use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
 use TYPO3\CMS\Form\Domain\Model\Renderable\RootRenderableInterface;
 use TYPO3\CMS\Form\Domain\Runtime\FormRuntime;