fix missing tid

This commit is contained in:
Nathan Coad
2018-07-03 23:14:50 +10:00
parent ed6679c37b
commit cc8c326753

View File

@@ -211,6 +211,12 @@ function booking_variety_create_session_form($node, &$form_state, $create = TRUE
global $event; global $event;
$form = array (); $form = array ();
$prefix = ""; $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) { if ($create == TRUE) {
$data = $node; $data = $node;
@@ -248,12 +254,6 @@ function booking_variety_create_session_form($node, &$form_state, $create = TRUE
'#markup' => $prefix, '#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 ( $form['booking_variety_descrip'] = array (
'#type' => 'textfield', '#type' => 'textfield',