From: Brian Shaughnessy Date: Mon, 23 Jun 2014 17:38:00 +0000 (-0400) Subject: CRM-14904 retain subtype when saving org from contact dashboard form X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8394480e97cc58536cd3bd71c6e078f1720b561f;p=civicrm-core.git CRM-14904 retain subtype when saving org from contact dashboard form --- diff --git a/CRM/Contact/Form/RelatedContact.php b/CRM/Contact/Form/RelatedContact.php index fc0617ab3f..4fba5517f8 100644 --- 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; + //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);