Skip to content
Snippets Groups Projects
Unverified Commit b7cb9dfd authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #5078 from aydreeihn/issue/task-drafts

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