Check isBackOffice before checking billing_profile_id
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 28 Jul 2023 04:21:00 +0000 (16:21 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 28 Jul 2023 04:21:00 +0000 (16:21 +1200)
It won't be set from back office forms & will e-notice...

templates/CRM/common/paymentBlock.tpl

index 8434b62ad3247f8061ae5384f029c70677488361..4d71d21ded9d63dfc07a21d2eeed248c94ecb229 100644 (file)
@@ -90,7 +90,8 @@
       {else}
         {capture assign='urlPathVar'}{/capture}
       {/if}
-      {if $billing_profile_id}
+      // Billing profile ID is only ever set on front end forms, to force entering address for pay later.
+      {if !$isBackOffice && $billing_profile_id}
         {capture assign='profilePathVar'}billing_profile_id={$billing_profile_id}&{/capture}
       {else}
         {capture assign='profilePathVar'}{/capture}