tweaks
This commit is contained in:
@@ -85,7 +85,7 @@ function booking_event_admin_submit($form, &$form_state) {
|
||||
->condition('eid', $selected_event, '!=')
|
||||
->execute();
|
||||
|
||||
// Disable other variety session timeslots
|
||||
// Disable variety session timeslots not belonging to target event id
|
||||
db_update('booking_variety_timeslots')
|
||||
->fields(array (
|
||||
'booking_variety_status' => 0,
|
||||
|
@@ -1218,7 +1218,7 @@ function booking_form_validate($form, &$form_state) {
|
||||
//validate guardian phone number
|
||||
if ($data['booking_country'] == 'Australia') {
|
||||
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. Please enter a mobile phone number.'));
|
||||
}
|
||||
} else {
|
||||
if (!_valid_phone_number($data['booking_guardian_phone'])) {
|
||||
|
Reference in New Issue
Block a user