Merged r14407 from trunk to 3.1-stable (#11253, #20456)

Preload total spent time on the issue list with 1 query.

git-svn-id: http://svn.redmine.org/redmine/branches/3.1-stable@14534 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2015-08-31 03:38:23 +00:00
parent 74be675c94
commit 925db0c28f
2 changed files with 16 additions and 4 deletions

View File

@@ -353,6 +353,9 @@ class IssueQuery < Query
if has_column?(:spent_hours)
Issue.load_visible_spent_hours(issues)
end
if has_column?(:total_spent_hours)
Issue.load_visible_total_spent_hours(issues)
end
if has_column?(:relations)
Issue.load_visible_relations(issues)
end