Smarty notice fix on bank_account_number
authorEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 27 Feb 2023 23:48:33 +0000 (12:48 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 27 Feb 2023 23:48:33 +0000 (12:48 +1300)
templates/CRM/Contribute/Form/Contribution/Main.tpl

index 0c46bda3780c62d9d784f40bb7f1e8ff3795e722..e5e6f688f786b2ac8ae6965979825eccc434dc93 100644 (file)
       {include file="CRM/UF/Form/Block.tpl" fields=$customPost}
     </div>
 
-    {if $is_monetary and $form.bank_account_number}
+    {if $is_monetary && array_key_exists('bank_account_number', $form)}
       <div id="payment_notice">
         <fieldset class="crm-public-form-item crm-group payment_notice-group">
           <legend>{ts}Agreement{/ts}</legend>