diff --git a/helpers/search_helper.rb b/helpers/search_helper.rb index 4e2dee3c..ff034681 100644 --- a/helpers/search_helper.rb +++ b/helpers/search_helper.rb @@ -357,7 +357,7 @@ def populate_classes_from_search(classes, ontology_acronyms=nil) doc[:submission] = old_class.submission doc[:properties] = MultiJson.load(doc.delete(:propertyRaw)) if include_param_contains?(:properties) instance = LinkedData::Models::Class.read_only(doc) - instance.prefLabel = instance.prefLabel.first if instance.prefLabel.is_a?(Array) + filter_language_attributes(params, instance) classes_hash[ont_uri_class_uri] = instance end