From a0b8652264305855da2835e56e7a4e5b9701ce1e Mon Sep 17 00:00:00 2001 From: Jared Hancock <gravydish@gmail.com> Date: Mon, 18 Jun 2012 14:19:21 -0500 Subject: [PATCH] Show thread body text along with names of attached files --- include/class.pdf.php | 2 +- include/class.ticket.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class.pdf.php b/include/class.pdf.php index 34828aa2c..87e68a7d5 100644 --- a/include/class.pdf.php +++ b/include/class.pdf.php @@ -202,7 +202,7 @@ class Ticket2PDF extends FPDF foreach($attachments as $attachment) $files[]= $attachment['name']; - $text="\n\n[".implode(', ',$files)."]\n"; + $text.="\nFiles Attached: [".implode(', ',$files)."]\n"; } $this->WriteText($w*2, $text, 1); $this->Ln(5); diff --git a/include/class.ticket.php b/include/class.ticket.php index 84eafbd98..6b933239d 100644 --- a/include/class.ticket.php +++ b/include/class.ticket.php @@ -577,7 +577,7 @@ class Ticket{ if($type && is_array($type)) $sql.=" AND thread.thread_type IN('".implode("','", $type)."')"; - else + elseif($type) $sql.=' AND thread.thread_type='.db_input($type); $sql.=' GROUP BY thread.id ' -- GitLab