From 330a97b5c5888673ea2fad25fd80d8975da505f3 Mon Sep 17 00:00:00 2001 From: Tejaswini Chile Date: Wed, 24 Nov 2021 12:58:00 +0530 Subject: [PATCH] Fix: contact filter values (#3456) --- app/services/contacts/filter_service.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/services/contacts/filter_service.rb b/app/services/contacts/filter_service.rb index 879295c8f..cefcee7b5 100644 --- a/app/services/contacts/filter_service.rb +++ b/app/services/contacts/filter_service.rb @@ -38,6 +38,10 @@ class Contacts::FilterService < FilterService end end + def filter_values(query_hash) + query_hash['values'][0] + end + def base_relation Current.account.contacts.left_outer_joins(:labels) end