From d4fba135b2b3cf207a7d65b09f8de0bc9ddfbefd Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@osticket.com> Date: Wed, 27 Aug 2014 20:17:14 +0000 Subject: [PATCH] Make sure ticket create date is used on export --- include/class.export.php | 4 ++-- include/staff/tickets.inc.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/class.export.php b/include/class.export.php index f112b15a3..c5ea494eb 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 5c4899880..0c43254ec 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'; -- GitLab