Extra logging and fix deposit paypal calculation
This commit is contained in:
@@ -935,7 +935,7 @@ function _booking_validate($node, &$form_state) {
|
||||
|
||||
//in case the date of birth field hasn't been filled out
|
||||
//watchdog('booking', 'Blank date of birth checking: @info', array('@info' => var_export($form_state['booking_dob'], TRUE)));
|
||||
$dob_check = $form_state['booking_dob']['day'] != '' && $form_state['booking_dob']['month'] != '' && $form_state['booking_dob']['year'] != '' ? _date_to_ts($form_state['booking_dob']) : 0;
|
||||
$dob_check = $form_state['booking_dob']['day'] != '' && $form_state['booking_dob']['month'] != '' && $form_state['booking_dob']['year'] != '' ? _date_to_ts($form_state['booking_dob']) : 0;
|
||||
|
||||
//Verify this is not a duplicate registration
|
||||
//try and find the person in the database for this event
|
||||
@@ -1069,6 +1069,13 @@ function _booking_validate($node, &$form_state) {
|
||||
//verify that a state has been entered if "Other" was selected
|
||||
if (($form_state['booking_state'] == 'Other' ) && ($form_state['booking_other_state'] == ''))
|
||||
form_set_error('booking_other_state', t('You must enter your State in the address section of the Contact details. Please put N/A if your country does not have states.'));
|
||||
|
||||
//if there are any errors then log the data the user entered so we can check it later
|
||||
if (form_get_errors()) {
|
||||
watchdog('booking', "<pre>Detected validation error(s):\n@errors\n\n User data:\n@info</pre>",
|
||||
array('@info' => print_r( $form_state, true), '@errors' => print_r( form_get_errors(), true)));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function booking_form_submit($form, &$form_state) {
|
||||
|
Reference in New Issue
Block a user