From 8013a154b80766779cbe2cbad101bc3669e0e41f Mon Sep 17 00:00:00 2001 From: Gery Debongnie Date: Thu, 28 Nov 2013 15:18:03 +0100 Subject: [PATCH] [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 --- addons/web_graph/static/src/js/pivot.js | 3 +++ 1 file changed, 3 insertions(+) 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);