From f7782c46480f8d5ab995c988ea265d12eb7ad0a9 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 29 Oct 2016 14:19:25 +0000 Subject: Preload project and user. git-svn-id: http://svn.redmine.org/redmine/trunk@15941 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/timelog_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/controllers/timelog_controller.rb') diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb index 74168a493..9ae7a7252 100644 --- a/app/controllers/timelog_controller.rb +++ b/app/controllers/timelog_controller.rb @@ -45,7 +45,8 @@ class TimelogController < ApplicationController sort_init(@query.sort_criteria.empty? ? [['spent_on', 'desc']] : @query.sort_criteria) sort_update(@query.sortable_columns) scope = time_entry_scope(:order => sort_clause). - preload(:issue => [:project, :tracker, :status, :assigned_to, :priority]) + preload(:issue => [:project, :tracker, :status, :assigned_to, :priority]). + preload(:project, :user) respond_to do |format| format.html { -- cgit v1.2.3