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
|
end
|
||||||
|
|
||||||
def name
|
def name
|
||||||
if is_default?
|
if identifier.present?
|
||||||
l(:field_repository_is_default)
|
|
||||||
elsif identifier.present?
|
|
||||||
identifier
|
identifier
|
||||||
|
elsif is_default?
|
||||||
|
l(:field_repository_is_default)
|
||||||
else
|
else
|
||||||
scm_name
|
scm_name
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue