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

oops: Check if an agent exists

This is necessary for auto-assigned tickets
parent 17e0d18e
Branches
Tags
No related merge requests found
......@@ -1941,10 +1941,11 @@ implements RestrictedAccess, Threadable {
global $thisstaff;
$data = array();
if ($staff->getId() == $thisstaff->getId())
if ($thisstaff && $staff->getId() == $thisstaff->getId())
$data['claim'] = true;
else
$data['staff'] = $staff->getId();
$this->logEvent('assigned', $data);
return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment