// Fix Product::sqlStock() (use restrictions in left join instead of restrictions in where)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15868 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+1
-1
@@ -453,7 +453,7 @@ class CartCore extends ObjectModel
|
||||
);
|
||||
|
||||
// @todo test if everything is ok, then refactorise call of this method
|
||||
Product::sqlStock('cp', 'cp', false, null, $sql);
|
||||
$sql->join(Product::sqlStock('cp', 'cp'));
|
||||
|
||||
// Build WHERE clauses
|
||||
$sql->where('cp.`id_cart` = '.(int)$this->id);
|
||||
|
||||
Reference in New Issue
Block a user