CRM-14874 fix - Display and sort names should be populated with email address when...
authormonishdeb <monish.deb@webaccessglobal.com>
Wed, 18 Jun 2014 21:12:58 +0000 (02:42 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Wed, 18 Jun 2014 21:12:58 +0000 (02:42 +0530)
https://issues.civicrm.org/jira/browse/CRM-14874

CRM/Contact/BAO/Contact.php

index 6dddca06dac5efaaf301cbfa1da7ec2e2bc120e9..0c04192c6019e77ce1857c63ca42c339ce1cf067 100644 (file)
@@ -499,12 +499,12 @@ WHERE     civicrm_contact.id = " . CRM_Utils_Type::escape($id, 'Integer');
       CRM_Utils_Hook::alterDisplayName($displayName, $id, $dao);
 
       return $type ? array(
-        $dao->display_name,
+        $displayName,
         $image,
         $dao->contact_type,
         $dao->contact_sub_type,
         $imageUrl,
-      ) : array($dao->display_name, $image, $imageUrl);
+      ) : array($displayName, $image, $imageUrl);
     }
     return NULL;
   }