diff options
| author | Gery Debongnie <ged@openerp.com> | 2013-12-27 15:35:08 +0100 |
|---|---|---|
| committer | Gery Debongnie <ged@openerp.com> | 2013-12-27 15:35:08 +0100 |
| commit | 66ee322d0ff749cbbc8ba382ebb89a755bed66d4 (patch) | |
| tree | 65823306f2dda5c62a6796ae106590eb8f534db6 /addons/web_graph | |
| parent | 868be53bae50a49d86658102baa092c81e048691 (diff) | |
[FIX] fixes a crash happening when the context of some attributes does not have a 'group_by' attribute (in the group fields of the search view)
bzr revid: ged@openerp.com-20131227143508-3g04fn2s5u9vxams
Diffstat (limited to 'addons/web_graph')
| -rw-r--r-- | addons/web_graph/static/src/js/graph.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/web_graph/static/src/js/graph.js b/addons/web_graph/static/src/js/graph.js index 33d17e2b059..7dc6d261b0d 100644 --- a/addons/web_graph/static/src/js/graph.js +++ b/addons/web_graph/static/src/js/graph.js @@ -224,7 +224,9 @@ instance.web_graph.Graph = instance.web.Widget.extend({ _.each(g.children, function (g) { if (g.attrs.context) { var field_id = py.eval(g.attrs.context).group_by; - self.important_fields.push(field_id); + if (field_id) { + self.important_fields.push(field_id); + } } }); }); |
