diff --git a/include/class.ticket.php b/include/class.ticket.php index 35e624753593d62554eab9d6b46afd2e555676fa..1bd1f5e6500ed8318da988a539c3720d4db335ce 100644 --- a/include/class.ticket.php +++ b/include/class.ticket.php @@ -2065,6 +2065,11 @@ class Ticket { $this->deleteDrafts(); + $sql = 'DELETE FROM '.TICKET_TABLE.'__cdata WHERE `ticket_id`=' + .db_input($this->getId()); + // If the CDATA table doesn't exist, that's not an error + db_query($sql, false); + // Log delete $log = sprintf(__('Ticket #%1$s deleted by %2$s'), $this->getNumber(),