Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

Inserting Last Update Column in Ticket List

This mod came from http://osticket.com/forums/showthread.php?t=736&highlight=respond

I just test and adapt to v1.7 go:

Add in class.ticket.php After line 450 this


function getLastReplyRespondent() {
$lastmsgdate = strtotime($this->getLastMessageDate());
$lastresdate = strtotime($this->getLastResponseDate());

if ($lastmsgdate <= $lastresdate) {
return $lastresdate;
} else {
return $lastmsgdate;
}
}


Add in tickets.inc.php after line 379 this

<th nowrap>Updated</th>
<th width=\"30\">


Add in tickets.inc.php after line 458


<?php $ticket = new Ticket($row['ticket_id']);?>
<td nowrap style=\"font-weight:bold\"><?php
$VarRes = 0;
$VarRes = Format::db_datetime($ticket->getLastReplyRespondent());

if ($VarRes == 0)
{
print $VarRes;
}
else
{
print $VarRes;
}
?></td>


I would like to someone help me to print the new column (Updated)in the export csv file.

Comments

  • worked for me on 1.7. Thanks

    better to post this on 1.7 section.
Sign In or Register to comment.