diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-10 15:56:12 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-10 15:56:12 +0000 |
commit | 21c4665e2a35213dea99dcf3562ea8a89b3c7c81 (patch) | |
tree | d1bb426b492fd49d68f1b00d43da5f4bb89c6f5c /app/controllers/versions_controller.rb | |
parent | 6901fc08f6ab7a97c01016b47d0467eca7a86b49 (diff) | |
download | redmine-21c4665e2a35213dea99dcf3562ea8a89b3c7c81.tar.gz redmine-21c4665e2a35213dea99dcf3562ea8a89b3c7c81.zip |
Preload issues project.
git-svn-id: http://svn.redmine.org/redmine/trunk@15626 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/versions_controller.rb')
-rw-r--r-- | app/controllers/versions_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 } |