Memberships by relationship are not created on contact merge
Overview
If two contacts are merged and one has an active membership and the other has active relationships, memberships by relationship are not created for the related contacts.
Reproduction steps
- Create (or find) two Organization Contacts
- one should have a membership
- one should have at least one relationship of Type 'Employer of'
- Merge the two Organizations
- Note that the merged contact has the membership and the relationship, but that the related contact does not have a membership by relationship
Current behaviour
Memberships by relationship are not being created for related contacts after a contact merge.
Expected behaviour
When contacts with memberships and relationships- such as of Type 'Employer of' - are merged, memberships by relationship should be created for the relevant contacts- i.e. whatever function gets called to create a membership by relationship should be called after contacts are merged, if that contact has a membership.
Environment information
- CiviCRM: 5.66