I am a huge fan of HESK and lately my IT department is making some changes in their way of working and organizing tickets. Thats when we started using HESK. They came to me with a request if it was possible to add a default value to the required email adress field so our customers only have to put there names in the field (Example email adres: pascalle.vanderpol@bibliotheekrivierenland.nl). I am not familiair with PHP but I tried my best and eventually found the field I needed and added a value. At first everything seem to look fine but when I tried to submit a ticket I got the following error:
Error:
Can't execute SQL: INSERT INTO `hesk_stage_tickets` ( `trackid`, `name`, `email`, `category`, `priority`, `subject`, `message`, `dt`, `lastchange`, `articles`, `ip`, `language`, `openedby`, `owner`, `attachments`, `merged`, `history`, `custom1`, `custom2`, `custom3`, `custom4`, `custom5`, `custom6`, `custom7`, `custom8`, `custom9`, `custom10`, `custom11`, `custom12`, `custom13`, `custom14`, `custom15`, `custom16`, `custom17`, `custom18`, `custom19`, `custom20`, `status`, `latitude`, `longitude`, `html`, `user_agent`, `screen_resolution_height`, `screen_resolution_width`, `due_date` ) VALUES ( 'W4M-3EJ-MPXL', 'Yola Brink', 'test@bibliotheekrivierenland.nl', '1', '3', 'Test', 'Test', NOW(), NOW(), NULL, '::1', 'English', '0', '0', '', '', '
2016-07-11 10:35:39 | submitted by Yola Brink
', 'Tiel', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '0', 'E-0', 'E-0', '0', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36', 1200, 1920, NULL )
MySQL said:
Unknown column 'due_date' in 'field list'
WARNING
Debug mode is enabled. Make sure you disable debug mode in settings once HESK is installed and working properly.
Notice: Undefined index: due_date in C:\xampp\htdocs\helpdesk\inc\posting_functions.inc.php on line 58
I added the value in the index.php on line 221 and it looks like this now:
Code: Select all
<div class="col-sm-9">
<input type="text" class="form-control" id="email" name="email" size="40" maxlength="1000" value="@bibliotheekrivierenland.nl"
Best Regards,
P. van der Pol