From 9fbbf43d862bbcd26e56a64ed44002efede82be9 Mon Sep 17 00:00:00 2001 From: Pratik Joshi Date: Thu, 27 Mar 2014 12:23:24 +0530 Subject: [PATCH] CRM-14278 : fix, removed extra check for radio/checkbox related 0 amount checking, instead applied the condition for zero amount checking directly on the final total price value. --- templates/CRM/Event/Form/Registration/Register.tpl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/templates/CRM/Event/Form/Registration/Register.tpl b/templates/CRM/Event/Form/Registration/Register.tpl index 020ade92cf..edc68c4de3 100644 --- a/templates/CRM/Event/Form/Registration/Register.tpl +++ b/templates/CRM/Event/Form/Registration/Register.tpl @@ -214,8 +214,7 @@ flag = 0; } - if (((cj('#priceset input:checked').attr('data-amount') == 0) || - (cj('#pricevalue').text() == symbol + " 0.00" )) && flag) { + if ((cj('#pricevalue').text() == symbol + " 0.00") && flag) { cj(".payment_options-group").hide(); cj("div.payment_processor-section").hide(); cj("div#payment_information").hide(); -- 2.25.1