From f7782c46480f8d5ab995c988ea265d12eb7ad0a9 2016-10-29 14:19:25 From: Jean-Philippe Lang Date: 2016-10-29 14:19:25 Subject: [PATCH] Preload project and user. git-svn-id: http://svn.redmine.org/redmine/trunk@15941 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb index 74168a4..9ae7a72 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 {