GitLab steht Mittwoch, den 23. September, zwischen 10:00 und 12:00 Uhr aufgrund von Wartungsarbeiten nicht zur Verfügung.

Commit 2fe45578 authored by jplang's avatar jplang

Fix project jump box text when creating/editing a project (#23310).

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 2dc3b98b
......@@ -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
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')
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment