This commit is contained in:
2016-05-26 13:49:37 +10:00
parent d63ac9f570
commit 78eed38378

View File

@@ -254,6 +254,17 @@ function _booking_manual_email_selecttype_ajax_callback($form, &$form_state) {
unset($form['table']); unset($form['table']);
$form['table'] = array (
'#type' => 'tableselect',
'#header' => $header,
'#options' => $options,
'#default_value' => $new_default_values,
'#empty' => t('No attendees found.'),
'#attributes' => array('id' => 'sort-table'),
'#prefix' => '<div id="manual-email-attendees-items">',
'#suffix' => '</div>',
);
// 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);
$cached_form['table']['#options'] = $options; $cached_form['table']['#options'] = $options;