Commit 401b7976 authored by Phil Hughes's avatar Phil Hughes

Fixed bug when group_ids not present when creating

parent 2b41db92
......@@ -55,6 +55,7 @@ class Projects::ProjectMembersController < Projects::ApplicationController
current_user: current_user
)
if params[:group_ids].present?
group_ids = params[:group_ids].split(',')
groups = Group.where(id: group_ids)
......@@ -65,6 +66,7 @@ class Projects::ProjectMembersController < Projects::ApplicationController
expires_at: params[:expires_at]
)
end
end
redirect_to namespace_project_project_members_path(@project.namespace, @project)
end
......
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