From 379529c6afd47cd6aab77f65299f874271883336 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Tue, 4 Jul 2023 13:08:53 -0400 Subject: [PATCH] Fix Regression issue when replying to a ticket via the web app the content doesnt show in the email body see https://forum.itflow.org/d/197-actual-answer-to-customer-in-email-is-missing --- post/ticket.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/post/ticket.php b/post/ticket.php index daa7de8f..60c7029d 100644 --- a/post/ticket.php +++ b/post/ticket.php @@ -274,8 +274,9 @@ if (isset($_POST['add_ticket_reply'])) { if (filter_var($contact_email, FILTER_VALIDATE_EMAIL)) { - $ticket_reply = preg_replace('/]*>/', '', $ticket_reply); // Remove the start

or

- $ticket_reply = preg_replace('/

/', '
', $ticket_reply); // Replace the end + // 2023-07-04 Commend the 2 lines below out as the last line was causing ticket reply to appear blank in emails, maybe because of the switch to TinyMCE + //$ticket_reply = preg_replace('/]*>/', '', $ticket_reply); // Remove the start

or

+ //$ticket_reply = preg_replace('/

/', '
', $ticket_reply); // Replace the end // Slightly different email subject/text depending on if this update closed the ticket or not