From 10dc54f877e2fd4a3edd190fb9e288f7db09ae6e Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sat, 18 Nov 2023 17:17:09 +1300 Subject: [PATCH] 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 --- templates/CRM/common/paymentBlock.tpl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.25.1