From ba7ec2dd9df042c6b3edc53b36a3daf5e440f38d Mon Sep 17 00:00:00 2001 From: fBrignoli Date: Wed, 23 Nov 2011 17:18:09 +0000 Subject: [PATCH] [-] FO : Undefined method getOutOfStock git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10571 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Pack.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Pack.php b/classes/Pack.php index 0851ce54a..f69f89380 100644 --- a/classes/Pack.php +++ b/classes/Pack.php @@ -96,7 +96,7 @@ class PackCore extends Product foreach ($items as $item) { // Updated for 1.5.0 - if (Product::getQuantity($item->id) < $item->pack_quantity || !$item->isAvailableWhenOutOfStock((int)$item->getOutOfStock())) + if (Product::getQuantity($item->id) < $item->pack_quantity || !$item->isAvailableWhenOutOfStock((int)$item->out_of_stock)) return false; } return true;