Skip to content
Snippets Groups Projects
Commit 4db4d456 authored by aydreeihn's avatar aydreeihn
Browse files

correctly save the username,userId,and uid_type if a user edits a ticket

parent 69b17888
No related branches found
No related tags found
No related merge requests found
......@@ -62,8 +62,10 @@ if ($_POST && is_object($ticket) && $ticket->getId()) {
$changes += $f->getChanges();
$f->save();
}
if ($changes)
$ticket->logEvent('edited', array('fields' => $changes));
if ($changes) {
$user = User::lookup($thisclient->getId());
$ticket->logEvent('edited', array('fields' => $changes), $user);
}
$_REQUEST['a'] = null; //Clear edit action - going back to view.
}
break;
......
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