From 97434b5aaa483cb3ce304f864d00f094ad538184 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 15 Feb 2014 09:01:16 +0000 Subject: [PATCH] Merged r12894 (#16091). git-svn-id: http://svn.redmine.org/redmine/branches/2.5-stable@12895 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/issue_query.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/models/issue_query.rb b/app/models/issue_query.rb index 2dd98e654..9a6d278fe 100644 --- a/app/models/issue_query.rb +++ b/app/models/issue_query.rb @@ -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 -- 2.39.5