mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-14 19:32:53 +00:00
Fix project jump box text when creating/editing a project (#23310).
git-svn-id: http://svn.redmine.org/redmine/trunk@16687 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
7fd04e1f8d
commit
e89cb8829e
@ -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