Project

General

Profile

Actions

Bug #85255

closed

Form Framework - "AdvancedPassword" throws exception

Added by Justus Moroni over 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Form Framework
Start date:
2018-06-13
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.1
Tags:
Complexity:
easy
Is Regression:
Yes
Sprint Focus:

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".

Actions

Also available in: Atom PDF