From a3d94981bb1e5bd65b83f333cd83634a8413a553 Mon Sep 17 00:00:00 2001 From: Pengyi Zhang Date: Mon, 13 Jan 2020 16:51:33 +1100 Subject: [PATCH] CIVICRM-1417 enable reCaptcha with pay later option --- CRM/Contribute/Form/Contribution/Main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/Contribution/Main.php b/CRM/Contribute/Form/Contribution/Main.php index 6f7d403abc..7b538a67d2 100644 --- a/CRM/Contribute/Form/Contribution/Main.php +++ b/CRM/Contribute/Form/Contribution/Main.php @@ -283,7 +283,7 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu $this->buildComponentForm($this->_id, $this); } - if (count($this->_paymentProcessors) >= 1 && !isset($this->_paymentProcessors[0]) && !$this->get_template_vars("isCaptcha") && $this->hasToAddForcefully()) { + if (count($this->_paymentProcessors) >= 1 && !$this->get_template_vars("isCaptcha") && $this->hasToAddForcefully()) { if (!$this->_userID) { $this->enableCaptchaOnForm(); } -- 2.25.1