$trxnParams['trxn_date'] = !empty($params['contribution']->cancel_date) ? $params['contribution']->cancel_date : date('YmdHis');
}
//CRM-16259, set is_payment flag for non pending status
- if (!in_array(CRM_Utils_Array::value('contribution_status_id', $params), $pendingStatus)) {
+ if (!in_array($contributionStatus, $pendingStatus)) {
$trxnParams['is_payment'] = 1;
}
if (!empty($params['payment_processor'])) {
foreach ($customFieldDataType as $dataType => $label) {
switch ($dataType) {
+ case 'Country':
+ case 'StateProvince':
+ $this->foreignKeyChecksOff();
case 'String':
case 'Link':
case 'Int':
case 'Float':
case 'Money':
case 'Date':
- case 'Country':
- case 'StateProvince':
case 'Boolean':
//Based on the custom field data-type choose desired SQL operators(to test with) and basic $type