worked on CRM-13233
authoryashodha <yashodha.chaku@webaccess.co.in>
Thu, 22 Aug 2013 05:59:48 +0000 (11:29 +0530)
committeryashodha <yashodha.chaku@webaccess.co.in>
Thu, 22 Aug 2013 05:59:48 +0000 (11:29 +0530)
CRM/Event/Form/Registration/Register.php
templates/CRM/Event/Form/Registration/Register.tpl

index d231144f384ec0389c625f974dd422cc4800c9cb..36da3307813b371512cf8c6337aa5f9c7fedb89e 100644 (file)
@@ -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, "&nbsp;", TRUE
+          NULL, "&nbsp;", 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)) {
index cbe7aa564647c8bf3513b28847374de9cc173fe6..cc7f41c30e3d9981440dfff0d04483cf93f425f1 100644 (file)
       }
 
       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();