more debug

This commit is contained in:
2016-05-26 10:13:32 +10:00
parent 7d03689695
commit 43a8adbe20

View File

@@ -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', "<pre>Manual email table form array\n@info</pre>", array('@info' => print_r( $form, true)));
watchdog('booking_debug', "<pre>Manual email rendered table\n@info</pre>", 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);
}