dev/core#2586 fix failure to null thank you
authoreileen <emcnaughton@wikimedia.org>
Wed, 5 May 2021 06:43:00 +0000 (18:43 +1200)
committerSeamus Lee <seamuslee001@gmail.com>
Thu, 6 May 2021 00:03:02 +0000 (10:03 +1000)
5.35 regression from this

https://github.com/civicrm/civicrm-core/commit/aa9e580fd8ce5824d627bdaf797a3ccd6732f1a0

CRM/Contribute/Form/AdditionalInfo.php
tests/phpunit/CRM/Contribute/Form/ContributionTest.php

index 117764dc3a1e5177ad546b1ef9c344525c5cebc8..93c8d59779f80fcf0bdadecdd628958812f035ef 100644 (file)
@@ -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'])) {
index 9ea988d9201d8baef555a6a72ee2643efb4a8351..b33161f66b847fdc6005ae378123de865daa225c 100644 (file)
@@ -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' => [],
         ],
       ],