From 1d17f750a98f242f6e7c489e7083d11f6e901938 Mon Sep 17 00:00:00 2001 From: rGaillard Date: Mon, 1 Oct 2012 15:32:49 +0000 Subject: [PATCH] // Fix #PSCFV-4466 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17657 b9a71923-0436-4b27-9f14-aed3839534dd --- 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 fabd99df3..5dc19d192 100644 --- a/modules/mailalerts/mailalerts.php +++ b/modules/mailalerts/mailalerts.php @@ -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;