| Merging Tickets - Keep Oldest Ticket ID -
20-03-2008, 11:03 PM
We do a lot of ticket merging and want to keep the oldest ticket ID throughout the merges. That way the customer never sees a new one and gets confused.
I had to change the source to make this work.
in /support/modules/tickets/staff_manage.php
around line 116
change these: # orig code 3/20/08 MI
$_ticketlist = $_POST["itemid"];
unset($_ticketlist[0]);
$parentticketid = $_POST["itemid"][0];
mergeTickets($parentticketid, $_ticketlist);
# end orig code 3/20/08 # MI
To These: # changes to choose parent based on oldest (lowest) ticket id - MI 3/20/08
$_ticketlist = $_POST["itemid"];
sort($_ticketlist, SORT_NUMERIC);
$parentticketid = array_shift($_ticketlist);
mergeTickets($parentticketid, $_ticketlist);
# end change MI 3/20/08
You're really only changing the middle 2 lines.
I hope this helps somebody. Ask questions if you have them!
-Mark |