From da3620850a5aa69613e6e0aa3300000872f3a532 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Thu, 26 Jul 2018 10:57:46 +0100 Subject: [PATCH] updated explode function in custom search --- CRM/Contact/Form/Search/Custom/MultipleValues.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contact/Form/Search/Custom/MultipleValues.php b/CRM/Contact/Form/Search/Custom/MultipleValues.php index acc1bd580f..31b9cebbc5 100644 --- a/CRM/Contact/Form/Search/Custom/MultipleValues.php +++ b/CRM/Contact/Form/Search/Custom/MultipleValues.php @@ -246,7 +246,7 @@ contact_a.sort_name as sort_name, $this->_formValues ); if ($contact_type != NULL) { - $contactType = explode('__', $contact_type); + $contactType = explode('__', $contact_type, 2); if (count($contactType) > 1) { $clause[] = "contact_a.contact_type = '$contactType[0]' AND contact_a.contact_sub_type = '$contactType[1]'"; } -- 2.25.1