projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9751fe7
)
Don't delete draft in dimp immediately after saving it.
author
Michael M Slusarz
<slusarz@curecanti.org>
Fri, 26 Jun 2009 16:59:22 +0000
(10:59 -0600)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Fri, 26 Jun 2009 17:20:04 +0000
(11:20 -0600)
imp/compose-dimp.php
patch
|
blob
|
history
diff --git
a/imp/compose-dimp.php
b/imp/compose-dimp.php
index
6bd8d46
..
d779c68
100644
(file)
--- 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);