Always preload issues custom values (#16091).

git-svn-id: http://svn.redmine.org/redmine/trunk@12894 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2014-02-15 08:59:45 +00:00
parent ceb7e346a7
commit 88568da451
1 changed files with 1 additions and 3 deletions

View File

@ -333,9 +333,7 @@ class IssueQuery < Query
limit(options[:limit]).
offset(options[:offset])
if has_custom_field_column?
scope = scope.preload(:custom_values)
end
scope = scope.preload(:custom_values)
issues = scope.all