CRM-21858 'Merge All Contacts with the Same Address' doesn't consider Household replace individuals that share same address.
Steps to replicate:
- 5 contacts A,B,C, D, E where A, B and C individuals share same address.
- D is a household but shares same address as of ABC.
- E is a household which has a different address but Household head of A and B
- On exporting these 5 contacts and choosing merge same address:
Expected : 2 records i.e. D and E. Because D has a same address as of A,B and C so it would replace these 3. E is a household though but has different address so it should not be merged
Actual: 3 records i.e. combined record of (A,B,C) , D and E (Incorrect)
Ported from - https://issues.civicrm.org/jira/browse/CRM-21858