PCP - Update BAO to use writeRecord/deleteRecord
authorcolemanw <coleman@civicrm.org>
Wed, 23 Aug 2023 02:11:38 +0000 (22:11 -0400)
committercolemanw <coleman@civicrm.org>
Wed, 23 Aug 2023 02:31:46 +0000 (22:31 -0400)
commit32f89cf39c780d4d755657be22500f1fae72c37a
treebe2b3f8bebc8ee56dad4fdf99dc58f0b15efa4d7
parent81e41d599693e51891841205d21fdede154907ef
PCP - Update BAO to use writeRecord/deleteRecord

- Ensures hooks consistently called and custom data properly handled
- Fixed incorrect entity name passed to pre/post hooks by delete function
- Defaults set by pre hook instead of inside create function
CRM/PCP/BAO/PCP.php
CRM/PCP/BAO/PCPBlock.php
CRM/PCP/Form/Campaign.php
CRM/PCP/Form/Contribute.php
CRM/PCP/Form/Event.php
CRM/PCP/Form/PCP.php
tests/phpunit/CRM/PCP/BAO/PCPTest.php
tests/phpunit/CRMTraits/PCP/PCPTestTrait.php
tests/phpunit/api/v3/ReportTemplateTest.php