Customise Forgot Ticket email

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
chrisn0123
Posts: 5
Joined: Tue Feb 15, 2011 11:28 am

Customise Forgot Ticket email

Post by chrisn0123 »

Hi there!

I know the forgot_ticket_id.txt is located under languages etc, but was wondering
if I could customise the list, so it sorts by open jobs first.. then closed?

At the moment, it just sorts the list by date whether its resolved or open.

Cheers! :)
Chris
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: Customise Forgot Ticket email

Post by Klemen »

In index.php try changing

Code: Select all

$sql = 'SELECT * FROM `'.hesk_dbEscape($hesk_settings['db_pfix']).'tickets` WHERE `email` LIKE \''.hesk_dbEscape($email).'\'';
to

Code: Select all

$sql = 'SELECT * FROM `'.hesk_dbEscape($hesk_settings['db_pfix']).'tickets` WHERE `email` LIKE \''.hesk_dbEscape($email).'\' ORDER BY `status` ASC'; 
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
chrisn0123
Posts: 5
Joined: Tue Feb 15, 2011 11:28 am

Re: Customise Forgot Ticket email

Post by chrisn0123 »

That's absolutely brilliant and worked a treat!!!

Thanks loads :))
Post Reply