1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-31 12:49:38 +00:00

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
This commit is contained in:
Go MAEDA 2021-02-04 04:32:29 +00:00
parent 75b6cacb5d
commit 56236f51ff

View 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