From: Eileen McNaughton Date: Sat, 18 Nov 2023 04:17:09 +0000 (+1300) Subject: Notice fix on payment block X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=10dc54f877e2fd4a3edd190fb9e288f7db09ae6e;p=civicrm-core.git Notice fix on payment block We don't need to check if we are dealing with a multiple participant event because that is the only scenario where the field additional_participants is present & it will fail gracefully if it is not present. This has been causing notices across all flows that include the payment block --- diff --git a/templates/CRM/common/paymentBlock.tpl b/templates/CRM/common/paymentBlock.tpl index 7844e4a7e5..8a3c00436b 100644 --- a/templates/CRM/common/paymentBlock.tpl +++ b/templates/CRM/common/paymentBlock.tpl @@ -52,8 +52,7 @@ */ function skipPaymentMethod() { var isHide = false; - var isMultiple = {/literal}{$event.is_multiple_registrations|@json_encode}{literal}; - var alwaysShowFlag = (isMultiple && cj("#additional_participants").val()); + var alwaysShowFlag = (cj("#additional_participants").val()); var alwaysHideFlag = (cj("#bypass_payment").val() == 1); var total_amount_tmp = cj('#pricevalue').data('raw-total'); // Hide billing questions if this is free