From 6a235b12c3c478dccac36449492fc4ebe8c73555 Mon Sep 17 00:00:00 2001 From: Francis Whittle Date: Fri, 15 Dec 2023 09:45:06 +1100 Subject: [PATCH] CIVIEWAY-265 Fix fatal error when setting end_date when last instalment is processed --- CRM/eWAYRecurring/ProcessTrait.php | 3 +-- info.xml | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CRM/eWAYRecurring/ProcessTrait.php b/CRM/eWAYRecurring/ProcessTrait.php index e73a7bf..3197865 100644 --- a/CRM/eWAYRecurring/ProcessTrait.php +++ b/CRM/eWAYRecurring/ProcessTrait.php @@ -348,7 +348,6 @@ public function process_recurring_payments() { } protected function update_contribution_status($next_sched, $contribution) { - $d_now = new DateTime(); if ($next_sched) { CRM_Core_DAO::setFieldValue('CRM_Contribute_DAO_ContributionRecur', $contribution->id, @@ -363,7 +362,7 @@ protected function update_contribution_status($next_sched, $contribution) { CRM_Core_DAO::setFieldValue('CRM_Contribute_DAO_ContributionRecur', $contribution->id, 'end_date', - CRM_Utils_Date::isoToMysql($d_now)); + date('YmdHis')); } } diff --git a/info.xml b/info.xml index f78ef6d..7cc1e79 100644 --- a/info.xml +++ b/info.xml @@ -15,8 +15,8 @@ support@agileware.com.au stable - 2023-10-04 - 2.6.3 + 2023-12-15 + 2.6.4 5.38