コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
4851 ビュー

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!

アバター
破棄
関連投稿 返信 ビュー 活動
0
9月 25
1855
1
7月 21
2795
0
4月 16
4365
1
5月 15
3986
0
1月 25
2617