Skip to content

Commit

Permalink
fix annotator attributes languague filter
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Jul 22, 2024
1 parent 6d7643f commit ef2586b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/search_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ef2586b

Please sign in to comment.