diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-07-02 15:31:25 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-07-11 23:47:33 +0300 |
commit | b93053695a94822801a87ff2b1850999130842c1 (patch) | |
tree | f0dce4af945bf2c8cdfbb86bb34df92171a01ea2 /lib/api | |
parent | f94587eccbeda3bd0092588a12ddf9a586b29dce (diff) |
Fix transferring of project to another group using the API.
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/groups.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/groups.rb b/lib/api/groups.rb index e88b6e31775..024aeec2e14 100644 --- a/lib/api/groups.rb +++ b/lib/api/groups.rb @@ -74,9 +74,9 @@ module API # POST /groups/:id/projects/:project_id post ":id/projects/:project_id" do authenticated_as_admin! - group = Group.find(params[:id]) + group = Group.find_by(id: params[:id]) project = Project.find(params[:project_id]) - result = ::Projects::TransferService.new(project, current_user, namespace_id: group.id).execute + result = ::Projects::TransferService.new(project, current_user).execute(group) if result present group |