From b804eec1df4b0f339508100b723c282d48a7afb6 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Wed, 2 May 2018 13:56:25 +1000 Subject: [PATCH] debug --- booking.variety_form.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/booking.variety_form.inc b/booking.variety_form.inc index c1e7d2d..9d8034c 100644 --- a/booking.variety_form.inc +++ b/booking.variety_form.inc @@ -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:
@info
', 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(