From 0a6633da6e5284cc1cc1b7878a2249cccd4c95b4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 2 Dec 2017 15:56:56 +0100 Subject: [PATCH] Fix error message --- htdocs/product/stock/massstockmove.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/product/stock/massstockmove.php b/htdocs/product/stock/massstockmove.php index cd1f118fcd4..e6a2b59e700 100644 --- a/htdocs/product/stock/massstockmove.php +++ b/htdocs/product/stock/massstockmove.php @@ -113,7 +113,8 @@ if ($action == 'addline') if (empty($batch)) { $error++; - setEventMessages($langs->trans("ErrorTryToMakeMoveOnProductRequiringBatchData"), null, 'errors'); + $langs->load("errors"); + setEventMessages($langs->trans("ErrorTryToMakeMoveOnProductRequiringBatchData", $producttmp->ref), null, 'errors'); } } }