mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Validate the model on save.
This commit is contained in:
parent
290e6949f8
commit
7b344185b4
@ -851,7 +851,7 @@ function($, _, S, pgAdmin, Menu, Backbone, Alertify, pgBrowser, Backform) {
|
||||
if (d && !_.isEmpty(d)) {
|
||||
m.save({}, {
|
||||
attrs: d,
|
||||
validate: false,
|
||||
validate: true,
|
||||
cache: false,
|
||||
success: function() {
|
||||
onSaveFunc.call();
|
||||
@ -860,7 +860,7 @@ function($, _, S, pgAdmin, Menu, Backbone, Alertify, pgBrowser, Backform) {
|
||||
Alertify.pgNotifier(
|
||||
"error", jqxhr,
|
||||
S(
|
||||
"{{ _("Error during saving properties - %%s!") }}"
|
||||
"{{ _("Error during saving properties: %%s!") }}"
|
||||
).sprintf(jqxhr.statusText).value()
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user