From 13fd348f4f3fd21ad85b16ea6272d0e391992517 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Mon, 8 Jun 2015 17:08:40 -0500 Subject: [PATCH] oops: Fix typo in Ticket::getLastRespondent() --- include/class.ticket.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class.ticket.php b/include/class.ticket.php index 217718d95..4d252dcf7 100644 --- a/include/class.ticket.php +++ b/include/class.ticket.php @@ -665,7 +665,7 @@ implements RestrictedAccess, Threadable { function getLastRespondent() { if (!isset($this->lastrespondent)) { - $this->lastresponent = Staff::objects() + $this->lastrespondent = Staff::objects() ->filter(array( 'staff_id' => static::objects() ->filter(array( @@ -2272,7 +2272,7 @@ implements RestrictedAccess, Threadable { $this->setStaffId($thisstaff->getId()); //direct assignment; } - $this->lastrespondent = null; // XXX: Set to $response->staff? + $this->lastrespondent = $response->staff; $this->onResponse($response, array('assignee' => $assignee)); //do house cleaning.. -- GitLab