From e353371af9ce929e491be598919f8bfc4c55c6ae Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Tue, 10 Sep 2019 19:33:20 +1000 Subject: [PATCH] commit properly this time --- booking.events.inc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/booking.events.inc b/booking.events.inc index 1c01b1f..d54c871 100644 --- a/booking.events.inc +++ b/booking.events.inc @@ -85,6 +85,14 @@ function booking_event_admin_submit($form, &$form_state) { ->condition('eid', $selected_event, '!=') ->execute(); + // Disable other variety session timeslots + db_update('booking_variety_timeslots') + ->fields(array ( + 'booking_variety_status' => 0, + )) + ->condition('booking_eventid', $selected_event, '!=') + ->execute(); + //then set our target event id to be active db_update('booking_event') ->fields(array (