diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-26 19:11:07 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-26 19:11:07 +0000 |
commit | f79f19f84c3b30b47280592a4ab8eb06dafb168f (patch) | |
tree | cf6283d95cf60783ed870a3758686428db43e168 /app/controllers/timelog_controller.rb | |
parent | 0fd9b102be7dec664c8df1ddb802fac9ba8cea79 (diff) | |
download | redmine-f79f19f84c3b30b47280592a4ab8eb06dafb168f.tar.gz redmine-f79f19f84c3b30b47280592a4ab8eb06dafb168f.zip |
Fixed: timelog redirects inappropriately when :back_url is blank (#1524).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1589 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/timelog_controller.rb')
-rw-r--r-- | app/controllers/timelog_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb index 2b763129e..2e257c5aa 100644 --- a/app/controllers/timelog_controller.rb +++ b/app/controllers/timelog_controller.rb @@ -180,7 +180,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(params[:back_url] || {:action => 'details', :project_id => @time_entry.project}) + redirect_to(params[:back_url].blank? ? {:action => 'details', :project_id => @time_entry.project} : params[:back_url]) return end @activities = Enumeration::get_values('ACTI') |