diff --git a/htdocs/product/stock/product.php b/htdocs/product/stock/product.php index 7d15898deea..714a8d71291 100644 --- a/htdocs/product/stock/product.php +++ b/htdocs/product/stock/product.php @@ -63,7 +63,7 @@ if ($action == 'setstocklimit') $product->seuil_stock_alerte=$stocklimit; $result=$product->update($product->id,$user,1,0,1); if ($result < 0) - setEventMessage($product->errors, 'errors'); + setEventMessage($product->error, 'errors'); $action=''; }