From 039f3e71fe7b0693aed2c853cf589d725d4430ab Mon Sep 17 00:00:00 2001 From: Patel Nainesh Date: Tue, 13 Sep 2016 20:17:51 +0530 Subject: [PATCH] CRM-19348 - membership-api: max_related is ignored --- CRM/Member/BAO/Membership.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Member/BAO/Membership.php b/CRM/Member/BAO/Membership.php index 99852be14d..1805b76426 100644 --- a/CRM/Member/BAO/Membership.php +++ b/CRM/Member/BAO/Membership.php @@ -284,7 +284,7 @@ class CRM_Member_BAO_Membership extends CRM_Member_DAO_Membership { // data cleanup only: all verifications on number of related memberships are done upstream in: // CRM_Member_BAO_Membership::createRelatedMemberships() // CRM_Contact_BAO_Relationship::relatedMemberships() - if (isset($params['owner_membership_id'])) { + if (!empty($params['owner_membership_id'])) { unset($params['max_related']); } else { -- 2.25.1