##// END OF EJS Templates
Sort changesets in the same order as comments on the issue details view (#1546)....
Jean-Philippe Lang -
r2455:0101e609f72a
parent child
Show More
@@ -98,6 +98,8 class IssuesController < ApplicationController
98 98 @journals = @issue.journals.find(:all, :include => [:user, :details], :order => "#{Journal.table_name}.created_on ASC")
99 99 @journals.each_with_index {|j,i| j.indice = i+1}
100 100 @journals.reverse! if User.current.wants_comments_in_reverse_order?
101 @changesets = @issue.changesets
102 @changesets.reverse! if User.current.wants_comments_in_reverse_order?
101 103 @allowed_statuses = @issue.new_statuses_allowed_to(User.current)
102 104 @edit_allowed = User.current.allowed_to?(:edit_issues, @project)
103 105 @priorities = Enumeration.priorities
@@ -86,10 +86,10 end %>
86 86
87 87 </div>
88 88
89 <% if @issue.changesets.any? && User.current.allowed_to?(:view_changesets, @project) %>
89 <% if @changesets.any? && User.current.allowed_to?(:view_changesets, @project) %>
90 90 <div id="issue-changesets">
91 91 <h3><%=l(:label_associated_revisions)%></h3>
92 <%= render :partial => 'changesets', :locals => { :changesets => @issue.changesets} %>
92 <%= render :partial => 'changesets', :locals => { :changesets => @changesets} %>
93 93 </div>
94 94 <% end %>
95 95
General Comments 0
You need to be logged in to leave comments. Login now