From 7b31fdc3f3c59031b163a2784121a954764b7124 Mon Sep 17 00:00:00 2001 From: Sunil Pawar Date: Mon, 7 Sep 2020 17:53:29 +0530 Subject: [PATCH] fix changing type for Inherited membership record --- includes/wf_crm_webform_base.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/wf_crm_webform_base.inc b/includes/wf_crm_webform_base.inc index 818c52f15..b2e72ddab 100755 --- a/includes/wf_crm_webform_base.inc +++ b/includes/wf_crm_webform_base.inc @@ -586,6 +586,8 @@ abstract class wf_crm_webform_base { 'contact_id' => $cid, // Limit to only enabled membership types 'membership_type_id' => ['IN' => $membership_types], + // skip membership through Inheritance. + 'owner_membership_id' => ['IS NULL' => 1], ]); if (!$existing) { return [];