diff --git a/tickets.php b/tickets.php index 5795925f4bdffdb051dabd64b2f033da0cbb2d4c..fa88e5e55775b4aeff32dda04841b35eed6fc178 100644 --- a/tickets.php +++ b/tickets.php @@ -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;