projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #4234 from jitendrapurohit/CRM-15368
[civicrm-core.git]
/
CRM
/
Contact
/
Form
/
RelatedContact.php
diff --git
a/CRM/Contact/Form/RelatedContact.php
b/CRM/Contact/Form/RelatedContact.php
index fc0617ab3fd13ee6b2edfc061c244711e8210c9f..4fba5517f83f5a4ac06e7a10e2b64099351a9504 100644
(file)
--- a/
CRM/Contact/Form/RelatedContact.php
+++ b/
CRM/Contact/Form/RelatedContact.php
@@
-181,6
+181,10
@@
class CRM_Contact_Form_RelatedContact extends CRM_Core_Form {
}
$params['contact_type'] = $this->_contactType;
}
$params['contact_type'] = $this->_contactType;
+ //CRM-14904
+ if ( isset($this->_defaults['contact_sub_type']) ) {
+ $params['contact_sub_type'] = $this->_defaults['contact_sub_type'];
+ }
$params['contact_id'] = $this->_contactId;
$contact = CRM_Contact_BAO_Contact::create($params, TRUE);
$params['contact_id'] = $this->_contactId;
$contact = CRM_Contact_BAO_Contact::create($params, TRUE);