From 675b7e61915323efd64445de6e65fbb87046445e Mon Sep 17 00:00:00 2001 From: Andrei Mondoc Date: Wed, 20 Nov 2019 13:08:51 +0000 Subject: [PATCH] enforce isSkipLineItem for membership entity --- api/v3/Order.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/v3/Order.php b/api/v3/Order.php index 19b4eaefe206..067cefdda8fa 100644 --- a/api/v3/Order.php +++ b/api/v3/Order.php @@ -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); } }