Skip to content

Commit

Permalink
CIVIEWAY-265 Fix fatal error when setting end_date when last instalme…
Browse files Browse the repository at this point in the history
…nt is processed
  • Loading branch information
agileware-fj committed Dec 14, 2023
1 parent 0214f74 commit 6a235b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions CRM/eWAYRecurring/ProcessTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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'));
}
}

Expand Down
4 changes: 2 additions & 2 deletions info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<email>support@agileware.com.au</email>
</maintainer>
<develStage>stable</develStage>
<releaseDate>2023-10-04</releaseDate>
<version>2.6.3</version>
<releaseDate>2023-12-15</releaseDate>
<version>2.6.4</version>
<compatibility>
<ver>5.38</ver>
</compatibility>
Expand Down

0 comments on commit 6a235b1

Please sign in to comment.