Test failure.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10518 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-09-29 15:26:52 +00:00
parent 61248d1dbc
commit 99662fa18e
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ class QueryCustomFieldColumn < QueryColumn
end
def value(issue)
cv = issue.custom_values.select {|v| v.custom_field_id == @cf.id}.collect {|v| @cf.cast_value(v.value)}
cv = issue.custom_values.select {|v| v.custom_field_id == @cf.id}.collect {|v| @cf.cast_value(v.value)}.sort {|a,b| a.to_s <=> b.to_s}
cv.size > 1 ? cv : cv.first
end