Fixed CRM-14650: Display name does not have individual prefix and suffix after inline...
authorJaime Herencia Enjuto <jherencia@webpartners.es>
Tue, 6 May 2014 00:13:38 +0000 (02:13 +0200)
committerJaime Herencia Enjuto <jherencia@webpartners.es>
Tue, 6 May 2014 00:13:38 +0000 (02:13 +0200)
CRM/Contact/BAO/Individual.php

index 077df4199b8903950286ac69d0ffc4fe119ce95e..851bfc1845759151d1a618dfe1a64c0fa2978f2f 100644 (file)
@@ -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);
           }
         }