Version of script: 3.4.1
Hosting company: N/A
URL of phpinfo.php: N/A
URL of session_test.php: N/A
What terms did you try when SEARCHING for a solution: Piping due date
Write your message below:
When a category has a default due date, this is not applied to tickets raised via email piping, instead the ticket is given no due date.
This can be fixed by adding the following snippet of code from admin/admin_submit_ticket.php L261 to inc/pipe_functions.inc.php at L361 (just before the line $ticket = hesk_newTicket($tmpvar);
Code: Select all
if (($default_due_date_info = hesk_getCategoryDueDateInfo($tmpvar['category'])) !== null)
{
$due_date = new DateTime('today midnight');
$due_date->add(DateInterval::createFromDateString("+{$default_due_date_info['amount']} {$default_due_date_info['unit']}s"));
$tmpvar['due_date'] = hesk_datepicker_format_date($due_date->getTimestamp());
// Don't set a due date if any unexpected errors
if ($tmpvar['due_date'] === false) {
$tmpvar['due_date'] = '';
}
}
Kind Regards,
Gavin.