From 85c884a01f3722c71f05a9000c2362da61a688d6 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Mon, 4 May 2015 22:35:16 -0500
Subject: [PATCH] oops: Fix crash creating ticket with multiple forms

---
 include/class.ticket.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/class.ticket.php b/include/class.ticket.php
index d114d1664..94389a5e8 100644
--- a/include/class.ticket.php
+++ b/include/class.ticket.php
@@ -3123,7 +3123,7 @@ implements RestrictedAccess, Threadable, TemplateVariable {
         if ($vars['topicId']) {
             if ($topic=Topic::lookup($vars['topicId'])) {
                 foreach ($topic_forms as $topic_form) {
-                    $TF = $topic_form->getForm()->getForm($vars);
+                    $TF = $topic_form->getForm($vars);
                     if (!$TF->isValid($field_filter('topic')))
                         $errors = array_merge($errors, $TF->errors());
                 }
-- 
GitLab