Fixed undefined method `<=>' for nil:NilClass when sorting repositories with nil identifiers (#10827).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9619 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-05-04 16:57:15 +00:00
parent ad8193dcde
commit 9f396a6dfb
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ class Repository < ActiveRecord::Base
elsif repository.is_default?
1
else
identifier <=> repository.identifier
identifier.to_s <=> repository.identifier.to_s
end
end