CRM-16993 actual fix on not crashing when recurring is paid
authoreileenmcnaugton <eileen@fuzion.co.nz>
Mon, 10 Aug 2015 03:52:16 +0000 (15:52 +1200)
committereileenmcnaugton <eileen@fuzion.co.nz>
Mon, 10 Aug 2015 03:52:58 +0000 (15:52 +1200)
CRM/Member/Form/Membership.php

index 165d457529cd29f9e13ee93c58fcf4451a6c2ff0..b286d19337c3a0d2f33451f7781800880e73cab7 100644 (file)
@@ -1612,6 +1612,7 @@ class CRM_Member_Form_Membership extends CRM_Member_Form {
         // process -
         // @see http://wiki.civicrm.org/confluence/pages/viewpage.action?pageId=261062657#Payments&AccountsRoadmap-Movetowardsalwaysusinga2-steppaymentprocess
         $membershipParams['contribution_status_id'] = CRM_Utils_Array::value('payment_status_id', $result);
+        unset($membershipParams['lineItems']);
         $membership = CRM_Member_BAO_Membership::create($membershipParams, $ids);
         $params['contribution'] = CRM_Utils_Array::value('contribution', $membershipParams);
         unset($params['lineItems']);