##// END OF EJS Templates
Preload changeset associations (#19706)....
Jean-Philippe Lang -
r13857:b64601888fcc
parent child
Show More
@@ -103,7 +103,7 class IssuesController < ApplicationController
103 103 @journals.select! {|journal| journal.notes? || journal.visible_details.any?}
104 104 @journals.reverse! if User.current.wants_comments_in_reverse_order?
105 105
106 @changesets = @issue.changesets.visible.to_a
106 @changesets = @issue.changesets.visible.preload(:repository, :user).to_a
107 107 @changesets.reverse! if User.current.wants_comments_in_reverse_order?
108 108
109 109 @relations = @issue.relations.select {|r| r.other_issue(@issue) && r.other_issue(@issue).visible? }
General Comments 0
You need to be logged in to leave comments. Login now