From 21c4665e2a35213dea99dcf3562ea8a89b3c7c81 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 10 Jul 2016 15:56:12 +0000 Subject: [PATCH] Preload issues project. git-svn-id: http://svn.redmine.org/redmine/trunk@15626 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/versions_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/versions_controller.rb b/app/controllers/versions_controller.rb index beb0f16a3..fa9995198 100644 --- a/app/controllers/versions_controller.rb +++ b/app/controllers/versions_controller.rb @@ -66,6 +66,7 @@ class VersionsController < ApplicationController format.html { @issues = @version.fixed_issues.visible. includes(:status, :tracker, :priority). + preload(:project). reorder("#{Tracker.table_name}.position, #{Issue.table_name}.id"). to_a } -- 2.39.5