change form

This commit is contained in:
Nathan Coad
2018-05-22 12:08:16 +10:00
parent 5f98a72b69
commit 8fcec6e7f2

View File

@@ -363,10 +363,10 @@ function booking_emails_custom_ajax_form_callback($form, &$form_state) {
// TODO : Figure out what this should be if HTML emails are NOT enabled
$form['form']['email-definition']['booking_email_body_custom']['value']['#value'] = $text;
$form_state['form']['storage']['emailtype'] = $emailtype;
$form['form']['storage']['emailtype'] = $emailtype;
}
//watchdog('booking_debug', 'booking_emails_custom_ajax_form_callback: <pre>@info</pre>', array('@info' => print_r( $form, true)));
watchdog('booking_debug', 'booking_emails_custom_ajax_form_callback: <pre>@info</pre>', array('@info' => print_r( $form, true)));
// Rebuild the form
$form_state['rebuild'] = TRUE;