From bd2d0000c72e11df0ceed2191836f27fe971f528 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Mon, 16 Mar 2015 17:29:10 -0500 Subject: [PATCH] files: Clear attachment box after posting a response --- tickets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tickets.php b/tickets.php index fdafd5709..c65e9b6fd 100644 --- a/tickets.php +++ b/tickets.php @@ -90,7 +90,7 @@ if($_POST && is_object($ticket) && $ticket->getId()): Draft::deleteForNamespace('ticket.client.' . $ticket->getId()); // Drop attachments $attachments->reset(); - $tform->setSource(array()); + $attachments->getForm()->setSource(array()); } else { $errors['err']=__('Unable to post the message. Try again'); } -- GitLab