bugfix for email preview

This commit is contained in:
Nathan Coad
2018-01-15 23:27:36 +11:00
parent cfa5b01db8
commit 87b53bbc24
2 changed files with 7 additions and 4 deletions

View File

@@ -652,7 +652,10 @@ function _booking_email_get_preview_callback($form, $form_state) {
case "balance":
$text = variable_get('booking_email_paymentoutstanding_text');
if (variable_get('booking_enable_combined_pricing', 0) == 1) {
$text .= "\n</pre><h3>If married</h3>\n<pre>" . variable_get('booking_email_paymentoutstanding_married_text');
$text .= "\n</pre><h3>If married</h3>\n<pre>";
$married_text = variable_get('booking_email_paymentoutstanding_married_text');
// perform the checking of HTML value now since we're pre-pending text to it
$text .= isset($married_text['format']) ? $married_text['value'] : $married_text;
}
break;
case "complete":