Hi,
With the previous patch *'Modified SQL'* tab was included in the sub-bode
control, which is now fixed in the attached patch.
Thanks,
Khushboo
On Wed, Feb 3, 2016 at 12:08 PM, Khushboo Vashi <
[email protected]> wrote:
> 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..c3dbbd9 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, 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