Skip to content

Commit

Permalink
Make search column name case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
krishna-chaitanya-45 committed Aug 5, 2024
1 parent d9f1475 commit dc40417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/query_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def search_filter(column_maps)
placement = :where
maps = column_maps.select do |cm|
placement = :having if cm.aggregate
@search_fields.include? cm.alias_name
@search_fields.map(&:downcase).include? cm.alias_name.downcase
end
bind_variable = ('a'..'z').to_a.shuffle[0,20].join.to_sym
@bind_variables[bind_variable] = "%#{@search_string}%"
Expand Down

0 comments on commit dc40417

Please sign in to comment.