Add assign log.

pull/2487/head
jmontoyaa 8 years ago
parent f8daa46ba5
commit 157754fd77
  1. 9
      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;

Loading…
Cancel
Save