jenkins-bot has submitted this change and it was merged.

Change subject: Fix some contact autocomplete boxes
......................................................................


Fix some contact autocomplete boxes

CRM_Utils_Hook::contactListQuery was munging the query so the
aliases didn't come out as the programmer originally intended.

Bug: T90020
Change-Id: I2cbfc568145e7873bc192fce99902733d34d46c0
---
M CRM/Contact/Page/AJAX.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Awight: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/CRM/Contact/Page/AJAX.php b/CRM/Contact/Page/AJAX.php
index d1060a2..bc0de27 100644
--- a/CRM/Contact/Page/AJAX.php
+++ b/CRM/Contact/Page/AJAX.php
@@ -730,7 +730,7 @@
           $dao = CRM_Core_DAO::executeQuery($query);
           while ($dao->fetch()) {
             $result[] = array(
-              'name' => $dao->name,
+              'name' => $dao->sort_name,
               'id' => $dao->id,
             );
           }

-- 
To view, visit https://gerrit.wikimedia.org/r/191807
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I2cbfc568145e7873bc192fce99902733d34d46c0
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm/civicrm
Gerrit-Branch: master
Gerrit-Owner: Ejegg <[email protected]>
Gerrit-Reviewer: Awight <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to