diff --git a/booking.emails.inc b/booking.emails.inc index 4c16f13..142373d 100644 --- a/booking.emails.inc +++ b/booking.emails.inc @@ -177,11 +177,13 @@ function _booking_manual_email_selecttype_dropdown_callback($form, &$form_state) 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 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))); + + $new_html = drupal_render($form['new']['table']); + watchdog('booking_debug', "
Manual email rendered table\n@info", array('@info' => print_r( $new_html), 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', $new_html); return array('#type' => 'ajax', '#commands' => $commands); }