Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
4814 Weergaven

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
Annuleer
Beste antwoord

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

 

 

Avatar
Annuleer
Auteur Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
mei 24
1767
1
jul. 21
2747
0
apr. 16
4298
1
mei 15
3961
0
jan. 25
2465