From 41e82c4598767d9bfaf81b890b1597d072853a6c 2012-01-21 14:34:55 From: Jean-Philippe Lang Date: 2012-01-21 14:34:55 Subject: [PATCH] Keep back_url param for when continuing creating issues. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8692 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb index ee15a6c..277b730 100644 --- a/app/controllers/timelog_controller.rb +++ b/app/controllers/timelog_controller.rb @@ -134,9 +134,9 @@ class TimelogController < ApplicationController flash[:notice] = l(:notice_successful_create) if params[:continue] if params[:project_id] - redirect_to :action => 'new', :project_id => @time_entry.project, :issue_id => @time_entry.issue + redirect_to :action => 'new', :project_id => @time_entry.project, :issue_id => @time_entry.issue, :back_url => params[:back_url] else - redirect_to :action => 'new' + redirect_to :action => 'new', :back_url => params[:back_url] end else redirect_back_or_default :action => 'index', :project_id => @time_entry.project