Hesk v3.2.0

This commit is contained in:
Luke Tainton
2021-03-06 16:23:18 +00:00
parent a5296eea55
commit ac0640212a
222 changed files with 16911 additions and 1089 deletions

View File

@@ -102,6 +102,9 @@ function hesk_email2ticket($results, $protocol = 0, $set_category = 1, $set_prio
$tmpvar['message'] = hesk_makeURL($tmpvar['message']);
$tmpvar['message'] = nl2br($tmpvar['message']);
// Store a copy for RTF-version
$tmpvar['message_html'] = $tmpvar['message'];
# For debugging purposes
# die( bin2hex($tmpvar['message']) );
# die($tmpvar['message']);
@@ -257,6 +260,7 @@ function hesk_email2ticket($results, $protocol = 0, $set_category = 1, $set_prio
'attachments' => $tmpvar['attachments'],
'dt' => hesk_date($ticket['dt'], true),
'lastchange' => hesk_date($ticket['lastchange'], true),
'due_date' => hesk_format_due_date($ticket['due_date']),
'id' => $ticket['id'],
);
@@ -325,7 +329,7 @@ function hesk_email2ticket($results, $protocol = 0, $set_category = 1, $set_prio
if ($autoassign_owner)
{
$tmpvar['owner'] = $autoassign_owner['id'];
$tmpvar['history'] .= sprintf($hesklang['thist10'],hesk_date(),$autoassign_owner['name'].' ('.$autoassign_owner['user'].')');
$tmpvar['history'] .= sprintf($hesklang['thist10'],hesk_date(),addslashes($autoassign_owner['name']).' ('.$autoassign_owner['user'].')');
$tmpvar['assignedby'] = -1;
}