diff --git a/booking.variety_admin.inc b/booking.variety_admin.inc index 5039e62..819a2c6 100644 --- a/booking.variety_admin.inc +++ b/booking.variety_admin.inc @@ -211,6 +211,12 @@ function booking_variety_create_session_form($node, &$form_state, $create = TRUE global $event; $form = array (); $prefix = ""; + + //add this to the form in a hidden field so we can update the right event + $form['tid'] = array ( + '#type' => 'hidden', + '#value' => $timeslot_id, + ); if ($create == TRUE) { $data = $node; @@ -248,12 +254,6 @@ function booking_variety_create_session_form($node, &$form_state, $create = TRUE '#markup' => $prefix, ), ); - - //add this to the form in a hidden field so we can update the right event - $form['tid'] = array ( - '#type' => 'hidden', - '#value' => $timeslot_id, - ); $form['booking_variety_descrip'] = array ( '#type' => 'textfield',