diff --git a/booking.variety_form.inc b/booking.variety_form.inc index 4388e32..38012ad 100644 --- a/booking.variety_form.inc +++ b/booking.variety_form.inc @@ -128,8 +128,8 @@ function booking_variety_session_callback($form, &$form_state) { //for each entry in the variety timeslot table, create a new form select item foreach($result as $timeslot) { $fieldname = 'select-variety-' . $timeslot->tid; - watchdog('booking_debug', 'Timeslot @tid form state value:
@info
', - array('@tid' => $timeslot->tid, '@info' => print_r($form_state['values'][$fieldname], true))); + watchdog('booking_debug', 'Timeslot @tid form state value:
@info
', + array('@tid' => $timeslot->tid, '@info' => print_r($form_state['values'], true))); //re-create the form element for this timeslot $form['variety-sessions'][$fieldname] = array( @@ -139,7 +139,7 @@ function booking_variety_session_callback($form, &$form_state) { '#options' => _booking_get_variety_timeslot_options($timeslot->tid), '#prefix' => '
', '#suffix' => '
', - '#default_value' => isset($form_state['values'][$fieldname]) ? $form_state['values'][$fieldname] : '--', + '#default_value' => isset($form_state['values'][$fieldname]) ? $form_state['values'][$fieldname] : '', ); // Tell drupal to update the wrapper for this field