Skip to content
Snippets Groups Projects
Commit 6daebeba authored by Jared Hancock's avatar Jared Hancock
Browse files

Correctly generate ticket_link for message confirm

parent cb026cbf
No related branches found
No related tags found
No related merge requests found
......@@ -414,8 +414,17 @@ Class ThreadEntry {
function getUser() {
if (!isset($this->user))
$this->user = User::lookup($this->getUserId());
if (!isset($this->user)) {
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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment