diff --git a/booking.variety_form.inc b/booking.variety_form.inc index 9d8034c..918736c 100644 --- a/booking.variety_form.inc +++ b/booking.variety_form.inc @@ -132,7 +132,7 @@ function booking_variety_session_callback($form, &$form_state) { watchdog('booking_debug', 'Timeslot @tid form state value:
@info', array('@tid' => $timeslot->tid, '@info' => print_r($form_state['values'], true))); watchdog('booking_debug', 'Setting default value to @value', array('@value' => - isset($form_state['values'][$fieldname]) ? $options[$form_state['values'][$fieldname]] : 0)); + isset($form_state['values'][$fieldname]) ? $form_state['values'][$fieldname] : 0)); //re-create the form element for this timeslot $form['variety-sessions'][$fieldname] = array( @@ -142,7 +142,7 @@ function booking_variety_session_callback($form, &$form_state) { '#options' => $options, '#prefix' => '