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:
parent
ceb7e346a7
commit
88568da451
|
@ -333,9 +333,7 @@ class IssueQuery < Query
|
||||||
limit(options[:limit]).
|
limit(options[:limit]).
|
||||||
offset(options[:offset])
|
offset(options[:offset])
|
||||||
|
|
||||||
if has_custom_field_column?
|
scope = scope.preload(:custom_values)
|
||||||
scope = scope.preload(:custom_values)
|
|
||||||
end
|
|
||||||
|
|
||||||
issues = scope.all
|
issues = scope.all
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue