Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
4817 Vizualizări

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!

Imagine profil
Abandonează
Cel mai bun răspuns

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

 

 

Imagine profil
Abandonează
Autor Cel mai bun răspuns

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!

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
mai 24
1801
1
iul. 21
2751
0
apr. 16
4304
1
mai 15
3961
0
ian. 25
2484