From 049ba0aed21590dbbc3286d68b45a7f46d28b142 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sun, 30 Jun 2013 11:29:24 +0200 Subject: Fix message list sort with THREADS=REFS and sort column other than "None" or "Sent date" --- program/lib/Roundcube/rcube_imap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program/lib/Roundcube/rcube_imap.php') 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); -- cgit v1.2.3