Skip to content

Commit

Permalink
Fix funding body search
Browse files Browse the repository at this point in the history
  • Loading branch information
johnf committed May 26, 2024
1 parent c925e4f commit 734105a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/collection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def self.search_text_fields
def self.search_filter_fields
%i[
complete private created_at updated_at deposit_form_received
collector_id operator_id university_id country_ids language_ids admin_ids access_condition_id field_of_research_id funding_id
collector_id operator_id university_id country_ids language_ids admin_ids access_condition_id field_of_research_id funding_body_id
title_blank description_blank access_narative_blank region_blank metadata_source_blank orthographic_notes_blank
media_blank comments_blank tape_location_blank grant_identifier_blank
created_at_blank updated_at_blank
Expand Down Expand Up @@ -242,7 +242,7 @@ def search_data
item_user_ids: items.flat_map(&:user_ids).uniq,
access_condition_id:,
field_of_research_id:,
funding_body_ids: grants.map(&:funding_body_id),
funding_body_id: grants.map(&:funding_body_id),
deposit_form_received:,

created_at: created_at.to_date,
Expand Down

0 comments on commit 734105a

Please sign in to comment.