[FIX] make sure the graph view takes the col_group_by from the search view and not from the context.

It was taken from the context, and had the unfortunate side effect that the user could not ungroup by removing the facet from the search view. (addon web_graph)

bzr revid: ged@openerp.com-20140210153221-olkv8xee02r9voer
This commit is contained in:
Gery Debongnie 2014-02-10 16:32:21 +01:00
parent 9eda870d2b
commit 321a4a7402
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ instance.web_graph.GraphView = instance.web.View.extend({
}
var self = this,
col_group_by = this.extract_groupby('col_group_by', context) || [];
col_group_by = self.get_groupbys_from_searchview('ColGroupBy', 'col_group_by');
if (!this.graph_widget) {
if (group_by.length) {