// 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:
rMalie
2012-06-06 09:16:03 +00:00
parent 8446bd2e4e
commit 88f537c23d
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);