From eb3a0711fdf98cba0dd11b03fc8160e5395c4748 Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@osticket.com> Date: Wed, 18 Jun 2014 16:34:50 +0000 Subject: [PATCH] Review fixes --- include/ajax.tickets.php | 4 ++-- include/class.ticket.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/ajax.tickets.php b/include/ajax.tickets.php index eb2b8c9c5..5722a76a7 100644 --- a/include/ajax.tickets.php +++ b/include/ajax.tickets.php @@ -662,12 +662,12 @@ class TicketsAjaxAPI extends AjaxController { if (!($ticket = Ticket::lookup($tid)) || !$ticket->checkStaffAccess($thisstaff)) - Http::response(404, 'Unknown ticket #'); + Http::response(404, 'Unknown ticket ID'); if ($cid && !is_numeric($cid)) { if (!($response=$ticket->getThread()->getVar($cid))) - Http::response(404, 'Unknown ticket variable'); + Http::response(422, 'Unknown ticket variable'); // Ticket thread variables are assumed to be quotes $response = "<br/><blockquote>$response</blockquote><br/>"; diff --git a/include/class.ticket.php b/include/class.ticket.php index d015287ac..c483ef81b 100644 --- a/include/class.ticket.php +++ b/include/class.ticket.php @@ -1674,7 +1674,7 @@ class Ticket { $response = new HtmlThreadBody( $this->replaceVars($canned->getHtml())); else - $response = new HtmlThreadBody( + $response = new TextThreadBody( $this->replaceVars($canned->getPlainText())); $info = array('msgId' => $msgId, -- GitLab