From 4db4d456738ff47c8c371e2f5fe239936f3d6527 Mon Sep 17 00:00:00 2001
From: aydreeihn <adriane@enhancesoft.com>
Date: Wed, 13 Jun 2018 15:56:25 -0500
Subject: [PATCH] correctly save the username,userId,and uid_type if a user
 edits a ticket

---
 tickets.php | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tickets.php b/tickets.php
index 5795925f4..fa88e5e55 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;
-- 
GitLab