From edc70aa1930793c4df7e2f00b58a27862180c78f Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@osticket.com> Date: Thu, 16 Jan 2014 23:01:08 +0000 Subject: [PATCH] Set the user ID of the user posting the message --- tickets.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tickets.php b/tickets.php index d06dfb158..7105e1054 100644 --- a/tickets.php +++ b/tickets.php @@ -41,7 +41,9 @@ if($_POST && is_object($ticket) && $ticket->getId()): if(!$errors) { //Everything checked out...do the magic. - $vars = array('message'=>$_POST['message']); + $vars = array( + 'userId' => $thisclient->getId(), + 'message' => $_POST['message']); if($cfg->allowOnlineAttachments() && $_FILES['attachments']) $vars['files'] = AttachmentFile::format($_FILES['attachments'], true); if (isset($_POST['draft_id'])) -- GitLab