diff --git a/tickets.php b/tickets.php
index d06dfb15867be04ba8482e08cbeed0f5df0cd16b..7105e1054c5c02c82f0cc8c4c618c60434d27af1 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']))