Skip to content
Snippets Groups Projects
Commit cf5c22ba authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

Merge pull request #778 from colemanw/quickSearch

Fix quicksearch by id CRM-12475
parents 5b4a53f0 5d8ba7a7
No related branches found
No related tags found
No related merge requests found
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment