Duplicate Tracking IDs

Helpdesk for my helpdesk software

Moderator: mkoch227

OllieWright
Posts: 8
Joined: Thu Feb 23, 2006 3:38 pm

dupe

Post by OllieWright »

just got another duplicate for your information...
5P347GM3LV
OllieWright
Posts: 8
Joined: Thu Feb 23, 2006 3:38 pm

and again...

Post by OllieWright »

and again... 5P347GM3LV
OllieWright
Posts: 8
Joined: Thu Feb 23, 2006 3:38 pm

and again

Post by OllieWright »

and this one: P347GM3LVR
webshoot
Posts: 3
Joined: Wed Feb 22, 2006 4:06 am

Post by webshoot »

Ollie,

This is what I changed the coding to in "submit_ticket.php". Just open that file and paste everything between

/* Generate tracking ID */ and /* Add to database */

Save the file first of course in case it gets screwed up. :D

Code: Select all

/* Generate tracking ID */
$trackingID='';
for ($i=1;$i<=10;$i++) {
$tmp = substr('AEUYBDGHJLMNPQRSTVWXZ12345678', rand(1,29), 1);
$trackingID .= $tmp;
}
$trackingID= $trackingID .= date('His');
$trackingURL=$hesk_settings['hesk_url'].'/ticket.php?track='.$trackingID;

/* Add to database */
OllieWright
Posts: 8
Joined: Thu Feb 23, 2006 3:38 pm

thanks!

Post by OllieWright »

Thanks, that seems to be doing the trick...still very weird though!
Ollie.
rwoody
Posts: 1
Joined: Mon Sep 16, 2013 9:40 pm

Re: Duplicate Tracking IDs

Post by rwoody »

I noticed these were very old posts, but we have the latest version installed and about twice a month this happens to us and I have to go into the db and change the last character of the ID to be able to view the latest ticket that a user has submitted.

I've really not looked at your code to make any changes what so ever - what do you suggest I add to the code to lessen the likely hood of duplicate tickets. I even archived all old tickets from the previous year hoping this would solve the problem, but to no avail. Just this am I had a duplicate pop up. The issue is random and may not happen for a few weeks and then it happens again. This creates a problem for my Jr. techs as they don't have access to make changes to our databases for obvious reasons - so until I'm available a ticket goes unanswered until I fix it so it can be viewed.

Any suggestions would really be appreciated.

Thanks in advance.
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Duplicate Tracking IDs

Post by Klemen »

What version of HESK are you using?

If it's an old version I would recommend upgrading to the latest version. Since these reports the code has been updated to check for duplicate ticket IDs and tries to generate a new one if a duplicate one is found.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply