From: Pradeep Nayak Date: Wed, 6 Feb 2019 17:50:15 +0000 (+0000) Subject: dev/core/issues/700, Show Qill when searched using contact id X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9ea799a37e9b6b7c35cebcfac1cb50fa89c5cb64;p=civicrm-core.git dev/core/issues/700, Show Qill when searched using contact id --- diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php index 92c47c34bf..2db3cb9616 100644 --- a/CRM/Contact/BAO/Query.php +++ b/CRM/Contact/BAO/Query.php @@ -2039,6 +2039,18 @@ class CRM_Contact_BAO_Query { // check for both id and contact_id if ($this->_params[$id][0] == 'id' || $this->_params[$id][0] == 'contact_id') { $this->_where[0][] = self::buildClause("contact_a.id", $this->_params[$id][1], $this->_params[$id][2]); + $field = CRM_Utils_Array::value('id', $this->_fields); + list($qillop, $qillVal) = CRM_Contact_BAO_Query::buildQillForFieldValue( + 'CRM_Contact_BAO_Contact', + "contact_a.id", + $this->_params[$id][2], + $this->_params[$id][1] + ); + $this->_qill[0][] = ts("%1 %2 %3", [ + 1 => $field['title'], + 2 => $qillop, + 3 => $qillVal + ]); } else { $this->whereClauseSingle($this->_params[$id], $apiEntity);