Tpl notice fixes
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 6 Aug 2021 22:38:59 +0000 (10:38 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 6 Aug 2021 22:38:59 +0000 (10:38 +1200)
These fields are both conditionally assigned to the template

templates/CRM/Contribute/Form/Search/Common.tpl

index 5fa9bfb99528926c93b03246a4688f92abb69288..88bef929304afba57608e9d4bd69c03f7fc535ca 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 !empty($form.contribution_batch_id.html)}
     <td>
       {$form.contribution_batch_id.label}<br />
       {$form.contribution_batch_id.html}
     {$form.contribution_source.html|crmAddClass:twenty}
   </td>
   <td>
-    {$form.contribution_product_id.label} <br />
-    {$form.contribution_product_id.html|crmAddClass:twenty}
+    {if !empty($form.contribution_product_id)}
+      {$form.contribution_product_id.label} <br />
+      {$form.contribution_product_id.html|crmAddClass:twenty}
+    {/if}
   </td>
 </tr>
 <tr>