summaryrefslogtreecommitdiff
path: root/program/lib
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-06-30 11:29:24 +0200
committerAleksander Machniak <alec@alec.pl>2013-06-30 11:30:32 +0200
commit6913c0ae86cf7e4f1cee74932089b5f250744c09 (patch)
tree81d459ad7ef0413b2e0d96569bf29b909c058422 /program/lib
parentd2fa254d904ac16b8faba723af4f477923324e86 (diff)
Fix message list sort with THREADS=REFS and sort column other than "None" or "Sent date"
Diffstat (limited to 'program/lib')
-rw-r--r--program/lib/Roundcube/rcube_imap.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/Roundcube/rcube_imap.php b/program/lib/Roundcube/rcube_imap.php
index 869fa9eea..356f4f1db 100644
--- a/program/lib/Roundcube/rcube_imap.php
+++ b/program/lib/Roundcube/rcube_imap.php
@@ -1336,7 +1336,7 @@ class rcube_imap extends rcube_storage
// THREAD=REFERENCES: sorting by sent date of root message
// THREAD=REFS: sorting by the most recent date in each thread
- if ($this->threading != 'REFS') {
+ if ($this->threading != 'REFS' || ($this->sort_field && $this->sort_field != 'date')) {
$sortby = $this->sort_field ? $this->sort_field : 'date';
$index = $this->index_direct($this->folder, $sortby, $this->sort_order, false);