We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 360f1f1 + f521b8e commit a7c2998Copy full SHA for a7c2998
lib/query_helper.rb
@@ -280,8 +280,12 @@ def search_filter(column_maps)
280
raise ArgumentError.new("search_fields not defined") unless @search_fields.length > 0
281
placement = :where
282
maps = column_maps.select do |cm|
283
- placement = :having if cm.aggregate
284
- @search_fields.include? cm.alias_name
+ if @search_fields.include? cm.alias_name
+ placement = :having if cm.aggregate
285
+ true
286
+ else
287
+ false
288
+ end
289
end
290
bind_variable = ('a'..'z').to_a.shuffle[0,20].join.to_sym
291
@bind_variables[bind_variable] = "%#{@search_string}%"
0 commit comments