From bd491b4cbf9b72aae650e20374b416f28d5e8ede Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Wed, 3 Apr 2019 17:41:16 +0100 Subject: [PATCH] dev/core/issues/823, fixed code to set contact type correctly --- CRM/Profile/Form.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/CRM/Profile/Form.php b/CRM/Profile/Form.php index 9b5beb25cf..ac050c485d 100644 --- a/CRM/Profile/Form.php +++ b/CRM/Profile/Form.php @@ -678,14 +678,6 @@ class CRM_Profile_Form extends CRM_Core_Form { $this->removeFileRequiredRules('image_URL'); } - if (array_key_exists('contact_sub_type', $this->_defaults) && - !empty($this->_defaults['contact_sub_type']) - ) { - $this->_defaults['contact_sub_type'] = explode(CRM_Core_DAO::VALUE_SEPARATOR, - trim($this->_defaults['contact_sub_type'], CRM_Core_DAO::VALUE_SEPARATOR) - ); - } - $this->setDefaults($this->_defaults); } -- 2.25.1