commit properly this time

This commit is contained in:
Nathan Coad
2019-09-10 19:33:20 +10:00
parent 0cb58768c3
commit e353371af9

View File

@@ -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 (