From f55dc004da41039c49297aafdfe8adbbfce8f7dc Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 3 Jun 2013 15:11:32 +1200 Subject: [PATCH] preliminary whitespace cleanup --- CRM/Event/Form/EventFees.php | 2 +- CRM/Event/Form/ManageEvent/Registration.php | 20 ++++++++++---------- CRM/Event/Form/Registration/Confirm.php | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/CRM/Event/Form/EventFees.php b/CRM/Event/Form/EventFees.php index c950afc4c6..2658b0bb74 100644 --- a/CRM/Event/Form/EventFees.php +++ b/CRM/Event/Form/EventFees.php @@ -118,7 +118,7 @@ class CRM_Event_Form_EventFees { list($defaults[$form->_pId]['receive_date']) = CRM_Utils_Date::setDateDefaults(); } - //CRM-11601 we should keep the record contribution + //CRM-11601 we should keep the record contribution //true by default while adding participant if ($form->_action == CRM_Core_Action::ADD && !$form->_mode && $form->_isPaidEvent) { $defaults[$form->_pId]['record_contribution'] = 1; diff --git a/CRM/Event/Form/ManageEvent/Registration.php b/CRM/Event/Form/ManageEvent/Registration.php index 1935bc7892..fd35f2ac11 100644 --- a/CRM/Event/Form/ManageEvent/Registration.php +++ b/CRM/Event/Form/ManageEvent/Registration.php @@ -55,7 +55,7 @@ class CRM_Event_Form_ManageEvent_Registration extends CRM_Event_Form_ManageEvent * * @return void * @access public - */ + */ function preProcess() { $this->_addProfileBottom = CRM_Utils_Array::value('addProfileBottom', $_GET, FALSE); $this->_profileBottomNum = CRM_Utils_Array::value('addProfileNum', $_GET, 0); @@ -257,11 +257,11 @@ class CRM_Event_Form_ManageEvent_Registration extends CRM_Event_Form_ManageEvent ts('Allow Online Registration?'), NULL, array( - 'onclick' => "return showHideByValue('is_online_registration', - '', - 'registration_blocks', - 'block', - 'radio', + 'onclick' => "return showHideByValue('is_online_registration', + '', + 'registration_blocks', + 'block', + 'radio', false );", ) ); @@ -288,7 +288,7 @@ class CRM_Event_Form_ManageEvent_Registration extends CRM_Event_Form_ManageEvent ts('Register multiple participants?'), NULL, array( - 'onclick' => "return (showHideByValue('is_multiple_registrations', '', 'additional_profile_pre|additional_profile_post', 'table-row', 'radio', false) || + 'onclick' => "return (showHideByValue('is_multiple_registrations', '', 'additional_profile_pre|additional_profile_post', 'table-row', 'radio', false) || showRuleFields( " . json_encode($ruleFields) . " ));") ); @@ -350,7 +350,7 @@ class CRM_Event_Form_ManageEvent_Registration extends CRM_Event_Form_ManageEvent $form->add('select', 'custom_post_id', ts('Include Profile') . '
' . ts('(bottom of page)'), $mainProfiles); $form->add('select', 'additional_custom_pre_id', ts('Profile for Additional Participants') . '
' . ts('(top of page)'), $addtProfiles); - // Allow user to NOT provide a bottom profile for Additional Participant registration + // Allow user to NOT provide a bottom profile for Additional Participant registration $form->add('select', 'additional_custom_post_id', ts('Profile for Additional Participants') . '
' . ts('(bottom of page)'), array('none' => ts('- no profile -')) + $addtProfiles); } @@ -459,7 +459,7 @@ class CRM_Event_Form_ManageEvent_Registration extends CRM_Event_Form_ManageEvent $errorMsg['confirm_from_email'] = ts('Please enter Confirmation Email FROM Email Address.'); } } - + if ($values['registration_start_date'] && $values['registration_end_date']) { $start = CRM_Utils_Date::processDate($values['registration_start_date']); $end = CRM_Utils_Date::processDate($values['registration_end_date']); @@ -530,7 +530,7 @@ class CRM_Event_Form_ManageEvent_Registration extends CRM_Event_Form_ManageEvent else { $isPreError = FALSE; } - + // We don't have required Individual fields in the pre-custom profile, so now check the post-custom profile if ($isPreError) { $additionalCustomPostId = CRM_Utils_Array::value('additional_custom_post_id', $values); diff --git a/CRM/Event/Form/Registration/Confirm.php b/CRM/Event/Form/Registration/Confirm.php index af6fa57cae..5f44b6f4e3 100644 --- a/CRM/Event/Form/Registration/Confirm.php +++ b/CRM/Event/Form/Registration/Confirm.php @@ -688,7 +688,7 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration { $this->set('receiveDate', CRM_Utils_Date::mysqlToIso($value['receive_date'])); $this->set('trxnId', CRM_Utils_Array::value('trxn_id', $value)); } - + $value['fee_amount'] = CRM_Utils_Array::value('amount', $value); $this->set('value', $value); -- 2.25.1