X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2Futils.php;h=5a8c0e54b75c6679425ed21816b1da15db8fc660;hb=46d87393f7bd29c1a5416e62207293f58115412c;hp=f28c07aeedf2f49387ddfe6caa234953aeabc3f7;hpb=81557205bd2bdaab0a27f160d6d549a962de9232;p=civicrm-core.git diff --git a/api/v3/utils.php b/api/v3/utils.php index f28c07aeed..5a8c0e54b7 100644 --- a/api/v3/utils.php +++ b/api/v3/utils.php @@ -173,6 +173,10 @@ function civicrm_api3_create_success($values = 1, $params = [], $entity = NULL, // 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'];