Do not rely on the individual model (instead use the first level 'top'

model) to fetch the node_info, because - when loading the data in the
collection, it may not initialize all the parameters.
This commit is contained in:
Ashesh Vashi 2016-03-15 21:18:01 +05:30
parent 62bd1a21cc
commit 40ceabb082

View File

@ -79,8 +79,8 @@
return false; return false;
} }
return !( return !(
this.node_info && this.top && this.top.node_info &&
this.node_info.server.user.name == column.get('grantor') this.top.node_info.server.user.name == column.get('grantor')
); );
}, },
transform: function(data) { transform: function(data) {
@ -141,7 +141,7 @@
res = opts.apply(this), res = opts.apply(this),
selected = {}, selected = {},
cid = self.model.cid, cid = self.model.cid,
curr_user = self.model.node_info.server.user.name; curr_user = self.model.top.node_info.server.user.name;
var idx = 0; var idx = 0;