dev/core#2046 Remove extraneous primary handling
authoreileen <emcnaughton@wikimedia.org>
Fri, 2 Oct 2020 01:49:50 +0000 (14:49 +1300)
committereileen <emcnaughton@wikimedia.org>
Wed, 7 Oct 2020 00:54:39 +0000 (13:54 +1300)
commitc2c5a22e7fe4ae7eb22b4826071056d63c41c728
treeb67115f9d15e818652736a85ebe1cf5584134f9e
parent1a526b681d693e7abe3768ac14dd02c03a37c73b
dev/core#2046 Remove extraneous primary handling

This builds on https://github.com/civicrm/civicrm-core/pull/18661 and removes extra primary handling

We can feel confident this is not needed as we have done a handful of rounds of tidy up & added tests
to ensure that for all 4 entities (email, phone, im & openid) potentially created through this
function both the create and the delete functions take action to ensure that the contact
is left with exactly one primary address at the end of this process
CRM/Core/BAO/Block.php