diff --git a/booking.emails.inc b/booking.emails.inc index 363b0d1..4c16f13 100644 --- a/booking.emails.inc +++ b/booking.emails.inc @@ -171,11 +171,12 @@ function _booking_manual_email_selecttype_dropdown_callback($form, &$form_state) // configure new tableselect based on old table select $form['new']['table'] = $cached_form['form']['table']; - watchdog('booking_debug', "
Manual email new form table\n@info
", array('@info' => print_r( $form['new']['table'], true))); + //set new default values $form['new']['table']['#default_value'] = $new_default_values; + watchdog('booking_debug', "
Manual email new form table\n@info
", array('@info' => print_r( $form['new']['table'], true))); watchdog('booking_debug', "
Manual email new default values\n@info
", array('@info' => print_r( $form['new']['table']['#default_value'], true))); - watchdog('booking_debug', "
Manual email table form array\n@info
", array('@info' => print_r( $form, true))); + watchdog('booking_debug', "
Manual email new form array\n@info
", array('@info' => print_r( $form['new'], true))); watchdog('booking_debug', "
Manual email rendered table\n@info
", array('@info' => print_r( drupal_render( $form['new']['table']), true))); // update the tableselect