spegling av
https://github.com/redmine/redmine.git
synced 2024-08-25 17:55:20 +02:00
Prevent undefined method `<=>' for nil:NilClass in AbstractAdapter (#4098).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2957 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
förälder
2445250960
incheckning
cabf052127
@ -215,7 +215,7 @@ module Redmine
|
||||
def sort_by_name
|
||||
sort {|x,y|
|
||||
if x.kind == y.kind
|
||||
x.name <=> y.name
|
||||
x.name.to_s <=> y.name.to_s
|
||||
else
|
||||
x.kind <=> y.kind
|
||||
end
|
||||
|
Laddar…
Referens i nytt ärende
Block a user