Skip to content
Snippets Groups Projects
Unverified Commit 14b5ba57 authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #4575 from JediKev/issue/ticket_link-fatal-error

issue: ticket_link Fatal Error
parents a5f10a0d 2062950b
No related branches found
No related tags found
No related merge requests found
......@@ -59,19 +59,20 @@ implements EmailContact, ITicketUser, TemplateVariable {
case 'ticket_link':
$qstr = array();
if ($cfg && $cfg->isAuthTokenEnabled()
&& ($ticket=$this->getTicket())
&& !$ticket->getThread()->getNumCollaborators()) {
$qstr['auth'] = $ticket->getAuthToken($this);
return sprintf('%s/view.php?%s',
$cfg->getBaseUrl(),
Http::build_query($qstr, false)
);
}
else {
return sprintf('%s/tickets.php?id=%s',
$cfg->getBaseUrl(),
$ticket->getId()
);
&& ($ticket=$this->getTicket())) {
if (!$ticket->getThread()->getNumCollaborators()) {
$qstr['auth'] = $ticket->getAuthToken($this);
return sprintf('%s/view.php?%s',
$cfg->getBaseUrl(),
Http::build_query($qstr, false)
);
}
else {
return sprintf('%s/tickets.php?id=%s',
$cfg->getBaseUrl(),
$ticket->getId()
);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment