Skip to content

Commit

Permalink
fix changing type for Inherited membership record
Browse files Browse the repository at this point in the history
  • Loading branch information
sunilpawar committed Sep 7, 2020
1 parent f88dd28 commit 7b31fdc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions includes/wf_crm_webform_base.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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 [];
Expand Down

0 comments on commit 7b31fdc

Please sign in to comment.