From 890cd6fc996d4e222b1a5768ef5344f0e7221c12 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Mon, 4 Nov 2013 18:27:52 +0000
Subject: [PATCH] Fix validation error display on ticket open

---
 include/staff/ticket-open.inc.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/staff/ticket-open.inc.php b/include/staff/ticket-open.inc.php
index 826d19e79..1b1ed786a 100644
--- a/include/staff/ticket-open.inc.php
+++ b/include/staff/ticket-open.inc.php
@@ -18,8 +18,8 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
     </thead>
     <tbody>
         <?php
-        $uf = UserForm::objects();
-        $uf[0]->render();
+        $uf = UserForm::getInstance();
+        $uf->render();
         if($cfg->notifyONNewStaffTicket()) {  ?>
         <tr>
             <td width="160">Alert:</td>
-- 
GitLab