From: Eileen McNaughton Date: Fri, 6 Aug 2021 22:38:59 +0000 (+1200) Subject: Tpl notice fixes X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b7af8febcc358df1dbc901699ff4f17f9e61c493;p=civicrm-core.git Tpl notice fixes These fields are both conditionally assigned to the template --- 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}