diff options
| author | Gery Debongnie <ged@openerp.com> | 2013-11-28 15:18:03 +0100 |
|---|---|---|
| committer | Gery Debongnie <ged@openerp.com> | 2013-11-28 15:18:03 +0100 |
| commit | 8013a154b80766779cbe2cbad101bc3669e0e41f (patch) | |
| tree | 0da6e4e15a3da86e03cbabedf0a6452f1177ecd0 /addons/web_graph/static/src | |
| parent | 55bbabaf46cbc50e959192fdb8310a07afe77aef (diff) | |
[FIX] fixes a crash that occurred when a graph view had a starting groupby (given by the search view) (in addon web_graph)
bzr revid: ged@openerp.com-20131128141803-j0ttpgedic84quvy
Diffstat (limited to 'addons/web_graph/static/src')
| -rw-r--r-- | addons/web_graph/static/src/js/pivot.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/web_graph/static/src/js/pivot.js b/addons/web_graph/static/src/js/pivot.js index bca759a13e5..38dad2c33cb 100644 --- a/addons/web_graph/static/src/js/pivot.js +++ b/addons/web_graph/static/src/js/pivot.js @@ -232,6 +232,9 @@ openerp.web_graph.PivotTable = openerp.web.Class.extend({ }, update_headers: function (root, new_headers) { + if (!root.main) { + return this.expand_headers(root, new_headers); + } _.each(root.headers, function (header) { var corresponding_header = _.find(new_headers, function (h) { return _.isEqual(h.path, header.path); |
