From f8b24ccde3933eb10c698b477893fed242dd6f87 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Thu, 20 Feb 2014 16:24:10 -0600 Subject: [PATCH] Correctly process email tickets for existing users If a ticket is created via email for an existing user, under some circumstances, no user will be associated with the new ticket. --- include/class.ticket.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class.ticket.php b/include/class.ticket.php index df83644a8..50ad197c9 100644 --- a/include/class.ticket.php +++ b/include/class.ticket.php @@ -2284,7 +2284,7 @@ class Ticket { $number = Ticket::genRandTicketNumber(); $sql='INSERT INTO '.TICKET_TABLE.' SET created=NOW() ' .' ,lastmessage= NOW()' - .' ,user_id='.db_input($user->id) + .' ,user_id='.db_input($user->getId()) .' ,`number`='.db_input($number) .' ,dept_id='.db_input($deptId) .' ,topic_id='.db_input($topicId) -- GitLab