Alter dedupe code to call api rather than bao->save()
authoreileen <emcnaughton@wikimedia.org>
Sun, 11 Apr 2021 21:36:30 +0000 (09:36 +1200)
committereileen <emcnaughton@wikimedia.org>
Mon, 12 Apr 2021 23:00:09 +0000 (11:00 +1200)
commitde7b2b20fbe071709bbfc8f4a8cdfa87a32eb1b1
tree7efc1d3a8c494130d08983ad56590052341f69e2
parentde02266776f088bdceba8564195570db5f5c2b7c
Alter dedupe code to call api rather than bao->save()

This achieves 2 things
1) hooks are no longer  bypassed
2) it leverages core handling for is_primary rather than this
somewhat unreliable attempt
CRM/Dedupe/MergeHandler.php
tests/phpunit/api/v3/ContactTest.php