From 217d80aba0ad6b88b33361e09d5c5ebaeae0cf79 Mon Sep 17 00:00:00 2001 From: CiviCRM Date: Thu, 28 Aug 2014 18:09:09 +0530 Subject: [PATCH] CRM-15171: fix variables in Register.php --- CRM/Event/Form/Registration/Register.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CRM/Event/Form/Registration/Register.php b/CRM/Event/Form/Registration/Register.php index 6bc49b537b..72a8ef6e42 100644 --- a/CRM/Event/Form/Registration/Register.php +++ b/CRM/Event/Form/Registration/Register.php @@ -707,7 +707,7 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { ); // modify options full to respect the selected fields // options on confirmation. - $formattedPriceSetDefaults = self::formatPriceSetParams($form, $pricesetDefaultOptions); + $formattedPriceSetDefaults = self::formatPriceSetParams($form, $pricesetDefaults); // to skip current registered participants fields option count on confirmation. $skipParticipants[] = $form->_participantId; @@ -759,7 +759,7 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { $form->_allowConfirmation && !empty($formattedPriceSetDefaults) ) { - if (empty($formattedPriceSetDefaults["price_{$field}"]) || empty($formattedPriceSetDefaults["price_{$fieldId}"][$opId])) { + if (empty($formattedPriceSetDefaults["price_{$field}"]) || empty($formattedPriceSetDefaults["price_{$fieldId}"][$optId])) { $optionFullIds[$optId] = $optId; $isFull = TRUE; } @@ -867,7 +867,7 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { $errors['payment_processor'] = ts('Please select a Payment Method'); } if (is_array($self->_paymentProcessor)) { - $payment = CRM_Core_Payment::singleton($self->_mode, $self->_paymentProcessor, $this); + $payment = CRM_Core_Payment::singleton($self->_mode, $self->_paymentProcessor); $error = $payment->checkConfig($self->_mode); if ($error) { $errors['_qf_default'] = $error; @@ -926,7 +926,7 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { if ($greetingType = CRM_Utils_Array::value($greeting, $fields)) { $customizedValue = CRM_Core_OptionGroup::getValue($greeting, 'Customized', 'name'); if ($customizedValue == $greetingType && empty($fields[$greeting . '_custom'])) { - $errors[$customizedGreeting] = ts('Custom %1 is a required field if %1 is of type Customized.', + $errors[$greeting . '_custom'] = ts('Custom %1 is a required field if %1 is of type Customized.', array(1 => ucwords(str_replace('_', ' ', $greeting))) ); } -- 2.25.1