Skip to content
Snippets Groups Projects
Commit cdbeb620 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #646 from greezybacon/issue/assigned-to-export


Add "Assigned To" and other fields to ticket export

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents ea1ed4f6 d37b4024
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment