diff --git a/include/class.ticket.php b/include/class.ticket.php index e7546870eba255341c0819fc8d2af7d98ac5c4eb..96b585c20516db6cfa3551bc835b98c6547dbc33 100644 --- a/include/class.ticket.php +++ b/include/class.ticket.php @@ -2060,6 +2060,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(),