From f12a86adfa7847a5b13c750107fcc87c3e6b8ea5 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Thu, 26 Jul 2018 10:57:14 +0100 Subject: [PATCH] dev/core/issues/232, fixed how contact sub type is using separator --- CRM/Contact/BAO/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php index c389a82260..f515564998 100644 --- a/CRM/Contact/BAO/Query.php +++ b/CRM/Contact/BAO/Query.php @@ -1612,7 +1612,7 @@ class CRM_Contact_BAO_Query { $contactType = array(); $subType = array(); foreach ((array) $values as $key => $type) { - $types = explode('__', is_numeric($type) ? $key : $type); + $types = explode('__', is_numeric($type) ? $key : $type, 2); $contactType[$types[0]] = $types[0]; // Add sub-type if specified if (!empty($types[1])) { -- 2.25.1