summaryrefslogtreecommitdiffstats
path: root/lib/plugins
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2017-07-25 12:07:52 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2017-07-25 12:07:52 +0000
commit11a1f02cc72a5174f246d525823899b69bb0a18c (patch)
tree785166b2a089dcfe8e826b6d4925a3f09336d8e7 /lib/plugins
parentedbc9611de355e7933793b1eb155474d88d46fbd (diff)
downloadredmine-11a1f02cc72a5174f246d525823899b69bb0a18c.tar.gz
redmine-11a1f02cc72a5174f246d525823899b69bb0a18c.zip
remove trailing white spaces from lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@16878 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/plugins')
-rw-r--r--lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb b/lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb
index cc4d4a2d8..ef95c911b 100644
--- a/lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb
+++ b/lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb
@@ -94,10 +94,8 @@ module Redmine
options[:limit]
)
queries += 1
-
if !options[:titles_only] && searchable_options[:search_custom_fields]
searchable_custom_fields = CustomField.where(:type => "#{self.name}CustomField", :searchable => true).to_a
-
if searchable_custom_fields.any?
fields_by_visibility = searchable_custom_fields.group_by {|field|
field.visibility_by_project_condition(searchable_options[:project_key], user, "#{CustomValue.table_name}.custom_field_id")
@@ -107,7 +105,6 @@ module Redmine
clauses << "(#{CustomValue.table_name}.custom_field_id IN (#{fields.map(&:id).join(',')}) AND (#{visibility}))"
end
visibility = clauses.join(' OR ')
-
r |= fetch_ranks_and_ids(
search_scope(user, projects, options).
joins(:custom_values).