2013-07-08 08:44:16 |
Anael Lorimier |
bug |
|
|
added bug |
2013-07-08 08:44:16 |
Anael Lorimier |
attachment added |
|
Concat in context the value of the key 'group_by' https://bugs.launchpad.net/bugs/1198838/+attachment/3728913/+files/pyeval.js.patch |
|
2013-07-08 11:17:42 |
Anael Lorimier |
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 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 modify the function eval_context in pyeval.js. It concatenate 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. |
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. |
|
2013-07-08 11:19:00 |
Anael Lorimier |
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. |
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. |
|