From 2158e3f2c6cdc582876e8dbf306c4883c9de9054 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sat, 5 Oct 2019 23:57:33 +0000 Subject: [PATCH] Fix that "Associated revisions" tab has no content when the user displays comments in reverse chronological order (#32198, #3058). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Patch by José Esteves. git-svn-id: http://svn.redmine.org/redmine/trunk@18598 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/issues_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 79077017c..06e1cce1f 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -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 -- 2.39.5