Commit 87040f9d authored by jplang's avatar jplang
Browse files

Preload project and user.

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 6a93e1dc
......@@ -45,7 +45,8 @@ class TimelogController < ApplicationController
sort_init(@query.sort_criteria.empty? ? [['spent_on', 'desc']] : @query.sort_criteria)
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 {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment