From 9c3024518a781b689b87493cbd4267a9b24d4231 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Fri, 8 May 2015 18:31:58 +0530 Subject: [PATCH] format fixes --- 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 3b732cc179..592c316b0d 100644 --- a/CRM/Contact/BAO/Contact.php +++ b/CRM/Contact/BAO/Contact.php @@ -2006,7 +2006,7 @@ ORDER BY civicrm_email.is_primary DESC"; //CRM-13596 - add to existing contact types, rather than overwriting $data_contact_sub_type_arr = explode(CRM_Core_DAO::VALUE_SEPARATOR, trim($data['contact_sub_type'], CRM_Core_DAO::VALUE_SEPARATOR)); if (!in_array($params['contact_sub_type_hidden'], $data_contact_sub_type_arr)) { - $data['contact_sub_type'] = $data['contact_sub_type'] . implode(CRM_Core_DAO::VALUE_SEPARATOR, (array)$params['contact_sub_type_hidden']) . CRM_Core_DAO::VALUE_SEPARATOR; + $data['contact_sub_type'] = $data['contact_sub_type'] . implode(CRM_Core_DAO::VALUE_SEPARATOR, (array) $params['contact_sub_type_hidden']) . CRM_Core_DAO::VALUE_SEPARATOR; } } @@ -2232,7 +2232,7 @@ ORDER BY civicrm_email.is_primary DESC"; //CRM-13596 - check for contact_sub_type_hidden first if (array_key_exists('contact_sub_type_hidden', $params)) { $type = $params['contact_sub_type_hidden']; - } + } else { $type = $data['contact_type']; if (!empty($data['contact_sub_type'])) { -- 2.25.1