Fixed bug "Ticket undefined successfully created" when creating and editing ticket