dev/core#866, dev/core#1318 Fix failure to import checkboxes for activities
authoreileen <emcnaughton@wikimedia.org>
Fri, 4 Dec 2020 04:22:29 +0000 (17:22 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 12 Jan 2021 07:30:49 +0000 (20:30 +1300)
commit65d27ad8593afe910ae8aa6c6795c64a7ba97eb8
treef5b21a8393db56985f11294fe421a3f76895b982
parent1d2cb41c8f44b236d58dd71ca61d0aa3c40703a5
dev/core#866, dev/core#1318 Fix failure to import checkboxes for activities

This seeks to address a long-standing issue whereby checkboxes cannot be imported onto
activities if the name and value match.

Since this code was written the create was switched from a BAO create to the
activity api create. Simply removing the handling to prepare for the BAO create
allows the api to do it correctly
CRM/Activity/Import/Parser/Activity.php
CRM/Core/Session.php
api/v3/CustomField.php
tests/phpunit/CRM/Activity/Import/Parser/ActivityTest.php [new file with mode: 0644]
tests/phpunit/CRM/Core/BAO/CustomFieldTest.php
tests/phpunit/CRMTraits/Custom/CustomDataTrait.php