mirror of https://github.com/itflow-org/itflow
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
This commit is contained in:
parent
7f2f9a3c9e
commit
379529c6af
|
|
@ -274,8 +274,9 @@ if (isset($_POST['add_ticket_reply'])) {
|
|||
|
||||
if (filter_var($contact_email, FILTER_VALIDATE_EMAIL)) {
|
||||
|
||||
$ticket_reply = preg_replace('/<p[^>]*>/', '', $ticket_reply); // Remove the start <p> or <p attr="">
|
||||
$ticket_reply = preg_replace('/</p>/', '<br />', $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('/<p[^>]*>/', '', $ticket_reply); // Remove the start <p> or <p attr="">
|
||||
//$ticket_reply = preg_replace('/</p>/', '<br />', $ticket_reply); // Replace the end
|
||||
|
||||
// Slightly different email subject/text depending on if this update closed the ticket or not
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue