From 81e8d76d317e0e35248aaef757e94da8d15565c3 Mon Sep 17 00:00:00 2001 From: gRoussac Date: Thu, 6 Jun 2013 10:15:40 +0200 Subject: [PATCH] // revert --- modules/mailalerts/mailalerts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mailalerts/mailalerts.php b/modules/mailalerts/mailalerts.php index f5002c556..9baaa815c 100644 --- a/modules/mailalerts/mailalerts.php +++ b/modules/mailalerts/mailalerts.php @@ -406,7 +406,7 @@ class MailAlerts extends Module public function hookActionProductOutOfStock($params) { - if (!$this->_customer_qty || !Configuration::get('PS_STOCK_MANAGEMENT') || $params['product']->quantity > 0 || Product::isAvailableWhenOutOfStock($params['product']->out_of_stock)) + if (!$this->_customer_qty || !Configuration::get('PS_STOCK_MANAGEMENT') || Product::isAvailableWhenOutOfStock($params['product']->out_of_stock)) return; $id_product = (int)$params['product']->id;