From 41665e8f6f303e0a5e71156244a88f6d23e0d6ab Mon Sep 17 00:00:00 2001 From: kurund Date: Tue, 6 Aug 2013 13:05:32 +0530 Subject: [PATCH] CRM-13107 removed obsolete code ---------------------------------------- * CRM-13107: Individual Prefix, Suffix and Gender fields are broken in Profile Create, Edit and View http://issues.civicrm.org/jira/browse/CRM-13107 --- CRM/Contact/BAO/Contact.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/CRM/Contact/BAO/Contact.php b/CRM/Contact/BAO/Contact.php index 2905cb1942..ffb0bec5fc 100644 --- a/CRM/Contact/BAO/Contact.php +++ b/CRM/Contact/BAO/Contact.php @@ -2052,17 +2052,8 @@ ORDER BY civicrm_email.is_primary DESC"; $data['website'][$websiteField[1]]['url'] = $value; } } - elseif ($key === 'individual_suffix') { - $data['suffix_id'] = $value; - } - elseif ($key === 'individual_prefix') { - $data['prefix_id'] = $value; - } - elseif ($key === 'gender') { - $data['gender_id'] = $value; - } - //save email/postal greeting and addressee values if any, CRM-4575 elseif (in_array($key, self::$_greetingTypes, TRUE)) { + //save email/postal greeting and addressee values if any, CRM-4575 $data[$key . '_id'] = $value; } elseif (!$skipCustom && ($customFieldId = CRM_Core_BAO_CustomField::getKeyID($key))) { -- 2.25.1