Quote:
Originally Posted by compelson any news regarding this feature?
or is it doable by altering ticket view template? |
i've been recently doing some research on sourcecode (see my other posts), and found that this can be achieved by changing one line in modules\tickets\functions_ticketmain.php (change is bolded, on my version it's inside fuction getTicketPosts on line 520 )
change
$dbCore->query("SELECT * FROM `". TABLE_PREFIX ."ticketposts` WHERE `ticketid` = '". intval($_ticket["ticketid"]) ."' ORDER BY `
ticketpostid` ".iif($order=="asc", "ASC", "DESC"). iif($limit&&$limit!=-1, " LIMIT ". intval($offset) .",". intval($limit)) .";");
to
$dbCore->query("SELECT * FROM `". TABLE_PREFIX ."ticketposts` WHERE `ticketid` = '". intval($_ticket["ticketid"]) ."' ORDER BY `
dateline` ".iif($order=="asc", "ASC", "DESC"). iif($limit&&$limit!=-1, " LIMIT ". intval($offset) .",". intval($limit)) .";");
yes, i know it's little code hack, but for me it's most important to have ticket posts in chronological order. if they ever decide to include option to change ticket grouping in future, i will gladly switch to new version, without hacking it