]> source.dussan.org Git - redmine.git/commitdiff
Merged r12894 (#16091).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 15 Feb 2014 09:01:16 +0000 (09:01 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 15 Feb 2014 09:01:16 +0000 (09:01 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/2.5-stable@12895 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue_query.rb

index 2dd98e65428d522a9018cd63c567855c91f91b58..9a6d278fe154219308ec861f03ad1e26a8306a9b 100644 (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