diff --git a/booking.emails_admin.inc b/booking.emails_admin.inc index 5f5fcdd..5963687 100644 --- a/booking.emails_admin.inc +++ b/booking.emails_admin.inc @@ -305,12 +305,12 @@ function booking_emails_custom_ajax_form($node, &$form_state) { '#title' => t('Subject line for Custom Email'), '#size' => 150, '#maxlength' => 300, - '#value' => isset($form_state['values']['booking_email_subjectline_custom']) ? $form_state['values']['booking_email_subjectline_custom'] : '', + //'#value' => isset($form_state['values']['booking_email_subjectline_custom']) ? $form_state['values']['booking_email_subjectline_custom'] : '', ); $form['email-definition']['booking_email_body_custom'] = array( '#title' => t('Email text for custom email'), '#description' => t(''), - '#value' => isset($form_state['values']['booking_email_body_custom']) ? $form_state['values']['booking_email_body_custom'] : '', + //'#value' => isset($form_state['values']['booking_email_body_custom']) ? $form_state['values']['booking_email_body_custom'] : '', '#type' => $form_type, '#format' => $form_format, ); @@ -343,7 +343,7 @@ function booking_emails_custom_ajax_form_callback($form, &$form_state) { $text = variable_get('booking_email_' . $emailtype, ''); $text = isset($text['format']) ? $text['value'] : $text; watchdog('booking_debug', 'custom text:
@info
', array('@info' => print_r( $text, true))); - $form['form']['email-definition']['booking_email_body_custom']['#value'] = $text; + $form['form']['email-definition']['booking_email_body_custom']['#default_value'] = $text; } watchdog('booking_debug', 'booking_emails_custom_ajax_form_callback:
@info
', array('@info' => print_r( $form, true)));