summaryrefslogtreecommitdiffstats
path: root/app/controllers/timelog_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-03-16 12:21:54 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-03-16 12:21:54 +0000
commita8fcf8487d4165741cf8bffe71ce6302c6aab4e2 (patch)
tree9057ac438d134a4f7209f9759b487e12f7edbc1d /app/controllers/timelog_controller.rb
parent5b6978a1f3f8d4aa6da9607d06217e4322b7feb8 (diff)
downloadredmine-a8fcf8487d4165741cf8bffe71ce6302c6aab4e2.tar.gz
redmine-a8fcf8487d4165741cf8bffe71ce6302c6aab4e2.zip
Add a time tracking block for 'My page' (#615).
It lists current user's time entries for the last 7 days across all projects, grouped by day with subtotals for each day, and a grand total. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1260 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/timelog_controller.rb')
-rw-r--r--app/controllers/timelog_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb
index 38c1fb04c..d767037eb 100644
--- a/app/controllers/timelog_controller.rb
+++ b/app/controllers/timelog_controller.rb
@@ -216,6 +216,8 @@ class TimelogController < ApplicationController
render_403 and return unless @time_entry.editable_by?(User.current)
@time_entry.destroy
flash[:notice] = l(:notice_successful_delete)
+ redirect_to :back
+ rescue RedirectBackError
redirect_to :action => 'details', :project_id => @time_entry.project
end