Move the code to add or clear employer from relationship backoffice form to BAO
authorMonish Deb <deb.monish@gmail.com>
Fri, 2 Aug 2019 01:59:12 +0000 (13:59 +1200)
committereileen <emcnaughton@wikimedia.org>
Fri, 2 Aug 2019 03:57:27 +0000 (15:57 +1200)
commitf42bcfb14e822ba42422beaeb6f83c8dece8e33c
tree5b7b3a42a847aa3fe793287a2d09db7bdb93f2e0
parentf126dd02397b1d49ac996c9f0de10efca4cb60b1
Move the code to add or clear employer from relationship backoffice form to BAO

This is a reduced version of https://github.com/civicrm/civicrm-core/pull/13331 which stalled on the QA over handling of
removed employers - that code is simply excluded. I tested adding & removing & editing relationships with the
current_employer checkbox ticked or unticked & this seems to work fine
CRM/Contact/BAO/Contact/Utils.php
CRM/Contact/BAO/Relationship.php
CRM/Contact/Form/Relationship.php
api/v3/Relationship.php
tests/phpunit/api/v3/RelationshipTest.php