From 83bb41d3a3d17c65a96e537672fa0c5d97ef1d53 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 15 Jan 2012 22:25:20 +0000 Subject: [PATCH] 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 --- app/models/repository.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/repository.rb b/app/models/repository.rb index aad078c7d..00acbb540 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -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