From bef53ccfad09fba117ce32b6153af6d5ae1df2c6 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Thu, 14 Jul 2016 18:10:47 +0530 Subject: [PATCH] CRM-19053 - Fix Source Message for recurring Contribution --- CRM/Contribute/BAO/Contribution.php | 5 ++++- CRM/Contribute/Form/Task/Status.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CRM/Contribute/BAO/Contribution.php b/CRM/Contribute/BAO/Contribution.php index a04b72a3bc..88ad182ede 100644 --- a/CRM/Contribute/BAO/Contribution.php +++ b/CRM/Contribute/BAO/Contribution.php @@ -4807,7 +4807,10 @@ LIMIT 1;"; elseif ($event) { return ts('Online Event Registration') . ': ' . $event->title; } - return 'recurring contribution'; + elseif (!empty($contribution->contribution_recur_id)) { + return 'recurring contribution'; + } + return ''; } /** diff --git a/CRM/Contribute/Form/Task/Status.php b/CRM/Contribute/Form/Task/Status.php index 8fe0396559..e21c6cec51 100644 --- a/CRM/Contribute/Form/Task/Status.php +++ b/CRM/Contribute/Form/Task/Status.php @@ -277,7 +277,7 @@ AND co.id IN ( $contribIDs )"; else { $input['trxn_id'] = $contribution->invoice_id; } - $input['trxn_date'] = CRM_Utils_Date::processDate($params["trxn_date_{$row['contribution_id']}"]); + $input['trxn_date'] = CRM_Utils_Date::processDate($params["trxn_date_{$row['contribution_id']}"], date('H:i:s')); // @todo calling baseIPN like this is a pattern in it's last gasps. Call contribute.completetransaction api. $baseIPN->completeTransaction($input, $ids, $objects, $transaction, FALSE); -- 2.25.1