From 56236f51ff2e72582046f9a3d3614c56e34124a5 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Thu, 4 Feb 2021 04:32:29 +0000 Subject: [PATCH] Only show currently visible projects in the project jump box (#34595). Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@20735 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/project_jump_box.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine/project_jump_box.rb b/lib/redmine/project_jump_box.rb index b8f332008..da5d93644 100644 --- a/lib/redmine/project_jump_box.rb +++ b/lib/redmine/project_jump_box.rb @@ -30,7 +30,7 @@ module Redmine def recently_used_projects project_ids = recently_used_project_ids - Project.where(id: project_ids). + Project.where(id: project_ids).visible index_by(&:id). values_at(*project_ids). # sort according to stored order compact -- 2.39.5