##// END OF EJS Templates
Fixed: timelog redirects inappropriately when :back_url is blank (#1524)....
Jean-Philippe Lang -
r1575:f79f19f84c3b
parent child
Show More
@@ -180,7 +180,7 class TimelogController < ApplicationController
180 @time_entry.attributes = params[:time_entry]
180 @time_entry.attributes = params[:time_entry]
181 if request.post? and @time_entry.save
181 if request.post? and @time_entry.save
182 flash[:notice] = l(:notice_successful_update)
182 flash[:notice] = l(:notice_successful_update)
183 redirect_to(params[:back_url] || {:action => 'details', :project_id => @time_entry.project})
183 redirect_to(params[:back_url].blank? ? {:action => 'details', :project_id => @time_entry.project} : params[:back_url])
184 return
184 return
185 end
185 end
186 @activities = Enumeration::get_values('ACTI')
186 @activities = Enumeration::get_values('ACTI')
General Comments 0
You need to be logged in to leave comments. Login now