fix validation

This commit is contained in:
Yuri Kuznetsov
2014-11-06 18:50:01 +02:00
parent 8ac26402a2
commit 3bea0a130d
+1 -1
View File
@@ -100,7 +100,7 @@ Espo.define('Views.Fields.Address', 'Views.Fields.Base', function (Dep) {
if (this.model.isRequired(name)) {
if (this.model.get(name) === '') {
var msg = this.translate('fieldIsRequired', 'messages').replace('{field}', this.translate(this.name, 'fields', this.model.name));
this.showValidationMessage(msg, 'input[name="'+name+'"]');
this.showValidationMessage(msg, '[name="'+name+'"]');
return true;
}
}