Skip to content
Snippets Groups Projects
Commit 7b4f2df8 authored by Géry Debongnie's avatar Géry Debongnie
Browse files

[FIX] fixes a crash in line chart mode when the view had more than one measure (addon web_graph)

bzr revid: ged@openerp.com-20140124152536-an2aelpaa43ivzjw
parent c4314762
No related branches found
No related tags found
No related merge requests found
......@@ -630,7 +630,7 @@ openerp.web_graph.Graph = openerp.web.Widget.extend({
var data = _.map(this.pivot.get_cols_leaves(), function (col) {
var values = _.map(self.pivot.get_rows_with_depth(dim_x), function (row) {
return {x: row.title, y: self.pivot.get_values(row.id,col.id, 0)};
return {x: row.title, y: self.pivot.get_values(row.id,col.id)[0] || 0};
});
var title = _.map(col.path, function (p) {
return p || 'Undefined';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment