jmontoyaa 8 years ago
parent
commit
d74edd6667
1 changed files with 9 additions and 0 deletions
  1. 9 0
      main/inc/lib/TicketManager.php

+ 9 - 0
main/inc/lib/TicketManager.php

@@ -594,6 +594,15 @@ class TicketManager
                     WHERE id = $ticketId";
             Database::query($sql);
 
+            $table = Database::get_main_table(TABLE_TICKET_ASSIGNED_LOG);
+            $params = [
+                'ticket_id' => $ticketId,
+                'user_id' => $userId,
+                'sys_insert_user_id' => api_get_user_id(),
+                'assigned_date' => api_get_utc_datetime()
+            ];
+            Database::insert($table, $params);
+
             return true;
         } else {
             return false;