@@ -108,7 +108,13 class ProjectsController < ApplicationController | |||
|
108 | 108 | @project.set_allowed_parent!(params[:project]['parent_id']) if params[:project].has_key?('parent_id') |
|
109 | 109 | flash[:notice] = l(:notice_successful_create) |
|
110 | 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 | 118 | end |
|
113 | 119 | rescue ActiveRecord::RecordNotFound |
|
114 | 120 | redirect_to :controller => 'admin', :action => 'projects' |
General Comments 0
You need to be logged in to leave comments.
Login now