// 4.3 legacy handling.
$values[$key]['contribution_type_id'] = $item['financial_type_id'];
}
+ if (!empty($item['contribution_cancel_date'])) {
+ // 5.16 legacy handling.
+ $values[$key]['cancel_date'] = $item['contribution_cancel_date'];
+ }
if (!empty($item['next_sched_contribution_date'])) {
// 4.4 legacy handling
$values[$key]['next_sched_contribution'] = $item['next_sched_contribution_date'];
* @return array
* options extracted from params
*/
-function _civicrm_api3_get_options_from_params(&$params, $queryObject = FALSE, $entity = '', $action = '') {
+function _civicrm_api3_get_options_from_params($params, $queryObject = FALSE, $entity = '', $action = '') {
$lowercase_entity = _civicrm_api_get_entity_name_from_camel($entity);
$is_count = FALSE;
$sort = CRM_Utils_Array::value('sort', $params, 0);