From 13f230bc57bddd3c530e63af8e611165a74185c0 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Mon, 14 Sep 2015 12:50:20 +0530 Subject: [PATCH] CRM-17205 -- Fix for broken Free event registration --- CRM/Event/Form/Registration/Register.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/CRM/Event/Form/Registration/Register.php b/CRM/Event/Form/Registration/Register.php index 00367dada8..e847a312c9 100644 --- a/CRM/Event/Form/Registration/Register.php +++ b/CRM/Event/Form/Registration/Register.php @@ -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); } } -- 2.25.1