This commit is contained in:
Nathan Coad
2018-05-22 10:40:15 +10:00
parent ddc5618101
commit d68a57f64a

View File

@@ -280,8 +280,8 @@ function booking_emails_custom_ajax_form($node, &$form_state) {
$form_format = NULL;
}
$form_type = 'textarea';
$form_format = NULL;
//$form_type = 'textarea';
//$form_format = NULL;
$form['email-type'] = array(
'#type' => 'select',
@@ -341,7 +341,7 @@ function booking_emails_custom_ajax_form_callback($form, &$form_state) {
$emailtype = $form_state['input']['email-type'];
if (strpos($emailtype, 'custom') !== false) {
$subject = variable_get('booking_email_subject_' . $emailtype, '');
$form['form']['email-definition']['booking_email_subjectline_custom']['value'] = $subject;
$form['form']['email-definition']['booking_email_subjectline_custom']['#value'] = $subject;
$text = variable_get('booking_email_' . $emailtype, '');
$text = isset($text['format']) ? $text['value'] : $text;