[-] BO : fixed bug #PSCFV-2155 - carrier max_height, max_depth, max_weight, max_width problem

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14996 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vAugagneur
2012-05-02 10:09:01 +00:00
parent 4f5ff9e8c4
commit ea51aba2bb
+3 -3
View File
@@ -1175,9 +1175,9 @@ class CarrierCore extends ObjectModel
{
$carrier = new Carrier($id_carrier);
if (($carrier->max_width > 0 && $carrier->max_width < $product->width)
|| ($carrier->max_height > 0 && $carrier->max_height > $product->height)
|| ($carrier->max_depth > 0 && $carrier->max_depth > $product->depth)
|| ($carrier->max_weight > 0 && $carrier->max_weight > $product->weight))
|| ($carrier->max_height > 0 && $carrier->max_height < $product->height)
|| ($carrier->max_depth > 0 && $carrier->max_depth < $product->depth)
|| ($carrier->max_weight > 0 && $carrier->max_weight < $product->weight))
unset($carrier_list[$key]);
}
}