101
SQL => 'DELETE FROM ticket_watcher WHERE ticket_id = ?',
Bind => [ \$Param{TicketID} ],
);
# delete ticket flags
return if !$DBObject->Do(
SQL => 'DELETE FROM ticket_flag WHERE ticket_id = ?',
Bind => [ \$Param{TicketID} ],
);
# delete ticket flag cache
$Kernel::OM->Get('Kernel::System::Cache')->Delete(
Type => $Self->{CacheType},
Key => 'TicketFlag::' . $Param{TicketID},
);
# Delete calendar appointments linked to this ticket.
# Please see bug#13642 for more information.
return if !$Kernel::OM->Get('Kernel::System::Calendar')->TicketAppoint-
mentDelete(
TicketID => $Param{TicketID},
);
# delete ticket_history
return if !$Self->HistoryDelete(
TicketID => $Param{TicketID},
UserID => $Param{UserID},
);
# Delete all articles and associated data.