// Fix Product::sqlStock() (use restrictions in left join instead of restrictions in where)

This commit is contained in:
rMalie
2012-06-06 09:16:03 +00:00
parent 31581b8d0d
commit 4de6cc643f
2 changed files with 18 additions and 37 deletions
+1 -1
View File
@@ -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);