This file deals with deletion/recycling of tickets and replies, subsequent restoration back to the helpdesk, and lastly, permanent deletion of the same.
Accessed through ?action=helpdesk;sa=deleteticket;ticket=x;sessvar=sessid Operations: - Session check - Check there's a ticket id - Check the ticket exists and is visible to the current user - Check permission to delete ticket matches (i.e. can delete any, or can delete own and this is one of ours) - Update the ticket's status to deleted - Log the deletion - Clear the menu's Helpdesk active items cache - return to the front page
Operations: - Identify how many deleted and non deleted replies there are in the ticket. - Identify the last non deleted reply in the ticket (if there are no undeleted replies, use the ticket post itself for cohesion) - Update the ticket's record with the first and last posters, as well as the correct number of active and deleted replies, and whether there are any deleted replies on the ticket generally
Parameter: $ticket
Expected type: int
The ticket id to recalculate.
Page created in 0.022 seconds with 13 queries.