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;
*
* @return void
* @access public
- */
+ */
function preProcess() {
$this->_addProfileBottom = CRM_Utils_Array::value('addProfileBottom', $_GET, FALSE);
$this->_profileBottomNum = CRM_Utils_Array::value('addProfileNum', $_GET, 0);
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 );",
)
);
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) . " ));")
);
$form->add('select', 'custom_post_id', ts('Include Profile') . '<br />' . ts('(bottom of page)'), $mainProfiles);
$form->add('select', 'additional_custom_pre_id', ts('Profile for Additional Participants') . '<br />' . 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') . '<br />' . ts('(bottom of page)'), array('none' => ts('- no profile -')) + $addtProfiles);
}
$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']);
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);