diff --git a/vendor/plugins/acts_as_searchable/lib/acts_as_searchable.rb b/vendor/plugins/acts_as_searchable/lib/acts_as_searchable.rb index 9ec0e7d6f..9a81f363f 100644 --- a/vendor/plugins/acts_as_searchable/lib/acts_as_searchable.rb +++ b/vendor/plugins/acts_as_searchable/lib/acts_as_searchable.rb @@ -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 ?)"}