From d37b402405f9ac431f8dc0fddfc2b2387e0963e8 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Thu, 25 Jul 2013 14:04:04 +0000 Subject: [PATCH] Add "Assigned To" and other fields to ticket export Addresses #589 --- include/class.export.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/include/class.export.php b/include/class.export.php index dccb38800..67da6d5e4 100644 --- a/include/class.export.php +++ b/include/class.export.php @@ -43,7 +43,16 @@ class Export { 'dept_name' => 'Department', 'helptopic' => 'Help Topic', 'source' => 'Source', - 'status' => 'Current Status' + 'status' => 'Current Status', + 'effective_date' => 'Last Updated', + 'duedate' => 'Due Date', + 'isoverdue' => 'Overdue', + 'isanswered' => 'Answered', + 'assigned' => 'Assigned To', + 'staff' => 'Staff Assigned', + 'team' => 'Team Assigned', + 'thread_count' => 'Thread Count', + 'attachments' => 'Attachment Count', ), $how); } @@ -73,7 +82,7 @@ class ResultSetExporter { $this->keys = array(); $this->lookups = array(); foreach ($headers as $field=>$name) { - if (isset($row[$field])) { + if (array_key_exists($field, $row)) { $this->headers[] = $name; $this->keys[] = $field; # Remember the location of this header in the query results -- GitLab