Fix refreshing of drafts list when sending a message which was saved in meantime (#1490238)

pull/257/head
Aleksander Machniak 10 years ago
parent de3fc1afaf
commit 9ed6d46df7

@ -1,6 +1,8 @@
CHANGELOG Roundcube Webmail
===========================
- Fix refreshing of drafts list when sending a message which was saved in meantime (#1490238)
RELEASE 1.1.0
-------------
- Make SMTP error log more verbose - include server response and error code

@ -684,11 +684,16 @@ if ($savedraft) {
$OUTPUT->command('auto_save_start');
}
else {
// Collect folders which could contain the composed message,
// we'll refresh the list if currently opened folder is one of them (#1490238)
$folders = array();
if (in_array($COMPOSE['mode'], array('reply', 'forward', 'draft'))) {
$folders[] = $COMPOSE['mailbox'];
}
if (!empty($COMPOSE['param']['draft_uid']) && $drafts_mbox) {
$folders[] = $drafts_mbox;
}
rcmail_compose_cleanup($COMPOSE_ID);
$OUTPUT->command('remove_compose_data', $COMPOSE_ID);

Loading…
Cancel
Save