Project

General

Profile

Actions

Bug #91622

open

Error class does not get applied to Advanced Password field

Added by Andreas Sturmberger about 4 years ago. Updated almost 3 years ago.

Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2020-06-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Remote Sprint

Description

As titled, the error class does not get applied to Advanced Password fields if the field is required.
The form won't be submitted if one of those fields is empty or they are not equal, but the error class is not set.

TYPO3 9.5.19 (but also in older v9 Versions).


Files

91622.PNG (81.2 KB) 91622.PNG Björn Jacob, 2021-08-13 09:23
Actions #1

Updated by Björn Jacob almost 3 years ago

  • Sprint Focus set to Remote Sprint
Actions #2

Updated by Björn Jacob almost 3 years ago

  • File 91622.PNG 91622.PNG added
  • Status changed from New to Accepted
  • TYPO3 Version changed from 9 to 11

Still not working in current master. See attached screenshot from my test. The elementErrorClass ("error") is not added to the input field. Everything is defined and seems fine:

We have to further investigate it.

Actions #3

Updated by Mathias Brodala almost 3 years ago

Current findings:

  • AbstractFormFieldViewHelper::setErrorClassAttribute() does not add the errorClass
  • The reason could be the virtual properties password and confirmation as used by AdvancedPassword
  • The mapping results don't contain errors for each of these properties but their "parent" does.
Actions

Also available in: Atom PDF