Browse Source

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
tags/1.4.0
Jean-Philippe Lang 12 years ago
parent
commit
83bb41d3a3
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      app/models/repository.rb

+ 3
- 3
app/models/repository.rb View File

@@ -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…
Cancel
Save