mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 18:47:03 +02: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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user