From a35d5a698e68cb9cecc749d160648f0523b637ec Mon Sep 17 00:00:00 2001 From: kurund Date: Fri, 23 Aug 2013 15:26:20 +0530 Subject: [PATCH] more cleanup CRM-13233 ---------------------------------------- * CRM-13233: Payment Method field (payment_processor) should not be required if total fee is $0 http://issues.civicrm.org/jira/browse/CRM-13233 --- CRM/Event/Form/Registration/Register.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Event/Form/Registration/Register.php b/CRM/Event/Form/Registration/Register.php index 07237e4322..dfa21b54fe 100644 --- a/CRM/Event/Form/Registration/Register.php +++ b/CRM/Event/Form/Registration/Register.php @@ -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']) && $fields['payment_processor'] != 0 )) { + if ($fields['amount'] > 0 && !isset($fields['payment_processor'])) { $errors['payment_processor'] = ts('Please select a Payment Method'); } if (is_array($self->_paymentProcessor)) { -- 2.25.1