added doc
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Thu, 31 Dec 2015 08:37:02 +0000 (14:07 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Thu, 31 Dec 2015 08:37:02 +0000 (14:07 +0530)
CRM/Contribute/BAO/Contribution.php

index 3c1906917a83bbbbbe770a6924a013e6e6ce13f5..4b94af05e2c4fe4e33e84b459a1bc91e3b158b5b 100644 (file)
@@ -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);