X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FForm%2FRegistration.php;h=f2f5e25831dcf451dd347b26d6b0c2e4a2059a2d;hb=a4934764e309b794d091a3a1448a36b6fe1367e8;hp=e20c5d5c3d9d22b9e59e4bba9fc3fc0dc3e0cb88;hpb=5d4a30686002c26d45866d8018718601145514be;p=civicrm-core.git diff --git a/CRM/Event/Form/Registration.php b/CRM/Event/Form/Registration.php index e20c5d5c3d..f2f5e25831 100644 --- a/CRM/Event/Form/Registration.php +++ b/CRM/Event/Form/Registration.php @@ -533,7 +533,6 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { $fields = array_diff_key($fields, $fieldsToIgnore); CRM_Core_Session::setStatus(ts('Some of the profile fields cannot be configured for this page.')); } - $addCaptcha = FALSE; if (!empty($this->_fields)) { $fields = @array_diff_assoc($fields, $this->_fields); @@ -553,20 +552,11 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { if ($button == 'skip') { $field['is_required'] = FALSE; } - // CRM-11316 Is ReCAPTCHA enabled for this profile AND is this an anonymous visitor - elseif ($field['add_captcha'] && !$contactID) { - // only add captcha for first page - $addCaptcha = TRUE; - } CRM_Core_BAO_UFGroup::buildProfile($this, $field, CRM_Profile_Form::MODE_CREATE, $contactID, TRUE); $this->_fields[$key] = $field; } } - - if ($addCaptcha) { - CRM_Utils_ReCAPTCHA::enableCaptchaOnForm($this); - } } /**