mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-01 03:57:15 +00:00
Replace send with direct call because sanitize_sql_for_conditions is now public (#35073).
Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@21233 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
0ec96f52f3
commit
5c7d43d36a
@ -1442,9 +1442,10 @@ class Query < ActiveRecord::Base
|
||||
suffix = '%' if options[:starts_with]
|
||||
prefix = suffix = '%' if prefix.nil? && suffix.nil?
|
||||
value = queried_class.sanitize_sql_like value
|
||||
queried_class.send(
|
||||
:sanitize_sql_for_conditions,
|
||||
[Redmine::Database.like(db_field, '?', :match => options[:match]), "#{prefix}#{value}#{suffix}"])
|
||||
queried_class.sanitize_sql_for_conditions([
|
||||
Redmine::Database.like(db_field, '?', :match => options[:match]),
|
||||
"#{prefix}#{value}#{suffix}"
|
||||
])
|
||||
end
|
||||
|
||||
# Adds a filter for the given custom field
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user