// Fix #PSCFV-4466

This commit is contained in:
rGaillard committed 2012-10-01 15:32:49 +00:00
1 parent bd52594d21
commit 1d9e531313
1 file changed
+1 -1
+1 -1
View File
@@ -403,7 +403,7 @@ class MailAlerts extends Module
public function hookActionProductOutOfStock($params) 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; return;
$id_product = (int)$params['product']->id; $id_product = (int)$params['product']->id;