projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e67497
)
dev/core/issues/823, fixed code to set contact type correctly
author
Pradeep Nayak
<pradpnayak@gmail.com>
Wed, 3 Apr 2019 16:41:16 +0000
(17:41 +0100)
committer
Pradeep Nayak
<pradpnayak@gmail.com>
Wed, 3 Apr 2019 16:44:07 +0000
(17:44 +0100)
CRM/Profile/Form.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Profile/Form.php
b/CRM/Profile/Form.php
index 9b5beb25cff9be6abc9ab7f0ca3416717a5cf0b8..ac050c485da1395e8f9ade0b3bdeed890dac68d3 100644
(file)
--- 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);
}