Patch #261 » new_issue_redirect.txt
1 |
Index: C:/dev/workspace/redmine/app/controllers/issues_controller.rb |
---|---|
2 |
=================================================================== |
3 |
--- C:/dev/workspace/redmine/app/controllers/issues_controller.rb (revision 1108) |
4 |
+++ C:/dev/workspace/redmine/app/controllers/issues_controller.rb (working copy) |
5 |
@@ -132,7 +132,7 @@ |
6 |
attach_files(@issue, params[:attachments]) |
7 |
flash[:notice] = l(:notice_successful_create) |
8 |
Mailer.deliver_issue_add(@issue) if Setting.notified_events.include?('issue_added') |
9 |
- redirect_to :controller => 'issues', :action => 'index', :project_id => @project |
10 |
+ redirect_to(params[:back_to] || {:action => 'show', :id => @issue}) |
11 |
return |
12 |
end |
13 |
end |