From 2799dbf45b6ec5a47490e8613e977af49d6084af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Tue, 10 Nov 2015 23:02:54 +0100 Subject: [PATCH] Update product.php --- htdocs/product/stock/product.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/product/stock/product.php b/htdocs/product/stock/product.php index 093a364752c..0476a459f60 100644 --- a/htdocs/product/stock/product.php +++ b/htdocs/product/stock/product.php @@ -174,7 +174,7 @@ if ($action == "correct_stock" && ! $cancel) } else { - setEventMessage($object->error,'errors'); + setEventMessages($object->error, $object->errors, 'errors'); $action='correction'; } } @@ -198,7 +198,7 @@ if ($action == "transfert_stock" && ! $cancel) } if (GETPOST("id_entrepot_source",'int') == GETPOST("id_entrepot_destination",'int')) { - setEventMessage($langs->trans("ErrorSrcAndTargetWarehouseMustDiffers"), 'errors'); + setEventMessages($langs->trans("ErrorSrcAndTargetWarehouseMustDiffers"), null, 'errors'); $error++; $action='transfert'; }