summaryrefslogtreecommitdiffstats
path: root/app/controllers/timelog_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-04-16 17:27:53 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-04-16 17:27:53 +0000
commit1a4f81163d2c66e9827d674d32066865ef7e4bd0 (patch)
tree710b3fe84c2410b0a95dd83635931b3f4c420384 /app/controllers/timelog_controller.rb
parent7061f73708336881660c763aa535c9b327610c70 (diff)
downloadredmine-1a4f81163d2c66e9827d674d32066865ef7e4bd0.tar.gz
redmine-1a4f81163d2c66e9827d674d32066865ef7e4bd0.zip
Redirected user to where he is coming from after logging hours (#1062).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1354 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/timelog_controller.rb')
-rw-r--r--app/controllers/timelog_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb
index 2c90093bd..29c2635d6 100644
--- a/app/controllers/timelog_controller.rb
+++ b/app/controllers/timelog_controller.rb
@@ -172,7 +172,7 @@ class TimelogController < ApplicationController
@time_entry.attributes = params[:time_entry]
if request.post? and @time_entry.save
flash[:notice] = l(:notice_successful_update)
- redirect_to :action => 'details', :project_id => @time_entry.project
+ redirect_to(params[:back_url] || {:action => 'details', :project_id => @time_entry.project})
return
end
@activities = Enumeration::get_values('ACTI')