Preload issue authors when displayed on the issue list (#16091).

git-svn-id: http://svn.redmine.org/redmine/trunk@12911 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2014-02-22 11:21:05 +00:00
parent 15c85ededd
commit 9b6f53219f
1 changed files with 3 additions and 0 deletions

View File

@ -334,6 +334,9 @@ class IssueQuery < Query
offset(options[:offset])
scope = scope.preload(:custom_values)
if has_column?(:author)
scope = scope.preload(:author)
end
issues = scope.all