mirror of
https://github.com/meineerde/redmine.git
synced 2026-03-11 03:33:07 +00:00
Merged r16687 (#23310).
git-svn-id: http://svn.redmine.org/redmine/branches/3.4-stable@16688 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
commit
74e854e267
@ -377,7 +377,10 @@ module ApplicationHelper
|
||||
# Renders the project quick-jump box
|
||||
def render_project_jump_box
|
||||
projects = projects_for_jump_box(User.current)
|
||||
text = @project.try(:name) || l(:label_jump_to_a_project)
|
||||
if @project && @project.persisted?
|
||||
text = @project.name_was
|
||||
end
|
||||
text ||= l(:label_jump_to_a_project)
|
||||
url = autocomplete_projects_path(:format => 'js', :jump => current_menu_item)
|
||||
|
||||
trigger = content_tag('span', text, :class => 'drdn-trigger')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user