Skip to content
Snippets Groups Projects
Unverified Commit 91bed7b2 authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #19166 from eileenmcnaughton/cont_type

financial#163 Rename / remove internal references to contributionTypeID
parents 192d0c95 4c8f9b04
No related branches found
No related tags found
No related merge requests found
......@@ -480,12 +480,12 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment
$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;
}
}
......
......@@ -147,7 +147,6 @@ class CRM_Core_Payment_AuthorizeNetTest extends CiviUnitTestCase {
'email' => 'john.smith@example.com',
'contactID' => $contactId,
'contributionID' => $contribution['id'],
'contributionTypeID' => $this->_financialTypeId,
'contributionRecurID' => $recur['id'],
]);
......
......@@ -19,7 +19,6 @@
class api_v3_MembershipPaymentTest extends CiviUnitTestCase {
protected $_apiversion = 3;
protected $_contactID;
protected $_contributionTypeID;
protected $_membershipTypeID;
protected $_membershipStatusID;
protected $_contribution = [];
......
......@@ -16,7 +16,6 @@
class api_v3_MembershipStatusTest extends CiviUnitTestCase {
protected $_contactID;
protected $_contributionTypeID;
protected $_membershipTypeID;
protected $_membershipStatusID;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment