From 0eb1f7ffeadd11da926da35269c112cdff380569 Mon Sep 17 00:00:00 2001 From: eileen Date: Tue, 24 Nov 2015 16:58:56 +1300 Subject: [PATCH] code comments --- CRM/Event/Form/Registration/Register.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Event/Form/Registration/Register.php b/CRM/Event/Form/Registration/Register.php index 78ed0807c9..89c6f573ed 100644 --- a/CRM/Event/Form/Registration/Register.php +++ b/CRM/Event/Form/Registration/Register.php @@ -1065,9 +1065,12 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { $payment = $this->_paymentProcessor['object']; $payment->setBaseReturnUrl('civicrm/event/register'); } - // default mode is direct + + // ContributeMode is a deprecated concept. It is short-hand for a bunch of + // assumptions we are working to remove. $this->set('contributeMode', 'direct'); + // This code is duplicated multiple places and should be consolidated. if (isset($params["state_province_id-{$this->_bltID}"]) && $params["state_province_id-{$this->_bltID}"] ) { -- 2.25.1