Fix message list sort with THREADS=REFS and sort column other than "None" or "Sent date"

pull/85/head
Aleksander Machniak 12 years ago
parent b7addfc77c
commit 049ba0aed2

@ -1370,7 +1370,7 @@ class rcube_imap extends rcube_storage
// THREAD=REFERENCES: sorting by sent date of root message // THREAD=REFERENCES: sorting by sent date of root message
// THREAD=REFS: sorting by the most recent date in each thread // 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'; $sortby = $this->sort_field ? $this->sort_field : 'date';
$index = $this->index($this->folder, $sortby, $this->sort_order, true, true); $index = $this->index($this->folder, $sortby, $this->sort_order, true, true);

Loading…
Cancel
Save