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>2012-01-30 01:59:12 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-01-30 01:59:12 +0400
commitfca1ffb888e506f7ab0551d01321e462c09d5112 (patch)
tree216aa7b0fe4930ad31f9daad403e197a3798a0b3 /app/controllers/admin/projects_controller.rb
parent20721eff1c9a9a8f291d68538f209091b92961b4 (diff)
Bootstrap: Issues, Merge Requests, SSH Key completed
Diffstat (limited to 'app/controllers/admin/projects_controller.rb')
-rw-r--r--app/controllers/admin/projects_controller.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/admin/projects_controller.rb b/app/controllers/admin/projects_controller.rb
index 813e135b77f..2c6363c6f3e 100644
--- a/app/controllers/admin/projects_controller.rb
+++ b/app/controllers/admin/projects_controller.rb
@@ -52,6 +52,12 @@ class Admin::ProjectsController < ApplicationController
def update
@admin_project = Project.find_by_code(params[:id])
+ owner_id = params[:project][:owner_id]
+
+ if owner_id
+ @admin_project.owner = User.find(owner_id)
+ end
+
if @admin_project.update_attributes(params[:project])
redirect_to [:admin, @admin_project], notice: 'Project was successfully updated.'
else