Hi,
When we are using NodeAjaxOptionsControl in main model, it is working fine,
but while using it in subnode, giving an error of node is undefined.
So, I have fixed that issue and the patch for the same is attached.
Please review it and let me know in case of problem.
Thanks,
Khushboo
diff --git a/web/pgadmin/static/js/backform.pgadmin.js b/web/pgadmin/static/js/backform.pgadmin.js
index be7d177..5075af9 100644
--- a/web/pgadmin/static/js/backform.pgadmin.js
+++ b/web/pgadmin/static/js/backform.pgadmin.js
@@ -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),
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;
--
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers