[BUGFIX] Fix namespace of validation error in form 12/57212/5
authorJustus Moroni <developer@leonmrni.com>
Wed, 13 Jun 2018 18:42:31 +0000 (20:42 +0200)
committerRalf Zimmermann <ralf.zimmermann@tritum.de>
Wed, 13 Jun 2018 19:26:19 +0000 (21:26 +0200)
commitce6766a3f1336562eb364a551a40bf4ec4e5f1c6
treeb8a60e4439591c2b70d70b62ee75a9d783708194
parent7fb2443f943522e8ba70bd25f1ec47f8d1873046
[BUGFIX] Fix namespace of validation error in form

The FormElementHooks now uses the correct namespace
for the generated error.

The TranslateElementErrorViewHelper requires the submitted
error to be an instance of TYPO3\CMS\Extbase\Validation\Error.
The error was an instance of TYPO3\CMS\Extbase\Error\Error.
As the instance was wrong, an exception was thrown.

Resolves: #85255
Releases: master, 8.7
Change-Id: I6ccce5fb6370d2bf34f494141d73cc602eb923ce
Reviewed-on: https://review.typo3.org/57212
Reviewed-by: Ralf Zimmermann <ralf.zimmermann@tritum.de>
Tested-by: Ralf Zimmermann <ralf.zimmermann@tritum.de>
Tested-by: TYPO3com <no-reply@typo3.com>
typo3/sysext/form/Classes/Hooks/FormElementsOnSubmitHooks.php