Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
4984 Visualizzazioni

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
Abbandona
Risposta migliore

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

 

 

Avatar
Abbandona
Autore Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
set 25
2011
1
lug 21
2892
0
apr 16
4525
1
mag 15
4103
0
gen 25
2938