Project

General

Profile

Defect #17852 » issues_controller.rb.diff

name zero, 2014-09-12 08:34

View differences:

issues_controller.rb Fri Sep 12 08:05:33 2014
104 104
  end
105 105

  
106 106
  def show
107
    @journals = @issue.journals.includes(:user, :details).reorder("#{Journal.table_name}.id ASC").all
107
    @journals = @issue.journals.includes(:user, :details).reorder("#{Journal.table_name}.created_on ASC").all
108 108
    @journals.each_with_index {|j,i| j.indice = i+1}
109 109
    @journals.reject!(&:private_notes?) unless User.current.allowed_to?(:view_private_notes, @issue.project)
110 110
    Journal.preload_journals_details_custom_fields(@journals)
(1-1/2)