forgive case in query
This commit is contained in:
parent
1b1626baaa
commit
6da717a2b9
2 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ module DossierFilteringConcern
|
|||
safe_quoted_terms = search_terms.map(&:strip).map { "%#{sanitize_sql_like(_1)}%" }
|
||||
table_column = DossierFilterService.sanitized_column(table, column)
|
||||
|
||||
where("#{table_column} LIKE ANY (ARRAY[?])", safe_quoted_terms)
|
||||
where("#{table_column} ILIKE ANY (ARRAY[?])", safe_quoted_terms)
|
||||
}
|
||||
|
||||
def sanitize_sql_like(q) = ActiveRecord::Base.sanitize_sql_like(q)
|
||||
|
|
|
@ -443,7 +443,7 @@ describe DossierFilterService do
|
|||
end
|
||||
|
||||
context 'for type_de_champ table' do
|
||||
let(:filter) { [type_de_champ.libelle, ' keep '] }
|
||||
let(:filter) { [type_de_champ.libelle, ' Keep '] }
|
||||
|
||||
let(:kept_dossier) { create(:dossier, procedure:) }
|
||||
let(:discarded_dossier) { create(:dossier, procedure:) }
|
||||
|
|
Loading…
Reference in a new issue