From 3fa19e687fdc071bb4b56200cce6dd02aac1b843 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Thu, 15 Apr 2021 22:27:05 +0200 Subject: [PATCH] fix boolean handling --- app/models/concerns/indexable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/concerns/indexable.rb b/app/models/concerns/indexable.rb index 8542dfc5b..ae8ca567a 100644 --- a/app/models/concerns/indexable.rb +++ b/app/models/concerns/indexable.rb @@ -326,7 +326,7 @@ def query(query, options = {}) } end if options[:non_profit_status].present? - filter << { term: { non_profit_status: options[:non_profit_status] } } + filter << { term: { non_profit_status: options[:non_profit_status] == 1 } } end if options[:has_required_contacts].present? filter << { term: { has_required_contacts: options[:has_required_contacts] } }