git-svn-id: http://svn.redmine.org/redmine/branches/3.0-stable@14250
e93f8b46-1217-0410-a6f0-
8f06a7374b81
@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? }
def render_descendants_tree(issue)
s = '<form><table class="list issues">'
- issue_list(issue.descendants.visible.sort_by(&:lft)) do |child, level|
+ issue_list(issue.descendants.visible.preload(:status, :priority, :tracker).sort_by(&:lft)) do |child, level|
css = "issue issue-#{child.id} hascontextmenu"
css << " idnt idnt-#{level}" if level > 0
s << content_tag('tr',