* pairs to insert in new contact.
* @param array $values
* The reformatted properties that we can use internally.
- * @param bool $create
*
* @throws \CRM_Core_Exception
*/
- private function deprecatedFormatParams($params, &$values, $create = FALSE): void {
+ private function deprecatedFormatParams($params, &$values): void {
// copy all the contribution fields as is
- require_once 'api/v3/utils.php';
if (empty($params['pledge_id'])) {
return;
}
}
// we need to check if oldest payment amount equal to contribution amount
- require_once 'CRM/Pledge/BAO/PledgePayment.php';
$pledgePaymentDetails = CRM_Pledge_BAO_PledgePayment::getOldestPledgePayment($values['pledge_id']);
if ($pledgePaymentDetails['amount'] == $totalAmount) {
}
// first add core contact values since for other Civi modules they are not added
- require_once 'CRM/Contact/BAO/Contact.php';
$contactFields = CRM_Contact_DAO_Contact::fields();
_civicrm_api3_store_values($contactFields, $values, $params);