From 9ea799a37e9b6b7c35cebcfac1cb50fa89c5cb64 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Wed, 6 Feb 2019 17:50:15 +0000 Subject: [PATCH] dev/core/issues/700, Show Qill when searched using contact id --- CRM/Contact/BAO/Query.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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); -- 2.25.1