From 6d0d94c219d112a5e5de896d39020351f141fe91 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Wed, 13 Aug 2014 13:28:45 -0500
Subject: [PATCH] oops: Partially revert 7042e6c8fa

Merge conflict caused the inclusion of the template to be lost
---
 include/ajax.tickets.php | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/include/ajax.tickets.php b/include/ajax.tickets.php
index 4cd682996..e4fdafcc2 100644
--- a/include/ajax.tickets.php
+++ b/include/ajax.tickets.php
@@ -343,11 +343,7 @@ class TicketsAjaxAPI extends AjaxController {
         if(!$thisstaff || !($ticket=Ticket::lookup($tid)) || !$ticket->checkStaffAccess($thisstaff))
             Http::response(404, __('No such ticket'));
 
-        ob_start();
-        $resp = ob_get_contents();
-        ob_end_clean();
-
-        return $resp;
+        include STAFFINC_DIR . 'templates/ticket-preview.tmpl.php';
     }
 
     function addRemoteCollaborator($tid, $bk, $id) {
-- 
GitLab