From c848673b5553fde85016cc9b5552e51d5a616153 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Wed, 29 Apr 2015 15:54:22 -0500 Subject: [PATCH] html: Ensure text internal note preserved Preserve text formatting on the internal note posted to a new ticket by staff if HTML thread is disabled. --- include/class.ticket.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/class.ticket.php b/include/class.ticket.php index 593846f58..6b54bb016 100644 --- a/include/class.ticket.php +++ b/include/class.ticket.php @@ -2932,6 +2932,9 @@ class Ticket { // Not assigned...save optional note if any if (!$vars['assignId'] && $vars['note']) { + if (!$cfg->isHtmlThreadEnabled()) { + $vars['note'] = new TextThreadBody($vars['note']); + } $ticket->logNote(_S('New Ticket'), $vars['note'], $thisstaff, false); } else { -- GitLab