Permalink
Browse files

[FIX]fix broken test case

  • Loading branch information...
msh-odoo committed Dec 6, 2018
1 parent 9649116 commit d193b8c1eba0c83ca184af904bf12a28226a2571
@@ -80,9 +80,9 @@ var GraphView = AbstractView.extend({
// give highest priority to graph_groupbys if given in action context
// then group_by key of action context then type='row/col' fields of graph view for groupBys
if (params.action && params.action.context.graph_groupbys && params.action.context.graph_groupbys.length) {
if (params.action && params.action.context && params.action.context.graph_groupbys && params.action.context.graph_groupbys.length) {
groupBys = params.action.context.graph_groupbys;
} else if (params.action && params.action.context.group_by && params.action.context.group_by.length) {
} else if (params.action && params.action.context && params.action.context.group_by && params.action.context.group_by.length) {
groupBys = params.action.context.group_by;
}
@@ -97,9 +97,9 @@ var PivotView = AbstractView.extend({
// give highest priority to graph_groupbys if given in action context
// then group_by key of action context then type='row/col' fields of graph view for groupBys
if (params.action && params.action.context.pivot_row_groupby && params.action.context.pivot_row_groupby.length) {
if (params.action && params.action.context && params.action.context.pivot_row_groupby && params.action.context.pivot_row_groupby.length) {
rowGroupBys = params.action.context.pivot_row_groupby;
} else if (params.action && params.action.context.group_by && params.action.context.group_by.length) {
} else if (params.action && params.action.context && params.action.context.group_by && params.action.context.group_by.length) {
rowGroupBys = params.action.context.group_by;
}

0 comments on commit d193b8c

Please sign in to comment.