Details
-
Improvement
-
Status: Closed
-
Normal
-
Resolution: Available for testing
-
None
-
None
Description
Validation messages are currently hardcoded by validation type. So for example, all fields that get a regexp validator will use the same message when rendering a validation error.
This improvement is allowing developers to easily specify different messages per field type, by using the class name of the Field.
So for the regexp validator on DateFields the message key can be changed from
validation.message.regexp=...
to
validation.message.regexp.datefield=...
Attachments
1.
|
Document the improvement | Closed | Minos Chatzidakis | |
2.
|
Backport change to 7.6 branch | Closed | Jeroen Hoffman | |
3.
|
Tag v2.12.01 | Closed | Minos Chatzidakis | |
4.
|
Tag v2.11.04-backport | Closed | Junaidh Kadhar Sheriff |