From 5d8ba7a7ab07195acdd1c3b12e18608035d44cdb Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 16 May 2013 09:35:10 -0500 Subject: [PATCH] Fix quicksearch by id CRM-12475 --- api/v3/Contact.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/v3/Contact.php b/api/v3/Contact.php index cb603cb601..b42f968bde 100644 --- a/api/v3/Contact.php +++ b/api/v3/Contact.php @@ -560,6 +560,10 @@ function civicrm_api3_contact_getquick($params) { } // If we are doing quicksearch by a field other than name, make sure that field is added to results if (!empty($params['field_name'])) { + // Unique name contact_id = id + if ($params['field_name'] == 'contact_id') { + $params['field_name'] = 'id'; + } // phone_numeric should be phone $searchField = str_replace('_numeric', '', $params['field_name']); if(!in_array($searchField, $list)) { -- 2.25.1