- Fix handling errors on draft auto-save

pull/1/head
alecpl 13 years ago
parent 988a80ad67
commit db70b3fc82

@ -698,6 +698,7 @@ if ($store_target) {
unlink($mailbody_file); unlink($mailbody_file);
$mailbody_file = null; $mailbody_file = null;
} }
}
// raise error if saving failed // raise error if saving failed
if (!$saved) { if (!$saved) {
@ -707,10 +708,11 @@ if ($store_target) {
if ($savedraft) { if ($savedraft) {
$OUTPUT->show_message('errorsaving', 'error'); $OUTPUT->show_message('errorsaving', 'error');
// start the auto-save timer again
$OUTPUT->command('auto_save_start');
$OUTPUT->send('iframe'); $OUTPUT->send('iframe');
} }
} }
}
if ($olddraftmessageid) { if ($olddraftmessageid) {
// delete previous saved draft // delete previous saved draft

Loading…
Cancel
Save