// fixed order of Orders in AdminOrdersController

This commit is contained in:
aFolletete
2011-10-24 14:47:33 +00:00
parent 57199ef1ee
commit 1c776408f7
@@ -52,6 +52,7 @@ class AdminOrdersControllerCore extends AdminController
LEFT JOIN `'._DB_PREFIX_.'order_state` os ON (os.`id_order_state` = oh.`id_order_state`)
LEFT JOIN `'._DB_PREFIX_.'order_state_lang` osl ON (os.`id_order_state` = osl.`id_order_state` AND osl.`id_lang` = '.(int)$this->context->language->id.')';
$this->_where = 'AND oh.`id_order_history` = (SELECT MAX(`id_order_history`) FROM `'._DB_PREFIX_.'order_history` moh WHERE moh.`id_order` = a.`id_order` GROUP BY moh.`id_order`)';
$this->_orderWay = 'DESC';
$statesArray = array();
$states = OrderState::getOrderStates((int)$this->context->language->id);