]> source.dussan.org Git - redmine.git/commitdiff
Fixed no method error due to typo.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 12 Apr 2011 19:50:48 +0000 (19:50 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 12 Apr 2011 19:50:48 +0000 (19:50 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5446 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/issues_controller.rb

index 18484bef38cfc5e62ffd79cb11d69d95509ba8ab..0680d3e1a9a3f396667fb13e72d1f80853a72e4e 100644 (file)
@@ -105,7 +105,7 @@ class IssuesController < ApplicationController
   def show
     @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
+    @journals.reverse! if User.current.wants_comments_in_reverse_order?
     
     if User.current.allowed_to?(:view_changesets, @project)
       @changesets = @issue.changesets.visible.all