From 59427dcfbfc2bf11faa538b6d89ded11e4c415ca Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 6 Jul 2008 11:05:31 +0000 Subject: [PATCH] Merged r1589 from trunk. git-svn-id: http://redmine.rubyforge.org/svn/branches/0.7-stable@1632 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/timelog_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb index 29c2635d6..49758fad2 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(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') -- 2.39.5