[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:
parent
55bbabaf46
commit
8013a154b8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue