projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b0ac72
)
Fix quicksearch by id CRM-12475
author
Coleman Watts
<coleman@civicrm.org>
Thu, 16 May 2013 14:35:10 +0000
(09:35 -0500)
committer
Coleman Watts
<coleman@civicrm.org>
Thu, 16 May 2013 14:35:10 +0000
(09:35 -0500)
api/v3/Contact.php
patch
|
blob
|
blame
|
history
diff --git
a/api/v3/Contact.php
b/api/v3/Contact.php
index cb603cb60175f3e19d4fc62ef80aa63900c447d8..b42f968bde4a1861db7188563b097cf7d1b8e0ed 100644
(file)
--- 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)) {