diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-09-26 18:04:54 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-09-26 18:04:54 +0000 |
commit | 76fcf136d0fa3b5d0e87bdc6ac91e0d6f80463e5 (patch) | |
tree | 373d88a304fb2506ce6b3113a09cd84a5e6011db /app/controllers/projects_controller.rb | |
parent | 83bfb8cd2b0a877f89102ec5d2fe1bf481e7d9a3 (diff) | |
download | redmine-76fcf136d0fa3b5d0e87bdc6ac91e0d6f80463e5.tar.gz redmine-76fcf136d0fa3b5d0e87bdc6ac91e0d6f80463e5.zip |
Redirect to project settings after copying a project. #6443
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4185 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r-- | app/controllers/projects_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index f16349329..c3efbfd9f 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -125,13 +125,13 @@ class ProjectsController < ApplicationController if validate_parent_id && @project.copy(@source_project, :only => params[:only]) @project.set_allowed_parent!(params[:project]['parent_id']) if params[:project].has_key?('parent_id') flash[:notice] = l(:notice_successful_create) - redirect_to :controller => 'admin', :action => 'projects' + redirect_to :controller => 'projects', :action => 'settings' elsif !@project.new_record? # Project was created # But some objects were not copied due to validation failures # (eg. issues from disabled trackers) # TODO: inform about that - redirect_to :controller => 'admin', :action => 'projects' + redirect_to :controller => 'projects', :action => 'settings' end end end |