Patch #1524 ยป back_url.patch
app/controllers/timelog_controller.rb (working copy) | ||
---|---|---|
180 | 180 |
@time_entry.attributes = params[:time_entry] |
181 | 181 |
if request.post? and @time_entry.save |
182 | 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 | 184 |
return |
185 | 185 |
end |
186 | 186 |
@activities = Enumeration::get_values('ACTI') |