]> source.dussan.org Git - redmine.git/commitdiff
Preload issues project.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 10 Jul 2016 15:56:12 +0000 (15:56 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 10 Jul 2016 15:56:12 +0000 (15:56 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@15626 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/versions_controller.rb

index beb0f16a3b5cd0da1eeeb0bfa5134c36010f61f2..fa99951981d602ee348cd1047cabbd7913827c48 100644 (file)
@@ -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
       }