Issue Bug Closed

#91622Error class does not get applied to Advanced Password field

Andreas Sturmberger 06/09/20, 15:47 updated 12/02/25, 14:36

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

Reviews 2

Files 1

History 58

  1. Björn Jacob commented and changed attached 91622.PNG status New Accepted TYPO3 Version 9 11 <span data-processor="relativetime" data-value="2021-08-13T09:26:11+00:00" > 08/13/21, 09:26 </span>

    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.

  2. Mathias Brodala commented <span data-processor="relativetime" data-value="2021-08-13T13:37:09+00:00" > 08/13/21, 13:37 </span>

    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.
  3. Gerrit Code Review pushed patch set 1 for main to change 91013 status Accepted Under Review <span data-processor="relativetime" data-value="2025-10-11T15:36:39+00:00" > 10/11/25, 15:36 </span>

  4. Josua Vogel commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-10-23T09:15:08+00:00" > 10/23/25, 09:15 </span>

    Applied in changeset commit:9dd225167bcb1f6bf643a86d62be55f161ff4192.