test again

This commit is contained in:
2016-05-26 11:36:40 +10:00
parent 3f52d241cf
commit ec6971d42a

View File

@@ -269,19 +269,19 @@ function _booking_manual_email_selecttype_dropdown_callback($form, &$form_state)
return array('#type' => 'ajax', '#commands' => $commands); return array('#type' => 'ajax', '#commands' => $commands);
*/ */
// 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))); watchdog('booking_debug', "<pre>Manual email cached form for tableselect\n@info</pre>", array('@info' => print_r( $cached_form['table'], true)));
//unset old tableselect //unset old tableselect
//unset($form['table']); unset($form['table']);
// configure new tableselect based on old table select // configure new tableselect based on old table select
//$form['table'] = $cached_form['form']['table']; $form['table'] = $cached_form['form']['table'];
unset($form_state['input']['table']); //unset($form_state['input']['table']);
$form['table']['#options'] = $options; $form['table']['#options'] = $options;
//set new default values //set new default values
//$form['new']['table']['#default_value'] = $new_default_values; $form['table']['#default_value'] = $new_default_values;
watchdog('booking_debug', "<pre>Manual email new form table\n@info</pre>", array('@info' => print_r( $form['table'], true))); watchdog('booking_debug', "<pre>Manual email new form table\n@info</pre>", array('@info' => print_r( $form['table'], true)));
watchdog('booking_debug', "<pre>Manual email new default values\n@info</pre>", array('@info' => print_r( $form['table']['#default_value'], true))); watchdog('booking_debug', "<pre>Manual email new default values\n@info</pre>", array('@info' => print_r( $form['table']['#default_value'], true)));
watchdog('booking_debug', "<pre>Manual email new form array\n@info</pre>", array('@info' => print_r( $form, true))); watchdog('booking_debug', "<pre>Manual email new form array\n@info</pre>", array('@info' => print_r( $form, true)));