Kayako logo
Modifications & Addon Releases Modification guides and addons are posted here to share with the community. Do not post requests in here!

Notices

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#1) Old
MarkIngles Offline
New Member
 
Posts: 12
Join Date: Mar 2007
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
   
Reply With Quote
  (#2) Old
jenglish Offline
New Member
 
jenglish's Avatar
 
Posts: 24
Join Date: Jan 2007
Location: Tyler, TX
Great mod! - 26-03-2008, 05:43 PM

Thank you for posting this! I can mark another one of my to-do list now.

Very useful!
   
Reply With Quote
Reply

Tags
merging, oldest, ticket, tickets

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tickets Ticket creation -> Way to create ticket on behalf of a user russmichaels Will Implement (V4) 4 20-08-2008 09:58 AM
Tickets Tickets -> Some kind of ticket-history-as-you-type lookup when creating a ticket Siora Feature Requests 7 08-11-2007 02:29 PM
New Build: 3.10.02 STABLE Ryan Lederman News and Announcements 0 05-03-2007 08:53 PM
eSupport v2.2 RC1 Available in Members Area Varun Shoor Technical Chat 1 17-05-2004 01:28 PM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46