Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-01-17 18:22:48 +0300
committerPhil Hughes <me@iamphill.com>2017-01-17 18:22:48 +0300
commit92682b8ae1ee0620916bdebfe3194967ce1eb2e7 (patch)
treef5b43dff0bf4f6ab5d8d3026accb5e3f3b87d9ba /app/controllers/autocomplete_controller.rb
parente7fdb1aae5a61b30f66ea3489d4e0759ed8ea3a1 (diff)
Shows current user on top of filtered dropdown list
Diffstat (limited to 'app/controllers/autocomplete_controller.rb')
-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?