From 628a7896bd647f7f2ecc0d34c2d6c94c3b5fdec2 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Tue, 3 Mar 2015 14:13:19 -0600
Subject: [PATCH] oops: Fix incorrect cdata lookup for ticket

---
 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 e78336dab..0505d9832 100644
--- a/include/class.ticket.php
+++ b/include/class.ticket.php
@@ -292,7 +292,7 @@ implements RestrictedAccess, Threadable {
 
     function loadDynamicData() {
         if (!$this->_answers) {
-            foreach (DynamicFormEntry::forTicket($this->getThreadId(), true) as $form) {
+            foreach (DynamicFormEntry::forTicket($this->getId(), true) as $form) {
                 foreach ($form->getAnswers() as $answer) {
                     $tag = mb_strtolower($answer->getField()->get('name'))
                         ?: 'field.' . $answer->getField()->get('id');
-- 
GitLab