Skip to content

Commit

Permalink
Merge pull request #352 from sunilpawar/membership_change_type
Browse files Browse the repository at this point in the history
D7 : Do not change Membership type for Inherited membership record
  • Loading branch information
KarinG committed Sep 7, 2020
2 parents e04608b + 7b31fdc commit 9ac482a
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 9ac482a

Please sign in to comment.