This commit is contained in:
Nathan Coad
2018-05-02 13:56:25 +10:00
parent 22d6e0a03d
commit b804eec1df

View File

@@ -131,7 +131,8 @@ function booking_variety_session_callback($form, &$form_state) {
$options = _booking_get_variety_timeslot_options($timeslot->tid);
watchdog('booking_debug', 'Timeslot @tid form state value: <pre>@info</pre>',
array('@tid' => $timeslot->tid, '@info' => print_r($form_state['values'], true)));
watchdog('booking_debug', $options[$form_state['values'][$fieldname]]);
watchdog('booking_debug', 'Setting default value to @value', array('@value' =>
isset($form_state['values'][$fieldname]) ? $options[$form_state['values'][$fieldname]] : 0));
//re-create the form element for this timeslot
$form['variety-sessions'][$fieldname] = array(