Skip to content
Snippets Groups Projects
Commit 6c1eda5f authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #1198 from greezybacon/issue/canned-message-quote-swap


oops: Swapped last-message and original message

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents f730b266 780053cb
No related branches found
No related tags found
No related merge requests found
......@@ -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));
......
......@@ -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">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment