From 5564421e3f243b109edc0b481b7031e38186db28 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 7 Aug 2012 12:00:22 +0200 Subject: [PATCH] Fix: update method return $this->error not $this->errors --- htdocs/product/stock/product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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=''; }