mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix numeric control validation in nested schemas. Fixes #2241
This commit is contained in:
parent
670c8a2cc1
commit
502c827697
@ -1573,6 +1573,15 @@
|
|||||||
this.model.errorModel.unset(name);
|
this.model.errorModel.unset(name);
|
||||||
this.model.set(name, value);
|
this.model.set(name, value);
|
||||||
this.listenTo(this.model, "change:" + name, this.render);
|
this.listenTo(this.model, "change:" + name, this.render);
|
||||||
|
if (this.model.collection || this.model.handler) {
|
||||||
|
(this.model.collection || this.model.handler).trigger(
|
||||||
|
'pgadmin-session:model:valid', this.model, (this.model.collection || this.model.handler)
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
(this.model).trigger(
|
||||||
|
'pgadmin-session:valid', this.model.sessChanged(), this.model
|
||||||
|
);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (this.model.collection || this.model.handler) {
|
if (this.model.collection || this.model.handler) {
|
||||||
(this.model.collection || this.model.handler).trigger(
|
(this.model.collection || this.model.handler).trigger(
|
||||||
@ -1667,6 +1676,15 @@
|
|||||||
this.model.errorModel.unset(name);
|
this.model.errorModel.unset(name);
|
||||||
this.model.set(name, value);
|
this.model.set(name, value);
|
||||||
this.listenTo(this.model, "change:" + name, this.render);
|
this.listenTo(this.model, "change:" + name, this.render);
|
||||||
|
if (this.model.collection || this.model.handler) {
|
||||||
|
(this.model.collection || this.model.handler).trigger(
|
||||||
|
'pgadmin-session:model:valid', this.model, (this.model.collection || this.model.handler)
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
(this.model).trigger(
|
||||||
|
'pgadmin-session:valid', this.model.sessChanged(), this.model
|
||||||
|
);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (this.model.collection || this.model.handler) {
|
if (this.model.collection || this.model.handler) {
|
||||||
(this.model.collection || this.model.handler).trigger(
|
(this.model.collection || this.model.handler).trigger(
|
||||||
|
Loading…
Reference in New Issue
Block a user