]> source.dussan.org Git - redmine.git/commitdiff
Only show currently visible projects in the project jump box (#34595).
authorGo MAEDA <maeda@farend.jp>
Thu, 4 Feb 2021 04:32:29 +0000 (04:32 +0000)
committerGo MAEDA <maeda@farend.jp>
Thu, 4 Feb 2021 04:32:29 +0000 (04:32 +0000)
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

index b8f332008ee07191857839d1303aa997857be51d..da5d93644e00ded8ed2aabd9d35911275d15328f 100644 (file)
@@ -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