From 43a8adbe206e3075ab3a06b57d638d948625d0c7 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Thu, 26 May 2016 10:13:32 +1000 Subject: [PATCH] more debug --- booking.emails.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/booking.emails.inc b/booking.emails.inc index 3114f83..633b0ed 100644 --- a/booking.emails.inc +++ b/booking.emails.inc @@ -39,7 +39,7 @@ function booking_manual_email() $form['select-type'] = array( '#type' => 'select', '#title' => t('Pre-Select People'), - '#options' => array("---" => "NULL", "Unpaid" => "Unpaid", "Waiting List" => "Waiting List"), + '#options' => array("---" => "---", "Unpaid" => "Unpaid", "Waiting List" => "Waiting List"), '#default_value' => "---", '#ajax' => array( 'callback' => '_booking_manual_email_selecttype_dropdown_callback', @@ -192,10 +192,10 @@ function _booking_manual_email_selecttype_dropdown_callback($form, &$form_state) //unset($form['table']['#value']); watchdog('booking_debug', "
Manual email table form array\n@info
", array('@info' => print_r( $form, true))); - + watchdog('booking_debug', "
Manual email rendered table\n@info
", array('@info' => print_r( drupal_render($form['table'], true))); // update the tableselect $commands = array(); - $commands[] = ajax_command_replace('#manual-email-attendees-items', drupal_render($form['new']['table'])); + $commands[] = ajax_command_replace('#manual-email-attendees-items', drupal_render($form['table'])); return array('#type' => 'ajax', '#commands' => $commands); }