mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
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…
x
Reference in New Issue
Block a user