Explorar el Código

SQL server: non ASCII filter on issue subject does not work (#22405).

git-svn-id: http://svn.redmine.org/redmine/trunk@15351 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/3.3.0
Jean-Philippe Lang hace 8 años
padre
commit
c34a1d0f90
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      app/models/query.rb

+ 2
- 2
app/models/query.rb Ver fichero

@@ -909,8 +909,8 @@ class Query < ActiveRecord::Base

# Returns a SQL LIKE statement with wildcards
def sql_contains(db_field, value, match=true)
value = "'%#{self.class.connection.quote_string(value.to_s)}%'"
Redmine::Database.like(db_field, value, :match => match)
queried_class.send :sanitize_sql_for_conditions,
[Redmine::Database.like(db_field, '?', :match => match), "%#{value}%"]
end

# Adds a filter for the given custom field

Cargando…
Cancelar
Guardar