// Fix #PSCFV-4466

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17657 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2012-10-01 15:32:49 +00:00
parent 35ba4e2bff
commit 1d17f750a9
+1 -1
View File
@@ -403,7 +403,7 @@ class MailAlerts extends Module
public function hookActionProductOutOfStock($params)
{
if (!$this->_customer_qty || !Configuration::get('PS_STOCK_MANAGEMENT'))
if (!$this->_customer_qty || !Configuration::get('PS_STOCK_MANAGEMENT') || Product::isAvailableWhenOutOfStock($params['product']->out_of_stock))
return;
$id_product = (int)$params['product']->id;