diff --git a/htdocs/ticket/class/ticket.class.php b/htdocs/ticket/class/ticket.class.php index dd3307a391c..43002f30f99 100644 --- a/htdocs/ticket/class/ticket.class.php +++ b/htdocs/ticket/class/ticket.class.php @@ -901,11 +901,6 @@ class Ticket extends CommonObject if ($res < 0) $error++; } - if (!$error) { - $sql = "DELETE FROM " . MAIN_DB_PREFIX . "ticket_logs"; - $sql .= " WHERE fk_track_id = '" . $this->db->escape($this->track_id) . "'"; - $resql = $this->db->query($sql); - } if (!$error) { $sql = "DELETE FROM " . MAIN_DB_PREFIX . "ticket_msg"; $sql .= " WHERE fk_track_id = '" . $this->db->escape($this->track_id) . "'"; @@ -1671,7 +1666,7 @@ class Ticket extends CommonObject dol_syslog(get_class($this) . "::loadCacheLogsTicket " . $this->error, LOG_ERR); return -1; }*/ - + return 0; }