[-] FO : fixed default order by manufacturer #PSCFV-6105

This commit is contained in:
Damien Metzger
2012-12-14 10:30:13 +01:00
parent d930c479fb
commit 689a10d9bd
3 changed files with 14 additions and 3 deletions
+6
View File
@@ -243,6 +243,12 @@ class SupplierCore extends ObjectModel
$alias = 'product_shop.';
elseif ($order_by == 'id_product')
$alias = 'p.';
elseif ($order_by == 'manufacturer_name')
{
$order_by = 'name';
$alias = 'm.';
}
$sql = 'SELECT p.*, product_shop.*, stock.out_of_stock,
IFNULL(stock.quantity, 0) as quantity,
pl.`description`,