synced with master

This commit is contained in:
Gani Georgiev
2024-12-08 14:43:07 +02:00
34 changed files with 98 additions and 92 deletions
+1 -1
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 != "" {