From cd3f11fbdffbe40762e91912bd6e2302dfe9b0c9 Mon Sep 17 00:00:00 2001 From: yashodha Date: Thu, 22 Aug 2013 11:29:48 +0530 Subject: [PATCH] worked on CRM-13233 --- CRM/Event/Form/Registration/Register.php | 4 ++-- templates/CRM/Event/Form/Registration/Register.tpl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Event/Form/Registration/Register.php b/CRM/Event/Form/Registration/Register.php index d231144f38..36da330781 100644 --- a/CRM/Event/Form/Registration/Register.php +++ b/CRM/Event/Form/Registration/Register.php @@ -450,7 +450,7 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { if ($this->_values['event']['is_monetary']) { if (count($pps) > 1) { $this->addRadio('payment_processor', ts('Payment Method'), $pps, - NULL, " ", TRUE + NULL, " ", FALSE ); } elseif (!empty($pps)) { @@ -858,7 +858,7 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { } if ($self->_values['event']['is_monetary']) { - if (($fields['amount'] > 0) && !isset($fields['payment_processor'])) { + if (($fields['amount'] > 0) && empty($fields['payment_processor'])) { $errors['payment_processor'] = ts('Please select a Payment Method'); } if (is_array($self->_paymentProcessor)) { diff --git a/templates/CRM/Event/Form/Registration/Register.tpl b/templates/CRM/Event/Form/Registration/Register.tpl index cbe7aa5646..cc7f41c30e 100644 --- a/templates/CRM/Event/Form/Registration/Register.tpl +++ b/templates/CRM/Event/Form/Registration/Register.tpl @@ -221,7 +221,7 @@ } cj('#priceset input').change(function () { - if (((cj(this).attr('data-amount') == '0') || (cj('#pricevalue').text() == symbol + " 0.00" )) && flag ) { + if (((cj(this).attr('data-amount') == 0) || (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