From: Pratik Joshi Date: Thu, 27 Mar 2014 06:53:24 +0000 (+0530) Subject: CRM-14278 : fix, removed extra check for radio/checkbox related 0 amount checking... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9fbbf43d862bbcd26e56a64ed44002efede82be9;p=civicrm-core.git 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. --- 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();