From: Jean-Philippe Lang Date: Sun, 10 Jul 2016 15:56:12 +0000 (+0000) Subject: Preload issues project. X-Git-Tag: 3.4.0~835 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=21c4665e2a35213dea99dcf3562ea8a89b3c7c81;p=redmine.git Preload issues project. git-svn-id: http://svn.redmine.org/redmine/trunk@15626 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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 }