fix missing tid

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

View File

@@ -212,6 +212,12 @@ function booking_variety_create_session_form($node, &$form_state, $create = TRUE
$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;
$prefix = "<p>Add a new variety session to the specified variety session timeslot for the bookings module.</p>"; $prefix = "<p>Add a new variety session to the specified variety session timeslot for the bookings module.</p>";
@@ -249,12 +255,6 @@ function booking_variety_create_session_form($node, &$form_state, $create = TRUE
), ),
); );
//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',
'#title' => t('The name of the variety session to add to this timeslot'), '#title' => t('The name of the variety session to add to this timeslot'),