Stop calling hook twice
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 7 Jan 2022 03:05:58 +0000 (16:05 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 7 Jan 2022 06:35:46 +0000 (19:35 +1300)
commit4b1ba25cd461a48cae34e5380ecb8e8efc162629
tree1f5fe3be198220cbdf8502be771a16e8bda604fd
parente9fc27f0e52d88f15a63f2c1fabf24ed0989d16b
Stop calling hook twice

Per the code comments this hook is called here but also in add. This is all about the crazy
history of this function - which used to be tied to the relationship form.

I can't think of any valid use for calling the hook twice - but I can think of reasons it
would be bad...
CRM/Contact/BAO/Contact/Utils.php
CRM/Contact/BAO/Relationship.php