fixes
This commit is contained in:
@@ -1054,11 +1054,11 @@ function booking_form_validate($form, &$form_state) {
|
|||||||
|
|
||||||
//validate guardian phone number
|
//validate guardian phone number
|
||||||
if ($data['booking_country'] == 'Australia') {
|
if ($data['booking_country'] == 'Australia') {
|
||||||
if (!_valid_australian_mobile_number($data['booking_guardian_phone']) {
|
if (!_valid_australian_mobile_number($data['booking_guardian_phone'])) {
|
||||||
form_set_error('booking_guardian_phone', t('You have entered an invalid contact phone number for your emergency contact.'));
|
form_set_error('booking_guardian_phone', t('You have entered an invalid contact phone number for your emergency contact.'));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!_valid_phone_number($data['booking_guardian_phone']) {
|
if (!_valid_phone_number($data['booking_guardian_phone'])) {
|
||||||
form_set_error('booking_guardian_phone', t('You have entered an invalid contact phone number for your emergency contact.'));
|
form_set_error('booking_guardian_phone', t('You have entered an invalid contact phone number for your emergency contact.'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user