diff options
author | Go MAEDA <maeda@farend.jp> | 2021-02-06 05:03:23 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-02-06 05:03:23 +0000 |
commit | cbac878ee441b7fd0af891b7c0e310cce6938c4b (patch) | |
tree | 1f67213cd77227654cd9713ac333dfdffecc6005 /app/controllers | |
parent | 252c28fa269e740402e6b3c4cc1a2230190fb64c (diff) | |
download | redmine-cbac878ee441b7fd0af891b7c0e310cce6938c4b.tar.gz redmine-cbac878ee441b7fd0af891b7c0e310cce6938c4b.zip |
Ignore from search module params sent with empty values (#34615).
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@20738 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/search_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb index d6bb2dd94..1a4a12fcc 100644 --- a/app/controllers/search_controller.rb +++ b/app/controllers/search_controller.rb @@ -63,7 +63,7 @@ class SearchController < ApplicationController @object_types = @object_types.select {|o| User.current.allowed_to?("view_#{o}".to_sym, projects_to_search)} end - @scope = @object_types.select {|t| params[t]} + @scope = @object_types.select {|t| params[t].present?} @scope = @object_types if @scope.empty? fetcher = Redmine::Search::Fetcher.new( |