Bug #85255
closedForm Framework - "AdvancedPassword" throws exception
100%
Description
In the TYPO3 Version 8.7.14 the following changes were added:
https://github.com/TYPO3/TYPO3.CMS/commit/70b8ffc06c68a21a5dc191d6b7f77b42092fc208
If someone switches to the new syntax of the partial "Field/Field". The AdvancedPassword form element is unusable.
In the TranslateElementErrorViewHelper the argument "error" was expected to be "TYPO3\CMS\Extbase\Validation\Error".
This works for every normal validator.
The AdvancedPassword form element is validated via a hook.
In this hook an error object "TYPO3\CMS\Extbase\Error\Error" was generated.
Therefore an exception was thrown that the type of the argument was not correct.
The fix is simple. The namespace for "Error" in "form/Classes/Hooks/FormElementsOnSubmitHooks.php" needs to be switched from "TYPO3\CMS\Extbase\Error\Error" to "TYPO3\CMS\Extbase\Validation\Error".