Fix messages list sorting with THREAD=REFS

pull/85/head
Aleksander Machniak 12 years ago
parent 7045bb9c07
commit d4a2ea1d87

@ -1,6 +1,7 @@
CHANGELOG Roundcube Webmail CHANGELOG Roundcube Webmail
=========================== ===========================
- Fix messages list sorting with THREAD=REFS
- Fix Close link and remove About link on error pages (#1489109) - Fix Close link and remove About link on error pages (#1489109)
- Remove deprecated (in PHP 5.5) PREG /e modifier usage (#1489174) - Remove deprecated (in PHP 5.5) PREG /e modifier usage (#1489174)
- Fix empty messages list when register_globals is enabled (#1489157) - Fix empty messages list when register_globals is enabled (#1489157)

@ -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->get_capability('THREAD') != 'REFS') { if ($this->threading != 'REFS') {
$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