From 3ae01ff517cb828d59fa790bdfb8e1a04589a0dc Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Tue, 9 Aug 2022 00:07:55 -0400 Subject: [PATCH] error on php8 --- templates/CRM/Contribute/Form/Search/Common.tpl | 2 +- tests/phpunit/CRM/Core/FormTest.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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', ], -- 2.25.1