removed OpenProject core version related switch

in issue boxes controller
Check is not needed anymore see: 6504ddc744
pull/6827/head
Christian Ratz 12 years ago
parent 6504ddc744
commit 69672a7772
  1. 10
      app/controllers/issue_boxes_controller.rb

@ -52,13 +52,7 @@ class IssueBoxesController < IssuesController
private
def load_journals
if Redmine::VERSION::MAJOR >= 2
@journals = @issue.journals.find(:all, :include => [:user], :order => "#{Journal.table_name}.created_at ASC")
@journals.reverse! if User.current.wants_comments_in_reverse_order?
else
@journals = @issue.journals.find(:all, :include => [:user, :details], :order => "#{Journal.table_name}.created_on ASC")
@journals.each_with_index {|j,i| j.indice = i+1}
@journals.reverse! if User.current.wants_comments_in_reverse_order?
end
@journals = @issue.journals.find(:all, :include => [:user], :order => "#{Journal.table_name}.created_at ASC")
@journals.reverse! if User.current.wants_comments_in_reverse_order?
end
end

Loading…
Cancel
Save