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 // 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);
@@ -188,6 +189,8 @@ function _booking_manual_email_form_selecttype_dropdown_callback($form, &$form_s
// remove current value // remove current value
//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();