BigW Consortium Gitlab

Commit aac80d76 by Phil Hughes

Group links search test fix

parent b61cd8a3
......@@ -13,6 +13,10 @@ class Projects::ProjectMembersController < Projects::ApplicationController
if params[:search].present?
users = @project.users.search(params[:search]).to_a
@project_members = @project_members.where(user_id: users)
group_ids = @groups.pluck(:group_id)
group_ids = Group.where(id: group_ids).search(params[:search]).to_a
@groups = @project.project_group_links.where(group_id: group_ids)
end
@project_members = @project_members.order('access_level DESC')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment