From 11a1f02cc72a5174f246d525823899b69bb0a18c Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 25 Jul 2017 12:07:52 +0000 Subject: [PATCH] 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 --- lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb | 3 --- 1 file changed, 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). -- 2.39.5