From 9b581f1d5ab6e450f8e69bcabbeb82d08e2d4e0a Mon Sep 17 00:00:00 2001 From: eileenmcnaugton Date: Mon, 10 Aug 2015 13:33:46 +1200 Subject: [PATCH] CRM-16692 fix for incorrect line items --- CRM/Member/Form/Membership.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/CRM/Member/Form/Membership.php b/CRM/Member/Form/Membership.php index 9e3d448c74..165d457529 100644 --- a/CRM/Member/Form/Membership.php +++ b/CRM/Member/Form/Membership.php @@ -1157,11 +1157,6 @@ class CRM_Member_Form_Membership extends CRM_Member_Form { $allMemberStatus = CRM_Member_PseudoConstant::membershipStatus(); $allContributionStatus = CRM_Contribute_PseudoConstant::contributionStatus(); - $lineItems = NULL; - if (!empty($this->_lineItem)) { - $lineItems = $this->_lineItem; - } - if ($this->_id) { $ids['membership'] = $params['id'] = $this->_id; } @@ -1499,7 +1494,7 @@ class CRM_Member_Form_Membership extends CRM_Member_Form { $result, array( 'contact_id' => $this->_contributorContactID, - 'line_item' => $lineItems, + 'line_item' => $lineItem, 'is_test' => $isTest, 'campaign_id' => CRM_Utils_Array::value('campaign_id', $paymentParams), 'contribution_page_id' => CRM_Utils_Array::value('contribution_page_id', $this->_params), -- 2.25.1