Updated ReportFilter to use like query for filtering comments
• Updated: - ReportFilter to use like query for filtering comments
This commit is contained in:
parent
a703b5cb78
commit
a5caa5e352
@ -24,7 +24,7 @@ class ReportFilter
|
||||
when :target_account_id
|
||||
Report.where(target_account_id: value)
|
||||
when :comment
|
||||
Report.where(comment: value)
|
||||
Report.where("LOWER(comment) LIKE LOWER(?)", "%#{value}%")
|
||||
else
|
||||
raise "Unknown filter: #{key}"
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user