// Fix Product::sqlStock() (use restrictions in left join instead of restrictions in where)
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