From: jitendrapurohit Date: Thu, 31 Dec 2015 08:37:02 +0000 (+0530) Subject: added doc X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7f0aa41e8806f6023fc4a42940d8d81e5ba8108f;p=civicrm-core.git added doc --- diff --git a/CRM/Contribute/BAO/Contribution.php b/CRM/Contribute/BAO/Contribution.php index 3c1906917a..4b94af05e2 100644 --- a/CRM/Contribute/BAO/Contribution.php +++ b/CRM/Contribute/BAO/Contribution.php @@ -4319,6 +4319,9 @@ LIMIT 1;"; //we might be renewing membership, //so make status override false. $membershipParams['is_override'] = FALSE; + //CRM-17723 - avoid updating related membership from the api as the + //static $relatedContactIds array() in CRM_Member_BAO_Membership::createdRelatedMemberships() + //already contains these ids from previous call leading to deletion of related memberships. $membershipParams['reset'] = TRUE; civicrm_api3('Membership', 'create', $membershipParams);