$statuses = array_flip(CRM_Event_PseudoConstant::participantStatus());
$defaults[$this->_id]['status_id'] = $statuses['Registered'] ?? NULL;
if (!empty($defaults[$this->_id]['event_id'])) {
- $contributionTypeId = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event',
+ $financialTypeID = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event',
$defaults[$this->_id]['event_id'],
'financial_type_id'
);
- if ($contributionTypeId) {
- $defaults[$this->_id]['financial_type_id'] = $contributionTypeId;
+ if ($financialTypeID) {
+ $defaults[$this->_id]['financial_type_id'] = $financialTypeID;
}
}
'email' => 'john.smith@example.com',
'contactID' => $contactId,
'contributionID' => $contribution['id'],
- 'contributionTypeID' => $this->_financialTypeId,
'contributionRecurID' => $recur['id'],
]);
class api_v3_MembershipPaymentTest extends CiviUnitTestCase {
protected $_apiversion = 3;
protected $_contactID;
- protected $_contributionTypeID;
protected $_membershipTypeID;
protected $_membershipStatusID;
protected $_contribution = [];
class api_v3_MembershipStatusTest extends CiviUnitTestCase {
protected $_contactID;
- protected $_contributionTypeID;
protected $_membershipTypeID;
protected $_membershipStatusID;