From b4c62fb67005c1649404924cf756c32f8d19795e Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 5 May 2021 18:43:00 +1200 Subject: [PATCH] dev/core#2586 fix failure to null thank you 5.35 regression from this https://github.com/civicrm/civicrm-core/commit/aa9e580fd8ce5824d627bdaf797a3ccd6732f1a0 --- CRM/Contribute/Form/AdditionalInfo.php | 2 +- tests/phpunit/CRM/Contribute/Form/ContributionTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Contribute/Form/AdditionalInfo.php b/CRM/Contribute/Form/AdditionalInfo.php index 117764dc3a..93c8d59779 100644 --- a/CRM/Contribute/Form/AdditionalInfo.php +++ b/CRM/Contribute/Form/AdditionalInfo.php @@ -275,7 +275,7 @@ class CRM_Contribute_Form_AdditionalInfo { $formatted['thankyou_date'] = CRM_Utils_Date::processDate($params['thankyou_date']); } else { - $formatted['thankyou_date'] = NULL; + $formatted['thankyou_date'] = 'null'; } if (!empty($params['is_email_receipt'])) { diff --git a/tests/phpunit/CRM/Contribute/Form/ContributionTest.php b/tests/phpunit/CRM/Contribute/Form/ContributionTest.php index 9ea988d920..b33161f66b 100644 --- a/tests/phpunit/CRM/Contribute/Form/ContributionTest.php +++ b/tests/phpunit/CRM/Contribute/Form/ContributionTest.php @@ -1873,7 +1873,7 @@ Price Field - Price Field 1 1 $ 100.00 $ 100.00 'creditnote_id' => NULL, 'campaign_id' => NULL, 'contribution_page_id' => NULL, - 'thankyou_date' => NULL, + 'thankyou_date' => 'null', 'custom' => [], ], ], -- 2.25.1