summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube
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:29:24 +0200
commit049ba0aed21590dbbc3286d68b45a7f46d28b142 (patch)
tree965f165487177d0f3f7fdef5688e1fa79c58984d /program/lib/Roundcube
parentb7addfc77cc3116d2015c04868f8ac741f177390 (diff)
Fix message list sort with THREADS=REFS and sort column other than "None" or "Sent date"
Diffstat (limited to 'program/lib/Roundcube')
-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 6b30a5c7b..7ef8d62d8 100644
--- a/program/lib/Roundcube/rcube_imap.php
+++ b/program/lib/Roundcube/rcube_imap.php
@@ -1370,7 +1370,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($this->folder, $sortby, $this->sort_order, true, true);