diff --git a/htdocs/product/stock/product.php b/htdocs/product/stock/product.php
index 093a364752c309b6de6b2ed27fe7fed90c2eaada..0476a459f606e4dca2eb9209ea540a36d611f230 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';
 	}