From e1410ea6e53d0c26160bd45f8d5037e20e2c03db Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Wed, 13 May 2015 14:57:10 -0500
Subject: [PATCH] oops: Fix crash viewing tickets on client portal

---
 tickets.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tickets.php b/tickets.php
index 6260e08aa..0c6dd8947 100644
--- a/tickets.php
+++ b/tickets.php
@@ -35,7 +35,7 @@ if($_REQUEST['id']) {
 if (!$ticket && $thisclient->isGuest())
     Http::redirect('view.php');
 
-$tform = TicketForm::getInstance()->getForm();
+$tform = TicketForm::objects()->one()->getForm();
 $messageField = $tform->getField('message');
 $attachments = $messageField->getWidget()->getAttachments();
 
-- 
GitLab