From a156bba8b3b937d17e23eb2a3b0c203d92def1d3 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Sun, 2 Aug 2015 19:47:43 -0500
Subject: [PATCH] canned: Fix crash creating ticket with canned attachments

---
 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 472233fbe..9e4503f2b 100644
--- a/include/class.ticket.php
+++ b/include/class.ticket.php
@@ -2222,7 +2222,7 @@ implements RestrictedAccess, Threadable {
         }
         $files = array();
         foreach ($canned->attachments->getAll() as $file)
-            $files[] = $file['id'];
+            $files[] = $file->file_id;
 
         if ($cfg->isRichTextEnabled())
             $response = new HtmlThreadEntryBody(
-- 
GitLab