Auto-fill fields on New ticket

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
toodlz
Posts: 2
Joined: Mon Apr 20, 2015 12:47 pm

Auto-fill fields on New ticket

Post by toodlz »

Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: auto fill populate submit a ticket new ticket

Write your message below:
When submitting a new ticket after I have already submitted a ticket, the fields fill with my last ticket I submitted. Is there a way to clear out the old cached information and start with a clean slate? Thanks - Lisa
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Auto-fill fields on New ticket

Post by Klemen »

This happens only when you submit tickets through customer interface, right? And only custom fields remain selected?

To fix the above you can:
1. open file "submit_ticket.php" in a text editor
2. find this code:

Code: Select all

hesk_cleanSessionVars('img_verified');
3. Just BELOW that add

Code: Select all

foreach ($hesk_settings['custom_fields'] as $k=>$v)
{
	if ($v['use'])
	{
        hesk_cleanSessionVars("c_$k");
	}
}
4. Save, upload and test (should start working after next ticket submission)
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
toodlz
Posts: 2
Joined: Mon Apr 20, 2015 12:47 pm

Re: Auto-fill fields on New ticket

Post by toodlz »

Awesome! Worked like a charm! :D

Thanks so much!
Lisa
Post Reply