diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-05-16 13:28:35 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-05-16 13:28:35 +0300 |
commit | 85cecc0b2ef25ef4e4dc56583b0e202400168abb (patch) | |
tree | bc4839c2a61e0bd888a7f6cccdfd3002515eb501 /app/controllers/groups_controller.rb | |
parent | cb58e1cbd74a76c2e25f56e8df1f1f494d14128a (diff) | |
download | gitlab-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.rb | 2 |
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 |