From: demeritcowboy Date: Tue, 9 Aug 2022 04:07:55 +0000 (-0400) Subject: error on php8 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3ae01ff517cb828d59fa790bdfb8e1a04589a0dc;p=civicrm-core.git error on php8 --- diff --git a/templates/CRM/Contribute/Form/Search/Common.tpl b/templates/CRM/Contribute/Form/Search/Common.tpl index 5b348f5e35..a9d03cd93d 100644 --- a/templates/CRM/Contribute/Form/Search/Common.tpl +++ b/templates/CRM/Contribute/Form/Search/Common.tpl @@ -25,7 +25,7 @@
{$form.contribution_currency_type.html|crmAddClass:twenty} - {if $form.contribution_batch_id.html} + {if $form.contribution_batch_id} {$form.contribution_batch_id.label}
{$form.contribution_batch_id.html} diff --git a/tests/phpunit/CRM/Core/FormTest.php b/tests/phpunit/CRM/Core/FormTest.php index 8bd989acd7..ddae834236 100644 --- a/tests/phpunit/CRM/Core/FormTest.php +++ b/tests/phpunit/CRM/Core/FormTest.php @@ -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', ],