Commit 1435537c authored by jplang's avatar jplang

Preload changeset associations (#19706).

git-svn-id: https://svn.redmine.org/redmine/trunk@14239 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 933c1af2
......@@ -103,7 +103,7 @@ class IssuesController < ApplicationController
@journals.select! {|journal| journal.notes? || journal.visible_details.any?}
@journals.reverse! if User.current.wants_comments_in_reverse_order?
@changesets = @issue.changesets.visible.to_a
@changesets = @issue.changesets.visible.preload(:repository, :user).to_a
@changesets.reverse! if User.current.wants_comments_in_reverse_order?
@relations = @issue.relations.select {|r| r.other_issue(@issue) && r.other_issue(@issue).visible? }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment