Modified ticket delete so it can be done for assigned tickets.
Fixed ticket assigning issues.