APIv4 - CiviCase API: Fix openening a case with current user as creator
authorColeman Watts <coleman@civicrm.org>
Wed, 5 May 2021 21:33:28 +0000 (17:33 -0400)
committerColeman Watts <coleman@civicrm.org>
Thu, 6 May 2021 12:51:01 +0000 (08:51 -0400)
commitbaf63a69d8ff7be22c7fbbf67b510d9d3cd0f801
treed09c7852c4c019dfde1d6bceb55c56ebbf51c5aa
parent15acadd111ff13aa1550767b5f14f0fcd502fccc
APIv4 - CiviCase API: Fix openening a case with current user as creator

The DAOActionTrait::writeObjects function was formatting values but not by reference,
so the CiviCase writeObjects function was using unformatted values to open the case,
which would contain the raw string `user_contact_id` instead of the processed value.
12 files changed:
Civi/Api4/Action/Address/AddressSaveTrait.php
Civi/Api4/Action/CiviCase/CiviCaseSaveTrait.php
Civi/Api4/Action/GroupContact/GroupContactSaveTrait.php
Civi/Api4/Generic/DAOCreateAction.php
Civi/Api4/Generic/DAOUpdateAction.php
Civi/Api4/Generic/Traits/CustomValueActionTrait.php
Civi/Api4/Generic/Traits/DAOActionTrait.php
Civi/Api4/Service/Spec/Provider/CaseCreationSpecProvider.php
tests/phpunit/api/v4/DataSets/CaseType.json [new file with mode: 0644]
tests/phpunit/api/v4/DataSets/ConformanceTest.json
tests/phpunit/api/v4/Entity/CaseTest.php [new file with mode: 0644]
tests/phpunit/api/v4/Entity/ConformanceTest.php