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:
parent
15c85ededd
commit
9b6f53219f
|
@ -334,6 +334,9 @@ class IssueQuery < Query
|
||||||
offset(options[:offset])
|
offset(options[:offset])
|
||||||
|
|
||||||
scope = scope.preload(:custom_values)
|
scope = scope.preload(:custom_values)
|
||||||
|
if has_column?(:author)
|
||||||
|
scope = scope.preload(:author)
|
||||||
|
end
|
||||||
|
|
||||||
issues = scope.all
|
issues = scope.all
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue