Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2022-08-23 20:46:39 +0300
committerAleksander Machniak <alec@alec.pl>2022-08-23 20:46:39 +0300
commit8c7911b9f2e60d9ed252a905ed737c070d77159a (patch)
treed87909478c91b6bbd0a0a5496e5f49f02c6e6291
parent66f61697748ff6d1c2ebf429d79e90b6d8e4638c (diff)
Fix bug where setting 'Clear Trash on Logout' to 'all messages' didn't work (#8687)
-rw-r--r--CHANGELOG.md1
-rw-r--r--program/actions/settings/index.php4
2 files changed, 3 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 129966241..09221117e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -18,6 +18,7 @@
- Fix bug where it wasn't possible to create more than one response record on SQLite and Postgres (#8664)
- Fix support for ManageSieve over implicit SSL (#8670)
- Fix bug where "about:blank" page could trigger "load error" (#8554)
+- Fix bug where setting 'Clear Trash on Logout' to 'all messages' didn't work (#8687)
## Release 1.6.0
diff --git a/program/actions/settings/index.php b/program/actions/settings/index.php
index 47c88ac56..fdc3471da 100644
--- a/program/actions/settings/index.php
+++ b/program/actions/settings/index.php
@@ -1429,14 +1429,14 @@ class rcmail_action_settings_index extends rcmail_action
$select->add($rcmail->gettext(['name' => 'olderxdays', 'vars' => ['x' => $days]]), (string) $days);
}
- $purge = (string) $config['logout_purge'];
+ $purge = $config['logout_purge'];
if (!is_numeric($purge)) {
$purge = empty($purge) ? 'never' : 'all';
}
$blocks['maintenance']['options']['logout_purge'] = [
'title' => html::label($field_id, rcube::Q($rcmail->gettext('logoutclear'))),
- 'content' => $select->show($purge),
+ 'content' => $select->show((string) $purge),
];
}