git-svn-id: http://svn.redmine.org/redmine/trunk@12911 e93f8b46-1217-0410-a6f0-8f06a7374b81tags/2.6.0
@@ -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 | |||