FIX : transnoentities

This commit is contained in:
Gauthier PC portable 024 2021-08-04 09:36:06 +02:00
parent f77b6d87c9
commit 5364a5dddf

View File

@ -253,13 +253,13 @@ if (empty($reshook)) {
if (empty($batch)) {
$error++;
$langs->load("errors");
setEventMessages($langs->trans("ErrorTryToMakeMoveOnProductRequiringBatchData", $prod->ref), null, 'errors');
setEventMessages($langs->transnoentities("ErrorTryToMakeMoveOnProductRequiringBatchData", $prod->getNomUrl()), null, 'errors');
$action = 'editline';
}
} else {
if (!empty($batch)) {
$error++;
setEventMessages($langs->trans('StockTransferNoBatchForProduct', $prod->getNomUrl()), '', 'errors');
setEventMessages($langs->transnoentities('StockTransferNoBatchForProduct', $prod->getNomUrl()), '', 'errors');
$action = 'editline';
}
}