diff --git a/include/ajax.tickets.php b/include/ajax.tickets.php index ccfb4b30d51179de1c9721dcc6762f20003325f8..a1e30c43b327c4ac67bc07a956c7f88d2de9fd41 100644 --- a/include/ajax.tickets.php +++ b/include/ajax.tickets.php @@ -671,9 +671,12 @@ class TicketsAjaxAPI extends AjaxController { // Ticket thread variables are assumed to be quotes $response = "<br/><blockquote>$response</blockquote><br/>"; + // Return text if html thread is not enabled if (!$cfg->isHtmlThreadEnabled()) $response = Format::html2text($response, 90); + else + $response = Format::viewableImages($response); // XXX: assuming json format for now. return Format::json_encode(array('response' => $response)); diff --git a/include/staff/ticket-view.inc.php b/include/staff/ticket-view.inc.php index bfef5605e76e51406a4ebf3ddb4d0a00c345c858..a6805da52e04bc2064ee48cf4589fd4265c5b98c 100644 --- a/include/staff/ticket-view.inc.php +++ b/include/staff/ticket-view.inc.php @@ -509,8 +509,8 @@ $tcount+= $ticket->getNumNotes(); <td> <select id="cannedResp" name="cannedResp"> <option value="0" selected="selected">Select a canned response</option> - <option value='lastmessage'>Original Message</option> - <option value='original'>Last Message</option> + <option value='original'>Original Message</option> + <option value='lastmessage'>Last Message</option> <?php if(($cannedResponses=Canned::responsesByDeptId($ticket->getDeptId()))) { echo '<option value="0" disabled="disabled">