diff --git a/app/models/metadata_predefined_array.rb b/app/models/metadata_predefined_array.rb index dfcb2037..babaa35a 100644 --- a/app/models/metadata_predefined_array.rb +++ b/app/models/metadata_predefined_array.rb @@ -23,8 +23,6 @@ class MetadataPredefinedArray < MetadataArray def sanitize(value) value = super(value) - value.select do |v| - values.values.include? v - end + value & values.values end end