From fe9517debfe5463acf03b3889d73b0315fb27842 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Thu, 10 Dec 2015 12:56:50 +0530 Subject: [PATCH] CRM-17692 - Improper advance search result for multiple tag set --- CRM/Contact/Form/Search/Advanced.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/Form/Search/Advanced.php b/CRM/Contact/Form/Search/Advanced.php index 502da90f05..db74a57344 100644 --- a/CRM/Contact/Form/Search/Advanced.php +++ b/CRM/Contact/Form/Search/Advanced.php @@ -373,7 +373,11 @@ class CRM_Contact_Form_Search_Advanced extends CRM_Contact_Form_Search { foreach ($taglist as $value) { if ($value) { $value = explode(',', $value); - $this->_formValues['contact_tags'] = (array) $value; + foreach ($value as $tId) { + if (is_numeric($tId)) { + $this->_formValues['contact_tags'][] = $tId; + } + } } } } -- 2.25.1