Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
justinfreeman (Agileware)
Core
Commits
cf5c22ba
Commit
cf5c22ba
authored
11 years ago
by
Kurund Jalmi
Browse files
Options
Downloads
Plain Diff
Merge pull request #778 from colemanw/quickSearch
Fix quicksearch by id CRM-12475
parents
5b4a53f0
5d8ba7a7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/v3/Contact.php
+4
-0
4 additions, 0 deletions
api/v3/Contact.php
with
4 additions
and
0 deletions
api/v3/Contact.php
+
4
−
0
View file @
cf5c22ba
...
...
@@ -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
))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment