From b7af8febcc358df1dbc901699ff4f17f9e61c493 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sat, 7 Aug 2021 10:38:59 +1200 Subject: [PATCH] Tpl notice fixes These fields are both conditionally assigned to the template --- templates/CRM/Contribute/Form/Search/Common.tpl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/templates/CRM/Contribute/Form/Search/Common.tpl b/templates/CRM/Contribute/Form/Search/Common.tpl index 5fa9bfb995..88bef92930 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 !empty($form.contribution_batch_id.html)} {$form.contribution_batch_id.label}
{$form.contribution_batch_id.html} @@ -136,8 +136,10 @@ {$form.contribution_source.html|crmAddClass:twenty} - {$form.contribution_product_id.label}
- {$form.contribution_product_id.html|crmAddClass:twenty} + {if !empty($form.contribution_product_id)} + {$form.contribution_product_id.label}
+ {$form.contribution_product_id.html|crmAddClass:twenty} + {/if} -- 2.25.1