Campaign - Allow writeRecord to autogenerate name from title, fix tests
authorColeman Watts <coleman@civicrm.org>
Tue, 4 Apr 2023 02:12:47 +0000 (22:12 -0400)
committerColeman Watts <coleman@civicrm.org>
Tue, 4 Apr 2023 11:08:49 +0000 (07:08 -0400)
commitb381547b2f2943c63597fd0ceb5d896141547977
treeef0f5aae70b50e39f3d334c6136aa74ca5bc376e
parent002fb4a236ebec13a0b270af8f05364cd4bc37c4
Campaign - Allow writeRecord to autogenerate name from title, fix tests

The Campaign BAO was autogenerating a name from the title but without the dedupe checking feature
performed by writeRecord, so it was getting in the way of that safeguard.
CRM/Campaign/BAO/Campaign.php
tests/phpunit/CRM/Activity/Form/Task/PDFTest.php
tests/phpunit/CRM/Contribute/ActionMapping/ByTypeTest.php
tests/phpunit/CiviTest/CiviUnitTestCase.php