some debugging

This commit is contained in:
2016-05-26 09:30:19 +10:00
parent 563a41a948
commit bde2f3800e

View File

@@ -166,6 +166,7 @@ function _booking_manual_email_form_selecttype_dropdown_callback($form, &$form_s
// update cached options for tableselect
$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;
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']['#value']);
watchdog('booking_debug', "<pre>Manual email table element\n@info</pre>", array('@info' => print_r( $form['table'], true)));
// update the tableselect
$commands = array();
$commands[] = ajax_command_replace('#manual-email-attendees-items', drupal_render($form['table']));