Deleting parent address should delete shared address
Currently, in CiviCRM, when we do a shared address :
- all the address fields are copied from the master address to the shared address.
- when the master address is deleted, the link is simply deleted (field master_id set to NULL) but the child address is kept as it is
From a user/business logic perspective, I believe it doesn't makes sense to keep the child address when the master is deleted.
I propose to delete all the shared address when a master address is deleted. At the very least, we should be able to find the addresses that previously had a primary address that has been deleted.
Any concern or use case where the child addresses should be kept?