From: kurund Date: Wed, 21 Aug 2013 16:55:36 +0000 (+0530) Subject: CRM-13242, fixed quill for contact type X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d4b81b9af3f776b6ec72e406a9da5fe5b4c05435;p=civicrm-core.git 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 --- 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);