[#6053] fixed text field max validation error message

This commit is contained in:
Gani Georgiev 2024-12-08 13:19:44 +02:00
parent 6f55695fa1
commit 85c31ba068
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ func (f *TextField) ValidatePlainValue(value string) error {
if max > 0 && length > max {
return validation.NewError("validation_max_text_constraint", "Must be less than {{.max}} character(s)").
SetParams(map[string]any{"max": f.Max})
SetParams(map[string]any{"max": max})
}
if f.Pattern != "" {