summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-01-17 10:22:48 -0500
committerPhil Hughes <me@iamphill.com>2017-01-17 10:22:48 -0500
commit92682b8ae1ee0620916bdebfe3194967ce1eb2e7 (patch)
treef5b43dff0bf4f6ab5d8d3026accb5e3f3b87d9ba /app/controllers
parente7fdb1aae5a61b30f66ea3489d4e0759ed8ea3a1 (diff)
downloadgitlab-ce-92682b8ae1ee0620916bdebfe3194967ce1eb2e7.tar.gz
Shows current user on top of filtered dropdown listcurrent-user-filter-top
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/autocomplete_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/autocomplete_controller.rb b/app/controllers/autocomplete_controller.rb
index 5f13353baa1..6db4e1dc1bc 100644
--- a/app/controllers/autocomplete_controller.rb
+++ b/app/controllers/autocomplete_controller.rb
@@ -18,7 +18,7 @@ class AutocompleteController < ApplicationController
if params[:search].blank?
# Include current user if available to filter by "Me"
if params[:current_user].present? && current_user
- @users = [*@users, current_user]
+ @users = [current_user, *@users]
end
if params[:author_id].present?