Browse Source

Preload issues project.

git-svn-id: http://svn.redmine.org/redmine/trunk@15626 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/3.4.0
Jean-Philippe Lang 8 years ago
parent
commit
21c4665e2a
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      app/controllers/versions_controller.rb

+ 1
- 0
app/controllers/versions_controller.rb View 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
}

Loading…
Cancel
Save