Skip to content
Snippets Groups Projects
Commit 3e8bce47 authored by aydreeihn's avatar aydreeihn
Browse files

Issue: Task Drafts

Make sure that we delete task drafts if the reply was posted successfully.
parent 4993abd2
No related branches found
No related tags found
No related merge requests found
......@@ -1837,7 +1837,7 @@ class TicketsAjaxAPI extends AjaxController {
// Clear attachment list
$reply_attachments_form->setSource(array());
$reply_attachments_form->getField('attachments')->reset();
Draft::deleteForNamespace('task.reply.'.$task->getId(),
Draft::deleteForNamespace('task.response.'.$task->getId(),
$thisstaff->getId());
} else {
if (!$errors['err'])
......
......@@ -90,7 +90,7 @@ if($_POST && !$errors):
$task = null; //Going back to main listing.
else
// Task is still open -- clear draft for the note
Draft::deleteForNamespace('task.reply.'.$task->getId(),
Draft::deleteForNamespace('task.response.'.$task->getId(),
$thisstaff->getId());
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment