[-] FO : Undefined method getOutOfStock

This commit is contained in:
fBrignoli
2011-11-23 17:18:09 +00:00
parent 3fbc56c9a9
commit f44b8bc2da
+1 -1
View File
@@ -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;