From 8249bdbe15421c564ee743b49666b5ef6a79b814 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 3 Oct 2020 15:37:30 +0000 Subject: [PATCH] add empty line after guard clause to TimelogController git-svn-id: http://svn.redmine.org/redmine/trunk@20120 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/timelog_controller.rb | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5