From: Jaime Herencia Enjuto Date: Tue, 6 May 2014 00:13:38 +0000 (+0200) Subject: Fixed CRM-14650: Display name does not have individual prefix and suffix after inline... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ec5cc0a3857c522e02b8d06e431b084017cf8364;p=civicrm-core.git Fixed CRM-14650: Display name does not have individual prefix and suffix after inline-edit the contact. --- diff --git a/CRM/Contact/BAO/Individual.php b/CRM/Contact/BAO/Individual.php index 077df4199b..851bfc1845 100644 --- a/CRM/Contact/BAO/Individual.php +++ b/CRM/Contact/BAO/Individual.php @@ -148,7 +148,7 @@ class CRM_Contact_BAO_Individual extends CRM_Contact_DAO_Contact { $params[$dbName] = $value; $contact->$dbName = $value; if ($value) { - $$name = CRM_Core_PseudoConstant::getLabel('CRM_Contact_DAO_Contact', $name, $value); + $$name = CRM_Core_PseudoConstant::getLabel('CRM_Contact_DAO_Contact', $dbName, $value); } else { $$name = NULL; @@ -161,7 +161,7 @@ class CRM_Contact_BAO_Individual extends CRM_Contact_DAO_Contact { } } elseif ($value) { - $$name = CRM_Core_PseudoConstant::getLabel('CRM_Contact_DAO_Contact', $name, $value); + $$name = CRM_Core_PseudoConstant::getLabel('CRM_Contact_DAO_Contact', $dbName, $value); } }