| ||||||||||||
![]() |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
(#1)
|
| Member Posts: 171 Join Date: Feb 2008 Location: Netherlands | Change Ticket ID -
25-03-2008, 11:45 AM
I suggested it as a new feature by the think tank but I'm afraid it will take to long before it will be implemented. This is the link to the article: Ticket ID Type I hope you guys can help me out with this. In "\modules\tickets\functions_ticketcore.php" you will find the function "generateTicketMask()". My intention is that it takes the first 3 letters from the department (with substring) and then generates some random numbers. Now comes the main problem.....it should take the first 3 letters from the department but the ticket is not yet submitted. So how to get the department? Can you get this from the current URL? (Support Center » Submit a Ticket » General) Any help would be appriciated. |
| | |
(#2)
|
(#3)
|
(#4)
|
| Member Posts: 139 Join Date: Feb 2008 |
27-03-2008, 08:42 PM
Howdy again, I think it's not possible to access $_GET['departmentid'] from functions_ticketcore.php. This is what you have to do: 1. Change the declaration of Ticket Mask function from function generateTicketMask() to function generateTicketMask($deparmentid = 1) 2. In the createTicket() function send the department id to the generateTicketMask() function like this: $ticketmaskid = generateTicketMask($departmentid); 3. Check if the Ticket Mask function is called from other place and add the $departmentid parameter. This way you will be able to get the parameter id. Best Email & MSN: andres[at]dewak.com Skype: andres.dewak Dewak: Kayako Development, Consultancy and Support http://www.dewak.com |
| | |
(#5)
|
(#6)
|
(#7)
|
| Member Posts: 139 Join Date: Feb 2008 |
28-03-2008, 02:31 PM
You are welcome, I'm glad you were able to solve it. Can't wait to see the full tutorial! Email & MSN: andres[at]dewak.com Skype: andres.dewak Dewak: Kayako Development, Consultancy and Support http://www.dewak.com |
| | |
(#8)
|
| Member Posts: 171 Join Date: Feb 2008 Location: Netherlands |
28-03-2008, 03:27 PM
@Dewak: See Change Ticket ID depending of your department post #1 and #4. |
| | |
![]() |
| Tags |
| ticket |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Controlling who can change a ticket status/priority | hmac | SupportSuite, eSupport and LiveResponse | 3 | 30-04-2008 01:45 PM |
| Status change when changing Department of Ticket | Xeserve | Wont Implement / Already Implemented | 8 | 02-02-2008 06:53 PM |
| Misc / General Seporate "Can Change Ticket Properties" Out | craigbrass | Feature Requests | 6 | 17-12-2007 12:09 AM |
| New Build: 3.10.02 STABLE | Ryan Lederman | News and Announcements | 0 | 05-03-2007 08:53 PM |