Skip to content
Snippets Groups Projects
Commit 8f376621 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #989 from greezybacon/issue/794


Correctly generate ticket_link for message confirm

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents 0db91642 6daebeba
No related branches found
No related tags found
No related merge requests found
...@@ -414,8 +414,17 @@ Class ThreadEntry { ...@@ -414,8 +414,17 @@ Class ThreadEntry {
function getUser() { function getUser() {
if (!isset($this->user)) if (!isset($this->user)) {
$this->user = User::lookup($this->getUserId()); if (!($ticket = $this->getTicket()))
return null;
if ($ticket->getOwnerId() == $ticket->getUserId())
$this->user = new TicketOwner(
User::lookup($this->getUserId()), $ticket);
else
$this->user = Collborator::lookup(array(
'userId'=>$this->getUserId(), 'ticketId'=>$this->getTicketId()));
}
return $this->user; return $this->user;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment