APIv4 Activity::update() causes target contacts and assignees to be deleted
Overview
In APIv4, \Civi\Api4\Activity::update()
causes target contacts and assignees to be deleted from ActivityContact
.
Reproduction steps (includes links to APIv4 Explorer on dmaster)
- Create a new activity and assign it to a target contact
- Observe that the activity has a target contact
- Update an unrelated activity field using
\Civi\Api4\Activity::update()
- Observe that the target contact was deleted
Current behaviour
Target contact and assignees are deleted from ActivityContact
. Source contact is preserved.
Expected behaviour
Target contacts and assignees should be preserved.
Environment information
- CiviCRM: Master
- PHP: 7.2
Comments
Not sure if this ever worked, we have no existing code that calls this.