1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-23 17:01:13 +00:00

Use query with custom select for faster rendering of the project drop-down (#19102).

git-svn-id: http://svn.redmine.org/redmine/trunk@14003 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2015-02-14 10:12:26 +00:00
parent 3642626052
commit 1c078a7081

View File

@ -327,7 +327,7 @@ module ApplicationHelper
# Renders the project quick-jump box
def render_project_jump_box
return unless User.current.logged?
projects = User.current.memberships.collect(&:project).compact.select(&:active?).uniq
projects = User.current.projects.active.select(:id, :name, :identifier, :lft, :rgt).to_a
if projects.any?
options =
("<option value=''>#{ l(:label_jump_to_a_project) }</option>" +