mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-01 03:57:15 +00: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:
parent
ed4c0886e2
commit
f7782c4648
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user