Details
-
Type: Sub-task
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 4.3.0-b1
-
Component/s: Staff Interface
-
Labels:None
Description
The Support Manager needs to listen to the Clients.delete event handler. It should then delete all client-related records, including:
- Tickets
- Ticket replies
- Attachments (from the file system and database)
TODO:
- To speed up the deletion, add an index on `support_tickets`.`client_id`
- Delete all tickets, ticket replies, and reply attachments for the client
Assume the action takes place in a transaction already, so do not attempt to perform the deletion within its own transactionUpdate the documentation for the event handler to describe that the action takes place within a database transaction