Commit 8162eb21 authored by Damyon Wiese's avatar Damyon Wiese
Browse files

MDL-51179 Atto: When a resume is aborted - create a fresh draft for future saves.

parent b938b7a7
......@@ -154,6 +154,10 @@ if ($action === 'save') {
// A response means the draft has been restored and here is the auto-saved text.
$response['result'] = $record->drafttext;
echo json_encode($response);
} else {
$DB->delete_records('editor_atto_autosave', array('id' => $record->id));
// No response means no error.
}
die();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment