summaryrefslogtreecommitdiff
path: root/addons/web_graph/static/src/js/graph_view.js
diff options
context:
space:
mode:
authorGery Debongnie <ged@openerp.com>2014-01-23 12:34:50 +0100
committerGery Debongnie <ged@openerp.com>2014-01-23 12:34:50 +0100
commitb83cfc2c2b900f33d08ba068ab7b4d468ddb3017 (patch)
treed7829b9e65a40ab69c98d04e851b2db2ed878ef6 /addons/web_graph/static/src/js/graph_view.js
parent39e0f4736f447fe5e4160e670a74e0b79a5ad266 (diff)
[FIX] fixes a crash happening when in dashboards, the graph view was trying to access undefined attributes (addon web_graph)
bzr revid: ged@openerp.com-20140123113450-ec4fubf1urkdutw7
Diffstat (limited to 'addons/web_graph/static/src/js/graph_view.js')
-rw-r--r--addons/web_graph/static/src/js/graph_view.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_graph/static/src/js/graph_view.js b/addons/web_graph/static/src/js/graph_view.js
index 6d121bdc6c5..39634ff103a 100644
--- a/addons/web_graph/static/src/js/graph_view.js
+++ b/addons/web_graph/static/src/js/graph_view.js
@@ -173,7 +173,7 @@ instance.web_graph.GraphView = instance.web.View.extend({
context[category] = groupby.field;
var value;
if (category === 'group_by' && groupby.type !== 'date' && groupby.type !== 'datetime') {
- value = groupby.filter;
+ value = groupby.filter || {attrs: {domain: [], context: context}};
} else {
value = {attrs: {domain: [], context: context}};
}