Duplicated inherited membership with multiple relationships when adding a new relationship
Inherited membership gets duplicated when adding a new relationship. However, enabling a disabled relationship won't cause the duplication.
Might relate to this PR and the referenced PRs
Step to reproduce
- Membership Type A has option to inherit membership for Relationship A and Relationship B
- Organisation A has Membership Type A, with status Current
- Individual A, Relationship A to Organisation A is created
- Individual A, Relationship B to Organisation A is created
- Individual A has two memberships, one is duplicated
- Individual A, Relationship A to Organisation A is disabled
- Individual A, Relationship B to Organisation A is disabled
- Individual A has no membership
- Individual A, Relationship A to Organisation A is enabled
- Individual A, Relationship B to Organisation A is enabled
- Individual A has one membership
Agileware ref: CIVICRM-1063