콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
5049 화면

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
2068
1
7월 21
2935
0
4월 16
4578
1
5월 15
4141
0
1월 25
3072