From: Web Access Date: Tue, 21 Jul 2015 14:25:36 +0000 (+0530) Subject: Fix for CRM-16857 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=63e1c32b5265917801281461b03a985690351f20;p=civicrm-core.git Fix for CRM-16857 --- diff --git a/CRM/Member/BAO/Membership.php b/CRM/Member/BAO/Membership.php index 31e293d5e5..edbe3ad0da 100644 --- a/CRM/Member/BAO/Membership.php +++ b/CRM/Member/BAO/Membership.php @@ -1909,6 +1909,10 @@ WHERE civicrm_membership.contact_id = civicrm_contact.id // we should not created contribution record for related contacts, CRM-3371 unset($params['contribution_status_id']); + //CRM-16857: Do not create multiple line-items for inherited membership through priceset. + unset($params['lineItems']); + unset($params['line_item']); + if (($params['status_id'] == $deceasedStatusId) || ($params['status_id'] == $expiredStatusId)) { // related membership is not active so does not count towards maximum CRM_Member_BAO_Membership::create($params, $relMemIds);