mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Removed pointless second sort in e_tree_model
e_tree_model::prepareSimulatedCustomOrdering() performed an ORDER BY second sort that doesn't add any benefit at all and causes #3086. This second sort has been removed. Fixes: #3086
This commit is contained in:
@@ -3617,7 +3617,7 @@ class e_tree_model extends e_front_model
|
|||||||
return "";
|
return "";
|
||||||
}, $db_query)
|
}, $db_query)
|
||||||
// Optimization goes with e_tree_model::moveRowsToTreeNodes()
|
// Optimization goes with e_tree_model::moveRowsToTreeNodes()
|
||||||
. " ORDER BY " . $this->getParam('sort_parent') . ", " . $this->getParam('sort_field');
|
. " ORDER BY " . $this->getParam('sort_parent');
|
||||||
$this->setParam('db_query', $db_query);
|
$this->setParam('db_query', $db_query);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user