projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CRM-13926 : FIX
[civicrm-core.git]
/
CRM
/
Event
/
Form
/
Registration
/
Register.php
diff --git
a/CRM/Event/Form/Registration/Register.php
b/CRM/Event/Form/Registration/Register.php
index b30edc764373e6c6983d7f103dd99eaf580e25f5..3e785fdf571b0396327a3b4cd001a07272e01fb5 100644
(file)
--- a/
CRM/Event/Form/Registration/Register.php
+++ b/
CRM/Event/Form/Registration/Register.php
@@
-841,7
+841,7
@@
class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration {
}
if ($self->_values['event']['is_monetary']) {
}
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)) {
$errors['payment_processor'] = ts('Please select a Payment Method');
}
if (is_array($self->_paymentProcessor)) {