Deduping contacts creates a copy of the case instead of moving the case
When you dedupe contacts who have a case. A copy of the case is created and the original case is marked as deleted.
How to reproduce
- Create a contact with name Donald A
- Create a case for this contact
- Create a contact with name Donald B
- Merge Donald A with Donald B and move the cases to Donald B
In the database I would expect one case
In the database there are now two cases.
I have created an extension as a work around for this flaw: https://lab.civicrm.org/extensions/mergecaseandkeepid