From 757f378ab14f584d5515ec203592f4052c18e542 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 18 Dec 2016 08:34:43 +0000 Subject: [PATCH] Sort completed versions in reverse order on the roadmap (#23137). git-svn-id: http://svn.redmine.org/redmine/trunk@16088 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/versions_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/versions_controller.rb b/app/controllers/versions_controller.rb index 84c7980eb..afc2e1542 100644 --- a/app/controllers/versions_controller.rb +++ b/app/controllers/versions_controller.rb @@ -40,7 +40,7 @@ class VersionsController < ApplicationController @versions += @project.rolled_up_versions.visible.preload(:custom_values) if @with_subprojects @versions = @versions.to_a.uniq.sort unless params[:completed] - @completed_versions = @versions.select(&:completed?) + @completed_versions = @versions.select(&:completed?).reverse @versions -= @completed_versions end -- 2.39.5