Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
4978 Переглядів

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!

Аватар
Відмінити
Найкраща відповідь

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

 

 

Аватар
Відмінити
Автор Найкраща відповідь

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!

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
вер. 25
2007
1
лип. 21
2892
0
квіт. 16
4522
1
трав. 15
4102
0
січ. 25
2924