Skip to content

Commit

Permalink
enforce isSkipLineItem for membership entity
Browse files Browse the repository at this point in the history
  • Loading branch information
mecachisenros committed Nov 20, 2019
1 parent 9b59455 commit 675b7e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/v3/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ function civicrm_api3_order_create($params) {
if ($entity == 'pledge') {
$paymentParams += $entityParams;
}
elseif ($entity == 'membership') {
$paymentParams['isSkipLineItem'] = TRUE;
}
$payments = civicrm_api3($entity . '_payment', 'create', $paymentParams);
}
}
Expand Down

0 comments on commit 675b7e6

Please sign in to comment.