diff --git a/include/class.export.php b/include/class.export.php index f112b15a30006c6d5ce79b219f89db7034b649c0..c5ea494eb5ff3591127bbdac446c951b0d4d8128 100644 --- a/include/class.export.php +++ b/include/class.export.php @@ -57,8 +57,8 @@ class Export { $sql = str_replace(' FROM ', ',' . implode(',', $select) . ' FROM ', $sql); return self::dumpQuery($sql, array( - 'number' => 'Ticket Number', - 'created' => 'Date', + 'number' => 'Ticket Number', + 'ticket_created' => 'Date', 'subject' => 'Subject', 'name' => 'From', 'email' => 'From Email', diff --git a/include/staff/tickets.inc.php b/include/staff/tickets.inc.php index 5c48998806c48c8c020ffcb59e93012807ba995e..0c43254ecc087e5b74945ecfcd1a6c43601dc150 100644 --- a/include/staff/tickets.inc.php +++ b/include/staff/tickets.inc.php @@ -230,7 +230,7 @@ $pageNav->setURL('tickets.php',$qstr.'&sort='.urlencode($_REQUEST['sort']).'&ord //ADD attachment,priorities, lock and other crap $qselect.=' ,IF(ticket.duedate IS NULL,IF(sla.id IS NULL, NULL, DATE_ADD(ticket.created, INTERVAL sla.grace_period HOUR)), ticket.duedate) as duedate ' .' ,CAST(GREATEST(IFNULL(ticket.lastmessage, 0), IFNULL(ticket.closed, 0), IFNULL(ticket.reopened, 0), ticket.created) as datetime) as effective_date ' - .' ,CONCAT_WS(" ", staff.firstname, staff.lastname) as staff, team.name as team ' + .' ,ticket.created as ticket_created, CONCAT_WS(" ", staff.firstname, staff.lastname) as staff, team.name as team ' .' ,IF(staff.staff_id IS NULL,team.name,CONCAT_WS(" ", staff.lastname, staff.firstname)) as assigned ' .' ,IF(ptopic.topic_pid IS NULL, topic.topic, CONCAT_WS(" / ", ptopic.topic, topic.topic)) as helptopic ' .' ,cdata.priority_id, cdata.subject, pri.priority_desc, pri.priority_color';