Display identifier for the default repository too (#779).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8654 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
abc0b0ea3e
commit
83bb41d3a3
|
@ -112,10 +112,10 @@ class Repository < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def name
|
||||
if is_default?
|
||||
l(:field_repository_is_default)
|
||||
elsif identifier.present?
|
||||
if identifier.present?
|
||||
identifier
|
||||
elsif is_default?
|
||||
l(:field_repository_is_default)
|
||||
else
|
||||
scm_name
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue