CRM-13926 : FIX
authorPratik Joshi <pratik.joshi@webaccess.co.in>
Thu, 12 Dec 2013 06:06:29 +0000 (11:36 +0530)
committerPratik Joshi <pratik.joshi@webaccess.co.in>
Thu, 12 Dec 2013 06:06:29 +0000 (11:36 +0530)
CRM/Event/Form/Registration/Register.php

index b30edc764373e6c6983d7f103dd99eaf580e25f5..3e785fdf571b0396327a3b4cd001a07272e01fb5 100644 (file)
@@ -841,7 +841,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 (empty($self->_requireApproval) && $fields['amount'] > 0 && !isset($fields['payment_processor'])) {
         $errors['payment_processor'] = ts('Please select a Payment Method');
       }
       if (is_array($self->_paymentProcessor)) {