diff --git a/booking.variety_form.inc b/booking.variety_form.inc index f88e915..69ad39b 100644 --- a/booking.variety_form.inc +++ b/booking.variety_form.inc @@ -146,7 +146,7 @@ function booking_variety_session_callback($form, &$form_state) { ); //re-create the form element for this timeslot - + /* $form['variety-sessions'][$fieldname] = array( '#type' => 'select', '#title' => t('Rebuilt Variety Session: ' . $timeslot->booking_variety_time_descrip), @@ -156,11 +156,11 @@ function booking_variety_session_callback($form, &$form_state) { '#suffix' => '', '#default_value' => 1, ); - - //$form['variety-sessions'][$fieldname]['#options'] = $options; + */ + $form['variety-sessions'][$fieldname]['#options'] = $options; // Tell drupal to update the wrapper for this field - $commands[] = ajax_command_replace('#booking_variety_session_' . $timeslot->tid . '_wrapper', render($form['variety-sessions'][$fieldname])); + $commands[] = ajax_command_replace('#booking_variety_session_' . $timeslot->tid . '_wrapper', drupal_render($form['variety-sessions'][$fieldname])); } $form_state['rebuild'] = TRUE;