mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix validation message
This commit is contained in:
parent
0bf48d06fb
commit
f51d8c72ef
@ -217,7 +217,7 @@ function($, _, S, pgAdmin, alertify, pgBrowser, CodeMirror) {
|
||||
}
|
||||
if (_.isUndefined(field_def) || _.isNull(field_def) ||
|
||||
String(field_def).replace(/^\s+|\s+$/g, '') == '') {
|
||||
err['definition'] = '{{ _("Please enter function definition.") }}';
|
||||
err['definition'] = '{{ _("Please enter view definition.") }}';
|
||||
errmsg = errmsg || err['definition'];
|
||||
this.errorModel.set('definition', errmsg);
|
||||
return errmsg;
|
||||
|
@ -180,7 +180,7 @@ function($, _, S, pgAdmin, pgBrowser, CodeMirror) {
|
||||
}
|
||||
if (_.isUndefined(field_def) || _.isNull(field_def) ||
|
||||
String(field_def).replace(/^\s+|\s+$/g, '') == '') {
|
||||
err['definition'] = '{{ _("Please enter function definition.") }}';
|
||||
err['definition'] = '{{ _("Please enter view definition.") }}';
|
||||
errmsg = errmsg || err['definition'];
|
||||
this.errorModel.set('definition', errmsg);
|
||||
return errmsg;
|
||||
|
Loading…
Reference in New Issue
Block a user