Project

General

Profile

Actions

Bug #100678

open

ext:form : errorMessage for RegularExpression validator is ignored when set in Yaml

Added by RVVN no-lastname-given about 1 year ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2023-04-20
Due date:
% Done:

0%

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

Description

Hi,

since #91719 it is possible to define a custom validation error message for RegularExpression validators.

When set in Yaml as following, this error message is ignored.

options:
  errorMessage: "my custom error message" 

It seems that the TranslationService uses this custom errorMessage as the very last fallback only if no translation for the corresponding error code is found in language files.
The translation for the corresponding error code takes precedence.

<trans-unit id="validation.error.1221565130" xml:space="preserve">
  <source>Ce champ contient des caractères non autorisés</source>
</trans-unit>

I expected that the custom error message would have precedence.

No data to display

Actions

Also available in: Atom PDF