[-] BO : fixed bug #PSCFV-3261
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16529 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -323,7 +323,11 @@ class ManufacturerCore extends ObjectModel
|
||||
$alias = '';
|
||||
if ($order_by == 'price')
|
||||
$alias = 'product_shop.';
|
||||
elseif ($order_by == 'id_product')
|
||||
elseif ($order_by == 'name')
|
||||
$alias = 'pl.';
|
||||
elseif ($order_by == 'quantity')
|
||||
$alias = 'stock.';
|
||||
else
|
||||
$alias = 'p.';
|
||||
$sql = 'SELECT p.*, product_shop.*, stock.out_of_stock, IFNULL(stock.quantity, 0) as quantity, pa.`id_product_attribute`,
|
||||
pl.`description`, pl.`description_short`, pl.`link_rewrite`, pl.`meta_description`, pl.`meta_keywords`,
|
||||
@@ -472,4 +476,4 @@ class ManufacturerCore extends ObjectModel
|
||||
|
||||
return ($result1 && $result2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user