Дипломная работа: Автоматизация учета и обработки заявок пользователей на техническую поддержку (Help Desk) в ООО "Сфера ИТ"

Внимание! Если размещение файла нарушает Ваши авторские права, то обязательно сообщите нам
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.
102
my @Articles = $ArticleObject->ArticleList( TicketID => $Param{TicketID} );
for my $MetaArticle (@Articles) {
return if !$ArticleObject->BackendForArticle( %{$MetaArticle} )->ArticleDe-
lete(
ArticleID => $MetaArticle->{ArticleID},
%Param,
);
}
# delete ticket
return if !$DBObject->Do(
SQL => 'DELETE FROM ticket WHERE id = ?',
Bind => [ \$Param{TicketID} ],
);
# trigger event
$Self->EventHandler(
Event => 'TicketDelete',
Data => {
TicketID => $Param{TicketID},
},
UserID => $Param{UserID},
);
# Clear ticket cache again, in case it was rebuilt in the meantime.
$Self->_TicketCacheClear( TicketID => $Param{TicketID} );
return 1;
}
Источник: https://baza.diplomsite.ru/previewfile/2374