summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/field_format.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/redmine/field_format.rb b/lib/redmine/field_format.rb
index 3b567a0b8..655e2c984 100644
--- a/lib/redmine/field_format.rb
+++ b/lib/redmine/field_format.rb
@@ -98,9 +98,10 @@ module Redmine
if value.blank?
nil
elsif value.is_a?(Array)
- value.map do |v|
+ casted = value.map do |v|
cast_single_value(custom_field, v, customized)
- end.sort
+ end
+ casted.compact.sort
else
cast_single_value(custom_field, value, customized)
end