From: eileen Date: Wed, 5 May 2021 06:43:00 +0000 (+1200) Subject: dev/core#2586 fix failure to null thank you X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b4c62fb67005c1649404924cf756c32f8d19795e;p=civicrm-core.git dev/core#2586 fix failure to null thank you 5.35 regression from this https://github.com/civicrm/civicrm-core/commit/aa9e580fd8ce5824d627bdaf797a3ccd6732f1a0 --- 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' => [], ], ],