summaryrefslogtreecommitdiff
path: root/app/controllers/autocomplete_controller.rb
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-06-15 08:53:11 +0100
committerPhil Hughes <me@iamphill.com>2016-06-15 08:53:11 +0100
commite412c1f25e9abfebaa7b5669e1acf7f26a66d722 (patch)
treeb04bbd5277399d66a974a0ae38e46578bb3f9295 /app/controllers/autocomplete_controller.rb
parentbf4455d14659f1fde6391164b38310d361bf407d (diff)
downloadgitlab-ce-e412c1f25e9abfebaa7b5669e1acf7f26a66d722.tar.gz
Fixed issue with move dropdown not being searchableproject-move-dropdown-search
Closes #18634
Diffstat (limited to 'app/controllers/autocomplete_controller.rb')
-rw-r--r--app/controllers/autocomplete_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/autocomplete_controller.rb b/app/controllers/autocomplete_controller.rb
index 3865b2d61fd..c89678cf2d8 100644
--- a/app/controllers/autocomplete_controller.rb
+++ b/app/controllers/autocomplete_controller.rb
@@ -35,6 +35,7 @@ class AutocompleteController < ApplicationController
project = Project.find_by_id(params[:project_id])
projects = current_user.authorized_projects
+ projects = projects.search(params[:search]) if params[:search].present?
projects = projects.select do |project|
current_user.can?(:admin_issue, project)
end