Related ticket search button - here the complete script
Posted: Fri Apr 29, 2016 11:25 am
Hi there.
Huge fan of HESK, lots of installation, fully licences.
I had this scripted developed by a freelancers a while ago, and constantly need to update this with the HESK updates. Hopefully this can be included with one of the future updates.
Also hope I post everything.
This will add a "related" ticket search option on the admin dashboard. Simply open any ticket and press the "related ticket icon" to search customers/ticket with similar ticket info. Very helpful if you want to do a quick search on related tickets of a client.
1. Dump the icon under /img (from the zip folder)
http://gogleweb.com/HESK/ico_search_yellow.zip
2. Add the lines below around lines 1075 (just above the "/* Lock ticket button */") in the file \admin\admin_ticket.php
//Find tickets from user icon.
if(!$reply) {
$description = htmlentities($hesklang['find_tickets_from_user']);
$ticket_email = htmlentities(urlencode($ticket['email']));
$options .= '<a href="find_tickets.php?q=' . $ticket_email . '&what=email"><img src="../img/ico_search_yellow.png" width="16" height="16" alt="' . $description . '" title="' . $description . '" ' . $style . '/></a>';
}
3. Update the file "find_tickets.php" under \admin
http://gogleweb.com/HESK/find_tickets.zip
Should do the trick.
EZ
Huge fan of HESK, lots of installation, fully licences.
I had this scripted developed by a freelancers a while ago, and constantly need to update this with the HESK updates. Hopefully this can be included with one of the future updates.



This will add a "related" ticket search option on the admin dashboard. Simply open any ticket and press the "related ticket icon" to search customers/ticket with similar ticket info. Very helpful if you want to do a quick search on related tickets of a client.
1. Dump the icon under /img (from the zip folder)
http://gogleweb.com/HESK/ico_search_yellow.zip
2. Add the lines below around lines 1075 (just above the "/* Lock ticket button */") in the file \admin\admin_ticket.php
//Find tickets from user icon.
if(!$reply) {
$description = htmlentities($hesklang['find_tickets_from_user']);
$ticket_email = htmlentities(urlencode($ticket['email']));
$options .= '<a href="find_tickets.php?q=' . $ticket_email . '&what=email"><img src="../img/ico_search_yellow.png" width="16" height="16" alt="' . $description . '" title="' . $description . '" ' . $style . '/></a>';
}
3. Update the file "find_tickets.php" under \admin
http://gogleweb.com/HESK/find_tickets.zip
Should do the trick.
EZ