Send all group_by values through the context

Bug #1198838 reported by Anael Lorimier on 2013-07-08
This bug affects 3 people
Affects Status Importance Assigned to Milestone

Bug Description

When you create group_by in a search view, you pass the name of the column through the context.

I tried to get this value from the field_view_get, I was expecting something like :

context['group_by] = ["group_by_1", "group_by_2", "group_by_3", ...]

but instead, I only get one value, the last one I have clicked :

context['group_by'] = "group_by_3"

I think it can be useful to get all the values of a group_by in the fields_view_get, so we can perform some actions depending on the group_by.

I have created a patch that modifies the function eval_context in pyeval.js. It concatenates the context if it's a group_by. I know this is not the most optim and best way to do that, but you will certainly do it way better.

My patch is against branch 7.0, revision 3994.

description: updated
description: updated
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers