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

Merge pull request #676 from greezybacon/issue/615


email: Fix incorrect matching of user ids

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents 7b445c92 1695307b
No related branches found
Tags v1.1.0
No related merge requests found
......@@ -370,7 +370,10 @@ Class ThreadEntry {
}
function getEmailReferencesForUser($user) {
return $this->getTaggedEmailReferences('u', $user->getId());
return $this->getTaggedEmailReferences('u',
($user instanceof Collaborator)
? $user->getUserId()
: $user->getId());
}
function getEmailReferencesForStaff($staff) {
......
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