error on php8
authordemeritcowboy <demeritcowboy@hotmail.com>
Tue, 9 Aug 2022 04:07:55 +0000 (00:07 -0400)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Tue, 9 Aug 2022 04:07:55 +0000 (00:07 -0400)
templates/CRM/Contribute/Form/Search/Common.tpl
tests/phpunit/CRM/Core/FormTest.php

index 5b348f5e3508e5b82e9877120235f95ce3809ae1..a9d03cd93d394f5b6c3210423e2c8c234e1e3185 100644 (file)
@@ -25,7 +25,7 @@
     <label>{ts}Currency{/ts}</label> <br />
     {$form.contribution_currency_type.html|crmAddClass:twenty}
   </td>
-  {if $form.contribution_batch_id.html}
+  {if $form.contribution_batch_id}
     <td>
       {$form.contribution_batch_id.label}<br />
       {$form.contribution_batch_id.html}
index 8bd989acd707f6d4041c738d55ff598b28b2eefa..ddae834236e854d05c0ba0603ff989f0abe75531 100644 (file)
@@ -59,6 +59,9 @@ class CRM_Core_FormTest extends CiviUnitTestCase {
       'Find Contacts' => [
         'civicrm/contact/search?reset=1',
       ],
+      'Find Contributions' => [
+        'civicrm/contribute/search?reset=1',
+      ],
       'Fulltext search' => [
         'civicrm/contact/search/custom?csid=15&reset=1',
       ],