This commit is contained in:
Nathan Coad
2018-05-02 15:18:19 +10:00
parent a5f49c7301
commit a5efdeadf0

View File

@@ -157,10 +157,12 @@ function booking_variety_session_callback($form, &$form_state) {
'#default_value' => 1,
);
*/
$form['variety-sessions'][$fieldname]['#options'] = $options;
//$form['variety-sessions'][$fieldname]['#options'] = $options;
//$form['variety-sessions'][$fieldname]['#title'] = t('Rebuilt Variety Session: ' . $timeslot->booking_variety_time_descrip);
// Tell drupal to update the wrapper for this field
$commands[] = ajax_command_replace('#booking_variety_session_' . $timeslot->tid . '_wrapper', drupal_render($form['variety-sessions'][$fieldname]));
//$commands[] = ajax_command_replace('#booking_variety_session_' . $timeslot->tid . '_wrapper', drupal_render($form));
}
$form_state['rebuild'] = TRUE;