summaryrefslogtreecommitdiffstats
path: root/app/controllers/timelog_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-21 14:34:55 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-21 14:34:55 +0000
commit41e82c4598767d9bfaf81b890b1597d072853a6c (patch)
tree8f705f2ba385cf0301f754de4b75fb2ecfacff3c /app/controllers/timelog_controller.rb
parent41eab6615b31185831b110b5e3d29dc08cefceca (diff)
downloadredmine-41e82c4598767d9bfaf81b890b1597d072853a6c.tar.gz
redmine-41e82c4598767d9bfaf81b890b1597d072853a6c.zip
Keep back_url param for when continuing creating issues.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8692 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/timelog_controller.rb')
-rw-r--r--app/controllers/timelog_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb
index ee15a6c8a..277b730a1 100644
--- a/app/controllers/timelog_controller.rb
+++ b/app/controllers/timelog_controller.rb
@@ -134,9 +134,9 @@ class TimelogController < ApplicationController
flash[:notice] = l(:notice_successful_create)
if params[:continue]
if params[:project_id]
- redirect_to :action => 'new', :project_id => @time_entry.project, :issue_id => @time_entry.issue
+ redirect_to :action => 'new', :project_id => @time_entry.project, :issue_id => @time_entry.issue, :back_url => params[:back_url]
else
- redirect_to :action => 'new'
+ redirect_to :action => 'new', :back_url => params[:back_url]
end
else
redirect_back_or_default :action => 'index', :project_id => @time_entry.project