Updating to 0.94.1
In old 0.94 I had used the topic….
'Can tracking IDs be shortened?'
viewtopic.php?t=341
to produce the ticket ID format of
27Jun08:534
Code in file submit_ticket.php
Code: Select all
/* Generate tracking ID */
/*
$useChars='AEUYBDGHJLMNPQRSTVWXZ123456789';
$trackingID = $useChars{mt_rand(0,29)};
for($i=1;$i<18;$i++)
*/
{
/* $trackingID .= $useChars{mt_rand(0,29)};*/
$trackingID= $trackingID .= date('dMy:B');
}
$trackingURL=$hesk_settings['hesk_url'].'/ticket.php?track='.$trackingID;
/* Attachments */
Ticket created and attachment uploads OK.
On viewing the ticket I get the ticket open OK.
Click on the image attachment link within the ticket and I get the error “HelpDesk Request ID not found”.
If I use the default settings in the submit_ticket.php file all seems to work well.
I am assuming things changed in how to handle attachments and that the attachment is not getting the same number as the ticket. I did have to change the ID field in my database tfrom 10 to 18 as mentioned in 'topic 341' is there a place in attachments I need to do that too?
This ticket ID has been great for us. It gives us the date and then a number behind the date to show what order during th day the ticket arrived.
Thanks
Edit
If you don't want to read the whole post here is the solution Klemen supplied in the end
You can try forcing case when comparing strings (with strtoupper or strtolower), for example in download_attachment try changing Code:
if ($file['ticket_id'] != $tic_id)
to Code:
if (strtoupper($file['ticket_id']) != strtoupper($tic_id))
and see if that helps.