more testing

This commit is contained in:
2016-05-26 09:23:49 +10:00
parent 4ab03493d5
commit 7a08abe8ee

View File

@@ -169,21 +169,25 @@ function _booking_manual_email_form_selecttype_dropdown_callback($form, &$form_s
$cached_form['table']['#default_value'] = $new_default_values;
form_set_cache($form['#build_id'], $cached_form, $form_state);
// remove radios from tableselect
// configure new tableselect based on old table select
$form['new']['table']['#options'] = $cached_form['table']['#options'];
//set new default values
$form['new']['table']['#default_value'] = $new_default_values;
/*
$form['new']['table']['#options'] = $options;
foreach (element_children($form['items']) as $key) {
if (is_numeric($key)) {
unset($form['table'][$key]);
}
}
*/
// add new radios to tableselect
form_builder($form['#form_id'], $form['table'], $form_state);
// remove current value
unset($form['table']['#default_value']);
unset($form['table']['#value']);
*/
// update the tableselect
$commands = array();