Fix attachments not working on ticket open

When opening a ticket, and attaching a file, currently the code does not look for or process attachments.

My proposed code will find any attachments, process them, and add them upon opening the ticket.