Skip to content
Snippets Groups Projects
Commit bd2d0000 authored by Jared Hancock's avatar Jared Hancock
Browse files

files: Clear attachment box after posting a response

parent e8cedfd6
Branches
Tags
No related merge requests found
...@@ -90,7 +90,7 @@ if($_POST && is_object($ticket) && $ticket->getId()): ...@@ -90,7 +90,7 @@ if($_POST && is_object($ticket) && $ticket->getId()):
Draft::deleteForNamespace('ticket.client.' . $ticket->getId()); Draft::deleteForNamespace('ticket.client.' . $ticket->getId());
// Drop attachments // Drop attachments
$attachments->reset(); $attachments->reset();
$tform->setSource(array()); $attachments->getForm()->setSource(array());
} else { } else {
$errors['err']=__('Unable to post the message. Try again'); $errors['err']=__('Unable to post the message. Try again');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment