some debugging
This commit is contained in:
@@ -166,6 +166,7 @@ function _booking_manual_email_form_selecttype_dropdown_callback($form, &$form_s
|
|||||||
|
|
||||||
// update cached options for tableselect
|
// update cached options for tableselect
|
||||||
$cached_form = form_get_cache($form['#build_id'], $form_state);
|
$cached_form = form_get_cache($form['#build_id'], $form_state);
|
||||||
|
watchdog('booking_debug', "<pre>Manual email cached form\n@info</pre>", array('@info' => print_r( $cached_form, true)));
|
||||||
$cached_form['table']['#default_value'] = $new_default_values;
|
$cached_form['table']['#default_value'] = $new_default_values;
|
||||||
form_set_cache($form['#build_id'], $cached_form, $form_state);
|
form_set_cache($form['#build_id'], $cached_form, $form_state);
|
||||||
|
|
||||||
@@ -189,6 +190,8 @@ function _booking_manual_email_form_selecttype_dropdown_callback($form, &$form_s
|
|||||||
//unset($form['table']['#default_value']);
|
//unset($form['table']['#default_value']);
|
||||||
//unset($form['table']['#value']);
|
//unset($form['table']['#value']);
|
||||||
|
|
||||||
|
watchdog('booking_debug', "<pre>Manual email table element\n@info</pre>", array('@info' => print_r( $form['table'], true)));
|
||||||
|
|
||||||
// update the tableselect
|
// update the tableselect
|
||||||
$commands = array();
|
$commands = array();
|
||||||
$commands[] = ajax_command_replace('#manual-email-attendees-items', drupal_render($form['table']));
|
$commands[] = ajax_command_replace('#manual-email-attendees-items', drupal_render($form['table']));
|
||||||
|
Reference in New Issue
Block a user