From 51310f9f4bdb0fbb7c2b5f42960f880722579a4f Mon Sep 17 00:00:00 2001 From: bMancone Date: Wed, 26 Oct 2011 08:11:02 +0000 Subject: [PATCH] // Pack : fixed isInStock() --- classes/Pack.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Pack.php b/classes/Pack.php index 9cc10a675..304b7269c 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 ($item->getQuantity() < $item->pack_quantity || !$item->isAvailableWhenOutOfStock((int)$item->getOutOfStock())) + if (Product::getQuantity($item->id) < $item->pack_quantity || !$item->isAvailableWhenOutOfStock((int)$item->getOutOfStock())) return false; } return true;