fix validation msg

This commit is contained in:
Yuri Kuznetsov
2024-02-06 10:41:40 +02:00
parent 0858b845fb
commit 7ff8b1ecee
+2 -2
View File
@@ -146,7 +146,7 @@ class UrlFieldView extends VarcharFieldView {
}
const msg = this.translate('fieldInvalid', 'messages')
.replace('{field}', this.translate(this.name, 'fields', this.entityType));
.replace('{field}', this.getLabelText());
this.showValidationMessage(msg);
@@ -169,7 +169,7 @@ class UrlFieldView extends VarcharFieldView {
const msg = this.translate('fieldUrlExceedsMaxLength', 'messages')
.replace('{maxLength}', maxLength)
.replace('{field}', this.translate(this.name, 'fields', this.entityType));
.replace('{field}', this.getLabelText());
this.showValidationMessage(msg);