summaryrefslogtreecommitdiff
path: root/addons/web_graph
diff options
context:
space:
mode:
authorGery Debongnie <ged@openerp.com>2014-04-09 14:36:28 +0200
committerGery Debongnie <ged@openerp.com>2014-04-09 14:36:28 +0200
commit281c19a751be815f353cbda10c09ac055e5d9594 (patch)
treeaca725f590c80c6557757fc5978c10451d4cd51e /addons/web_graph
parent8c5a06655daea060984a8cd4a647a12b0f78b3ca (diff)
[FIX] correctly determines when there is no data to read in graph view (instead of the good old crash) (addon web_graph)
bzr revid: ged@openerp.com-20140409123628-erw8dpb2l36l7hu6
Diffstat (limited to 'addons/web_graph')
-rw-r--r--addons/web_graph/static/src/js/pivot_table.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_graph/static/src/js/pivot_table.js b/addons/web_graph/static/src/js/pivot_table.js
index d53c972a742..6fc9cf2b12b 100644
--- a/addons/web_graph/static/src/js/pivot_table.js
+++ b/addons/web_graph/static/src/js/pivot_table.js
@@ -253,7 +253,7 @@ openerp.web_graph.PivotTable = openerp.web.Class.extend({
var self = this;
return this.perform_requests().then (function () {
var data = Array.prototype.slice.call(arguments);
- self.no_data = !data[0][0].attributes.length;
+ self.no_data = !data[0].length;
if (self.no_data) {
return;
}