Fixes an issue in the backform schema generation logic to allow to use

the NodeAjaxOptionsControl in the subnode grid.
This commit is contained in:
Khushboo Vashi 2016-02-03 16:25:21 +05:30 committed by Ashesh Vashi
parent 8a06d5bd54
commit e90fef7b5b

View File

@ -540,8 +540,8 @@
});
var generateGridColumnsFromModel = Backform.generateGridColumnsFromModel =
function(node_info, m, type, cols) {
var groups = Backform.generateViewSchema(node_info, m, type, null, true),
function(node_info, m, type, cols, node) {
var groups = Backform.generateViewSchema(node_info, m, type, node, true, true),
schema = [],
columns = [],
func,
@ -979,7 +979,7 @@
var subnode = data.subnode.schema ? data.subnode : data.subnode.prototype,
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,
pgBrowser = window.pgAdmin.Browser;