summaryrefslogtreecommitdiff
path: root/program/steps/mail/compose.inc
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-03-26 19:06:11 +0100
committerAleksander Machniak <alec@alec.pl>2013-03-26 19:17:05 +0100
commitaa30cf8f3c05ab4fd69f7ab2dea39e56d8bf1976 (patch)
tree37f351b6e2c7a74df61003e43c89ffb6baa44720 /program/steps/mail/compose.inc
parentd608088a64e961409e9b201fe83d050e7bfb90e3 (diff)
Better fix for "saving draft just after entering compose window (#1489012)"
Diffstat (limited to 'program/steps/mail/compose.inc')
-rw-r--r--program/steps/mail/compose.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index c339fb444..a39642206 100644
--- a/program/steps/mail/compose.inc
+++ b/program/steps/mail/compose.inc
@@ -152,6 +152,7 @@ if ($font && !is_array($font)) {
// get reference message and set compose mode
if ($msg_uid = $COMPOSE['param']['draft_uid']) {
$compose_mode = RCUBE_COMPOSE_DRAFT;
+ $OUTPUT->set_env('draft_id', $msg_uid);
$RCMAIL->storage->set_folder($CONFIG['drafts_mbox']);
}
else if ($msg_uid = $COMPOSE['param']['reply_uid']) {