// revert

This commit is contained in:
gRoussac
2013-06-06 10:15:40 +02:00
parent 896658633e
commit 81e8d76d31
+1 -1
View File
@@ -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;