summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/timelog_controller.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb
index 220954735..e1895f5de 100644
--- a/app/controllers/timelog_controller.rb
+++ b/app/controllers/timelog_controller.rb
@@ -127,8 +127,12 @@ class TimelogController < ApplicationController
if @time_entry.save
respond_to do |format|
format.html {
- flash[:notice] = l(:notice_successful_update)
- redirect_back_or_default :action => 'index', :project_id => @time_entry.project
+ flash[:notice] = l(:notice_successful_create)
+ if params[:continue]
+ redirect_to :action => 'new', :project_id => @time_entry.project, :issue_id => @time_entry.issue
+ else
+ redirect_back_or_default :action => 'index', :project_id => @time_entry.project
+ end
}
format.api { render :action => 'show', :status => :created, :location => time_entry_url(@time_entry) }
end