From 66a078b1a703d63bfc8e4f06aa92f53fdee8d8e2 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sun, 12 Jul 2015 22:01:59 +1200 Subject: [PATCH] minor tidy up --- CRM/Member/Form/Membership.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CRM/Member/Form/Membership.php b/CRM/Member/Form/Membership.php index 4eacaa0b77..34c727bd1c 100644 --- a/CRM/Member/Form/Membership.php +++ b/CRM/Member/Form/Membership.php @@ -1438,8 +1438,6 @@ class CRM_Member_Form_Membership extends CRM_Member_Form { $fields["email-{$this->_bltID}"] = 1; } - $ctype = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $this->_contactID, 'contact_type'); - $nameFields = array('first_name', 'middle_name', 'last_name'); foreach ($nameFields as $name) { @@ -1452,7 +1450,8 @@ class CRM_Member_Form_Membership extends CRM_Member_Form { if ($this->_contributorContactID == $this->_contactID) { //see CRM-12869 for discussion of why we don't do this for separate payee payments CRM_Contact_BAO_Contact::createProfileContact($formValues, $fields, - $this->_contributorContactID, NULL, NULL, $ctype + $this->_contributorContactID, NULL, NULL, + CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $this->_contactID, 'contact_type') ); } -- 2.25.1