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()) { ...@@ -62,8 +62,10 @@ if ($_POST && is_object($ticket) && $ticket->getId()) {
$changes += $f->getChanges(); $changes += $f->getChanges();
$f->save(); $f->save();
} }
if ($changes) if ($changes) {
$ticket->logEvent('edited', array('fields' => $changes)); $user = User::lookup($thisclient->getId());
$ticket->logEvent('edited', array('fields' => $changes), $user);
}
$_REQUEST['a'] = null; //Clear edit action - going back to view. $_REQUEST['a'] = null; //Clear edit action - going back to view.
} }
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment