Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
C
Core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,009
    • Issues 1,009
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • Core
  • Issues
  • #2515

Closed
Open
Created Apr 07, 2021 by justinfreeman (Agileware)@justinfreeman🚴🏿Developer

CiviCRM Membership, inherited membership remains active even when the primary member has been marked as deleted

CiviCRM Membership, inherited membership remains active even when the primary member has been marked as deleted. Reproduced on CiviCRM 5.37.alpha1. Observed since CiviCRM 5.33.2 and earlier.

Steps to reproduce:

  1. Set up a Membership Type which can be inherited using the Employer Of relationship, Membership A
  2. Create Organisation contact, Org B
  3. Assign Membership A to Org B
  4. Create Organisation contact, Org C
  5. Assign Membership A to Org C
  6. Create Employer Of relationship for Individual D, E, F with Org B
  7. Note that Individual D, E, F have inherited Membership A from Org B
  8. Merge Org B (Duplicate) and Org C (Original)
  9. During the Merge action, keep the merge Relationship option enabled. This problem can be replicated with either enable or disable of the Move Related Memberships.
  10. The merge action will mark Org B (Duplicate) as deleted
  11. Post merge, check Individual D, E, F
  12. Note that the Employer Of relationship for Individual D, E, F has been changed to Org C, this is correct.
  13. Note that Individual D, E, F still have inherited Membership A from Org B (the deleted contact) - this is incorrect, see below.

The desired result is that Individual D, E, F will have inherited Membership A from Org C. The Relationship has been transferred to Org C which should trigger then membership to be inherited from Org C, not Org B.

Workaround is to restore the deleted Org C from trash and delete the Membership record. Then for each of the Individual contacts, disable and re-enable the Relationship with Org B. This should restore the correct inherited relationship.

Agileware Ref: CIVICRM-906

Screenshots below of reproduced issue.

  • Green Action School DUPLICATE (Org B)
  • Green Action School ORIGINAL (Org C)
  • The two Individual Contacts show the incorrect inherited membership, associated with the Green Action School DUPLICATE (Org B).

screencapture-dmaster-demo-civicrm-org-civicrm-contact-view-2021-04-07-10_39_07

screencapture-dmaster-demo-civicrm-org-civicrm-contact-view-2021-04-07-10_38_57

screencapture-dmaster-demo-civicrm-org-civicrm-contact-merge-2021-04-07-10_38_49

screencapture-dmaster-demo-civicrm-org-civicrm-contact-view-2021-04-07-10_39_34

screencapture-dmaster-demo-civicrm-org-civicrm-contact-view-2021-04-07-10_39_25

Edited Apr 07, 2021 by justinfreeman (Agileware)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None