Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-06-19 14:20:42 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-06-19 14:20:42 +0400
commitf3369e3a004ad01176b9191e2cb494866f91b637 (patch)
treee3b64871fbb73e7289af13ef6b9b2aa00e199e93 /app/controllers/admin/projects_controller.rb
parent67934145e88e439c4266d6a4f19372f170fc6095 (diff)
Fix project trasnfer for admin area
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/controllers/admin/projects_controller.rb')
-rw-r--r--app/controllers/admin/projects_controller.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/app/controllers/admin/projects_controller.rb b/app/controllers/admin/projects_controller.rb
index d2f86369b58..1c7c09d0cd4 100644
--- a/app/controllers/admin/projects_controller.rb
+++ b/app/controllers/admin/projects_controller.rb
@@ -23,13 +23,9 @@ class Admin::ProjectsController < Admin::ApplicationController
end
def transfer
- result = ::Projects::TransferService.new(@project, current_user, project: params).execute(:admin)
+ ::Projects::TransferService.new(@project, current_user, params.dup).execute
- if result
- redirect_to [:admin, @project]
- else
- render :show
- end
+ redirect_to [:admin, @project.reload]
end
protected