summaryrefslogtreecommitdiff
path: root/app/controllers/groups_controller.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-05-16 13:28:35 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-05-16 13:28:35 +0300
commit85cecc0b2ef25ef4e4dc56583b0e202400168abb (patch)
treebc4839c2a61e0bd888a7f6cccdfd3002515eb501 /app/controllers/groups_controller.rb
parentcb58e1cbd74a76c2e25f56e8df1f1f494d14128a (diff)
downloadgitlab-ce-85cecc0b2ef25ef4e4dc56583b0e202400168abb.tar.gz
Fix 500 error on group members search
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/controllers/groups_controller.rb')
-rw-r--r--app/controllers/groups_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb
index a3019b3ac78..ddaae6f0e8c 100644
--- a/app/controllers/groups_controller.rb
+++ b/app/controllers/groups_controller.rb
@@ -68,7 +68,7 @@ class GroupsController < ApplicationController
@members = group.users_groups
if params[:search].present?
- users = group.users.search(params[:search])
+ users = group.users.search(params[:search]).to_a
@members = @members.where(user_id: users)
end