Fixed: 'search titles only' box ignored after one search is done on titles only.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1684 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
9d3dfea1ac
commit
aaca2c50e5
|
@ -78,7 +78,7 @@ module Redmine
|
|||
end
|
||||
|
||||
columns = searchable_options[:columns]
|
||||
columns.slice!(1..-1) if options[:titles_only]
|
||||
columns = columns[0..0] if options[:titles_only]
|
||||
|
||||
token_clauses = columns.collect {|column| "(LOWER(#{column}) LIKE ?)"}
|
||||
|
||||
|
|
Loading…
Reference in New Issue