'membership_id',
'tax_amount',
'skipLineItem',
+ 'contribution_recur_id',
);
foreach ($recordContribution as $f) {
$contributionParams[$f] = CRM_Utils_Array::value($f, $params);
// not a great pattern & ideally it would not receive as a reference. We assign our params as a
// temporary variable to avoid e-notice & to make it clear to future refactorer that
// this function is NOT reliant on that var being set
- $temporaryParams = array_merge($this->_params, array('membership_id' => $renewMembership->id));
+ $temporaryParams = array_merge($this->_params, array(
+ 'membership_id' => $renewMembership->id,
+ 'contribution_recur_id' => $contributionRecurID,
+ ));
CRM_Member_BAO_Membership::recordMembershipContribution($temporaryParams);
}
$this->assertEquals(CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_Contribution', 'payment_instrument_id',
'Credit Card'), $contribution['payment_instrument_id']);
+ $this->assertEquals($contributionRecur['id'], $contribution['contribution_recur_id']);
$this->callAPISuccessGetCount('LineItem', array(
'entity_id' => $membership['id'],