Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
4777 Zobrazení

Hi,

is there a way to group by a field in a search view in a case insensitive way?

i.e. grouping "leo" and "Leo" together.

Thanks!

Avatar
Zrušit
Nejlepší odpověď

AFAIK you have to redefine ``read_group`` to fit your needs.

 

 

Avatar
Zrušit
Autor Nejlepší odpověď

Nicolas is right: to do that I have to change read_group. It is a big method with no hooks, so the solution for now has been to copy all of it in my module and add a few lines similar to those the handle dates in the original code.

Date handling in the original is somewhat similar: dates from the same month are grouped together, while I wanted to group together string fields that are equal ignoring case.

That has been refactored in trunk to be hookable.

Thanks!

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
kvě 24
1733
1
čvc 21
2713
0
dub 16
4228
1
kvě 15
3920
0
led 25
2354