From d4b81b9af3f776b6ec72e406a9da5fe5b4c05435 Mon Sep 17 00:00:00 2001 From: kurund Date: Wed, 21 Aug 2013 22:25:36 +0530 Subject: [PATCH] CRM-13242, fixed quill for contact type ---------------------------------------- * CRM-13242: != Operator Doesn't Work for Contact Type in Search Builder http://issues.civicrm.org/jira/browse/CRM-13242 --- CRM/Contact/BAO/Query.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php index f94cba63f0..a74d2d81d8 100644 --- a/CRM/Contact/BAO/Query.php +++ b/CRM/Contact/BAO/Query.php @@ -2551,10 +2551,12 @@ class CRM_Contact_BAO_Query { $this->_where[$grouping][] = "contact_a.contact_type $op (" . implode(',', $clause) . ')'; } else { + $quill = $clause; $type = array_pop($clause); $this->_where[$grouping][] = "contact_a.contact_type $op $type"; } - $this->_qill[$grouping][] = ts('Contact Type') . ' - ' . implode(' ' . ts('or') . ' ', $clause); + + $this->_qill[$grouping][] = ts('Contact Type') . ' - ' . implode(' ' . ts('or') . ' ', $quill); if (!empty($subTypes)) { $this->includeContactSubTypes($subTypes, $grouping); -- 2.25.1