mirror of
https://github.com/redmine/redmine.git
synced 2026-05-06 11:36:28 +02:00
Preload project and user.
git-svn-id: http://svn.redmine.org/redmine/trunk@15941 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user