more debug
This commit is contained in:
@@ -39,7 +39,7 @@ function booking_manual_email()
|
|||||||
$form['select-type'] = array(
|
$form['select-type'] = array(
|
||||||
'#type' => 'select',
|
'#type' => 'select',
|
||||||
'#title' => t('Pre-Select People'),
|
'#title' => t('Pre-Select People'),
|
||||||
'#options' => array("---" => "NULL", "Unpaid" => "Unpaid", "Waiting List" => "Waiting List"),
|
'#options' => array("---" => "---", "Unpaid" => "Unpaid", "Waiting List" => "Waiting List"),
|
||||||
'#default_value' => "---",
|
'#default_value' => "---",
|
||||||
'#ajax' => array(
|
'#ajax' => array(
|
||||||
'callback' => '_booking_manual_email_selecttype_dropdown_callback',
|
'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']);
|
//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 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
|
// update the tableselect
|
||||||
$commands = array();
|
$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);
|
return array('#type' => 'ajax', '#commands' => $commands);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user