[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
This commit is contained in:
Gery Debongnie 2013-11-28 15:18:03 +01:00
parent 55bbabaf46
commit 8013a154b8
1 changed files with 3 additions and 0 deletions

View File

@ -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);