From: Michael M Slusarz Date: Fri, 26 Jun 2009 16:59:22 +0000 (-0600) Subject: Don't delete draft in dimp immediately after saving it. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=1eefa457ba2fba7b7140c0364c0e2796eb8a74ad;p=horde.git Don't delete draft in dimp immediately after saving it. --- diff --git a/imp/compose-dimp.php b/imp/compose-dimp.php index 6bd8d46c3..d779c68ce 100644 --- a/imp/compose-dimp.php +++ b/imp/compose-dimp.php @@ -97,11 +97,13 @@ if (count($_POST)) { /* Save the draft. */ try { + $old_index = $imp_compose->getMetadata('draft_index'); + $res = $imp_compose->saveDraft($header, Horde_Util::getFormData('message', ''), NLS::getCharset(), Horde_Util::getFormData('html')); $result->success = 1; /* Delete existing draft. */ - _removeAutoSaveDraft($imp_compose->getMetadata('draft_index')); + _removeAutoSaveDraft($old_index); if ($action != 'auto_save_draft') { $notification->push($res);