Commit 621f127c authored by jplang's avatar jplang

Sort journals by created_on then id (#14881).

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 02fe789b
......@@ -96,7 +96,7 @@ class IssuesController < ApplicationController
def show
@journals = @issue.journals.includes(:user, :details).
references(:user, :details).
reorder("#{Journal.table_name}.id ASC").to_a
reorder(:created_on, :id).to_a
@journals.each_with_index {|j,i| j.indice = i+1}
@journals.reject!(&:private_notes?) unless User.current.allowed_to?(:view_private_notes, @issue.project)
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