mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-10 15:36:06 -06:00
Fixes an issue in the backform schema generation logic to allow to use
the NodeAjaxOptionsControl in the subnode grid.
This commit is contained in:
parent
8a06d5bd54
commit
e90fef7b5b
@ -540,8 +540,8 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
var generateGridColumnsFromModel = Backform.generateGridColumnsFromModel =
|
var generateGridColumnsFromModel = Backform.generateGridColumnsFromModel =
|
||||||
function(node_info, m, type, cols) {
|
function(node_info, m, type, cols, node) {
|
||||||
var groups = Backform.generateViewSchema(node_info, m, type, null, true),
|
var groups = Backform.generateViewSchema(node_info, m, type, node, true, true),
|
||||||
schema = [],
|
schema = [],
|
||||||
columns = [],
|
columns = [],
|
||||||
func,
|
func,
|
||||||
@ -979,7 +979,7 @@
|
|||||||
|
|
||||||
var subnode = data.subnode.schema ? data.subnode : data.subnode.prototype,
|
var subnode = data.subnode.schema ? data.subnode : data.subnode.prototype,
|
||||||
gridSchema = Backform.generateGridColumnsFromModel(
|
gridSchema = Backform.generateGridColumnsFromModel(
|
||||||
data.node_info, subnode, this.field.get('mode'), data.columns
|
data.node_info, subnode, this.field.get('mode'), data.columns, data.schema_node
|
||||||
), self = this,
|
), self = this,
|
||||||
pgBrowser = window.pgAdmin.Browser;
|
pgBrowser = window.pgAdmin.Browser;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user