diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-10-30 10:02:48 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-10-30 10:02:48 +0100 |
commit | a6cc96a55def228775780b7e0c49eced0a23dc1a (patch) | |
tree | 9ceb38af3aeca471b767189dc68c39fc2a9e4d60 /plugins/archive/archive.php | |
parent | 2143a648734fe631bcab8516ca8f08128dd6a735 (diff) |
Fix archive button on messages page when using archive_type != '' (#1489404)
Diffstat (limited to 'plugins/archive/archive.php')
-rw-r--r-- | plugins/archive/archive.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/plugins/archive/archive.php b/plugins/archive/archive.php index 420f6918b..291ef1370 100644 --- a/plugins/archive/archive.php +++ b/plugins/archive/archive.php @@ -208,7 +208,17 @@ class archive extends rcube_plugin $rcmail->output->show_message($this->gettext('archived'), 'confirmation'); } - $rcmail->output->command('plugin.move2archive_response', $result); + if ($_POST['_from'] == 'show' && !empty($result['update'])) { + if ($next = get_input_value('_next_uid', RCUBE_INPUT_GPC)) { + $rcmail->output->command('show_message', $next); + } + else { + $rcmail->output->command('command', 'list'); + } + } + else { + $rcmail->output->command('plugin.move2archive_response', $result); + } } /** |