From 1a1bfbfb07bdfa1d0f3fea3dc0ba5f56155b0c4f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 25 Oct 2009 10:56:32 +0000 Subject: [PATCH] Do not ignore parent project setting on project copy (#3386). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2974 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/projects_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index e17c790f1..fa8f35f87 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -105,6 +105,7 @@ class ProjectsController < ApplicationController @project = Project.new(params[:project]) @project.enabled_module_names = params[:enabled_modules] if @project.copy(params[:id], :only => params[:only]) + @project.set_parent!(params[:project]['parent_id']) if User.current.admin? && params[:project].has_key?('parent_id') flash[:notice] = l(:notice_successful_create) redirect_to :controller => 'admin', :action => 'projects' end