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:
Jean-Philippe Lang 2008-07-21 19:19:06 +00:00
parent 9d3dfea1ac
commit aaca2c50e5
1 changed files with 1 additions and 1 deletions

View File

@ -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 ?)"}