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;
|
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',
|
||||||
|
Reference in New Issue
Block a user