##// END OF EJS Templates
Do not display the copy form when project copy is created....
Jean-Philippe Lang -
r3128:9c1efcfa4843
parent child
Show More
@@ -108,7 +108,13 class ProjectsController < ApplicationController
108 @project.set_allowed_parent!(params[:project]['parent_id']) if params[:project].has_key?('parent_id')
108 @project.set_allowed_parent!(params[:project]['parent_id']) if params[:project].has_key?('parent_id')
109 flash[:notice] = l(:notice_successful_create)
109 flash[:notice] = l(:notice_successful_create)
110 redirect_to :controller => 'admin', :action => 'projects'
110 redirect_to :controller => 'admin', :action => 'projects'
111 end
111 elsif !@project.new_record?
112 # Project was created
113 # But some objects were not copied due to validation failures
114 # (eg. issues from disabled trackers)
115 # TODO: inform about that
116 redirect_to :controller => 'admin', :action => 'projects'
117 end
112 end
118 end
113 rescue ActiveRecord::RecordNotFound
119 rescue ActiveRecord::RecordNotFound
114 redirect_to :controller => 'admin', :action => 'projects'
120 redirect_to :controller => 'admin', :action => 'projects'
General Comments 0
You need to be logged in to leave comments. Login now