CRM-17205 -- Fix for broken Free event registration
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Mon, 14 Sep 2015 07:20:20 +0000 (12:50 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Mon, 14 Sep 2015 07:20:20 +0000 (12:50 +0530)
CRM/Event/Form/Registration/Register.php

index 00367dada86328d6e8abc3724415ebdee9c63d15..e847a312c90d38e0d23d4735b4d7abd88e8a884d 100644 (file)
@@ -1153,19 +1153,19 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration {
       ) {
         $this->set('contributeMode', 'notify');
       }
-      else {
-        $params['description'] = ts('Online Event Registration') . ' ' . $this->_values['event']['title'];
+    }
+    else {
+      $params['description'] = ts('Online Event Registration') . ' ' . $this->_values['event']['title'];
 
-        $this->_params = array();
-        $this->_params[] = $params;
-        $this->set('params', $this->_params);
+      $this->_params = array();
+      $this->_params[] = $params;
+      $this->set('params', $this->_params);
 
-        if (
-          empty($params['additional_participants'])
-          && !$this->_values['event']['is_confirm_enabled'] // CRM-11182 - Optional confirmation screen
-        ) {
-          self::processRegistration($this->_params);
-        }
+      if (
+        empty($params['additional_participants'])
+        && !$this->_values['event']['is_confirm_enabled'] // CRM-11182 - Optional confirmation screen
+      ) {
+        self::processRegistration($this->_params);
       }
     }