From 10495d04f8d8c3c54a8fd6ff9493db446c8d33c0 Mon Sep 17 00:00:00 2001 From: Monish Deb Date: Tue, 22 Dec 2020 23:38:00 +0530 Subject: [PATCH] QA fix --- templates/CRM/common/paymentBlock.tpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/CRM/common/paymentBlock.tpl b/templates/CRM/common/paymentBlock.tpl index 5c23c1b473..95f907cf28 100644 --- a/templates/CRM/common/paymentBlock.tpl +++ b/templates/CRM/common/paymentBlock.tpl @@ -123,7 +123,9 @@ $('[name=payment_processor_id], #currency').on('change.paymentBlock', function() { var payment_processor_id = $('[name=payment_processor_id]:checked').val() == undefined ? $('[name=payment_processor_id]').val() : $('[name=payment_processor_id]:checked').val(); - buildPaymentBlock(payment_processor_id); + if (payment_processor_id != undefined) { + buildPaymentBlock(payment_processor_id); + } }); $('#payment_instrument_id').on('change.paymentBlock', function() { -- 2.25.1