summaryrefslogtreecommitdiffstats
path: root/lib/redmine
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-03-16 03:01:12 +0000
committerGo MAEDA <maeda@farend.jp>2021-03-16 03:01:12 +0000
commit1559dda8335e19c0624b3fa42b913f859afd808b (patch)
treedd705e4477a2fa9cc130798fc6e94a49f353d223 /lib/redmine
parent8d80a5566c3305e1df01a6cee7fa123010f98886 (diff)
downloadredmine-1559dda8335e19c0624b3fa42b913f859afd808b.tar.gz
redmine-1559dda8335e19c0624b3fa42b913f859afd808b.zip
Merged r20803 from trunk to 4.1-stable (#34595).
git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@20804 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine')
-rw-r--r--lib/redmine/project_jump_box.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/redmine/project_jump_box.rb b/lib/redmine/project_jump_box.rb
index d3116a3ff..b9f616f34 100644
--- a/lib/redmine/project_jump_box.rb
+++ b/lib/redmine/project_jump_box.rb
@@ -35,6 +35,7 @@ module Redmine
projects = projects.like(query)
end
projects.
+ visible.
index_by(&:id).
values_at(*project_ids). # sort according to stored order
compact