diff options
author | John Goerzen <jgoerzen@complete.org> | 2008-03-13 13:59:21 +0000 |
---|---|---|
committer | John Goerzen <jgoerzen@complete.org> | 2008-03-13 13:59:21 +0000 |
commit | c67c375357ffe8560ebe161a67d1ce6c481f5055 (patch) | |
tree | 79c115b9e63c76d395109af8c1d372cd419cb51b | |
parent | 87fb78be0b48fb86ce1cc823f836ffe5a7bf3ad2 (diff) | |
download | redmine-c67c375357ffe8560ebe161a67d1ce6c481f5055.tar.gz redmine-c67c375357ffe8560ebe161a67d1ce6c481f5055.zip |
Redirect to issue page after creating a new issue
Previous behavior was to redirect to the issue list with a "successful
creation" message. This patch will redirect to the page for the
newly-created issue, still with the "successful creation" message.
This matches the behavior after editing an issue and also provides
instant feedback for the user to see if anything went wrong.
Closes #261 and uses the patch contained therein
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1243 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/controllers/issues_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 263675040..04ff51ce9 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -142,7 +142,7 @@ class IssuesController < ApplicationController attach_files(@issue, params[:attachments]) flash[:notice] = l(:notice_successful_create) Mailer.deliver_issue_add(@issue) if Setting.notified_events.include?('issue_added') - redirect_to :controller => 'issues', :action => 'index', :project_id => @project + redirect_to :controller => 'issues', :action => 'show', :id => @issue, :project_id => @project return end end |