Page 1 of 1

Auto-fill fields on New ticket

Posted: Mon Apr 20, 2015 1:21 pm
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

Re: Auto-fill fields on New ticket

Posted: Mon Apr 20, 2015 2:35 pm
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)

Re: Auto-fill fields on New ticket

Posted: Mon Apr 20, 2015 4:26 pm
by toodlz
Awesome! Worked like a charm! :D

Thanks so much!
Lisa