From 967fddb5b18defd8c6acc49fc5d8d2b1a13021c4 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Thu, 19 Jun 2014 02:42:58 +0530 Subject: [PATCH] CRM-14874 fix - Display and sort names should be populated with email address when contribution form only has email address https://issues.civicrm.org/jira/browse/CRM-14874 --- CRM/Contact/BAO/Contact.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Contact/BAO/Contact.php b/CRM/Contact/BAO/Contact.php index 6dddca06da..0c04192c60 100644 --- a/CRM/Contact/BAO/Contact.php +++ b/CRM/Contact/BAO/Contact.php @@ -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; } -- 2.25.1