From f72be4511fea9f34bec236c86550f559731c2613 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Mon, 3 Aug 2015 13:44:42 -0500
Subject: [PATCH] oops: Fix missing custom data on new ticket alerts

---
 include/class.ticket.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/class.ticket.php b/include/class.ticket.php
index 9e4503f2b..9e9b50fce 100644
--- a/include/class.ticket.php
+++ b/include/class.ticket.php
@@ -241,8 +241,8 @@ implements RestrictedAccess, Threadable {
         $this->loadDynamicData();
     }
 
-    function loadDynamicData() {
-        if (!isset($this->_answers)) {
+    function loadDynamicData($force=false) {
+        if (!isset($this->_answers) || $force) {
             $this->_answers = array();
             foreach (DynamicFormEntryAnswer::objects()
                 ->filter(array(
@@ -3165,7 +3165,7 @@ implements RestrictedAccess, Threadable {
             $topic_form->save();
         }
 
-        $ticket->loadDynamicData();
+        $ticket->loadDynamicData(true);
 
         $dept = $ticket->getDept();
 
-- 
GitLab