alecpl
2012-04-24 db70b3fc823f632c4c74de53af471197e98dcfa9
- Fix handling errors on draft auto-save


1 files modified
4 ■■■ changed files
program/steps/mail/sendmail.inc 4 ●●● patch | view | raw | blame | history
program/steps/mail/sendmail.inc
@@ -698,6 +698,7 @@
      unlink($mailbody_file);
      $mailbody_file = null;
    }
  }
    // raise error if saving failed
    if (!$saved) {
@@ -707,8 +708,9 @@
      if ($savedraft) {
        $OUTPUT->show_message('errorsaving', 'error');
      // start the auto-save timer again
      $OUTPUT->command('auto_save_start');
        $OUTPUT->send('iframe');
      }
    }
  }