summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-10-03 15:37:30 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-10-03 15:37:30 +0000
commit8249bdbe15421c564ee743b49666b5ef6a79b814 (patch)
tree917b7d9fb1d457c6e1eb43c793ea382237913e92
parent753afc2e2b3e0865f901a952544654e409567216 (diff)
downloadredmine-8249bdbe15421c564ee743b49666b5ef6a79b814.tar.gz
redmine-8249bdbe15421c564ee743b49666b5ef6a79b814.zip
add empty line after guard clause to TimelogController
git-svn-id: http://svn.redmine.org/redmine/trunk@20120 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/controllers/timelog_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb
index b694137e8..bbb25d081 100644
--- a/app/controllers/timelog_controller.rb
+++ b/app/controllers/timelog_controller.rb
@@ -278,6 +278,7 @@ class TimelogController < ApplicationController
raise ActiveRecord::RecordNotFound if @time_entries.empty?
raise Unauthorized unless @time_entries.all? {|t| t.editable_by?(User.current)}
+
@projects = @time_entries.collect(&:project).compact.uniq
@project = @projects.first if @projects.size == 1
rescue ActiveRecord::RecordNotFound