summaryrefslogtreecommitdiffstats
path: root/app/controllers/timelog_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-10-29 14:19:25 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-10-29 14:19:25 +0000
commitf7782c46480f8d5ab995c988ea265d12eb7ad0a9 (patch)
tree756bf0aa9336419d2a56e90a660f1fc64ab79d75 /app/controllers/timelog_controller.rb
parented4c0886e2af2bbd3d6efa08f59d20c783843ef4 (diff)
downloadredmine-f7782c46480f8d5ab995c988ea265d12eb7ad0a9.tar.gz
redmine-f7782c46480f8d5ab995c988ea265d12eb7ad0a9.zip
Preload project and user.
git-svn-id: http://svn.redmine.org/redmine/trunk@15941 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/timelog_controller.rb')
-rw-r--r--app/controllers/timelog_controller.rb3
1 files changed, 2 insertions, 1 deletions
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 {