fix missing tid
This commit is contained in:
@@ -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',
|
||||
|
Reference in New Issue
Block a user