Unescape back_url param before calling redirect_to.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1893 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-09-21 12:45:22 +00:00
parent e1c4659752
commit 8a356baf3e
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -194,7 +194,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].blank? ? {:action => 'details', :project_id => @time_entry.project} : params[:back_url])
redirect_back_or_default :action => 'details', :project_id => @time_entry.project
return
end
end