From: Go MAEDA Date: Thu, 4 Feb 2021 04:32:29 +0000 (+0000) Subject: Only show currently visible projects in the project jump box (#34595). X-Git-Tag: 4.2.0~97 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=56236f51ff2e72582046f9a3d3614c56e34124a5;p=redmine.git 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 --- 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