This commit is contained in:
Nathan Coad
2019-09-14 18:59:45 +10:00
parent e353371af9
commit a0397fba7e
2 changed files with 2 additions and 2 deletions

View File

@@ -85,7 +85,7 @@ function booking_event_admin_submit($form, &$form_state) {
->condition('eid', $selected_event, '!=') ->condition('eid', $selected_event, '!=')
->execute(); ->execute();
// Disable other variety session timeslots // Disable variety session timeslots not belonging to target event id
db_update('booking_variety_timeslots') db_update('booking_variety_timeslots')
->fields(array ( ->fields(array (
'booking_variety_status' => 0, 'booking_variety_status' => 0,

View File

@@ -1218,7 +1218,7 @@ 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. Please enter a mobile phone number.'));
} }
} else { } else {
if (!_valid_phone_number($data['booking_guardian_phone'])) { if (!_valid_phone_number($data['booking_guardian_phone'])) {