We would like to prevent tickets from being deleted in most cases, but the existing TicketDelete hook does not run until after the ticket is deleted. Not sure what the point of that hook would be exactly since the data for the ticket is already gone when it runs, but a PreTicketDelete hook would be massively useful as you could insert custom logic to route the ticket to the trash instead, or another custom department for "archived" tickets rather than deleting it outright.
Even better, a "Pre" hook for pretty much anything that currently has a "Post" hook would be infinitely useful.
Post the first comment
Login to post a comment.