Merged r12894 (#16091).

git-svn-id: http://svn.redmine.org/redmine/branches/2.5-stable@12895 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2014-02-15 09:01:16 +00:00
parent 4308dd7d4c
commit 97434b5aaa
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