[-] BO : #PSTEST-53 : fixed added quantities maximal for a pack

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11379 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2011-12-19 16:13:52 +00:00
parent 4efd103b03
commit 2c60a188d9
4 changed files with 50 additions and 19 deletions
+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->out_of_stock))
if (Product::getQuantity($item->id) < $item->pack_quantity || (Product::getQuantity($item->id) < $item->pack_quantity && !$item->isAvailableWhenOutOfStock((int)$item->out_of_stock)))
return false;
}
return true;