]> source.dussan.org Git - redmine.git/commitdiff
Fix that "Associated revisions" tab has no content when the user displays comments...
authorGo MAEDA <maeda@farend.jp>
Sat, 5 Oct 2019 23:57:33 +0000 (23:57 +0000)
committerGo MAEDA <maeda@farend.jp>
Sat, 5 Oct 2019 23:57:33 +0000 (23:57 +0000)
Patch by José Esteves.

git-svn-id: http://svn.redmine.org/redmine/trunk@18598 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/issues_controller.rb

index 79077017c0b571e7381100279fedd7144694a1ff..06e1cce1f44a35a583cad4f74d81112c19aa3729 100644 (file)
@@ -204,7 +204,7 @@ class IssuesController < ApplicationController
       render :partial => 'issues/tabs/time_entries', :locals => {:time_entries => @time_entries}
     when 'changesets'
       @changesets = @issue.changesets.visible.preload(:repository, :user).to_a
-      changesets.reverse! if User.current.wants_comments_in_reverse_order?
+      @changesets.reverse! if User.current.wants_comments_in_reverse_order?
       render :partial => 'issues/tabs/changesets', :locals => {:changesets => @changesets}
     end
   end